Restore IndexedDB pending rows on hybrid form mount, drop synced stubs
so RSC props win, gate the post-lock re-read to CAS only, and notify
per-pledge subscribers instead of every estimate island.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Wire @tanstack/offline-transactions for estimateVotesCas when OPS_HYBRID
is on: IndexedDB outbox, pending/conflict badges, Sonner keep/discard
resolution; legacy formAction path unchanged when the flag is off.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Add CAS opt-in on vote pledge estimates: without baseEstimatedAt keep
last-write-wins; with a stale base refuse the write and stamp the
server estimatedAt for the outbox conflict toast.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Wrap the estimate-scenario provider outside both flag paths, type empty
as nullable, and drop the duplicated fail-closed unit assertion.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Introduce the unified list shell (OpsListView slots + OpsListPage
server casca) and wire /campanha/municipios behind LIST_UNIFIED with
flag-OFF parity and shared domain pieces as slots.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Introduce client-safe metadata registry for the eight v1 campaign list
domains (municipios through organizacoes) per lista-unificada spec CL1.
Add resolveListUnifiedEnabled for the LIST_UNIFIED env flag. Unit tests
pin slug order, route paths, columnListId allowlist, and flag behavior.
Closes#156
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- DTOs client-safe em src/lib/campaignOps/opsContract.ts
- mergeOpsSnapshot/diffOpsIds com proteção de outbox
- resolveOpsHybridEnabled + OPS_MIRROR_SCHEMA_VERSION
- Pins unit em tests/unit/campaignOps.unit.spec.ts
Closes#163
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Fecha o rascunho: inventário as-built, 8 slugs com gates reais,
conflitos por domínio, index CL2–CL8 e acoplamento OH. CL2 passa
a citar a tabela canónica em vez de duplicá-la.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Trava arquitectura (mirror + GET ops-sync + full-only + CAS opt-in),
mapa OH2–OH14, orçamento/poll e critérios de aceite do projecto.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
Install the engineering skill pack under .agents/skills with skills-lock entries, and extend plan-issue with a skills map plus decision/template hooks.
Regista as specs executáveis dos dois projetos com issues linkadas
(#155–#176): consolidação das listas staff numa factory única atrás
de flag, e a migração de ops para híbrido RSC/local com mirror,
outbox e CAS — ambos com continuidade online garantida por flag.
Related #155
Propagate return path from quick actions through the B98 wizard chain so
dismiss, skip, and chain end navigate back to the originating page instead
of always redirecting to Início.
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
- Add QUICK_ACTIONS_SNAP_FULL; drawer expands on search focus and hides action strip
- Tighten dock bottom gap; restore dock/collapsed on blur per scroll position (B100)
- Widen CampaignHomeActionButton to w-[5.5rem] for two-line labels
- Client-side filter excludes current page entity from drawer search hits
- Unit + e2e coverage for full snap, exclusion, and label readability
- Allow horizontal bleed on home-actions retraction shell (overflow-y-hidden
instead of overflow-hidden) so -mx-4 is not clipped by the chrome wrapper.
- Hide HomeSummaryDelta chip and period caption when delta is 0 or null;
add shouldShowHomeSummaryDelta helper and unit pins.
Closes#150
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>