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

+152 -68
View File
@@ -1,7 +1,9 @@
<script setup lang="ts">
// The settings nav: searchable sections of pages, the design's left
// column. The search is a client-side filter over these entries — it
// hides nothing the claw cannot serve.
// The settings nav: searchable sections of pages, in the same sidebar
// slot as the session list. The search is a client-side filter over
// these entries; it hides nothing the claw cannot serve.
import { MessageSquare, Search } from 'lucide-vue-next'
export interface SettingsEntry {
id: string
label: string
@@ -19,7 +21,7 @@ const props = defineProps<{
clawUp: boolean | null
}>()
defineEmits<{ select: [id: string] }>()
defineEmits<{ home: []; select: [id: string]; navigateChat: [] }>()
const query = ref('')
@@ -35,125 +37,207 @@ const filtered = computed<SettingsSection[]>(() => {
}))
.filter((section) => section.entries.length > 0)
})
const healthLabel = computed(() =>
props.clawUp === null ? 'Checking the claw' : props.clawUp ? 'Claw connected' : 'Claw unreachable',
)
const healthTone = computed(() =>
props.clawUp === null ? 'idle' : props.clawUp ? 'ok' : 'error',
)
</script>
<template>
<aside class="nav">
<aside class="sidebar">
<div class="sidebar-top">
<SidebarBrand @home="$emit('home')" />
</div>
<div class="search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" aria-hidden="true">
<circle cx="11" cy="11" r="6.5" />
<path d="m20 20-3.8-3.8" />
</svg>
<input v-model="query" type="text" placeholder="Search settings" />
<Search :size="14" class="search-icon" aria-hidden="true" />
<input v-model="query" type="search" placeholder="Search settings" aria-label="Search settings">
</div>
<p v-if="filtered.length === 0" class="empty">no settings match</p>
<p v-if="filtered.length === 0" class="empty">No settings match.</p>
<div v-for="section in filtered" :key="section.label" class="section">
<span class="label">{{ section.label }}</span>
<button
v-for="entry in section.entries"
:key="entry.id"
class="entry"
:class="{ active: entry.id === active }"
@click="$emit('select', entry.id)"
>
{{ entry.label }}
<nav class="sections" aria-label="Settings">
<div v-for="section in filtered" :key="section.label" class="section">
<span class="sidebar-label">{{ section.label }}</span>
<button
v-for="entry in section.entries"
:key="entry.id"
class="entry"
:class="{ active: entry.id === active }"
@click="$emit('select', entry.id)"
>
{{ entry.label }}
</button>
</div>
</nav>
<div class="sidebar-bottom">
<button class="sidebar-link" @click="$emit('navigateChat')">
<MessageSquare :size="16" aria-hidden="true" />
<span>Chat</span>
</button>
<p class="health" :class="healthTone">{{ healthLabel }}</p>
</div>
<div class="spacer" />
<footer class="foot">
<StatusDot :tone="clawUp === null ? 'idle' : clawUp ? 'ok' : 'error'" />
<span>{{ clawUp === null ? 'checking claw' : clawUp ? 'claw connected' : 'claw unreachable' }}</span>
</footer>
</aside>
</template>
<style scoped>
.nav {
.sidebar {
display: flex;
flex-direction: column;
gap: 4px;
width: 232px;
flex: none;
min-height: 0;
padding: 14px 10px 10px;
width: var(--sidebar-w);
flex: 0 0 var(--sidebar-w);
position: sticky;
top: 0;
height: 100vh;
border-right: 1px solid var(--border);
background: var(--surface);
overflow-y: auto;
}
.sidebar-top {
padding: var(--sp-4) var(--sp-3) var(--sp-2);
}
.search {
position: relative;
margin-bottom: 12px;
padding: 0 var(--sp-3) var(--sp-2);
}
.search svg {
.search-icon {
position: absolute;
left: 9px;
left: calc(var(--sp-3) + var(--sp-2));
top: 50%;
width: 14px;
height: 14px;
transform: translateY(-50%);
color: var(--text3);
transform: translateY(-60%);
color: var(--faint);
pointer-events: none;
}
.search input {
width: 100%;
padding: 6px 10px 6px 28px;
font-size: 13px;
min-height: 32px;
padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-8);
background: var(--surface);
font-size: var(--fs-meta);
}
.empty {
margin: 4px 6px;
color: var(--text3);
.sections {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 0 var(--sp-2) var(--sp-4);
scrollbar-width: thin;
}
.section {
display: flex;
flex-direction: column;
gap: 2px;
margin-bottom: 14px;
gap: 1px;
margin-bottom: var(--sp-4);
}
.section .label {
padding: 0 10px 4px;
.sidebar-label {
display: block;
padding: 0 var(--sp-2) var(--sp-1);
color: var(--faint);
font-size: var(--fs-small);
font-weight: 500;
}
.entry {
display: block;
width: 100%;
min-height: 0;
padding: var(--sp-2);
border: 0;
border-radius: var(--r-control);
background: transparent;
color: var(--text);
font-size: var(--fs-meta);
font-weight: 400;
line-height: var(--lh-body);
text-align: left;
background: none;
border: none;
border-radius: 7px;
padding: 6px 10px;
color: var(--text2);
}
.entry:hover:not(:disabled) {
background: var(--elevated);
color: var(--text);
background: var(--surface-2);
}
.entry.active {
background: color-mix(in srgb, var(--accent) 17%, transparent);
color: var(--accent-text);
background: var(--accent-soft);
color: var(--accent);
font-weight: 600;
}
.spacer {
flex: 1;
.empty {
margin: 0;
padding: var(--sp-3) var(--sp-2);
color: var(--muted);
font-size: var(--fs-meta);
}
.foot {
.sidebar-bottom {
padding: var(--sp-2);
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: var(--sp-1);
}
.sidebar-link {
display: flex;
align-items: center;
gap: 8px;
padding: 10px;
border-top: 1px solid var(--border);
color: var(--text3);
font-size: 12px;
justify-content: flex-start;
gap: var(--sp-2);
width: 100%;
min-height: 0;
padding: var(--sp-2);
border: 0;
border-radius: var(--r-control);
background: transparent;
color: var(--muted);
font-size: var(--fs-meta);
font-weight: 400;
text-align: left;
}
.sidebar-link:hover:not(:disabled) {
background: var(--surface-2);
color: var(--text);
}
.health {
padding: 0 var(--sp-2) var(--sp-1);
color: var(--faint);
font-size: var(--fs-small);
}
.health.ok {
color: var(--accent);
}
.health.error {
color: var(--danger);
}
@media (max-width: 860px) {
.sidebar {
position: static;
width: 100%;
flex: none;
height: auto;
max-height: none;
min-height: 0;
overflow: visible;
border-right: 0;
border-bottom: 1px solid var(--border);
}
.sections {
min-height: 0;
}
}
</style>