teqo-backup/src/components/campaign/municipality
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
..
MunicipalityAdvisorAvatarStack.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityAdvisorsForm.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityBaselineCard.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityCandidateComparisonTable.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityDossier.tsx B69: simplify the leadership model to exclusive + drop sector/consentNote. 2026-07-30 02:32:56 -03:00
MunicipalityEstimateScenarioContext.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
MunicipalityFilters.tsx feat(E10+): Escala e DRY pós-E10 2026-07-29 23:18:25 -03:00
MunicipalityGoalAccountCard.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityHeaderFilter.tsx Remove Tipo column and list kind filter from municipality list. 2026-07-29 07:42:47 -03:00
MunicipalityLeadershipsPanel.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityLevelBadge.tsx E14: engagement levels N0-N4 and the first allocationDecision writer. 2026-07-27 21:19:33 -03:00
MunicipalityList.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListAdvisorsControl.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityListExpectedVotesControl.tsx B77+: simplify vote wizard helpers after single-screen delivery. 2026-07-30 03:40:20 -03:00
MunicipalityListGoalCoverageCell.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityListLevelControl.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListMobileCards.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListMobileSection.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListOverview.tsx Fill-in: move estimate scenario into municipality list filters. 2026-07-29 15:27:46 -03:00
MunicipalityListRowReadouts.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListSignalControl.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
MunicipalityListTrendControl.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityPledgesPanel.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityPriorityIndicator.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalitySignalFields.tsx B62: simplify the signal model to type + text (drop fonte/triangulado). 2026-07-29 23:24:00 -03:00
MunicipalitySortableHead.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityStrategyCard.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityStrategyForm.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityTabNav.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityUpdateFeed.tsx B62: simplify the signal model to type + text (drop fonte/triangulado). 2026-07-29 23:24:00 -03:00
MunicipalityUpdateForm.tsx B62: simplify the signal model to type + text (drop fonte/triangulado). 2026-07-29 23:24:00 -03:00
MunicipalityVisitEligibilityCard.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
MunicipalityVotePositionReadout.tsx B48: home search results for municipalities and identity territories. 2026-07-29 16:05:56 -03:00
MunicipalityZoneNeighborhoodsCard.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
SaveMunicipalityFilterControl.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TerritoryFilters.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TerritoryHeaderFilter.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TerritoryLink.tsx B25: link do território na lista de municípios 2026-07-26 18:59:49 -03:00
TerritoryList.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TerritoryListColumns.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TerritorySortableHead.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
TseZoneBadge.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
WizardSignalBodyStep.tsx chore: format B63 wizard signal files. 2026-07-30 04:03:11 -03:00
WizardSignalSkipTrailing.tsx B63+: wire wizard signal steps to B75 chrome and DRY skip. 2026-07-30 04:01:49 -03:00
WizardSignalTypeStep.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00