teqo-backup/docs
Francisco Ignácio Fontoura Solla 6a20e98047 fix(campanha): share one Drawer across municipalities mobile cards
Root cause of the prod-build React #130 on /campanha/municipios: the
md:hidden mobile-cards tree still hydrated ~25 rows x ~5 sheet controls
(~125 eager Drawer/DrawerCloseButton instances) even on wide viewports.
Filtered ?q=... routes failed more often only because they exercise the
list with filters active — the search param itself was not the bug.

CampaignListSheetProvider hosts a single bottom Drawer for the whole
mobile section; CampaignCellEditOverlay sheet cells portal their
body/footer into it while keeping per-cell open state and autosave
scaffolds. Footers with DrawerCloseButton are only created once a sheet
actually opens. Desktop popover path is unchanged; per-cell Drawer
remains the fallback for surfaces without the provider.

Also: DrawerCloseButton (function render prop, avoids base-ui element
render in prod bundles) replaces the DrawerClose render={<Button/>}
pattern across call sites; stale e2e selectors refreshed; e2e affected
script + playwright github/list reporters for CI; use-mobile reverted
(no consumers of the gate remain).

Guardrail filed as issue #52.
2026-07-30 17:37:20 -03:00
..
design-refs Version UX Pilot design refs and map them to roadmap plans 2026-07-18 16:36:09 -03:00
plans chore(ci): parallel PR jobs, affected tests, push gate, owner-of-red-CI policy 2026-07-30 17:37:20 -03:00
research Add emendas parliamentary-amendments discovery cycle (ciclo 3): 4-axis compendium, four synthetic personas, two-round interviews with cross-examination, consolidated report (kernel, 12 ranked pains, OST mapped to /mandato-/campanha-/comunicacao, anti-goals, 14 bets), and the real-interview script for the gabinete's planilha keeper. 2026-07-28 18:05:35 -03:00
AGENT-OPS.md fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
ARCHITECTURE.md Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CHANGELOG-AGENTS.md chore(ci): parallel PR jobs, affected tests, push gate, owner-of-red-CI policy 2026-07-30 17:37:20 -03:00
IMPROVE-APP-PLAN.md Document CG observed-use session and draft action-first home flows. 2026-07-29 13:14:57 -03:00
IMPROVE-CODE-QUALITY-PLAN.md chore: delete legacy skills 2026-07-30 12:22:06 -03:00
PAYLOAD-REFERENCE.md chore: format docs 2026-07-30 05:22:58 -03:00
roadmap.md feat: convert roadmap items to issues + model properties 2026-07-30 12:22:05 -03:00
TECH-DEBT.md chore: format seed and workflow files 2026-07-30 04:45:44 -03:00
TESTING.md fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00