Commit graph

979 commits

Author SHA1 Message Date
Cursor Agent
4170bb640a
docs(B112): mark plan implemented
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 23:54:59 +00:00
Cursor Agent
266fc67516
feat(B112): collapse drawer on blur∅ / nav / handle+swipe, pad ⅓
- 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>
2026-08-01 23:54:59 +00:00
Francisco Solla
abe0d106b1
Merge pull request #191 from fsolla/cursor/pool-i161-a9c58ad5-f5de
CL7 — Migrar apoiadores e organizações para a factory
2026-08-01 20:52:40 -03:00
Francisco Solla
11315bb609
Merge pull request #196 from fsolla/cursor/plans-b112-b114-mobile-wizard
B112–B114 — planos drawer collapse + wizard thumb + wizard back
2026-08-01 20:49:45 -03:00
Francisco Ignácio Fontoura Solla
aaabd5e608 Format B112–B114 plan markdown with Prettier. 2026-08-01 20:48:23 -03:00
Francisco Ignácio Fontoura Solla
39e3ae163f Register plans for B112–B114 (drawer collapse, wizard thumb UI, wizard back). 2026-08-01 20:47:49 -03:00
Francisco Solla
56d2469fc3
Merge pull request #188 from fsolla/cursor/pool-i166-e6739edf-00ad
OH4 — Route GET /campanha/api/ops-sync FULL + scoped + int access
2026-08-01 20:47:39 -03:00
Cursor Agent
4fecbc6fac
Fix merge conflict markers in opsListPage.unit.spec.ts 2026-08-01 23:38:52 +00:00
Cursor Agent
a1f2a03527
fix(OH4): keep changelog entries after rebase onto main 2026-08-01 23:36:57 +00:00
Cursor Agent
53e5f32f03
fix(OH4): remove leftover rebase conflict markers in changelog
Prettier/CI format failed because CHANGELOG still had <<<<<<< markers
after the main rebase.
2026-08-01 23:36:57 +00:00
Cursor Agent
59907172f7
refactor(OH4): parallel snapshot queries + simplify reuse
Promise.all for collection finds; reuse requireRelationshipId /
populatedContactName / campaignAccess; truncate in lib; auth message
canonical. Register OH4+ (#186) for benchmark→builder DRY.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 23:36:57 +00:00
Cursor Agent
eb4ed64377
feat(OH4): GET /campanha/api/ops-sync full snapshot + scoped access
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>
2026-08-01 23:36:57 +00:00
Francisco Solla
f9128f92b8
Merge pull request #189 from fsolla/cursor/pool-i159-da713125-4207
CL6 — Territórios: paginação real + sort server, depois factory
2026-08-01 20:35:58 -03:00
Francisco Solla
2137d09fb5
Merge pull request #192 from fsolla/cursor/pool-i170-0a4ea112-aa41
OH8 — Caracterização das rotas piloto (detalhe município + listas-chave)
2026-08-01 20:26:50 -03:00
Cursor Agent
68a152978c
fix: drop leftover changelog conflict markers after CL5 rebase 2026-08-01 23:22:53 +00:00
Cursor Agent
a20cfc393c
fix: resolve changelog conflict markers and scope B109 e2e
Rebase left conflict markers in CHANGELOG-AGENTS.md. Also scope the
B109 Sugestões assertion to the quick-actions drawer (page also has one).
2026-08-01 23:22:39 +00:00
Cursor Agent
e0789a673e
Format apoiadores and organizacoes pages 2026-08-01 23:22:38 +00:00
Cursor Agent
f49e8e3c55
CL7 — Migrar apoiadores e organizações para OpsListPage
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>
2026-08-01 23:22:38 +00:00
Cursor Agent
61df1a1d77
CL6: keep territory page size private (knip) 2026-08-01 23:22:29 +00:00
Cursor Agent
cca7d4af47
CL6: format territorios page and loader imports 2026-08-01 23:22:29 +00:00
Cursor Agent
69075dedf0
CL6: simplify territory page-reset and loader filters
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>
2026-08-01 23:22:29 +00:00
Cursor Agent
a91019f427
CL6: real territory list pagination + OpsListPage flag
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>
2026-08-01 23:22:29 +00:00
Francisco Solla
d5ab7d0b51
Merge pull request #190 from fsolla/cursor/pool-i160-be5d66d3-a0aa
CL5 — Assessores: CampaignTable + URL canónico + factory
2026-08-01 20:20:47 -03:00
Cursor Agent
0c9f35b67a
docs: marca plano OH8 como entregue
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 23:15:05 +00:00
Cursor Agent
ce68a46f21
OH8 — pins de caracterização (detalhe município + listas-chave)
- 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>
2026-08-01 23:09:56 +00:00
Cursor Agent
57df503010
CL5: finish rebase conflict resolution for CL4/OH6
Drop leftover conflict markers and fold assessores into the shared
OpsListPage route pin alongside CL4.
2026-08-01 23:07:14 +00:00
Cursor Agent
26d09ccfdf
CL5: format lista-unificada spec after SSOT row update 2026-08-01 23:07:00 +00:00
Cursor Agent
c6e733a714
CL5: simplify — drop unused export and portfolio id Map
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>
2026-08-01 23:07:00 +00:00
Cursor Agent
76d6129e1e
CL5: Assessores CampaignTable + URL canónico + OpsListPage
Rewrite AdvisorsTable on CampaignTable with column picker, add
resolveAdvisorListUrl (preserves criar=1), register assessores in
CAMPAIGN_LIST_IDS/opsListRegistry, and wire LIST_UNIFIED factory shell.

Closes #160

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 23:07:00 +00:00
Francisco Solla
d909e3d28d
Merge pull request #183 from fsolla/cursor/pool-i167-a82e10a2-9a34
OH6 — estimateVotesCas + outbox mínimo + toasts (tracer bullet)
2026-08-01 20:06:15 -03:00
Francisco Solla
f69855eac1
Merge pull request #187 from fsolla/cursor/pool-i158-2c584dfa-c233
CL4 — Migrar lideranças, dobradinhas, demandas para a factory
2026-08-01 20:01:28 -03:00
Cursor Agent
8b3d5d383f
style: prettier migration reconciliation cleanup 2026-08-01 22:50:25 +00:00
Cursor Agent
32cc4f1c13
test: tolerate DROP DATABASE FORCE denial in migration reconciliation cleanup 2026-08-01 22:50:25 +00:00
Cursor Agent
df0ff76267
style(OH6): prettier after OH2 rebase 2026-08-01 22:50:25 +00:00
Cursor Agent
5f0943bff3
refactor(OH6): reuse OH2 resolveOpsHybridEnabled
Drop the temporary opsSync flag helper now that lib/campaignOps landed
on main; keep next.config env inlining for the client island.
2026-08-01 22:50:25 +00:00
Cursor Agent
a78170c4f9
fix(OH6): stop exporting internal outbox collection 2026-08-01 22:50:24 +00:00
Cursor Agent
f69eaa8f82
style(OH6): prettier format 2026-08-01 22:50:24 +00:00
Cursor Agent
9a402d2ac1
fix(OH6): bootstrap outbox on mount and tighten CAS/subscribe
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>
2026-08-01 22:50:24 +00:00
Cursor Agent
f7e3591ea9
feat(OH6): estimate outbox + hybrid PledgeEstimateForm toasts
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>
2026-08-01 22:50:24 +00:00
Cursor Agent
df4ee3fb76
feat(OH6): estimateVotesCas with optional baseEstimatedAt
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>
2026-08-01 22:50:17 +00:00
Cursor Agent
3a2928278e
style: format CL4 page files 2026-08-01 22:48:20 +00:00
Cursor Agent
1398768670
CL4 — migrar lideranças, dobradinhas e demandas para OpsListPage
Delega as três rotas à factory unificada atrás de LIST_UNIFIED,
seguindo o padrão CL3 de municípios: slots extraídos (toolbar, overview,
table, footer) com paridade total quando a flag está OFF.

- lideranças/dobradinhas: sort summary no slot overview, sheet provider na tabela
- demandas: chips de status no toolbar, sem redirect canónico (sort fixed)
- testes unitários estendidos em opsListPage.unit.spec.ts

Closes #158

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:47:37 +00:00
Francisco Solla
79f62d62b6
Merge pull request #185 from fsolla/cursor/pool-i157-a2dcfb84-a88a
CL3 — OpsListPage/OpsListView + municípios na arquitetura nova (tracer)
2026-08-01 19:44:39 -03:00
Francisco Solla
d088bcfa9a
Merge pull request #184 from fsolla/cursor/pool-i165-4845d5e3-104f
OH3 — Benchmark do snapshot completo + política de truncamento
2026-08-01 19:42:16 -03:00
Cursor Agent
4f5366780f
CL3: record delivery changelog and close plan status
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:31:19 +00:00
Cursor Agent
45eaabd23c
CL3: align provider nesting and tighten OpsList types
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>
2026-08-01 22:31:07 +00:00
Cursor Agent
4d035017f2
CL3: OpsListPage/OpsListView tracer for municípios list
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>
2026-08-01 22:29:08 +00:00
Cursor Agent
e3c7ea297f
style: format OH3 benchmark files 2026-08-01 22:27:25 +00:00
Cursor Agent
5de3aeeb2e
OH3: pin snapshot policy constants + simplify benchmark script
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:26:44 +00:00
Francisco Solla
4c16c76a2c
Merge pull request #182 from fsolla/cursor/pool-i156-cc5b501f-ae59
CL2 — opsListRegistry + tipos + flag + slugs v1
2026-08-01 19:24:54 -03:00