From d17d8e29736a82ff1681c16ae67f16391ce1d317 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 30 Nov 2026 18:23:57 +0100 Subject: [PATCH] feat(web/claw): restyle the interface after Rhema Together The web client kept its own dark shell: an icon rail, neon jade accents, and rows that reported state with colored dots and pills. Rhema Together had since settled on a warmer, quieter language, and the two surfaces no longer looked like one product. The shell is now one 232px sidebar plus a view. Chat lists sessions in the sidebar and renders the transcript in a 760px column; settings moves its searchable nav into the same sidebar and its pages onto an 880px column. The palette, type scale, controls, cards, and markdown come from Together's light theme, with its dark values following the OS. FiraCode Nerd Font Mono sets code, and the product mark, logo, and lucide icons replace the glyph characters. Status is a word now: running, waiting, held, connected, live, snapshot. The rail, its dots, the duplicate consent deny action, and the session key tag are gone. The model backend moved into the chat topbar beside the stream state. The mobile shell keeps the composer fixed in chat and lets settings scroll as a document. README and component docs follow the new layout. nuxt typecheck and build pass; checked light and dark at 1280x800 and 390x844 against mock API data. --- web/claw/README.md | 49 +- web/claw/app/app.vue | 134 +-- web/claw/app/assets/css/main.css | 541 +++++++++--- .../app/assets/fonts/FiraCode-LICENSE.txt | 93 ++ .../fonts/FiraCodeNerdFontMono-Bold.woff2 | Bin 0 -> 1245768 bytes .../fonts/FiraCodeNerdFontMono-Regular.woff2 | Bin 0 -> 1241364 bytes web/claw/app/components/AgentAvatar.vue | 12 +- web/claw/app/components/AppBadge.vue | 2 +- web/claw/app/components/AppCallout.vue | 62 +- web/claw/app/components/AppModal.vue | 39 +- web/claw/app/components/AppRail.vue | 137 --- web/claw/app/components/ChatPanel.vue | 818 +++++++++--------- web/claw/app/components/ClawBanner.vue | 36 +- web/claw/app/components/PageHeader.vue | 30 +- web/claw/app/components/SessionsSidebar.vue | 619 +++++++------ web/claw/app/components/SettingRow.vue | 25 +- web/claw/app/components/SettingsNav.vue | 220 +++-- web/claw/app/components/SidebarBrand.vue | 43 + web/claw/app/components/StatusDot.vue | 34 - .../app/components/TurnAttachmentCard.vue | 76 +- web/claw/app/components/TurnConsentCard.vue | 94 +- .../app/components/settings/AboutPage.vue | 55 +- .../components/settings/AgentAccountsPage.vue | 22 +- .../components/settings/AgentGeneralPage.vue | 20 +- .../app/components/settings/BootstrapPage.vue | 10 +- web/claw/app/components/settings/McpPage.vue | 8 +- .../app/components/settings/ProvidersPage.vue | 24 +- .../app/components/settings/SandboxPage.vue | 8 +- .../app/components/settings/SkillsPage.vue | 8 +- web/claw/nuxt.config.ts | 11 + web/claw/package-lock.json | 10 + web/claw/package.json | 1 + web/claw/public/rhema-logo.png | Bin 0 -> 15284 bytes 33 files changed, 1858 insertions(+), 1383 deletions(-) create mode 100644 web/claw/app/assets/fonts/FiraCode-LICENSE.txt create mode 100644 web/claw/app/assets/fonts/FiraCodeNerdFontMono-Bold.woff2 create mode 100644 web/claw/app/assets/fonts/FiraCodeNerdFontMono-Regular.woff2 delete mode 100644 web/claw/app/components/AppRail.vue create mode 100644 web/claw/app/components/SidebarBrand.vue delete mode 100644 web/claw/app/components/StatusDot.vue create mode 100644 web/claw/public/rhema-logo.png diff --git a/web/claw/README.md b/web/claw/README.md index 21fef23..7744007 100644 --- a/web/claw/README.md +++ b/web/claw/README.md @@ -30,8 +30,8 @@ When the claw config sets `token:`, every `/v1` route wants config `clawToken`), or - the inline field in the 401 banner; it is stored in `localStorage`. -`/healthz` is open either way, which is how the header dot stays honest -when the token is wrong. +`/healthz` is open either way, which is how the sidebar's health word +stays honest when the token is wrong. ## Build @@ -160,8 +160,8 @@ Two consequences worth knowing before changing this code: first remaining session, the stream's watcher following the key so nothing keeps streaming a session that no longer exists. - **Every row is controllable.** Beside the delete button, on hover: - `hold` posts `POST /v1/sessions/{key}/pause` and the row badges - `held` — queued work accumulates and nothing dispatches until `run` + `hold` posts `POST /v1/sessions/{key}/pause` and the row says + `held` in the warn tone — queued work accumulates and nothing dispatches until `run` posts the resume, both answered by the inventory's `paused` flag. `stop` posts `POST /v1/sessions/{key}/abort`: a live turn is cut (the stream closes on its `aborted` marker, in the warn tone, since @@ -172,15 +172,17 @@ Two consequences worth knowing before changing this code: ## Layout -The shell is an icon rail plus two views, switched by a tiny hash -router (`#/chat`, `#/settings/agent/general`, `#/settings/agent/ -accounts`, `#/settings/providers`, `#/settings/about`), no -vue-router. The chat view is the session inventory plus the live -transcript; the settings view is a searchable nav plus pages. The -agent's identity (name, mark, avatar) loads -once and renders everywhere — rail, sidebar, chat, window title — -through `AgentAvatar`, which owns the precedence: avatar image, then -mark or initials. Settings pages stage edits into a local draft and +The shell is one sidebar plus a view, switched by a tiny hash router +(`#/chat`, `#/settings/agent/general`, `#/settings/agent/accounts`, +`#/settings/providers`, `#/settings/about`), no vue-router. The sidebar +holds the session list in chat and the searchable settings nav in +settings. Both start with the product mark and end with a link to the +other view plus the claw's health. The chat view is the live +transcript; the settings view is pages on an 880px column. The agent's +identity (name, mark, avatar) loads once and renders in the chat rows +and the sidebar account row through `AgentAvatar`, which owns the +precedence: avatar image, then mark or initials. Settings pages stage +edits into a local draft and apply them with an explicit Save (`PUT /v1/providers/active` answers the new pair only; the client carries the provider list forward). The providers page also manages the roster itself: the add form renders @@ -189,7 +191,7 @@ from the `addable` kinds the claw serves; each kind's `fields` carry without (llama.cpp needs neither of its fields, it serves keyless on a default url); the form demands only those, marks the rest optional, and takes an optional instance name; unnamed, the id is the kind. Model -options carry a `◉ vision` mark when the live listing knows the model +options carry a `(vision)` note when the live listing knows the model takes images (`supports_vision: true`); the key's absence is unknown, never a no, so it renders nothing. A login is `PUT /v1/providers/{id}/credentials`: apply immediately, @@ -201,12 +203,14 @@ claw-side. ``` app/ - app.vue the shell: rail, banners, view switch - assets/css/main.css the Jadeite tokens (matches the TUI's - palette.rs DARK) + card/badge primitives + app.vue the shell: sidebar, banners, view switch + assets/css/main.css the Rhema Together palette (light and + dark), type scale, controls, cards, + markdown + assets/fonts/ FiraCode Nerd Font Mono for code components/ - AppRail.vue the icon rail: views, claw pulse - AppBadge.vue the status/tag pill + SidebarBrand.vue the product mark and name + AppBadge.vue the quiet tag AppCallout.vue the toned inline note (info/ok/warn/error) AppMarkdown.vue agent replies as markdown (markdown-it, raw HTML escaped, styles in main.css .md) @@ -218,12 +222,13 @@ app/ AppMarkdown SessionsSidebar.vue conversable dispatch keys (phone status keys hidden), interactive first; the - + form creates a session + + form creates a session; settings and + the agent's health in the footer PageHeader.vue title + subtitle + page actions SettingCard.vue one titled card of rows SettingRow.vue name + description + control - SettingsNav.vue searchable settings nav - StatusDot.vue one honest state dot + SettingsNav.vue searchable settings nav; chat and + health in the footer settings/ ProvidersPage.vue the backend switch: draft → Save/Discard AboutPage.vue identity, stack, the routes spoken diff --git a/web/claw/app/app.vue b/web/claw/app/app.vue index ca6e1e6..622f397 100644 --- a/web/claw/app/app.vue +++ b/web/claw/app/app.vue @@ -1,8 +1,8 @@ @@ -959,22 +979,8 @@ onUnmounted(() => {
-