Keep only committed URL q on filter picks, exhaust multi-param mapping,
and document the municípios secondary-nav contract in unit tests.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Replace the stacked NativeSelect mobile filters with a GitHub-style
combobox (chips + typeahead) over the frozen B18 URL contract, hide the
overview strip and sort notice below md, and densify mobile list cards.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Prefer municipalitiesCollection updatedAt for list/update outbox CAS,
restore advisors conflict Manter/Usar toast, and pass pledgeId for O(1)
declareVotes mirror/outbox keys. Drop unused membership Cas export and
expectedVotes baseUpdatedAt.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- 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 <fsolla@users.noreply.github.com>
Align list view-model test fixtures with updatedAt, justify the CAS
advisor read bypass, and remove createOfflineAction metadata the
TanStack API does not accept.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Add baseUpdatedAt CAS for declareVotes, municipalityUpdate, political
trend, engagement level, and advisors. Sibling outbox executor wires
hybrid controls when OPS_HYBRID is on; flag OFF keeps legacy paths.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- Estende WizardLeadershipTileViewModel com declaredVotes
- Batch load de votePledge no loadWizardLeadershipTiles
- Drawers de status (auto-save) e votos (Salvar) no grid B70
- declareVotesWizardFormAction com revalidate do wizard
- Unit tests do mapeamento pledge→tile
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Extract presentational header shared by RSC and offline Local; OfflineBoundary
swaps to mirror-backed Local only when OPS_HYBRID is on and the browser is
offline (sync failure stays on RSC + chrome). Closes#172.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Refatora scripts/benchmark-ops-snapshot.mjs para consumir o builder
canônico buildOpsSnapshot, eliminando ~200 linhas de mappers/selects
duplicados que podiam divergir do endpoint GET /campanha/api/ops-sync.
Adiciona callback opcional onSectionLoaded em buildOpsSnapshot para
relatório por-collection (rows, queryMs, truncamento) sem overhead em
produção quando o callback não é passado.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- loadHomeSearchSuggestions returns scopeMunicipalities for client merge
- useHomeSearchNearestMunicipality prompts once per session (B14 key)
- mergeHomeSearchNearestMunicipality prefixes hit without geo copy
- HomeSearchMunicipalityGroup wires suggest reorder for Início + drawer
Closes#204
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- CampaignMobileTopBar: bloco Jorge Solla / Campanha·Bahia vira Link para /campanha
- CampaignContentScroll: pb-2 no Início mobile (metade do p-4) quando sem quick-actions peek
- Testes unitários para link e padding compacto
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Extract CampaignListPageHeader with sr-only/md:not-sr-only h1 and hidden
subtitle/scope below md. Apply to all 8 list index routes. Unit + e2e pins.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Remove single-use signal-body helper; drop unused programmatic URL-back
flag; keep history marks and layer pop path.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Shared wizardBack contract + history layer (B106 pattern) so header
Voltar and popstate resolve the same navigate/pop-layer target.
Canonical previousHrefs; leadership form is a client history layer.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- HybridPledgeEstimateForm lê valores de votePledgesCollection (não props RSC)
- Outbox faz patch optimista no mirror e aplica write do servidor com estimatedAt
- Helpers read/subscribe/patch no opsMirrorClient + mapper mapVotePledgeWriteToOps
- Testes unitários para merge protegido, patch optimista e mapper de write
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
O footer portaled do CampaignListSheetProvider ficava fora da árvore React
do Drawer; DrawerCloseButton exigia useDialogRootContext e derrubava a página.
Substitui Cancelar por Button + onOpenChange(false) nos footers de nível e
sinal. Pin: unit com provider compartilhado + e2e mobile.
Closes#206
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>