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.
244 lines
5.1 KiB
Vue
244 lines
5.1 KiB
Vue
<script setup lang="ts">
|
|
// 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
|
|
}
|
|
|
|
export interface SettingsSection {
|
|
label: string
|
|
entries: SettingsEntry[]
|
|
}
|
|
|
|
const props = defineProps<{
|
|
sections: SettingsSection[]
|
|
active: string
|
|
/** Health echo for the footer, so the nav answers "am I connected". */
|
|
clawUp: boolean | null
|
|
}>()
|
|
|
|
defineEmits<{ home: []; select: [id: string]; navigateChat: [] }>()
|
|
|
|
const query = ref('')
|
|
|
|
const filtered = computed<SettingsSection[]>(() => {
|
|
const needle = query.value.trim().toLowerCase()
|
|
if (!needle) return props.sections
|
|
return props.sections
|
|
.map((section) => ({
|
|
label: section.label,
|
|
entries: section.entries.filter((entry) =>
|
|
entry.label.toLowerCase().includes(needle),
|
|
),
|
|
}))
|
|
.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="sidebar">
|
|
<div class="sidebar-top">
|
|
<SidebarBrand @home="$emit('home')" />
|
|
</div>
|
|
|
|
<div class="search">
|
|
<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>
|
|
|
|
<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>
|
|
</aside>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
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);
|
|
}
|
|
|
|
.sidebar-top {
|
|
padding: var(--sp-4) var(--sp-3) var(--sp-2);
|
|
}
|
|
|
|
.search {
|
|
position: relative;
|
|
padding: 0 var(--sp-3) var(--sp-2);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: calc(var(--sp-3) + var(--sp-2));
|
|
top: 50%;
|
|
transform: translateY(-60%);
|
|
color: var(--faint);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search input {
|
|
width: 100%;
|
|
min-height: 32px;
|
|
padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-8);
|
|
background: var(--surface);
|
|
font-size: var(--fs-meta);
|
|
}
|
|
|
|
.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: 1px;
|
|
margin-bottom: var(--sp-4);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.entry:hover:not(:disabled) {
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.entry.active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.empty {
|
|
margin: 0;
|
|
padding: var(--sp-3) var(--sp-2);
|
|
color: var(--muted);
|
|
font-size: var(--fs-meta);
|
|
}
|
|
|
|
.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;
|
|
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>
|