From 88c220634dd4bb4414e52acfbfcd11fc0cc134fa Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Wed, 2 Dec 2026 18:13:16 +0100 Subject: [PATCH] fix(web/claw): drop the logo upload from the identity editor The logo only ever showed on the About page, and General put a second image control beside the avatar for it. The row, its clear button, and the logoUrl prop that only fed them are gone. A logo already stored still renders on About, which reads the same identity field. npm run typecheck passes. --- web/claw/app/app.vue | 1 - .../components/settings/AgentGeneralPage.vue | 35 +++---------------- 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/web/claw/app/app.vue b/web/claw/app/app.vue index 37aeae4..194778c 100644 --- a/web/claw/app/app.vue +++ b/web/claw/app/app.vue @@ -1096,7 +1096,6 @@ onUnmounted(() => { v-show="route.section === 'agent/general'" :identity="identity" :avatar-url="identityAvatarUrl" - :logo-url="identityLogoUrl" :saving="savingIdentity" :mutating="mutatingIdentity" @save="saveIdentity" diff --git a/web/claw/app/components/settings/AgentGeneralPage.vue b/web/claw/app/components/settings/AgentGeneralPage.vue index 98df3c9..7949bf6 100644 --- a/web/claw/app/components/settings/AgentGeneralPage.vue +++ b/web/claw/app/components/settings/AgentGeneralPage.vue @@ -9,7 +9,6 @@ import type { AgentIdentity, AgentImageKind, IdentityTexts } from '~/composables const props = defineProps<{ identity: AgentIdentity | null avatarUrl: string | null - logoUrl: string | null /** An image upload or clear is in flight. */ mutating: boolean saving: boolean @@ -76,10 +75,9 @@ function save(): void { // --- the images ------------------------------------------------------- const avatarInput = ref(null) -const logoInput = ref(null) -function pickImage(kind: AgentImageKind): void { - ;(kind === 'avatar' ? avatarInput : logoInput).value?.click() +function pickImage(): void { + avatarInput.value?.click() } function onImageChosen(kind: AgentImageKind, event: Event): void { @@ -166,7 +164,7 @@ const CAPS: Record = { = { >
- + @@ -187,24 +185,6 @@ const CAPS: Record = { />
- -
- - - - -
-
@@ -257,11 +237,4 @@ const CAPS: Record = { .image-control input[type='file'] { display: none; } - -.logo-preview { - width: 40px; - height: 40px; - object-fit: contain; - flex: none; -}