teqo/src/components/campaign/dashboard
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
..
CampaignDashboard.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CampaignDataFreshness.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CampaignHomeActionButton.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
CampaignHomeActions.tsx B58: polish Início action strip and centralize coarse press state. 2026-07-29 16:10:24 -03:00
CampaignHomeActionStrip.tsx fix(campanha): restore wizard links on desktop home action strip 2026-07-30 01:41:21 -03:00
CampaignHomeLayout.tsx B66: retract home chrome on search focus with animated transition. 2026-07-30 01:21:37 -03:00
CampaignHomeSearch.tsx B68: curated municipality suggestions on empty home search focus. 2026-07-29 22:06:02 -03:00
CampaignHomeStaffChrome.tsx B65: anchor Início search and action strip to the mobile bottom. 2026-07-29 22:35:44 -03:00
CampaignHomeSummary.tsx B56: staff campaign summary on Início (central votes + E8 coverage). 2026-07-29 17:55:37 -03:00
HomeSearchActivityGroup.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
HomeSearchAdvisorGroup.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
HomeSearchContext.tsx B47: staff-only home search input with focused mode hiding action strip. 2026-07-29 15:31:46 -03:00
HomeSearchDemandGroup.tsx feat(campanha): add Demandas group to home global search (B53) 2026-07-30 12:39:35 -03:00
HomeSearchHitRow.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
HomeSearchLeadershipGroup.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
HomeSearchMunicipalityGroup.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
HomeSearchMunicipalityVoteTrailing.tsx B60: wizard municipality search step with shared staff loader. 2026-07-29 23:10:06 -03:00
HomeSearchResultsContext.tsx B68: curated municipality suggestions on empty home search focus. 2026-07-29 22:06:02 -03:00
HomeSearchResultsShell.tsx B50: home search Assessores group for unrestricted staff. 2026-07-29 22:09:42 -03:00
HomeSearchStateDeputyGroup.tsx B71: polish home search results (bleed hover, list-none, sentence-case headings). 2026-07-30 01:27:05 -03:00
NearestMunicipalityCard.tsx Resolve Salvador ZE in the staff "Onde estou" card (B14 / B8 F2-D1). 2026-07-29 07:56:58 -03:00
RecentlyVisitedCard.tsx simplify(B14): corrige o mecanismo da fronteira, estado unsupported e duplicatas 2026-07-26 18:03:44 -03:00
RecentVisitTracker.tsx Tooling: prettier como autoridade de formatacao (organize-imports deterministico, scripts format/format:check, normalizacao mecanica de 312 arquivos; artefatos gerados e migrations excluidos via .prettierignore) 2026-07-25 17:22:20 -03:00
useHomeSearchQuery.ts B68: curated municipality suggestions on empty home search focus. 2026-07-29 22:06:02 -03:00