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.
55 lines
1.2 KiB
Vue
55 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
// The agent's face at one size: the uploaded avatar when there is one,
|
|
// the name's initial when not. The precedence lives here and nowhere
|
|
// else.
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
/** The uploaded avatar's object URL, when the claw has one. */
|
|
avatarUrl?: string | null
|
|
/** The fallback, first letter of the name or R. */
|
|
initials?: string | null
|
|
size?: number
|
|
}>(),
|
|
{
|
|
avatarUrl: null,
|
|
initials: null,
|
|
size: 32,
|
|
},
|
|
)
|
|
|
|
const glyph = computed(() => 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>
|