teqo-backup/src/components/campaign
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
..
activity B51: add Atividades group to staff home search. 2026-07-29 22:57:02 -03:00
advisor Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
auth Simplify the WebAuthn adoption: an error branch that could not reach a screen. 2026-07-28 12:30:36 -03:00
dashboard fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
demand Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
invite B69: simplify the leadership model to exclusive + drop sector/consentNote. 2026-07-30 02:32:56 -03:00
leadership refactor(campanha): simplify B70 wizard loader and tile a11y. 2026-07-30 03:51:25 -03:00
map B13+: concordância LQ, readout de escopo no mapa e DRY do build de agregados. 2026-07-29 16:26:43 -03:00
municipality fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
organization Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
shared fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
shell fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
stateDeputy Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
suggestion Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
supporter B17+: skip relation loaders when columns hidden and keep column picker on empty lists. 2026-07-29 07:53:07 -03:00
tour Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
votePledge B77: replace vote wizard ?cenario= ritual with single-screen editor. 2026-07-30 03:31:57 -03:00