Commit graph

517 commits

Author SHA1 Message Date
Francisco Ignácio Fontoura Solla
224eaf5c47 CL9 — retire LIST_UNIFIED; always render OpsListPage
Drop the dual-path list flag so the eight staff list routes share one shell wiring path, matching the OH14 always-on hybrid cleanup.
2026-08-02 02:30:28 -03:00
Francisco Solla
4942e3d149
Merge pull request #230 from fsolla/cursor/pool-i175-29b01649-361e
OH14 — Limpeza da flag OPS_HYBRID + documentação final
2026-08-02 02:20:41 -03:00
Francisco Ignácio Fontoura Solla
4a1bbb758b Fix home action strip horizontal padding on mobile.
Move horizontal padding from the scroll container into layout slots so the action strip can bleed edge-to-edge while summary and search keep consistent inset; add drawer bottom spacer and h-auto height.
2026-08-02 01:41:41 -03:00
Cursor Agent
12f2d97f0a
OH14 — fix offline e2e: ops-sync wait, local list search, vote-pledges registry, B27 POST wait 2026-08-02 04:40:25 +00:00
Cursor Agent
d6d3089f7d
OH14 — pick outbox mutation by collection id when mirror rows are registered 2026-08-02 04:13:37 +00:00
Cursor Agent
ceb1b3a8af
OH14 — register mirror collections in offline executors + fix e2e POST waits 2026-08-02 04:07:20 +00:00
Cursor Agent
ce8bf67828
OH14 — knip: remove unused estimateVotes wrapper and safeMessages 2026-08-02 03:51:14 +00:00
Cursor Agent
516ecaa745
OH14 — format pledgeFormActions 2026-08-02 03:50:28 +00:00
Cursor Agent
f67a4c27e9
OH14 — knip: remove exports orphaned by outbox-only paths 2026-08-02 03:50:05 +00:00
Cursor Agent
34a1308f5d
OH14 — format 2026-08-02 03:49:00 +00:00
Cursor Agent
36f85e96d9
OH14 — remove orphaned transitionDemandFormAction after outbox-only path
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 03:48:18 +00:00
Cursor Agent
9b56b641a6
OH14 — remove OPS_HYBRID flag; sync always on for staff
Decision: remove compile-time OPS_HYBRID after OH11/OH13 green in CI/staging.
Staff hybrid sync is gated only by isStaffCampaignRole in the app layout;
OfflineBoundary swaps to Local when the browser is offline.

- Delete opsHybridFlag.ts and legacy formAction branches in staff controls
- E2e offline specs run in CI without OPS_HYBRID env
- Update ops-hibrido spec to implementado + offline write recipe

Closes #175

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 03:47:04 +00:00
Cursor Agent
6f1c208ed3
refactor(oh13): simplify hybrid FormData helpers and drop unused CAS wrappers
Extract shared FormData builders for outbox/online dual path; remove
knip-flagged create*Cas and membership CasRecord re-exports.
2026-08-02 03:28:00 +00:00
Cursor Agent
46f010211f
OH13: extract opsMirrorCollections to break outbox cycle
Move TanStack mirror row collections out of opsMirrorClient so
opsDomainOutbox can update them without a madge cycle through
collectOpsDomainOutboxKeys.
2026-08-02 03:18:53 +00:00
Cursor Agent
334713324b
OH13: keep unused domain Cas entry points public for knip
After dropping the dead outbox enqueue paths, mark the still-shipped
createActivity/membership/stateDeputy Cas wrappers @public so knip
does not delete them while hybrid callers are unfinished.
2026-08-02 03:17:41 +00:00
Cursor Agent
2eec800511
OH13: drop unused domain outbox enqueue paths
Remove dead createActivity / stateDeputy / membership outbox
mutationFns and model types flagged by knip; keep the four live
enqueue paths and logout/key helpers.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 03:16:03 +00:00
Cursor Agent
e8f315d67b
OH13: CAS writes for leadership, demand, activity, stateDeputy
Add baseUpdatedAt CAS on domain staff writes, assertCampaignDocCas helper,
opsDomainOutbox with hybrid forms (Manter/Usar), and int/unit pins.
Closes #176.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 03:10:18 +00:00
Cursor Agent
0a2078264e
OH12: re-wrap list OfflineBoundary after rebase onto CampaignListPageHeader 2026-08-02 02:47:53 +00:00
Cursor Agent
0e4cfc545d
OH12: defer browser-offline until mount for saved-filter e2e
useBrowserOffline now returns false through SSR/hydration so online
controls (Salvar filtro) stay clickable; OfflineBoundary Local swap still
waits for mount + navigator.onLine.
2026-08-02 02:47:53 +00:00
Cursor Agent
a186648c1f
OH12: drop unused ListSearchParams re-exports (knip)
Parsers live in client-safe *ListUrl modules; SearchParams types are only
needed there, not on the server-only Data barrels.
2026-08-02 02:47:53 +00:00
Cursor Agent
c04c1a4c36
OH12: simplify Local lists — shared offline copy + boundary hook
Reuse opsListLocalCopy for saved-filter gates, drive OfflineBoundary from
useBrowserOffline, drop dead registry null-check and unused exports, and
tighten municipality Local sorting/casts.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 02:47:53 +00:00
Cursor Agent
63cd15eef5
OH12: OpsListLocal read-only via registry + OfflineBoundary on lists
Wire OfflineBoundary + OpsListLocal on the eight ops list routes. Local
reads the ops mirror with subscribeChanges, applies canonical URL parsers
for filter/sort/page, and keeps KPIs/edit/saved-filter writes honest
offline. Extract demand/organization list URL modules for client use.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 02:47:35 +00:00
Cursor Agent
0630995bb2
OH11 — SW static cache-first, logout campaignOps wipe, offline e2e
- Service worker: cache-first for same-origin /_next/static/ (before RSC guard)
- Logout: clearCampaignOpsStorage (abort sync → outbox → persistence) then Cache API
- E2E: full offline journey in campaignOpsOffline (write→reload→online→sync)
- Docs: CHANGELOG + ops-hibrido spec; test:e2e:ops-hybrid script

Closes #173

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 02:31:58 +00:00
Cursor Agent
96e03f0c26
fix: avoid never-narrow on multi filter param 2026-08-02 02:12:28 +00:00
Cursor Agent
3dbbc5b203
fix: narrow multi-filter param switch after name skip 2026-08-02 02:12:28 +00:00
Cursor Agent
3e49841fd7
style: prettier B120 mobile filter files 2026-08-02 02:12:28 +00:00
Cursor Agent
f97618524b
fix(campanha): B120 simplify — option pick must not commit typeahead as q
Keep only committed URL q on filter picks, exhaust multi-param mapping,
and document the municípios secondary-nav contract in unit tests.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 02:12:28 +00:00
Cursor Agent
ad23e9f4c7
feat(campanha): B120 mobile município filter combobox + denser cards
Replace the stacked NativeSelect mobile filters with a GitHub-style
combobox (chips + typeahead) over the frozen B18 URL contract, hide the
overview strip and sort notice below md, and densify mobile list cards.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 02:12:18 +00:00
Francisco Solla
b85d6f6227
Merge pull request #223 from fsolla/cursor/pool-i171-b4f8ce5e-fad8
OH10 — Writes municipality staff CAS: update, declareVotes, tendência, engagement, advisors
2026-08-01 23:09:26 -03:00
Francisco Solla
b38850b446
Merge pull request #214 from fsolla/cursor/pool-i194-81175171-d141
B113 — Wizard mobile thumb-zone, títulos e cores nos ícones
2026-08-01 22:58:20 -03:00
Cursor Agent
40d329cdd1
OH10: remove unused UPDATE_CREATE_SAFE_MESSAGES export 2026-08-02 01:54:45 +00:00
Francisco Solla
492d0c77b8
Merge pull request #218 from fsolla/cursor/pool-i205-4d8c38ce-14ae
B118 — Listas mobile — ocultar título, subtítulo e chip de escopo
2026-08-01 22:52:04 -03:00
Cursor Agent
c1ad8bf915
OH10: drop unused MUNICIPALITY_UPDATE_CREATE_SAFE_MESSAGES (knip) 2026-08-02 01:45:13 +00:00
Cursor Agent
0908f8d4d6
OH10: prettier format for gate:push 2026-08-02 01:44:31 +00:00
Cursor Agent
884ad67c50
test(B113): fix wizard chrome e2e and municipality href strictness 2026-08-02 01:42:45 +00:00
Cursor Agent
daeff53bf4
OH10: mirror CAS base, advisors conflict toast, pledgeId path
Prefer municipalitiesCollection updatedAt for list/update outbox CAS,
restore advisors conflict Manter/Usar toast, and pass pledgeId for O(1)
declareVotes mirror/outbox keys. Drop unused membership Cas export and
expectedVotes baseUpdatedAt.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:42:23 +00:00
Cursor Agent
bac7a4e3b0
chore(B113): remove orphaned wizard title exports; map e2e manifest 2026-08-02 01:41:32 +00:00
Cursor Agent
f3f442f981
style: Prettier format B113 files 2026-08-02 01:41:31 +00:00
Cursor Agent
a72874df20
B113 — Wizard mobile thumb-zone, títulos e cores nos ícones
- Thumb-zone grid (RTL mobile fill from bottom-right) shared via wizardThumbGrid
- Signal/trend tiles: semantic icon colors only; neutral tile borders
- Remove redundant step titles (flow name stays in Mandate Red header)
- Trend choice: current-status card with Atual chip (2 columns)
- Signal body: Salvar disabled until body is non-empty
- Leadership grid: list-none + thumb-zone alignment

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:41:21 +00:00
Cursor Agent
26bda9e430
OH10: fix fixtures, bypass comment, drop unsupported metadata
Align list view-model test fixtures with updatedAt, justify the CAS
advisor read bypass, and remove createOfflineAction metadata the
TanStack API does not accept.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:36:31 +00:00
Cursor Agent
a517638e3c
OH10: municipality staff writes CAS + offline outbox
Add baseUpdatedAt CAS for declareVotes, municipalityUpdate, political
trend, engagement level, and advisors. Sibling outbox executor wires
hybrid controls when OPS_HYBRID is on; flag OFF keeps legacy paths.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:33:58 +00:00
Francisco Solla
b96b962d73
Merge pull request #221 from fsolla/cursor/pool-i209-b0d5e6cd-eaa9
B121 — Wizard atualizar liderança — edição rápida (status + votos declarados)
2026-08-01 22:26:33 -03:00
Francisco Solla
bb4741e4f5
Merge pull request #220 from fsolla/cursor/pool-i172-ccc192fe-16b0
OH9 — Detalhe de município dual-path (views + Local + OfflineBoundary)
2026-08-01 22:23:57 -03:00
Cursor Agent
bf042c3217
B121 — format 2026-08-02 01:13:03 +00:00
Cursor Agent
9d8dcbbea4
B121 — remove unused copy constant
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:13:03 +00:00
Cursor Agent
c845550cdb
B121 — wizard liderança: edição rápida status + votos declarados
- Estende WizardLeadershipTileViewModel com declaredVotes
- Batch load de votePledge no loadWizardLeadershipTiles
- Drawers de status (auto-save) e votos (Salvar) no grid B70
- declareVotesWizardFormAction com revalidate do wizard
- Unit tests do mapeamento pledge→tile

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 01:13:03 +00:00
Francisco Solla
50bd6f0764
Merge pull request #219 from fsolla/cursor/pool-i206-d740dec0-e4af
B119 — Fix crash ao tocar Nível no card mobile de municípios
2026-08-01 22:12:30 -03:00
Francisco Solla
f63cfca2a9
Merge pull request #217 from fsolla/cursor/pool-i204-97038873-d8d3
B117 — Busca geral — município mais próximo na 1ª sugestão (geo)
2026-08-01 22:11:17 -03:00
Cursor Agent
fb63c76363
OH9: resolve rebase conflicts with main (opsVotePledgeMirror + changelog)
Keep leadershipsCollection export; re-export votePledgesCollection from the
OH7 mirror module; preserve both OH9 and B114 changelog entries.
2026-08-02 01:10:15 +00:00
Cursor Agent
625907088a
OH9: unexport unused HeaderView advisor summary type (knip) 2026-08-02 01:10:00 +00:00