From 70a860ce2acf6e19170385c78ba4415d992a4f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=91=98?= Date: Wed, 30 Sep 2026 08:38:11 +0800 Subject: [PATCH] fix(ui): split running/awaiting-confirm colors and neutral kind tags (HEL-651 A batch) - project card stage segments: running -> --run, awaiting confirm -> --warn - running counters/dots and 'testing' states -> --run; warn-named notes -> --warn - image/video/usage kind tags and plain entry/card icons -> neutral tokens Co-authored-by: multica-agent --- .../lib/components/home/AProjectCard.svelte | 17 +++++++---- .../components/studio/StudioGenerate.svelte | 2 +- calliope-web/src/routes/+page.svelte | 14 ++++----- calliope-web/src/routes/agents/+page.svelte | 2 +- .../src/routes/connections/+page.svelte | 29 +++++++++---------- calliope-web/src/routes/models/+page.svelte | 8 ++--- calliope-web/src/routes/settings/+page.svelte | 2 +- calliope-web/src/routes/tasks/+page.svelte | 9 ++---- 8 files changed, 42 insertions(+), 41 deletions(-) diff --git a/calliope-web/src/lib/components/home/AProjectCard.svelte b/calliope-web/src/lib/components/home/AProjectCard.svelte index 3062c354..4f2fc10a 100644 --- a/calliope-web/src/lib/components/home/AProjectCard.svelte +++ b/calliope-web/src/lib/components/home/AProjectCard.svelte @@ -39,7 +39,8 @@ function segClass(key: string): string { const state = stats.stage_status?.[key]; if (state === 'confirmed') return 'seg-confirmed'; - if (state === 'running' || state === 'awaiting_confirm') return 'seg-draft'; + if (state === 'running') return 'seg-running'; + if (state === 'awaiting_confirm') return 'seg-draft'; return ''; } @@ -70,7 +71,7 @@ return { cls: 'st-progress', label: `${stageName} · ${t('workbench.state.running')}` }; } if (state === 'awaiting_confirm') { - return { cls: 'st-progress', label: `${stageName} · ${t('workbench.state.draft')}` }; + return { cls: 'st-pending', label: `${stageName} · ${t('workbench.state.draft')}` }; } if (stats.stage_confirmed > 0) { return { cls: 'st-progress', label: `${stageName} · ${t('home.statusProgress')}` }; @@ -352,6 +353,9 @@ .st-progress { color: var(--run); } + .st-pending { + color: var(--warn); + } .st-done { color: var(--success); } @@ -409,8 +413,11 @@ border-radius: 2px; background: var(--surface-3); } + .seg-running { + background: var(--run); + } .seg-draft { - background: var(--accent); + background: var(--warn); } .seg-confirmed { background: var(--success); @@ -425,8 +432,8 @@ margin-left: auto; padding: 1px 8px; border-radius: 999px; - background: var(--accent-dim); - color: var(--accent); + background: var(--run-soft); + color: var(--run); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; diff --git a/calliope-web/src/lib/components/studio/StudioGenerate.svelte b/calliope-web/src/lib/components/studio/StudioGenerate.svelte index bf8d0014..afb1126c 100644 --- a/calliope-web/src/lib/components/studio/StudioGenerate.svelte +++ b/calliope-web/src/lib/components/studio/StudioGenerate.svelte @@ -1897,7 +1897,7 @@ color: var(--text-3); } .h3-hint p.warn { - color: var(--accent); + color: var(--warn); } .studio-page { display: grid; diff --git a/calliope-web/src/routes/+page.svelte b/calliope-web/src/routes/+page.svelte index 5ea14d27..43e856e8 100644 --- a/calliope-web/src/routes/+page.svelte +++ b/calliope-web/src/routes/+page.svelte @@ -493,7 +493,7 @@