fix: show assistant name in Skill Workshop

This commit is contained in:
Shakker
2026-05-31 20:14:52 +01:00
committed by Shakker
parent 874b3f921e
commit 7ad2aa44dd
2 changed files with 4 additions and 1 deletions

View File

@@ -3405,6 +3405,7 @@ export function renderApp(state: AppViewState) {
actionNotice: state.skillWorkshopActionNotice,
revisionKey: state.skillWorkshopRevisionKey,
revisionDraft: state.skillWorkshopRevisionDraft,
assistantName: state.assistantName,
counts,
onStatusFilterChange: (next) => (state.skillWorkshopStatusFilter = next),
onQueryChange: (next) => (state.skillWorkshopQuery = next),

View File

@@ -69,6 +69,7 @@ export type SkillWorkshopProps = {
actionNotice: SkillWorkshopActionNotice | null;
revisionKey: string | null;
revisionDraft: string;
assistantName: string;
counts: Record<SkillWorkshopStatusFilter, number>;
onStatusFilterChange: (status: SkillWorkshopStatusFilter) => void;
onQueryChange: (query: string) => void;
@@ -530,6 +531,7 @@ function renderToday(
const isPending = hero.status === "pending";
const busy = props.actionBusy?.key === hero.key ? props.actionBusy.action : null;
const disabled = Boolean(props.actionBusy);
const assistantName = props.assistantName.trim() || "agent";
return html`
<div class="sw-today">
@@ -574,7 +576,7 @@ function renderToday(
<div class="sw-today__author">
<span class="sw-today__avatar">v${hero.version}</span>
<span>
Drafted by your <strong>agent</strong> · ${ageLabel}.
Drafted by <strong>${assistantName}</strong> · ${ageLabel}.
${hero.supportFiles.length > 0
? html`
<button