Skip to content

Web UI: rebuild as a React/Vite SPA following rev-os, keeping lake's styling #561

Closed

Description

@homer6

Lake's web UI moves from server-rendered C++ pages (src/api/web_ui.cpp, web_ui_streams.cpp, web_ui_experiments.cpp) to a single-page app built the way oramasearch/rev-os builds its frontend, keeping lake's current styling.

What changes

  • Build: frontend/ holds a React 19 + Vite + Tailwind 4 + TypeScript app, with TanStack Query for reads and React Router for routes. Its tokens are lake's existing Orama design tokens (src/api/web_ui_tokens.inc, built from vendor/orama-design) and its fonts are the self-hosted IBM Plex faces, so the look stays the same.
  • Data: the app calls only the lake REST API (/v1/...), the same capabilities that MCP and agents call. It authenticates with the existing lake_session cookie. There is no second auth path, and the app can do nothing the API cannot.
  • Serving: lake embeds the built bundle in the binary. It serves the bundle under content-hashed, immutable URLs, and serves index.html for every UI route. The Dockerfile gains a Node stage.
  • UX: follows rev-os:
    • one route registry that feeds the rail, the breadcrumbs, the command palette and the router;
    • a collapsible rail of sections (Design · Train · Ship · Developer · Administration) with each section's screens listed beneath it;
    • a top bar with breadcrumbs, the workspace picker, search (⌘K or /), the theme switch and the signed-in person;
    • an off-canvas drawer below 1024 px;
    • one UI kit (Page, Section, Card, DataTable, Query, ErrorBlock, Empty, Modal, Drawer, RecordForm, toasts);
    • a failed read never shows as an empty list;
    • a 401 shows "Your session has ended" with Sign in again.
  • Retired: the C++ renderers, the form-POST page handlers (/drive/rename, /identity/... and the rest) once the SPA uses the REST capability, and their string tests.

Rollout

All pages are ported on one branch, and the switch happens once every page is done (big bang).

Done when

  • Every page that the server-rendered UI serves today has an SPA screen.
  • npm run build is green, and the lake suite is green without the retired renderers.
  • docs/ui/* and lake's CLAUDE.md rules describe the SPA.
  • The image is rolled to Lake/prod, and tools/e2e/walkthrough.mjs walks every page on lake.oramadev.net with screenshots reviewed.

Activity

  1. 15 remaining items

  2. homer6 commented on Oct 11, 2026

    @homer6
    ContributorAuthor

    Shipped: lake's web UI is the React/Vite app in frontend/, merged into main as PR #563 (0c71496) and running on dev.

    What it covers, each with its own closed issue:

    The ordered queue of Steve's requests is #571.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions