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>
- 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>
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>
Lote de planos pós gate: gap/header Início, nearest como hit normal na busca,
listas sem título mobile, crash do Nível (P0), combobox de filtros + card.
Bootstrap the campaign ops mirror behind OPS_HYBRID for staff: hydrate
TanStack localOnly collections from OPFS file (IDB fallback), GET
/campanha/api/ops-sync with mergeOpsSnapshot (outbox-aware), poll every
3 min in foreground, and show discreet sync chrome in the shell.
Leaders stay no-op even when the flag is on.
Closes#168
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Simplify follow-up from parallel review: knip-facing dead export and
shared gap/pb classes on the quick-actions context stack.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- Empty blur → collapsed; blur with text stays FULL (drawer whenEmpty policy).
- Handle tap and snap→collapsed clear search so uiFocused cannot reopen FULL.
- Keep all snap points while focused so swipe ↓ can dismiss.
- Pathname change (in-chrome) clears + collapses; initial load stays dock.
- Compact dock/search stack gap (~⅓) without cutting safe-area.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>