Skip to content

feat(web): put the project sidebar in the room in place of the rail, plan panel and tab strip - #335

Closed
pratikbuilds wants to merge 14 commits into
document-comments-storybookfrom
room-sidebar
Closed

pratikbuilds wants to merge 14 commits into
document-comments-storybookfrom
room-sidebar

Conversation

@pratikbuilds

Copy link
Copy Markdown
Contributor

PR 1 of 5 in the room revamp, stacked on the Storybook PRs. Base: #306. Needs nothing beyond #303–#306. Plan: Builder UI revamp, section "PR 1: the sidebar in the room".

What changed

Inside a project, ProjectSidebarView from #303 takes the place of the app's rail, the plan panel and the project view's tab strip.

 <Room>
-  <Rail>
-  <PlanPanel> + Plan button and meter
+  <ProjectSidebarView>          This project · Projects · Workspace
+    Plan    steps with their state, row menu: Ask me first, Decline, Go ahead
+    Files   every document, the design with its mockup and concepts, attachments; row menu: Print, Remove from project
+    Live    the app's state and Open app
   <ProjectView>
-    <PanelTabs> + tab menu
  • project-outline.ts (new logic file, with tests and sample projects): what each step has done, and what files the project has.
  • project-sidebar.model.ts reads the hub and hands the sidebar its props; room.model.ts only puts it together.
  • Removed: PlanPanel, the Plan button and its meter, the rail inside a project, PanelTabs and its tab menu.
  • apps/web/AGENTS.md: "tab" becomes "sidebar row", "tab menu" becomes "row menu".

What behaves differently

  • There's no tab strip. Files open from the sidebar, and a document's commands live in its row menu.
  • Clicking a file or Live in the full-screen chat opens the project view on it, and a half-typed message stays in the box. The room never moves you there on its own.
  • The sidebar can be hidden in every view; below the narrow breakpoint it's a drawer.
  • Go ahead for an ask-first step is in the step's row menu. This is a feat(web): add the project sidebar with its steps, documents and app #303 view change the plan's PR 1 tree calls for, in its own commit, and PR 2 moves it into the prompt box.
  • A design no longer shows writing dots while it waits on a pick.

Design

Figma: lo-fi of the room and the #303 section.

How to test

Run it: check out room-sidebar, then bun install, bun run dev, and bun run dev:seed -- --fixture=habit-tracker --stage=ready_to_build. Open the habit-tracker project.

  1. The left side shows the sidebar with three groups, and no rail or plan panel.
  2. Plan lists the steps with their state. A step's … menu shows Ask me first and Decline.
  3. Files lists each written document, the design (with Mockup and concepts under it) and the approval package. Click each one: it opens in the project view, and there's no tab strip.
  4. Type half a message in the full-screen chat, then click a file. The project view opens on it, and the message is still in the box.
  5. A written document's … menu has Print and prints only the document.
  6. Attach a file to the project: it gets a row whose menu has Remove from project.
  7. Live shows the app's state (Not built, Starting, Running, Stopped, Failed) with Open app, and no switch.
  8. Hide and show the sidebar in both views. Narrow the window under 900px: it becomes a drawer that opens a file and closes.
  9. Repeat 1–3 in dark mode.

Storybook (bun run --cwd apps/web storybook): Screens/Workspace/Room → ProjectOpen, OpenFileKeepsMessage, SidebarClosed, NarrowDrawer, AppRunning, AppStopped, AppFailed, ProjectOpenDark; Screens/Workspace/ProjectSidebar → StepMenu, FileMenu, FileStates.

How it was verified

  • Lint, format, typecheck, boundaries, and bun --conditions=intx-src test ./apps/web/src ./packages: 270 pass.
  • On a local hub with a seeded project: every file row opens (brief, constraints, approaches, requirements, design plan, mockup, concepts, build plan, approval package); Live Starting, Failed and Not built; Print from the row menu and from chat; step actions reach the hub; the narrow drawer.

Not exercised

  • Attachments and Remove from project: the local hub's model provider was signed out, so uploads were refused.
  • The user manual (never produced), Live Running and Stopped (the sidecar failed locally), a document's writing, needs-you and failed states, and Go ahead on a real ask-first step: stories and tests only.
  • Mockup frames render blank locally, with the old tabs too.

@corbits-triage

corbits-triage Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Triage: Fail

@pratikbuilds, please address the following:

  • added code matches a code pattern: apps/web/src/pages/workspace/room.stories.tsx:479 empty-fallback: Invented fallback (an empty string, list, object or zero); handle the missing value instead.

Stacked on #306: only this pull request's own changes were checked.

The live app's and the draft's tab names already live in tab-follow.ts;
the filed mockup's and the user manual's join them, so whatever opens a
tab names it the way the pane does.
project-outline.ts reads the hub's plan, the filed documents with the
design's mockup and concepts, and the live app's state, and returns the
sidebar's Plan, Files and Live, with sample projects for its tests.
A tab the room asks for now goes through the pane's own choice, so a
document, the design's mockup, a concept or the app open the same way
whoever asks. The pane says which tab it shows, and prints a document
the room names once it has read it.
Inside a project the sidebar from the Storybook stands beside the page:
Plan lists the hub plan's steps, with Ask me first, Decline and Go ahead
in a step's menu; Files lists what the project view can open; Live says
how the app runs, with Open app. A file or Live opens the project view
on it, and in the view a click changes what it shows. In a narrow room
the sidebar is a drawer.

project-sidebar.model.ts reads the app's state through the live app's
own query, runs the project's outline and hands the sidebar its props;
room.model.ts only adds it. The plan panel and its Plan button go.
The room's own sidebar now leads to the other projects, Settings and
the account, so inside a project the rail steps aside and the canvas is
only the ground the room stands on. A project that could not be opened
keeps the rail, as the way back.
Every place a tab opened now has a row in the project sidebar, with print and remove in the row's menu, so the project view keeps only its close button. Plugin panes stay until their screens move out of the view.
An ask-first step waiting on the person gets a Go ahead item in its row
menu, so it never sits stuck now the plan panel that held the button is
gone. The prompt box takes this over in the next change, which drops
this commit's goAhead flag and onGoAhead with it.
The view's own header held only a close button over the page. The project control in the room's top bar opens and closes the view, and Escape still goes back to the conversation.
Main's new cached-reads test renders the workspace without the project sidebar's links, which the room now needs.
@pratikbuilds

Copy link
Copy Markdown
Contributor Author

Replaced by #345, the same code rebuilt as one PR with commits that read in order. It's stacked on #344, which has the parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant