feat(web/claw): restyle the interface after Rhema Together
android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s

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.
This commit is contained in:
vhaudiquet committed 2026-11-30 18:23:57 +01:00
1 parent acda9cc537
commit d17d8e2973
33 files changed
+1858 -1383

No files matched your search

+35 -20
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
// The About page: what this client and the daemon behind it are, and
// which public routes the client speaks. Static facts — the claw's own
// which public routes the client speaks. Static facts, the claw's own
// version is not on the wire, so none is claimed.
defineProps<{
/** null while /healthz has not answered yet. */
@@ -65,9 +65,9 @@ const routes = [
<span class="mono">rhema-claw-web 0.1.0</span>
</SettingRow>
<SettingRow title="Claw status" description="What /healthz last answered.">
<AppBadge :variant="clawUp === null ? undefined : clawUp ? 'ok' : 'error'">
<span class="status" :class="clawUp === null ? 'idle' : clawUp ? 'ok' : 'error'">
{{ clawUp === null ? 'checking' : clawUp ? 'up' : 'down' }}
</AppBadge>
</span>
</SettingRow>
</SettingCard>
@@ -83,6 +83,19 @@ const routes = [
</template>
<style scoped>
.status {
color: var(--faint);
font-size: var(--fs-meta);
}
.status.ok {
color: var(--accent);
}
.status.error {
color: var(--danger);
}
.page {
display: flex;
flex-direction: column;
@@ -94,18 +107,20 @@ const routes = [
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.identity {
display: flex;
align-items: center;
gap: 16px;
padding: 4px 2px;
gap: var(--sp-4);
padding: var(--sp-1);
}
.avatar {
@@ -113,41 +128,41 @@ const routes = [
place-items: center;
width: 56px;
height: 56px;
border-radius: 14px;
border-radius: var(--r-card);
background: var(--accent);
color: var(--on-accent);
font-size: 26px;
font-size: 28px;
font-weight: 700;
flex: none;
}
.identity h2 {
margin: 0;
font-size: 22px;
font-size: var(--fs-title);
}
.identity p {
margin: 2px 0 0;
color: var(--text3);
margin: var(--sp-1) 0 0;
color: var(--muted);
}
.route {
display: flex;
align-items: baseline;
gap: 12px;
padding: 9px 16px;
gap: var(--sp-3);
padding: var(--sp-2) var(--sp-4);
}
.method {
flex: none;
width: 44px;
color: var(--accent-text);
font-size: 12px;
color: var(--accent);
font-size: var(--fs-small);
}
.path {
color: var(--text);
font-size: 12.5px;
font-size: var(--fs-meta);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -156,8 +171,8 @@ const routes = [
.note {
flex: 1;
text-align: right;
color: var(--text3);
font-size: 12px;
color: var(--muted);
font-size: var(--fs-small);
min-width: 0;
}
</style>
@@ -96,7 +96,7 @@ function meta(account: ClawAccount): string {
</PageHeader>
<div class="scroll">
<SettingCard v-if="adding" title="New account" meta="the secret is stored, never shown again">
<SettingRow title="Label" description="A name for the roster, e.g. “acme releases”.">
<SettingRow title="Label" description="A name for the roster, e.g. 'acme releases'.">
<input
v-model="draft.label"
type="text"
@@ -108,7 +108,7 @@ function meta(account: ClawAccount): string {
</SettingRow>
<SettingRow
title="Service"
description="Lowercase: github, gitlab, or gitea — or any name for a service the agent only stores."
description="Lowercase: github, gitlab, or gitea, or any name for a service the agent only stores."
>
<input
v-model="draft.service"
@@ -136,7 +136,7 @@ function meta(account: ClawAccount): string {
:disabled="mutating"
/>
</SettingRow>
<SettingRow title="Secret" description="An API token — or a password, which the agent stores but can never use.">
<SettingRow title="Secret" description="An API token, or a password, which the agent stores but can never use.">
<input
v-model="draft.secret"
type="password"
@@ -172,10 +172,10 @@ function meta(account: ClawAccount): string {
<p v-if="loading" class="dim">loading…</p>
<p v-else-if="!accounts?.length" class="dim">
No agent accounts yet. An account is a login the agent holds on
an external service — a GitHub identity it answers issues as,
an email it sends from — distinct from the model providers
an external service: a GitHub identity it answers issues as,
an email it sends from. Accounts are distinct from the model providers
(what it thinks with) and the forge watches (what it looks at).
For a forge identity, “follow notifications” turns the account
For a forge identity, "follow notifications" turns the account
into watches automatically: review requests, assignments, and
feedback become agent work, mentions surface to you.
</p>
@@ -194,7 +194,7 @@ function meta(account: ClawAccount): string {
>
{{
confirming === account.id
? 'Forget — also drops its watches?'
? 'Forget, also dropping its watches?'
: 'Forget…'
}}
</button>
@@ -217,11 +217,13 @@ function meta(account: ClawAccount): string {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.actions {
@@ -113,7 +113,7 @@ const CAPS: Record<keyof IdentityTexts, number> = {
<div class="page">
<PageHeader
title="General"
subtitle="The agent's identity — how every surface names and shows it"
subtitle="How every surface names and shows the agent"
>
<template #actions>
<button :disabled="!dirty || saving" @click="discard">Discard</button>
@@ -139,8 +139,8 @@ const CAPS: Record<keyof IdentityTexts, number> = {
</div>
<AppCallout variant="info" title="This is the agent's identity, not the engine's">
Everything in the interface uses the name, mark, and images here —
the rail, the chat, the window title, the notifications. The
Everything in the interface uses the name, mark, and images here:
the sidebar, the chat, the window title, the notifications. The
engine's own name appears only where it is a component.
</AppCallout>
@@ -173,7 +173,7 @@ const CAPS: Record<keyof IdentityTexts, number> = {
</SettingRow>
<SettingRow
title="Mark"
description="The glyph or emoji in the rail and the empty states. Defaults to ῥ."
description="The glyph or emoji in the sidebar and the empty states. Defaults to ῥ."
>
<input
v-model="draft.mark"
@@ -225,11 +225,11 @@ const CAPS: Record<keyof IdentityTexts, number> = {
<SettingCard
v-if="identity"
title="Avatar & logo"
meta="png, jpeg, or webp, up to 2 MiB — uploads apply immediately"
meta="png, jpeg, or webp, up to 2 MiB. Uploads apply immediately."
>
<SettingRow
title="Avatar"
description="The square face in the chat and the rail."
description="The square face in the chat and the sidebar."
>
<div class="image-control">
<AgentAvatar :avatar-url="avatarUrl" :mark="identity.mark" :initials="identity.initials ?? identity.name?.slice(0, 1)" :size="40" variant="initials" />
@@ -280,11 +280,13 @@ const CAPS: Record<keyof IdentityTexts, number> = {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.identity {
@@ -69,7 +69,7 @@ function size(file: BootstrapFile): number {
<template v-else>
<AppCallout variant="info" title="These files enter every request">
SOUL.md is who the agent is; USER.md is who you are. Keep both
small — they are read on every turn. ENVIRONMENT.md is written
small. They are read on every turn. ENVIRONMENT.md is written
from the machine at boot.
</AppCallout>
@@ -142,11 +142,13 @@ function size(file: BootstrapFile): number {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 900px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.muted {
+5 -3
View File
@@ -98,11 +98,13 @@ const TRANSPORTS: Record<string, string> = {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.muted {
@@ -9,6 +9,7 @@
// model listing comes from the provider itself; a backend without one
// still switches — its default model applies.
// Presentational: data flows in as props, intent flows up as events.
import { X } from 'lucide-vue-next'
import type { ModelCard, ProviderCredentials, ProvidersState } from '~/composables/useClaw'
const props = defineProps<{
@@ -231,8 +232,8 @@ watch(
* bare "no vision" when it knows it does not, nothing when the key is
* absent — unknown is no verdict at all, never a `false`. */
function visionLabel(model: ModelCard): string {
if (model.supports_vision === true) return ' ◉ vision'
if (model.supports_vision === false) return ' no vision'
if (model.supports_vision === true) return ' (vision)'
if (model.supports_vision === false) return ' (no vision)'
return ''
}
</script>
@@ -314,12 +315,13 @@ function visionLabel(model: ModelCard): string {
<AppBadge v-if="p.id === state.active.provider" variant="accent">active</AppBadge>
<AppBadge v-else-if="p.id === draftProvider && dirty">staged</AppBadge>
<button
class="ghost remove"
:title="`remove ${p.id}`"
class="icon-btn remove"
:title="`Remove ${p.id}`"
:aria-label="`Remove ${p.id}`"
:disabled="mutating || state.providers.length <= 1"
@click.stop="emit('remove', p.id)"
>
×
<X :size="14" aria-hidden="true" />
</button>
</div>
</SettingCard>
@@ -406,11 +408,13 @@ function visionLabel(model: ModelCard): string {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.muted {
@@ -452,8 +456,8 @@ function visionLabel(model: ModelCard): string {
.backend .remove {
flex: none;
padding: 0 6px;
font-size: 14px;
width: 24px;
min-height: 24px;
}
.add-form {
@@ -305,11 +305,13 @@ const workspacePath = computed(() => {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.muted {
@@ -101,11 +101,13 @@ const TIERS: Record<ClawSkill['tier'], string> = {
.scroll {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
padding: 0 var(--sp-8) var(--sp-10);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 860px;
gap: var(--sp-4);
width: 100%;
max-width: 880px;
margin: 0 auto;
}
.muted {