From debc21a89f251d81930cf172c68d3bab33ab6c9b Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 30 Nov 2026 19:18:25 +0100 Subject: [PATCH] fix(web/claw): trim the identity editor and show the logo on About 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. --- web/claw/README.md | 13 +-- web/claw/app/app.vue | 8 +- web/claw/app/components/AgentAvatar.vue | 21 +---- web/claw/app/components/ChatPanel.vue | 2 +- web/claw/app/components/SessionsSidebar.vue | 6 +- .../app/components/settings/AboutPage.vue | 12 +-- .../components/settings/AgentGeneralPage.vue | 93 +++++-------------- 7 files changed, 47 insertions(+), 108 deletions(-) diff --git a/web/claw/README.md b/web/claw/README.md index 7744007..d1f3487 100644 --- a/web/claw/README.md +++ b/web/claw/README.md @@ -179,12 +179,13 @@ holds the session list in chat and the searchable settings nav in settings. Both start with the product mark and end with a link to the other view plus the claw's health. The chat view is the live transcript; the settings view is pages on an 880px column. The agent's -identity (name, mark, avatar) loads once and renders in the chat rows -and the sidebar account row through `AgentAvatar`, which owns the -precedence: avatar image, then mark or initials. Settings pages stage -edits into a local draft and -apply them with an explicit Save (`PUT /v1/providers/active` answers -the new pair only; the client carries the provider list forward). +identity (name, email, sign-off, avatar, logo) loads once. The chat +rows and the sidebar account row render it through `AgentAvatar`, +which owns the precedence: avatar image, then the name's initial. The +About page shows the logo, falling back to the Rhema mark. Settings +pages stage edits into a local draft and apply them with an explicit +Save (`PUT /v1/providers/active` answers the new pair only; the client +carries the provider list forward). The providers page also manages the roster itself: the add form renders from the `addable` kinds the claw serves; each kind's `fields` carry `{name, required}`, `required` marking what the daemon refuses the login diff --git a/web/claw/app/app.vue b/web/claw/app/app.vue index 622f397..0c8f2d5 100644 --- a/web/claw/app/app.vue +++ b/web/claw/app/app.vue @@ -218,7 +218,7 @@ async function refreshIdentity(): Promise { } } -async function saveIdentity(texts: IdentityTexts): Promise { +async function saveIdentity(texts: Partial): Promise { savingIdentity.value = true try { identity.value = await claw.setAgent(texts) @@ -1065,7 +1065,11 @@ onUnmounted(() => { :saving="savingSandbox" @save="saveSandbox" /> - + diff --git a/web/claw/app/components/AgentAvatar.vue b/web/claw/app/components/AgentAvatar.vue index a379eea..dc7bde5 100644 --- a/web/claw/app/components/AgentAvatar.vue +++ b/web/claw/app/components/AgentAvatar.vue @@ -1,34 +1,23 @@