Commit graph

1056 commits

Author SHA1 Message Date
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
Cursor Agent
3a8c1ab3ed
docs(plans): mark OH3 done with measured truncation policy
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:23:09 +00:00
Cursor Agent
c5905bf92c
OH3: benchmark ops snapshot script + truncation policy (50/municipality)
Adds scripts/benchmark-ops-snapshot.mjs with assertLocalDatabase guard,
per-collection bytes/gzip/query timing, municipality_update truncation
(--rows municipality_update=N, default 50), and prod projection anchored
on the 2026-08-01 ~4 MB JSON measurement.

Closes the OH3 acceptance: gzip target ≤ ~2 MB with 50 updates/municipality.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:23:03 +00:00
Francisco Solla
3b02314b9b
Merge pull request #181 from fsolla/cursor/pool-i163-4e2a0b32-3a91
OH2 — lib/campaignOps contrato puro + merge + flag
2026-08-01 19:19:38 -03:00
Cursor Agent
e0fdc2594e
CL2: add opsListRegistry, LIST_UNIFIED flag, and unit pins
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>
2026-08-01 22:14:52 +00:00
Cursor Agent
7fd1133843
test: pin campaignOps contract exports for knip 2026-08-01 22:09:25 +00:00
Cursor Agent
322d593758
style: prettier campaignOps modules 2026-08-01 22:08:38 +00:00
Francisco Solla
a777c721d8
Merge pull request #180 from fsolla/cursor/pool-i155-a99a7d1e-82a9
CL1 — Lista unificada campanha — spec-mãe + resolução de conflitos
2026-08-01 19:08:05 -03:00
Cursor Agent
7515d2a959
OH2 — lib/campaignOps contrato puro + merge + flag
- 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>
2026-08-01 22:07:54 +00:00
Cursor Agent
151f9c1c9c
CL1: remover marcadores de conflito no CHANGELOG 2026-08-01 22:06:38 +00:00
Cursor Agent
84ffa1b499
CL1: formatar planos com Prettier 2026-08-01 22:04:25 +00:00
Cursor Agent
2216822ca8
CL1: travar spec-mãe da lista unificada + SSOT para CL2
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>
2026-08-01 22:04:25 +00:00
Francisco Solla
de2b96d4de
Merge pull request #179 from fsolla/cursor/pool-i164-1f1ab038-7615
OH1 — Ops híbrido RSC/local — spec-mãe e critérios
2026-08-01 19:04:11 -03:00
Cursor Agent
60419ee952
OH1 — format Prettier na spec-mãe 2026-08-01 22:02:42 +00:00
Cursor Agent
bef2b824df
OH1 — aprova spec-mãe Ops híbrido RSC/local (#164)
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>
2026-08-01 22:01:29 +00:00
Francisco Solla
6a67400712
Merge pull request #178 from fsolla/cursor/agent-skills-addyosmani
Agent skills (addyosmani) + plan-issue skills map
2026-08-01 18:56:28 -03:00
Francisco Ignácio Fontoura Solla
c2d78ae566 Track Claude Code skill symlinks for addyosmani pack
Commit .claude/skills → .agents/skills links so Claude Code resolves the same installed pack; keep settings.local.json local-only.
2026-08-01 18:54:56 -03:00
Francisco Ignácio Fontoura Solla
2a69c2efed Add addyosmani agent skills and wire plan-issue to them
Install the engineering skill pack under .agents/skills with skills-lock entries, and extend plan-issue with a skills map plus decision/template hooks.
2026-08-01 18:53:54 -03:00
github-actions[bot]
eb5bff10d9
Merge pull request #177 from fsolla/cursor/plans-cl-oh-ops-hybrid
Planos CL1–CL8 + OH1–OH14 — lista unificada e ops híbrido
2026-08-01 21:52:31 +00:00
Francisco Ignácio Fontoura Solla
5fd6f38369 Planos CL1–CL8 (lista unificada) e OH1–OH14 (ops híbrido RSC/local)
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
2026-08-01 18:51:03 -03:00
Francisco Solla
8741eb5151
Merge pull request #154 from fsolla/cursor/pool-i149-d8165a59-5947
B110 — Wizard return path via allowlisted from query
2026-08-01 18:04:14 -03:00
Francisco Solla
ab910b499b
Merge pull request #153 from fsolla/cursor/pool-i148-3c37da6e-2281
B109 — Bottom drawer: dock polish, fullscreen search, exclude current entity
2026-08-01 18:03:27 -03:00
Cursor Agent
1ae714613f
Fix wizard back link: drop municipio, keep from query 2026-08-01 20:50:03 +00:00
Francisco Solla
64e7be699f
Merge pull request #152 from fsolla/cursor/pool-i150-ccf81e9f-a156
B111 — Início strip edge-to-edge + delta flat silencioso
2026-08-01 17:49:38 -03:00