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>
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>
Add buildOpsSnapshot (server-only) with overrideAccess:false queries,
municipality_update truncation (OH3 N=50), and int pins for
401/403/200 + advisor portfolio + truncation.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Wire LIST_UNIFIED flag on /campanha/apoiadores and /campanha/organizacoes
behind OpsListPage with full slot parity (KPI overview, filters, table,
footer). Registry entries were already present from CL2; this completes
the route delegation. Pins CL7 routes in opsListPage.unit.spec.ts.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Align coverage toggle with the region page-reset path, pass an explicit
filter pick into selectTerritoryOverviewPage, and reuse TerritoryFilterOption
for regionOptions.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Add page to the territories URL contract, apply filter/sort/slice in the
loader (page size 25), flip registry sortModel to url, and render
/campanha/territorios through OpsListPage when LIST_UNIFIED is on.
Closes#159
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- int: view model do detalhe, painel de pledges e tabs resolvidas
- e2e: header/tab/pledges/editar (staff) e lockdown do leader
- e2e: shell das listas municipios e liderancas (titulo, busca, paginacao)
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Keep advisorListStateToRawParams private, remove dead AdvisorListState
re-export, and pass municipalityIDs directly into the portfolio cell.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>