diff --git a/apps/web/src/pages/workspace/artifact-pane.module.css b/apps/web/src/pages/workspace/artifact-pane.module.css index 939037ff..f5732865 100644 --- a/apps/web/src/pages/workspace/artifact-pane.module.css +++ b/apps/web/src/pages/workspace/artifact-pane.module.css @@ -1,13 +1,3 @@ -/* The pane's own header holds only its close button, at the end, on the pane's surface. */ -.pane [data-slot="panel-header"] { - display: flex; - align-items: center; - justify-content: flex-end; - padding: var(--space-2) var(--space-3); - border: 0; - background: transparent; -} - .content { flex: 1; min-height: 0; @@ -19,7 +9,7 @@ /* Each pane is its own scroller, so the padding belongs inside it: padding on the panel sat below the scroller as a band the page never reached. The foot leaves room for the last lines to scroll - clear of the floating bar, whose height the bar sets on its pane. */ + clear of the prompt box floating over it, whose height the room sets. */ .content[data-slot="panel-content"] { position: relative; padding: 0; @@ -27,7 +17,7 @@ .content > [data-slot="panel-pane"]:not(.fill) { padding: var(--space-3) var(--space-6) - calc(var(--space-6) + var(--pane-bar-height, 0px)); + calc(var(--space-6) + var(--box-height, 0px)); } .empty { diff --git a/apps/web/src/pages/workspace/index.module.css b/apps/web/src/pages/workspace/index.module.css index a9ca34bd..ae63b2f8 100644 --- a/apps/web/src/pages/workspace/index.module.css +++ b/apps/web/src/pages/workspace/index.module.css @@ -279,11 +279,46 @@ } } -/* The status pill floats above the prompt box, over the project view's foot where its floating - bar stands; while the pill shows, the bar stands clear above it. */ -.page:has(> [data-slot="composer"] [data-slot="pill"]) +/* The prompt box floats over the project view's foot, whatever it shows: a written page runs on + under it over a fade into the page's backdrop, so its last lines read clearly as they scroll + beneath it, and a design or the live app keeps its full height under it. Each keeps what it must + reach clear of the box by the box's height, which the room sets on the page. Full screen, the + chat is the page instead. */ +.footFade { + display: none; +} + +.page:has( + > [data-slot="artifact-pane"] + [data-slot="panel-pane"][data-state="active"] + [data-slot="document-page"] + ):not( + :has(> [data-slot="composer"] > [data-slot="chat-sheet"][data-state="full"]) + ) + > .footFade { + display: contents; +} + +/* Over the project view only: the plugin sheet keeps its box below what it asks. Above whatever + the view lays over its own page, its bar's popovers and panels among them. */ +.page[data-slot="room-project"]:not( + :has(> [data-slot="composer"] > [data-slot="chat-sheet"][data-state="full"]) + ) + > [data-slot="composer"] { + position: absolute; + inset-inline: 0; + bottom: 0; + z-index: 4; +} + +/* Pulled up, the chat covers the view's foot and, on a narrow canvas, its edge where the view's + floating bar stands, so the bar steps aside until the chat is put away. */ +.page:has( + > [data-slot="composer"] + > [data-slot="chat-sheet"]:is([data-state="open"], [data-state="moving"]) + ) :is([data-slot="pane-bar"][data-floating], [data-slot="pane-bar-handle"]) { - bottom: calc(var(--space-3) + 2.5rem); + visibility: hidden; } /* The pane is a side panel by make, which a narrow container lays over everything; over the room diff --git a/apps/web/src/pages/workspace/index.tsx b/apps/web/src/pages/workspace/index.tsx index 0b7442fb..e71e9f48 100644 --- a/apps/web/src/pages/workspace/index.tsx +++ b/apps/web/src/pages/workspace/index.tsx @@ -18,6 +18,7 @@ import { } from "./room.model.ts"; import { RoomFault, RoomSkeleton } from "./room-skeleton.tsx"; import { RoomView } from "./room.view.tsx"; +import { RoomThread } from "./transcript.tsx"; import { WrittenDocument } from "./written-document.tsx"; /** The room shows its loading or fault state until its first read is in hand. */ @@ -42,6 +43,13 @@ function ReadyRoom(props: ReadyRoomProps) { + ) : undefined + } pluginSpace={ spaceScreen === null ? null : } diff --git a/apps/web/src/pages/workspace/live-app.module.css b/apps/web/src/pages/workspace/live-app.module.css index cdca0446..fb07656a 100644 --- a/apps/web/src/pages/workspace/live-app.module.css +++ b/apps/web/src/pages/workspace/live-app.module.css @@ -133,7 +133,7 @@ summary.checklistRow:hover { } /* Every state but the running app is one centred block in the empty pane, scrolling clear of the - floating bar when the pane is shorter than it. */ + prompt box floating over its foot when the pane is shorter than it. */ .state { display: flex; flex-direction: column; @@ -142,13 +142,13 @@ summary.checklistRow:hover { width: min(100%, 40rem); margin: auto; padding: var(--space-6) var(--space-6) - calc(var(--space-6) + var(--pane-bar-height, 0px)); + calc(var(--space-6) + var(--box-height, 0px)); overflow: auto; } .app > [data-slot="sketching"] { justify-content: safe center; - padding-bottom: calc(var(--space-6) + var(--pane-bar-height, 0px)); + padding-bottom: calc(var(--space-6) + var(--box-height, 0px)); overflow: auto; } diff --git a/apps/web/src/pages/workspace/live-app.view.tsx b/apps/web/src/pages/workspace/live-app.view.tsx index 5b1b3af6..bc8c8f82 100644 --- a/apps/web/src/pages/workspace/live-app.view.tsx +++ b/apps/web/src/pages/workspace/live-app.view.tsx @@ -15,6 +15,7 @@ import { import { AppWindow, ExternalLink, + KeyRound, ListChecks, LoaderCircle, Square, @@ -296,6 +297,7 @@ export function LiveAppView({ id: "demo-login", label: text.demoLogin(demoLogin.email, demoLogin.password), text: text.demoLogin(demoLogin.email, demoLogin.password), + icon: