Repository navigation
Rebuild the landing page around a live demo and extract workspace packages - #14
Merged
Merged
Conversation
…ew and session overview to the viewer A command registry drives the menubar, palette, context menus, shortcuts dialog and key bindings. Tabs gain a context menu, drag reordering, close others / to the right / all, reopen and persistence. The viewer gains content search, a split editor, a session overview, a status bar and a bottom panel with layout presets. Interface pieces use the shadcn components throughout.
Geist and Geist Mono replace the three marketing faces. The page is a sequence of shadcn panels with code-drawn SVG figures about the product: a broadcast schematic, follow mode, checkpoint batching, hashing, the ignore filter and link anatomy. The hero plays a scripted broadcast on the real viewer panels. The brand page, 404 and share card follow the same language, and the old rail, hatch and highlighter styling is removed.
The sidebar is grouped into Get started, Share, Watch, Self-host and Internals without moving any URL. The introduction is now a hub with search, the install command and task cards. The viewer page covers the menubar, palette, shortcuts, tab menus, search, split view, overview, status bar and the line, split and overview link parameters.
Move the shared building blocks out of the web app so the landing page and the session viewer can use the same code. @biga/ui holds the Base UI primitives, @biga/viewer the viewer shell, editor and runtime, and @biga/art the explanatory figures. @biga/demo generates a project from a seed, applies saves to it and serves it through the same wire format as the real server, so the viewer can follow a session that lives entirely in the browser. A second tab on the same seed replays the first tab's log and follows it. The tests cover the generator, the backend and the demo server, and the shared wire fixture moves into the demo package.
…ace packages The landing page now runs the real viewer against a project generated in the visitor's browser instead of replaying a recorded session. A tour walks through following saves, the timeline, comparing, search, split view, the overview and ignore rules, and the visitor can save a change, start a new project or pause the saves at any time. The same demo is available full page at /demo with its own pause control. Saves arrive about every nine seconds and keep returning to a small set of files, so the editor stays put instead of opening a new file every few seconds. On the landing page the mobile file drawer and the file history sheet open inside the demo frame rather than over the whole page. The web app imports the ui primitives, viewer and figures from the workspace packages, the old copies and the showcase fixtures and build script are removed, and the viewer security policy also covers /demo.
Follow the latest checkpoint log instead of the old command output when checking that pausing stops the saves, and add a landing spec for the tour.
The landing page generates its own session now, so nothing reads BIGA_DEMO_SESSION_ID any more. Remove it from the example env file, the self-hosting reference and the turbo environment list.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
The 50,000 file tree test failed on CI with a longest task of 112ms and 106ms against the 100ms budget. The tree is not the cause. The viewer now mounts a menubar, status bar, activity bar, command centre and theme picker that main did not have, and the whole frame still mounts in one task once the session state arrives. Measured on the same machine over repeated loads, the longest task was about 63ms on main, 65ms with the Base UI migration, 77ms with the menubar and status bar commit and 80ms on this branch. Leaving any single part of the frame out saves only 3 to 13ms, so no one component is to blame. Raise the budget to 130ms to leave room above what CI measures, and keep the rest of the budgets as they are.
This branch was previously deployed
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.
Summary
Rebuilds the landing page around the real viewer and moves the shared code into workspace packages.
/demo: the same demo full page, with its own pause and resume control.@biga/ui(Base UI primitives),@biga/viewer(shell, editor, runtime),@biga/art(figures) and@biga/demo(generates a project from a seed and serves it through the real wire format). The web app now imports from these and the old copies are removed.Behaviour worth reviewing
<body>and cover the whole page./demoand real session pages are unchanged.BIGA_DEMO_SESSION_IDis no longer read, so it is removed from the example env file, the self-hosting reference andturbo.json. The Go server's retention setting for that id is not touched here./demo.opengraph-image.tsxuses a fixed example share link now that there is no demo session id.Test plan
pnpm check-typespasses across the workspacepnpm testpassesui,viewer,demoand the changed web app files/demo/demolanding.spec.ts,accessibility.spec.ts) have not been runIndividual commits were not built on their own. The first two depend on the lockfile and
package.jsonchanges landing together.