teqo-backup/src/components/campaign/shared
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
..
AsyncSearchCombobox.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
CampaignCellEditOverlay.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
CampaignCellTooltip.tsx E10 /simplify: remove superficie morta, unifica o parser de enum repetivel e reusa o ranking A11 2026-07-25 22:33:16 -03:00
CampaignCollapsibleFilterPanel.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CampaignColumnPicker.tsx B17 simplify: inherit header labels, split persist from refresh. 2026-07-28 09:17:46 -03:00
CampaignCopyableCell.tsx Fix /campanha/liderancas 500: RSC-safe phone display 2026-07-26 20:16:01 -03:00
CampaignFilterChips.tsx B33+: shared list filter navigation hook 2026-07-27 09:05:08 -03:00
CampaignFormActionMessage.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CampaignHeaderFilterPopover.tsx Polish selected-first filter shells after simplify. 2026-07-28 18:37:05 -03:00
CampaignHoverTooltip.tsx feat(E10+): Escala e DRY pós-E10 2026-07-29 23:18:25 -03:00
CampaignInfoHint.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignListEmptyState.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignListFooter.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignListPagination.tsx Pass 2 W4b: zero exports mortos; knip exports/types/enumMembers em ERROR no CI 2026-07-25 15:51:52 -03:00
CampaignListPending.tsx B33+: shared list filter navigation hook 2026-07-27 09:05:08 -03:00
CampaignListSheetHost.tsx fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
CampaignMetricStrip.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignMobileMultiFilterField.tsx Polish selected-first filter shells after simplify. 2026-07-28 18:37:05 -03:00
CampaignScopeBadge.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignSearchForm.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
CampaignSearchInput.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
CampaignSortableHead.tsx B21: cria página própria dos territórios 2026-07-25 21:50:24 -03:00
CampaignTable.tsx B17: column picker on the seven CampaignTable list surfaces. 2026-07-28 08:25:16 -03:00
CampaignUserAvatar.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
CampaignWizardShell.tsx B75: wizard mobile header chrome on Mandate Red bar. 2026-07-30 03:26:54 -03:00
ConsentText.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
ContactCombobox.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
LeadershipStateDeputyRelationCell.tsx B37 simplify: one membership delta, cap messages named once. 2026-07-28 10:25:47 -03:00
MunicipalityPortfolioCell.tsx B37 simplify: one membership delta, cap messages named once. 2026-07-28 10:25:47 -03:00
RelationChipCell.tsx B34+: scale and DRY after municipality chip lists. 2026-07-28 19:49:29 -03:00
RelationMultiSelect.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
StrictCombobox.tsx Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
useCampaignCellAutosave.ts B32+: share the campaign JSON route wrapper, fetch helper and cell auto-save. 2026-07-28 08:07:29 -03:00
useCampaignCellFailureChannel.ts B32+: share the campaign JSON route wrapper, fetch helper and cell auto-save. 2026-07-28 08:07:29 -03:00
useCampaignFilterValues.ts Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
useCampaignFormSuccessToast.ts Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
useCampaignListFilterNavigation.ts B33+: close the /simplify rounds on the shared list filter hook 2026-07-27 09:39:15 -03:00
useMunicipalitySavedFilters.ts Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
WizardExpectedVotesStep.tsx B77+: simplify vote wizard helpers after single-screen delivery. 2026-07-30 03:40:20 -03:00
WizardMunicipalitySearchStep.tsx B75: wizard mobile header chrome on Mandate Red bar. 2026-07-30 03:26:54 -03:00
WizardMunicipalitySelectedStub.tsx B75: wizard mobile header chrome on Mandate Red bar. 2026-07-30 03:26:54 -03:00