fix(web/claw): trim the identity editor and show the logo on About
android / debug (push) Successful in 2m22s
android / release (push) Successful in 2m7s
ci / checks (push) Successful in 3m48s
ci / test (push) Successful in 2m9s
ci / chart (push) Successful in 7s
ci / docker (push) Successful in 1m51s
ci / web (push) Successful in 18s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m5s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 15s
ci / publish-edge-chart (push) Successful in 5s

The General page exposed Mark, Initials, and Tagline even though the
new shell renders none of them, and a callout explained an identity
split that no longer needed saying. The About identity block still
drew a green tile with an R.

General now edits name, email, and sign-off only. Its save payload
omits the retired fields, so values already stored stay untouched.
AgentAvatar keeps just the avatar image and the name's initial; the
sidebar tooltip now carries the display name. About renders the
uploaded logo, or the Rhema mark when none is set.

README follows. nuxt typecheck and build pass; General and About
checked in light and dark.
This commit is contained in:
vhaudiquet committed 2026-11-30 19:18:25 +01:00
1 parent d17d8e2973
commit debc21a89f
7 files changed
+47 -108

No files matched your search

@@ -1,9 +1,9 @@
<script setup lang="ts">
// The Agent · General page: the mock's identity editor. The text
// fields save as a whole (empty clears, absent is untouched claw-side);
// the images apply the moment a file is chosen — uploading is not the
// kind of edit that needs a staging area. Presentational: data flows
// in as props, intent flows up as events.
// The Agent · General page: the identity editor. The text fields save
// as a whole (empty clears, absent is untouched claw-side); the images
// apply the moment a file is chosen, uploading is not the kind of edit
// that needs a staging area. Presentational: data flows in as props,
// intent flows up as events.
import type { AgentIdentity, AgentImageKind, IdentityTexts } from '~/composables/useClaw'
const props = defineProps<{
@@ -15,19 +15,18 @@ const props = defineProps<{
saving: boolean
}>()
type EditableTexts = Pick<IdentityTexts, 'name' | 'email' | 'signoff'>
const emit = defineEmits<{
save: [texts: IdentityTexts]
save: [texts: EditableTexts]
uploadImage: [kind: AgentImageKind, file: File]
clearImage: [kind: AgentImageKind]
}>()
// The draft: '' means "clear this field", matching the wire.
const draft = ref<IdentityTexts>({
const draft = ref<EditableTexts>({
name: '',
email: '',
mark: '',
initials: '',
tagline: '',
signoff: '',
})
@@ -37,9 +36,6 @@ const dirty = computed(() => {
return (
draft.value.name !== (identity.name ?? '') ||
draft.value.email !== (identity.email ?? '') ||
draft.value.mark !== (identity.mark ?? '') ||
draft.value.initials !== (identity.initials ?? '') ||
draft.value.tagline !== (identity.tagline ?? '') ||
draft.value.signoff !== (identity.signoff ?? '')
)
})
@@ -50,9 +46,6 @@ function discard(): void {
draft.value = {
name: identity.name ?? '',
email: identity.email ?? '',
mark: identity.mark ?? '',
initials: identity.initials ?? '',
tagline: identity.tagline ?? '',
signoff: identity.signoff ?? '',
}
}
@@ -70,9 +63,6 @@ watch(
draft.value = {
name: identity.name ?? '',
email: identity.email ?? '',
mark: identity.mark ?? '',
initials: identity.initials ?? '',
tagline: identity.tagline ?? '',
signoff: identity.signoff ?? '',
}
},
@@ -99,12 +89,9 @@ function onImageChosen(kind: AgentImageKind, event: Event): void {
input.value = ''
}
const CAPS: Record<keyof IdentityTexts, number> = {
const CAPS: Record<keyof EditableTexts, number> = {
name: 64,
email: 120,
mark: 8,
initials: 4,
tagline: 120,
signoff: 120,
}
</script>
@@ -127,23 +114,14 @@ const CAPS: Record<keyof IdentityTexts, number> = {
<div class="identity">
<AgentAvatar
:avatar-url="avatarUrl"
:mark="draft.mark"
:initials="draft.initials || draft.name.slice(0, 1)"
:initials="draft.name.slice(0, 1)"
:size="56"
variant="initials"
/>
<div class="identity-text">
<h2>{{ draft.name || 'rhema' }}</h2>
<p>{{ draft.tagline || 'the spoken word' }}</p>
</div>
</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 sidebar, the chat, the window title, the notifications. The
engine's own name appears only where it is a component.
</AppCallout>
<SettingCard v-if="identity" title="Agent identity">
<SettingRow
title="Display name"
@@ -171,42 +149,6 @@ const CAPS: Record<keyof IdentityTexts, number> = {
:disabled="saving"
/>
</SettingRow>
<SettingRow
title="Mark"
description="The glyph or emoji in the sidebar and the empty states. Defaults to ῥ."
>
<input
v-model="draft.mark"
type="text"
:maxlength="CAPS.mark"
placeholder="ῥ"
autocomplete="off"
:disabled="saving"
/>
</SettingRow>
<SettingRow
title="Initials"
description="Used when there is no mark and no avatar."
>
<input
v-model="draft.initials"
type="text"
:maxlength="CAPS.initials"
:placeholder="draft.name.slice(0, 1) || 'R'"
autocomplete="off"
:disabled="saving"
/>
</SettingRow>
<SettingRow title="Tagline" description="One line under the name on the agent pane.">
<input
v-model="draft.tagline"
type="text"
:maxlength="CAPS.tagline"
placeholder="the spoken word"
autocomplete="off"
:disabled="saving"
/>
</SettingRow>
<SettingRow
title="Sign-off"
description="Appended to messages the agent sends outside the interface."
@@ -232,7 +174,7 @@ const CAPS: Record<keyof IdentityTexts, number> = {
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" />
<AgentAvatar :avatar-url="avatarUrl" :initials="identity.name?.slice(0, 1)" :size="40" />
<button :disabled="mutating" @click="pickImage('avatar')">Upload…</button>
<button v-if="identity.avatar" class="ghost" :disabled="mutating" @click="emit('clearImage', 'avatar')">
Clear
@@ -247,10 +189,10 @@ const CAPS: Record<keyof IdentityTexts, number> = {
</SettingRow>
<SettingRow
title="Logo"
description="The mark the empty states and headers render."
description="Shown on the About page. Falls back to the Rhema mark."
>
<div class="image-control">
<AgentAvatar :avatar-url="logoUrl" :mark="identity.mark" :size="40" variant="mark" />
<img class="logo-preview" :src="logoUrl ?? '/rhema-logo.png'" alt="" />
<button :disabled="mutating" @click="pickImage('logo')">Upload…</button>
<button v-if="identity.logo" class="ghost" :disabled="mutating" @click="emit('clearImage', 'logo')">
Clear
@@ -315,4 +257,11 @@ const CAPS: Record<keyof IdentityTexts, number> = {
.image-control input[type='file'] {
display: none;
}
.logo-preview {
width: 40px;
height: 40px;
object-fit: contain;
flex: none;
}
</style>