From a72874df20af7fed1260ceb326ac0c167237fec4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 23:53:07 +0000 Subject: [PATCH 1/5] =?UTF-8?q?B113=20=E2=80=94=20Wizard=20mobile=20thumb-?= =?UTF-8?q?zone,=20t=C3=ADtulos=20e=20cores=20nos=20=C3=ADcones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Thumb-zone grid (RTL mobile fill from bottom-right) shared via wizardThumbGrid - Signal/trend tiles: semantic icon colors only; neutral tile borders - Remove redundant step titles (flow name stays in Mandate Red header) - Trend choice: current-status card with Atual chip (2 columns) - Signal body: Salvar disabled until body is non-empty - Leadership grid: list-none + thumb-zone alignment Co-authored-by: Francisco Solla --- .../leadership/WizardLeadershipStep.tsx | 27 ++++++-- .../municipality/WizardSignalBodyStep.tsx | 22 ++++--- .../municipality/WizardSignalTypeStep.tsx | 33 +++++++--- .../municipality/WizardTrendChoiceStep.tsx | 47 +++++++++++--- .../shared/WizardExpectedVotesStep.tsx | 3 +- src/lib/municipalitySignalTypeMeta.ts | 10 +++ src/lib/politicalTrendWizardMeta.ts | 12 ++-- src/lib/politicalTrendWizardUi.ts | 2 + src/lib/wizardThumbGrid.ts | 17 +++++ .../unit/politicalTrendWizardUi.unit.spec.ts | 2 +- .../wizardExpectedVotesStep.unit.spec.tsx | 4 +- tests/unit/wizardSignalUi.unit.spec.ts | 1 + tests/unit/wizardThumbGrid.unit.spec.ts | 64 +++++++++++++++++++ 13 files changed, 199 insertions(+), 45 deletions(-) create mode 100644 src/lib/wizardThumbGrid.ts create mode 100644 tests/unit/wizardThumbGrid.unit.spec.ts diff --git a/src/components/campaign/leadership/WizardLeadershipStep.tsx b/src/components/campaign/leadership/WizardLeadershipStep.tsx index f40d272d..a19dbbf8 100644 --- a/src/components/campaign/leadership/WizardLeadershipStep.tsx +++ b/src/components/campaign/leadership/WizardLeadershipStep.tsx @@ -45,7 +45,6 @@ import { WIZARD_LEADERSHIP_EMPTY_NOTES, WIZARD_LEADERSHIP_FORM_CREATE_TITLE, WIZARD_LEADERSHIP_FORM_EDIT_TITLE, - WIZARD_LEADERSHIP_GRID_TITLE, WIZARD_LEADERSHIP_SAVED_TOAST, WIZARD_LEADERSHIP_STATUS_DRAWER_TITLE, WIZARD_LEADERSHIP_STATUS_PENDING, @@ -62,6 +61,10 @@ import { type SupportStatus, } from '@/lib/schemas/leadership' import { cn } from '@/lib/utils' +import { + WIZARD_THUMB_TILE_GRID_CLASS, + WIZARD_THUMB_TILE_ITEM_CLASS, +} from '@/lib/wizardThumbGrid' import { resolveWizardChainEntry, wizardChainContinueHref, @@ -143,11 +146,11 @@ export const WizardLeadershipStep = ({ ) const stepTitle = - mode.kind === 'grid' - ? WIZARD_LEADERSHIP_GRID_TITLE - : mode.leadership + mode.kind === 'form' + ? mode.leadership ? WIZARD_LEADERSHIP_FORM_EDIT_TITLE : WIZARD_LEADERSHIP_FORM_CREATE_TITLE + : null const trailingAction = skipConfig ? (