Commit graph

1021 commits

Author SHA1 Message Date
Cursor Agent
ac25b5ce17
style: prettier on B117 files 2026-08-02 00:57:38 +00:00
Cursor Agent
96d20ae8b2
Format municipios page and complete e2e manifest entry 2026-08-02 00:57:05 +00:00
Cursor Agent
bb90979bdc
Fix format and register CampaignListPageHeader in e2e manifest 2026-08-02 00:56:59 +00:00
Cursor Agent
8d83cd633b
docs: mark B117 plan in-prod
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 00:56:51 +00:00
Cursor Agent
fe2748c5ab
B117 — prefix nearest município in global search suggest (geo)
- loadHomeSearchSuggestions returns scopeMunicipalities for client merge
- useHomeSearchNearestMunicipality prompts once per session (B14 key)
- mergeHomeSearchNearestMunicipality prefixes hit without geo copy
- HomeSearchMunicipalityGroup wires suggest reorder for Início + drawer

Closes #204

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 00:56:47 +00:00
Cursor Agent
4f459b9a57
B116 — Início mobile: gap busca÷2 + header título → home
- CampaignMobileTopBar: bloco Jorge Solla / Campanha·Bahia vira Link para /campanha
- CampaignContentScroll: pb-2 no Início mobile (metade do p-4) quando sem quick-actions peek
- Testes unitários para link e padding compacto

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 00:56:40 +00:00
Cursor Agent
586ac7d218
B118 — hide list page title, subtitle and scope chip on mobile
Extract CampaignListPageHeader with sr-only/md:not-sr-only h1 and hidden
subtitle/scope below md. Apply to all 8 list index routes. Unit + e2e pins.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 00:54:55 +00:00
Francisco Solla
dde938bbb1
Merge pull request #211 from fsolla/cursor/agent-pool-default-12-slots
Agent pool — default 12 concurrent cloud agent slots
2026-08-01 21:51:54 -03:00
Francisco Solla
d359e071bf
Merge pull request #210 from fsolla/cursor/plan-b121-wizard-lideranca-edicao-rapida
B121 — plano: edição rápida status/votos no wizard de liderança
2026-08-01 21:51:25 -03:00
Francisco Ignácio Fontoura Solla
b9b9b04961 Raise agent pool default concurrent slots from 5 to 12.
Aligns with Pro+ cloud agent capacity; start always writes POOL_MAX_SLOTS and hard cap moves to 16.
2026-08-01 21:50:28 -03:00
Francisco Ignácio Fontoura Solla
87a131960c Format B121 plan markdown with Prettier. 2026-08-01 21:49:41 -03:00
Francisco Ignácio Fontoura Solla
65ac260d28 Register plan for B121 (wizard leadership quick-edit status + declared votes). 2026-08-01 21:49:08 -03:00
Cursor Agent
0efc434910
style: format opsMirrorClient unit spec 2026-08-02 00:48:49 +00:00
Cursor Agent
387cf90d0f
refactor(OH7): extrair opsVotePledgeMirror para quebrar ciclo de imports 2026-08-02 00:48:23 +00:00
Cursor Agent
1a722e8882
fix(e2e): scope B27 advisors reopen after reload by município
Loose "Editar assessores" matched multiple list rows after reload under
parallel fixtures — pin to the claimed municipality name like the open click.
2026-08-02 00:47:13 +00:00
Cursor Agent
a723a41794
fix(e2e): wait for drawer FULL snap; scope advisors trigger by município
B109 fullscreen assert raced the snap animation in CI; B27 advisors
button matched multiple rows — pin to the claimed municipality name.
2026-08-02 00:47:05 +00:00
Cursor Agent
10e69a1bdc
fix: resolve changelog conflict markers; harden silence int flake
Keep B114 + CL8 changelog entries after rebase; raise silent-municipality
claim budget to 40 under parallel int load.
2026-08-02 00:46:55 +00:00
Cursor Agent
991bd04da5
B114: unexport unused WizardBackStepId (knip) 2026-08-02 00:46:45 +00:00
Cursor Agent
ba157a1475
B114: format + map wizard back paths in e2e affected manifest
Prettier on plan/wizardBack; wake campaignWizardChrome for shell/history.
2026-08-02 00:46:45 +00:00
Cursor Agent
e880299170
B114: simplify wizardBack — drop dead wrappers and back-close path
Remove single-use signal-body helper; drop unused programmatic URL-back
flag; keep history marks and layer pop path.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 00:46:45 +00:00
Cursor Agent
962d704a54
B114: unify wizard Voltar header with Android back
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>
2026-08-02 00:46:45 +00:00
Cursor Agent
c7a8dc7f64
style: format OH7 files 2026-08-02 00:46:16 +00:00
Cursor Agent
8fd5838914
OH7 — estimativas ligadas ao mirror completo
- 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>
2026-08-02 00:45:32 +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
Cursor Agent
19cef84bb1
B115: simplify review — comentário em inglês e desambiguado (inset B101) 2026-08-02 00:41:50 +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
9c4f00d1cb
B115: remove px-4 do ul da action strip (botões entram da borda) 2026-08-02 00:15:09 +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