Repository navigation
Artifacts: wider gallery, full-page viewer - #2714
Merged
Merged
Conversation
- PageShell gets a `wide` width (max-w-4xl) for a grid of cards. The Artifacts gallery uses it: 3 cards a row on a desktop window, 2 when the column is narrower, 1 on a phone. The columns follow the column's width (container query), not the window's. - An artifact opened from the gallery shows full page in the main pane, over the list, not in a 560px panel or a sheet. The sidebar stays. The list stays drawn under it, so Back finds it at the same scroll, with focus on the tile that opened it. `?artifact=<id>` and `/artifacts/<id>` both still open it. - Full page, the viewer's controls are one header row: Back, the title, the tabs, then the version, Share, Download and More. The version's author line moves into the version list. The panel beside a conversation keeps its layout.
samjulien
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb and
tylerslaton
as code owners
December 2, 2026 00:40
davidmckayv
previously approved these changes
Dec 2, 2026
davidmckayv
left a comment
Contributor
There was a problem hiding this comment.
Approved, once CI is green. The new wide width leaves the audit log alone, the gallery shows 3, 2 or 1 cards a row as the window narrows, and the full-page viewer's header wraps cleanly at 390px and in Desktop's 1000px window. Author names now truncate in the narrower cards, a fair trade.
- Escape closes the full-page artifact, as the sheet it replaced did on a narrow window. A menu, a select or a dialog over the viewer closes first, and a field keeps its Escape. - Opened with the panel's Open full screen, the artifact's page says "Back" and goes back to the conversation, not "Back to Artifacts". - The `wide` width is set in PageShell over the column's own class, so PageColumn is unchanged.
davidmckayv
approved these changes
Dec 2, 2026
davidmckayv
left a comment
Contributor
There was a problem hiding this comment.
Re-reviewed at c73eb51: Escape closes the viewer and clears ?artifact= in all eight browser/theme/width runs, leaves fields and open menus alone, Back says Back from a conversation. Holds.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the screen-by-screen audit of the Artifacts screens.
System change: a
widepage width (for Guido)This PR changes the layout contract.
PageShellgets a third width,wide, besideproseandfull:wideismax-w-4xl(896px).prosestaysmax-w-3xl(768px).prose.PageColumnis not changed.PageShelladdsmax-w-4xlafter the column's ownmax-w-3xlclass (WIDE_COLUMNinpage-parts.tsx), and the later class wins.openbot-screen-layout) describeswideandfull, and its red-flag row now reads:wideorfullon rows or a form.#906 edits lines near this in
page-parts.tsxandpage-shell.tsx. The hunks here are kept to theShellWidthtype, one constant and one line inPageShell, and do not touch the lines #906 changes.What changes
Gallery. The page uses a new
widewidth onPageShell(max-w-4xl, 896px). It holds 3 cards a row on a desktop window (about 280px each), 2 when the column is narrower, and 1 on a phone. The columns follow the column's own width (a container query), so a window with the sidebar open gets the right count.Viewer. A tile opens the artifact full page in the main pane, edge to edge. It no longer opens in a 560px panel, or in a sheet over a dimmed page on a narrower window. The sidebar stays usable. The list stays drawn under the viewer, hidden, so Back returns to it at the same scroll position, with focus on the tile that opened it.
Viewer controls. Full page, the three rows of controls (about 130px) are now one header row (44px): Back, the title, the tabs as a segmented control, then the version, Share, Download and More. A narrow window wraps the row. Every control keeps its screen-reader name. The tabs still work with the arrow keys.
What stays the same
/artifacts?artifact=<id>and/artifacts/<id>both still open the artifact. Both now show the same full page.Trade-offs
Screenshots
Web app, 1440px (narrow: 700px), from
artifacts-screens.test.tsxwithOPENBOT_APP_SHOTS.Light
Dark
OpenBot Desktop (workbench, macOS frame, 1280 × 820, after). The window buttons sit over the logo here because of the workbench's own script bug, which the polish-ui-bugs PR fixes; the real app is not affected.
Checks
bun run typecheck,bun run lint,bun run format:checkbun test app/tests/ui-look-guard.test.ts app/tests/color-scheme.test.ts app/tests/design-tokens.test.tsand the other artifact unit testsOPENBOT_APP_BROWSER=1 bun test app/tests/artifacts-screens.test.tsx: 185 pass (flows, host, and every screen in light and dark at 1440, 700 and 390px).artifact-collab-browser.test.tsx: 7 pass.Only the Artifacts screens,
PageShell's width option and the layout skill's width text. No overlap with #2698, #2689, #2701 or #906 hunks in code. The skill's red-flag row forwidth="wide"sits next to rows #2701 edits, so whichever lands second resolves one small doc conflict.Changelog
Artifacts.
cards a row on a desktop window, two when the window is narrower and one on a phone. An artifact
opens full page in the main pane, edge to edge, instead of in a side panel or a sheet, with its
controls (Back, the title, the tabs, the version, Share, Download, More) in one row. Back, the
browser's Back and Escape return to the gallery where you left it. Links to an artifact open the
same full page. The panel beside a conversation is unchanged.