From 175ef0258d321a95d91c8e31fb99896e48f603cb Mon Sep 17 00:00:00 2001 From: markmybytes Date: Tue, 6 Oct 2026 20:52:58 +0800 Subject: [PATCH 1/2] fix(frontend): disambiguate driver scheduling badge icons PR #70 reused mdi:chart-timeline for the group-exclusive badge, colliding with its role as the scheduling-constraint indicator. Reserve mdi:chart-timeline for 'this group contains incompatible drivers, global-exclusive ones included' and give the Run-One-by-One setting its own mdi:queue badge. Drop the separate purple global exclusive badges: Run Alone is an incompatibility with everything, so the driver badge shows its label inside the merged badge, matching the inspect modal's existing cell. --- frontend/src/components/DriverEditor.vue | 16 ++++------------ frontend/src/pages/drivers/index.vue | 14 +++----------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/DriverEditor.vue b/frontend/src/components/DriverEditor.vue index 7ee6863..cb8e0dc 100644 --- a/frontend/src/components/DriverEditor.vue +++ b/frontend/src/components/DriverEditor.vue @@ -173,20 +173,12 @@ function handleRemove() { - - {{ driver.incompatibles.length }} - - - - + + {{ driver.globalExclusive ? $t('fieldGlobalExclusive') : driver.incompatibles.length }} diff --git a/frontend/src/pages/drivers/index.vue b/frontend/src/pages/drivers/index.vue index a10fb07..41e15ef 100644 --- a/frontend/src/pages/drivers/index.vue +++ b/frontend/src/pages/drivers/index.vue @@ -162,23 +162,15 @@ function openInspect(id: number) { class="inline-flex items-center gap-0.5 rounded bg-orange-100 px-1 py-0.5 text-orange-700" :title="$t('fieldGroupExclusive')" > - - - - - + - + Date: Tue, 6 Oct 2026 23:44:34 +0800 Subject: [PATCH 2/2] fix(frontend): unify badge colors, add olive accents for min-exe-time Continue the badge-semantic split: return-code whitelist is blue on the editor card like the group index, argument chips share one neutral gray palette, and min-exe-time gets its own olive accent on badge and value pill. Drop duplicate compiler-macro imports that an IDE auto-import added, which broke vue-tsc. --- frontend/src/components/DriverEditor.vue | 31 ++++++++++++++---------- frontend/src/pages/drivers/index.vue | 2 +- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/DriverEditor.vue b/frontend/src/components/DriverEditor.vue index cb8e0dc..80264a3 100644 --- a/frontend/src/components/DriverEditor.vue +++ b/frontend/src/components/DriverEditor.vue @@ -156,16 +156,16 @@ function handleRemove() { - + {{ driver.allowRtCodes.join(', ') }} @@ -175,7 +175,9 @@ function handleRemove() { {{ driver.globalExclusive ? $t('fieldGlobalExclusive') : driver.incompatibles.length }} @@ -280,7 +282,17 @@ function handleRemove() { - +