Commit graph

1056 commits

Author SHA1 Message Date
Cursor Agent
3d97c6909e
fix(guards): Pass 5 miss provenance + harden allocator/sheet/WebAuthn
Remap GUARDRAILS.md to public issue numbers (#48/#49/#50/#54), remove the
slug argument from getMunicipality(), expand the sheet-host guard to all
variant=sheet surfaces, and pin WebAuthn call-site order.
2026-08-02 06:49:45 +00:00
Francisco Solla
113f886640
Merge pull request #233 from fsolla/cursor/pass5-p0-logout-wipe-171a
P5-P0 — logout always clears persisted ops outbox/mirror
2026-08-02 03:45:37 -03:00
Cursor Agent
2caa82b10a
fix(ops): logout always clears persisted outbox and mirror
Cold reload left IndexedDB/OPFS intact when executor/store singletons
were null. Wipe adapters directly, clear both mirror backends, and
always revoke the session even if storage wipe fails.
2026-08-02 06:30:40 +00:00
Francisco Solla
5fd0f47651
Merge pull request #232 from fsolla/cursor/engineering-audit-pass5-171a
Pass 5 — engineering audit artifacts (offline/hybrid delta)
2026-08-02 03:28:41 -03:00
Cursor Agent
88026fe1d3
docs: Pass 5 engineering audit artifacts
Ledger + plan for the 2026-08-02 audit (offline/hybrid delta since Pass 4):
P0 logout wipe, P1 hybrid/CAS, remapped miss provenance, and P2 workstreams.

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 06:27:08 +00:00
Francisco Solla
1b7caf7cf5
Merge pull request #231 from fsolla/cursor/retire-list-unified-flag
CL9 — retire LIST_UNIFIED; always OpsListPage
2026-08-02 03:05:33 -03:00
Francisco Ignácio Fontoura Solla
469547b4e9 fix(e2e): harden OfflineBoundary dual-path locators
Scope list/offline assertions with .first() / #municipality-search-local
and register ops-sync wait before navigation (same OH14 flake class).
2026-08-02 02:48:17 -03:00
Francisco Ignácio Fontoura Solla
8331ae0452 fix(int): scope access-memo leadership find to fixture ids
Unscoped depth-1 finds could pick up other suites' leaderships with a
campaignUser relation and inflate the SQL count without breaking the memo.
2026-08-02 02:37:01 -03:00
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
Cursor Agent
512776314b
OH14 — e2e: offline RSC guard allowlist + strict-mode flakes
- Extend failure guard with path prefixes and RSC prefetch allowance
- Scope WebAuthn empty-state to main; territories use .first()
2026-08-02 05:04:05 +00:00
Francisco Solla
b6c5062aca
Merge pull request #229 from fsolla/cursor/agent-guardrails-padding-cleanup
Agent guardrails + home action strip padding
2026-08-02 02:02:49 -03:00
Cursor Agent
35c5ffd990
OH14 — format offline e2e imports 2026-08-02 04:54:18 +00:00
Cursor Agent
fb18bc8044
OH14 — harden e2e for always-on hybrid sync
- Add SW wait + offline-safe reload helpers for OH6/OH11
- Fix strict-mode duplicate locators (OH8, coordinator journey)
- Declare-votes journey asserts CAS POST + Atualizar (no legacy toast)
- OH12 local list: debounced search instead of Enter navigation
2026-08-02 04:53:29 +00:00
Francisco Ignácio Fontoura Solla
854daf6309 Allow agents to rewrite prior code; stop pinning layout Tailwind.
Clarify that new Issues track work and do not fence closed-ticket code, and replace brittle className layout assertions with structure/data-slot contracts.
2026-08-02 01:42:22 -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
80587e33c5
OH14 — format offline e2e spec 2026-08-02 04:41:09 +00: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
Francisco Solla
15949be761
Merge pull request #227 from fsolla/cursor/pool-i176-3ee4bb09-eb8c
OH13 — Writes CAS por domínio: leadership, stateDeputy, activity, demand
2026-08-02 00:41:48 -03:00
Francisco Solla
3f29dd4ec5
Merge pull request #226 from fsolla/cursor/wont-do-whatsapp-interno-d3-d5
docs — wont do WhatsApp interno (D3–D5)
2026-08-02 00:32:19 -03:00
Francisco Ignácio Fontoura Solla
00420b580c docs: wont do WhatsApp interno (D3–D5) — keep wa.me only
Drop bridge/sidecar plans after product decision: linked-device risk (ToS + shared datacenter IP) is unacceptable; channel stays click-to-chat.
2026-08-02 00:30:48 -03: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
Francisco Solla
40afd80254
Merge pull request #224 from fsolla/cursor/pool-i174-5d7343b1-e0d3
OH12 — OpsListLocal read-only via registry unificada + mirror (#174)
2026-08-01 23:55:28 -03: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
Francisco Solla
fcc9270db8
Merge pull request #225 from fsolla/cursor/pool-i173-c6d45316-1171
OH11 — SW /_next/static cache-first + e2e offline + docs
2026-08-01 23:41:02 -03:00
Cursor Agent
e6071aed0a
format: e2e affected manifest 2026-08-02 02:32:53 +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
Francisco Solla
d8b8e78a12
Merge pull request #222 from fsolla/cursor/pool-i207-c1261790-1012
B120 — Municípios mobile — filtro combobox + densificar lista
2026-08-01 23:27:50 -03:00
Cursor Agent
6f28ab78ff
fix(e2e): scope B118 header description assert to list header
Avoids Playwright strict-mode flakes when more than one header p matches.
2026-08-02 02:12:43 +00:00
Cursor Agent
3e81269971
fix(e2e): B118 mobile pin expects Filtrar municípios (B120)
Desktop Buscar município stays md+; mobile viewport asserts the
filter combobox label instead.
2026-08-02 02:12:35 +00:00
Cursor Agent
d221494994
fix: resolve changelog conflict markers + e2e card nav tap
Rebase left conflict markers in CHANGELOG-AGENTS.md; keep B120 + OH9.
E2E taps the card heading instead of TerritoryLink after densify.
2026-08-02 02:12:35 +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