Files
rhema-claw/web/claw/app/components/AgentAvatar.vue
T
vhaudiquet d17d8e2973
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
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.
2026-11-30 18:23:57 +01:00

66 lines
1.6 KiB
Vue

<script setup lang="ts">
// The agent's face at one size. Two voices: `initials` (the chat rows
// and the sidebar's account row: the avatar image when there is one,
// the initials when not) and `mark` (the logo slot: the avatar image
// when there is one, the mark or emoji, ῥ by default). The precedence
// lives here and nowhere else.
const props = withDefaults(
defineProps<{
variant?: 'initials' | 'mark'
/** The uploaded avatar's object URL, when the claw has one. */
avatarUrl?: string | null
/** The glyph or emoji; the mark voice defaults to ῥ. */
mark?: string | null
/** The initials voice's fallback, first letter of the name or R. */
initials?: string | null
size?: number
}>(),
{
variant: 'initials',
avatarUrl: null,
mark: null,
initials: null,
size: 32,
},
)
const glyph = computed(() =>
props.variant === 'mark'
? props.mark?.trim() || 'ῥ'
: props.initials?.trim() || 'R',
)
</script>
<template>
<img
v-if="avatarUrl"
:src="avatarUrl"
:style="{ width: `${size}px`, height: `${size}px` }"
class="agent-avatar"
alt=""
/>
<span
v-else
class="agent-avatar agent-square"
:style="{ width: `${size}px`, height: `${size}px`, fontSize: `${Math.round(size * 0.5)}px` }"
aria-hidden="true"
>{{ glyph }}</span>
</template>
<style scoped>
.agent-avatar {
display: grid;
place-items: center;
flex: none;
border-radius: var(--r-avatar);
object-fit: cover;
}
.agent-square {
background: var(--accent);
color: var(--on-accent);
font-weight: 700;
line-height: 1;
}
</style>