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>