Skip to content

Rebuild the landing page around a live demo and extract workspace packages - #14

Merged
anishshobithps merged 10 commits into
mainfrom
feat/site-rewrite
Nov 11, 2026
Merged

anishshobithps merged 10 commits into
mainfrom
feat/site-rewrite

Conversation

@anishshobithps

Copy link
Copy Markdown
Contributor

Summary

Rebuilds the landing page around the real viewer and moves the shared code into workspace packages.

  • Landing page: the page runs the real viewer against a project generated in the visitor's browser instead of replaying a recorded session. A guided tour covers following saves, the timeline, comparing, search, split view, the overview and ignore rules. Visitors can save a change, start a new project or pause the saves.
  • /demo: the same demo full page, with its own pause and resume control.
  • Workspace packages: @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.
  • Earlier commits on this branch: Base UI migration, the menubar, command palette, tab actions, search, split view and session overview, the docs restyle, and a dependency update.

Behaviour worth reviewing

  • The demo saves about every 9 seconds and keeps returning to a small set of files, so the editor no longer opens a new file every few seconds. Added, renamed and deleted files are half as likely as before but still occur.
  • On the landing page, the mobile file drawer and the file history sheet open inside the demo frame. They used to portal to <body> and cover the whole page. /demo and real session pages are unchanged.
  • BIGA_DEMO_SESSION_ID is no longer read, so it is removed from the example env file, the self-hosting reference and turbo.json. The Go server's retention setting for that id is not touched here.
  • The viewer security policy now also applies to /demo.
  • opengraph-image.tsx uses a fixed example share link now that there is no demo session id.

Test plan

  • pnpm check-types passes across the workspace
  • pnpm test passes
  • eslint is clean for ui, viewer, demo and the changed web app files
  • In the browser at phone width, the sheet opens inside the landing demo frame, closes from the overlay and when a file is picked, and is still fullscreen on /demo
  • Pause and resume stop and restart the saves on /demo
  • Playwright specs (landing.spec.ts, accessibility.spec.ts) have not been run
  • Production build and the standalone Docker image have not been run

Individual commits were not built on their own. The first two depend on the lockfile and package.json changes landing together.

…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.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
website-vw4l Skipped Skipped Nov 11, 2026 11:59am UTC

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.
@vercel
vercel Bot temporarily deployed to Preview – website-vw4l November 11, 2026 11:59 Inactive
@anishshobithps
anishshobithps merged commit 21ea298 into main Nov 11, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview – website-vw4l — 8c9c09dc Deployed Nov 11, 2026 by vercel[bot]
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