Skip to content

feat(web): pull the chat up over the project view as a sheet - #338

Closed
pratikbuilds wants to merge 10 commits into
room-document-pagefrom
room-chat-sheet
Closed

pratikbuilds wants to merge 10 commits into
room-document-pagefrom
room-chat-sheet

Conversation

@pratikbuilds

Copy link
Copy Markdown
Contributor

PR 4 of 5 in the room revamp. Base: #337 (PR 3). Needs #336 (PR 2) for the prompt box. Plan: Builder UI revamp, section "PR 4: the chat sheet in the project view".

What changed

The prompt box under the project view gets #304's chat sheet, so you can read and reply without closing the page.

 <ProjectView>
   <WrittenDocument> / mockup / app …
+  <FootFade>                       under a box floating over a written page
   <PromptBox>
     <StatusPill>
+    <ChatSheet>                    handle; pulls up around the box; full screen
+      <RoomThread>
  • The room fills RoomSlots.chat with its own thread; the full-screen conversation's box still has no sheet.
  • Over a written page the box floats, and the page runs on under it with FootFade. The app, mockups and sheets keep the box below them.
  • The floating bar sits above the chat's handle.
  • Removes nothing. The ChatSheet fixes this needed (focus after a handle press, putBackTo, a blue focus ring, the handle staying while the pill has an action) landed in feat(web): make the prompt box one box, with the status pill and chat sheet #304 itself.

What behaves differently

  • Over the project view, the handle or the pill pulls the chat up around the box. Full screen hides the page and names it on the way back ("← Brief", "← Live").
  • Putting the chat back (handle, button, Escape, or the way back) returns the cursor to the box, and the half-typed message stays.
  • The first Escape puts the chat back; the next one closes the project view.

How to test

Run it: check out room-chat-sheet, bun install, bun run dev, bun run dev:seed -- --fixture=habit-tracker --stage=ready_to_build. A connected model provider lets you see real replies in the sheet.

  1. Open a written document. A handle sits on the box; the page runs on under the box with a fade.
  2. Press the handle: the chat pulls up with the whole conversation. Press it again, or press Escape: it goes back, and the cursor is in the box.
  3. Type half a message, open the sheet, close it, go to full-screen chat and back: the message is still there.
  4. Open the sheet and go full screen: the page is hidden, and "← Brief" takes you back to it.
  5. Send a message from inside the open sheet: it shows in the sheet, and the reply streams there.
  6. While the pill shows "… is ready · Open", the handle is still there and opens the chat.
  7. Press Escape twice with the sheet open: first the sheet goes back, then the project view closes.
  8. Open the design mockup or Live: the box sits below them, not floating.
  9. Tab to the handle: the focus ring is blue. Repeat 2 in dark mode and under 900px.

Storybook: Screens/Workspace/Room → ChatSheetClosed, ChatSheetOpen, ChatSheetFullScreen, ChatSheetKeepsMessage, ChatSheetNarrow, ChatSheetClosedDark, ChatSheetOpenDark.

How it was verified

  • Lint, format, typecheck, boundaries, and bun --conditions=intx-src test ./apps/web/src ./packages: 298 pass.
  • On a local hub with a seeded project: a half message survived the move into the project view; the handle, Escape and full screen with its way back each kept the message and put the cursor in the box; a reply sent from the sheet showed in it; no sideways scroll at 375px; the fade over written pages; the box below the mockup.

Not exercised

  • A real streaming reply or a specialist run in the sheet (the local model provider was signed out), dragging the handle as opposed to pressing it, and dark mode on the hub (stories only).

Open items: RoomThread brings its conversation-map rail into the sheet (about 2.5rem at phone width) and its own scroller, so the sheet holds two nested role="log" regions.

@corbits-triage

corbits-triage Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Superseded by the comment below.

@corbits-triage

corbits-triage Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

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

Approve held: code review did not report on this head.

The chat sheet takes where the cursor goes once it is put back, and the
room's box hands it its own field: closing the chat by its handle, its
button or Escape leaves the person typing where they were, rather than on
the handle. Without it the sheet still returns to its pill or handle.
The room fills the prompt box's chat with its own thread, so over the
project view, or the plugin sheet on a narrow window, the box has a handle
and the status pill opens the conversation around it: the person reads and
replies without closing the page. Taken full screen, the chat names what it
hides for the way back, as the sidebar names it. The room's own
conversation already shows the thread, so its box still has no sheet.
Over a written document's page the page now runs on under the prompt box,
which floats at the project view's foot over FootFade, so the last lines
read clearly as they scroll beneath it rather than stopping at a band above
the box. The app, mockups and sheets keep the box below them, clear of their
own foot, and full screen the chat is the page.
The handle the box now has over the project view sits on its top edge,
where a pane's floating bar rested almost on it; the bar stands clear above
the handle as it does above the status pill.
Room stories for the chat behind the prompt box over the project view:
closed with its handle, open, full screen naming the page it hides, at
phone width, in light and dark, and one that keeps a half-typed message
through opening and putting back the chat, with the cursor back in it.
The prompt box floats over the foot of a design and the live app as it does over a written page, so each keeps its full height; the room measures the box and each view keeps what it must reach clear of it by that height. The view's floating bar stands upright, centred on the right edge, out of the box's way, its menus and popovers opening to its left and a note with an icon showing only the icon. While the chat is pulled up the bar steps aside.
The design keeps its full height under the open chat, and its floating bar steps aside.
The plugin sheet keeps its box below what it asks, so a screen's last button is never under it. Over the project view the box stands above the view's popovers and panels, and the view keeps clear of the box at rest: the chat pulled up over it no longer swings the view's foot, and the first frame already has it.
The bar, its popovers and the mockup's panel keep to the view above the floating box, so a tall bar or checklist never runs down into it.
Standing up the edge, a note keeps to its icon; its words, such as the demo account, were only in its name and on hover, out of reach by keyboard or touch. Pressing the icon now shows them beside the bar.
@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