From 34dcb0a54fdbfdffde70cf3e6dbecc273f43fdd1 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 6 Jul 2026 08:56:52 +0000 Subject: [PATCH] fix(scenarios): band picker order, letter contrast, quieter excluded chips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Design feedback: - Target-band picker reads A→G left-to-right (reading order; the gallery/detail meters stay G→A as they mirror the building passport's efficiency gauge, which fills low→high). - Unselected picker chips are now light band-colour tints with one consistent dark ink — no ink has legal contrast across all seven band colours at full saturation, so the old full-colour+opacity fade made letter colours look inconsistent and washed out. Only the selected chip goes full colour, with luminance-correct ink (shared bandInk()). - Excluded measure chips recede (gray, struck through) instead of filling dark navy — "Exclude all" no longer paints a wall of blue; the measures still in play are the visually dominant ones. State is never colour-only: ✓/✕ icon + strikethrough carry it too. Co-Authored-By: Claude Fable 5 --- .../scenarios/new/NewScenarioJourney.tsx | 37 +++++++++++-------- .../[slug]/(portfolio)/scenarios/ui.tsx | 14 ++++++- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/app/portfolio/[slug]/(portfolio)/scenarios/new/NewScenarioJourney.tsx b/src/app/portfolio/[slug]/(portfolio)/scenarios/new/NewScenarioJourney.tsx index 551ce7c1..4bcee7c9 100644 --- a/src/app/portfolio/[slug]/(portfolio)/scenarios/new/NewScenarioJourney.tsx +++ b/src/app/portfolio/[slug]/(portfolio)/scenarios/new/NewScenarioJourney.tsx @@ -11,7 +11,7 @@ import { type MeasureKey, } from "@/app/db/schema/recommendations"; import { EPC_BANDS, findExactDuplicate, SCENARIO_GOALS } from "@/lib/scenarios/model"; -import { BandChip, EPC_SOFT, GOAL_DESCRIPTIONS, GOAL_SHORT_LABELS, GoalIcon, formatMoney } from "../ui"; +import { BandChip, EPC_SOFT, GOAL_DESCRIPTIONS, GOAL_SHORT_LABELS, GoalIcon, bandInk, bandTint, formatMoney } from "../ui"; interface ExistingScenario { id: string; @@ -293,20 +293,28 @@ export function NewScenarioJourney({
- {[...EPC_BANDS].reverse().map((b) => ( + {EPC_BANDS.map((b) => (