Commit graph

947 commits

Author SHA1 Message Date
Cursor Agent
1fe6d7fe44
B119 — dismissActiveSheet fecha o drawer compartilhado sem depender da identidade do callback 2026-08-02 00:58:29 +00:00
Cursor Agent
f8cfe0746b
B119 — fix crash ao abrir Nível no card mobile de municípios
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>
2026-08-02 00:44:29 +00:00
Francisco Solla
891f654655
Merge pull request #208 from fsolla/cursor/plans-b116-b120-mobile-campanha
B116–B120 — planos mobile campanha (chrome, geo, densificar)
2026-08-01 21:38:48 -03:00
Francisco Solla
fcb5b1bfe5
Merge pull request #201 from fsolla/cursor/pool-i168-cbb403da-9efe
OH5 — SyncProvider + persistence (OPFS→IDB) + poll + chrome
2026-08-01 21:38:36 -03:00
Francisco Ignácio Fontoura Solla
a42553a6a3 Planos B116–B120 — chrome mobile, geo na busca, densificar municípios
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.
2026-08-01 21:37:10 -03:00
Cursor Agent
1cc930efa4
test(e2e): wait for B109 drawer handle to dock near top 2026-08-02 00:22:47 +00:00
Cursor Agent
c1666dd3e1
OH5: resolve changelog conflict markers after rebase 2026-08-02 00:22:34 +00:00
Cursor Agent
03684a3df8
OH5: drop unused exports for knip 2026-08-02 00:15:05 +00:00
Cursor Agent
38d9488df1
OH5: prettier format gate files 2026-08-02 00:15:05 +00:00
Cursor Agent
7d9ef93738
OH5: SyncProvider + OPFS→IDB mirror + poll + chrome
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>
2026-08-02 00:15:05 +00:00
Francisco Solla
2926b4a1ef
Merge pull request #199 from fsolla/cursor/pool-i162-f7cd7874-0af3
CL8 — Contrato, saved filters, cleanup e redirect canónico (#162)
2026-08-01 21:12:56 -03:00
Francisco Solla
f4823c1436
Merge pull request #197 from fsolla/cursor/pool-i193-276cd535-d0f3
B112 — Bottom drawer — colapso (blur vazio / nav / handle), swipe ↓ e padding ⅓
2026-08-01 21:10:26 -03:00
Francisco Solla
13800404c6
Merge pull request #200 from fsolla/cursor/plan-b115-strip-faixa-lateral
B115 — plano: strip Início sem faixa branca lateral
2026-08-01 21:07:24 -03:00
Francisco Ignácio Fontoura Solla
a59d98907e Format B115 plan markdown with Prettier. 2026-08-01 21:05:45 -03:00
Francisco Ignácio Fontoura Solla
1e81ad3eed Register plan for B115 (Início strip edge-to-edge, no side gutter). 2026-08-01 21:05:08 -03:00
Cursor Agent
c1c615a5ee
style: prettier (CL8) 2026-08-01 23:57:43 +00:00
Cursor Agent
93912a1304
CL8 — contrato registry, redirect canónico e cleanup (#162)
- Pin slug↔rota: tests/unit/opsListRegistryRoutes.unit.spec.ts (8 slugs v1)
- resolveDemandListUrl + resolveOrganizationListUrl; pages redirect; registry
  canonicalRedirect: true para demandas/organizacoes
- E2E tracer saved filters com LIST_UNIFIED=1; flag em next/playwright env
- Docs: CHANGELOG, lista-unificada spec, plano CL8 entregue

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 23:56:59 +00:00
Cursor Agent
f2869d4e79
refactor(B112): drop unused isCollapsed export; dedupe drawer gap classes
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>
2026-08-01 23:56:31 +00:00
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