From 8bf872142b7ecc864a0f05cc1a8574686ca9c64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Tue, 28 Jul 2026 08:27:19 -0300 Subject: [PATCH] Give B29's leadership columns their B17 labels. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rebase landed B29's sort/filter heads on /campanha/liderancas next to B17's now-required `label`, and the two do not substitute for each other: B17 dropped heads that only restated a label, but these carry the sort and filter controls, so both sides survive on the same column. `updatedAt` is new from B29 and had no label at all. The four sortable ones read from `leadershipListSortLabels` rather than repeating the string, which is the treatment B17 already gave municípios and dobradinhas — the picker's label and the sort summary cannot drift now. --- src/app/(campaign)/campanha/(app)/liderancas/page.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/(campaign)/campanha/(app)/liderancas/page.tsx b/src/app/(campaign)/campanha/(app)/liderancas/page.tsx index 1bb6c4a1..36f6d7dc 100644 --- a/src/app/(campaign)/campanha/(app)/liderancas/page.tsx +++ b/src/app/(campaign)/campanha/(app)/liderancas/page.tsx @@ -59,6 +59,7 @@ import { import { buildLeadershipListHref, formatLeadershipListSortSummary, + leadershipListSortLabels, resolveLeadershipListSort, resolveLeadershipListUrl, type LeadershipListState, @@ -126,7 +127,7 @@ const leadershipColumns = ({ }): Array> => [ { id: 'name', - label: 'Nome', + label: leadershipListSortLabels.name, mandatory: true, head: ( @@ -162,7 +163,7 @@ const leadershipColumns = ({ }, { id: 'supportStatus', - label: 'Status', + label: leadershipListSortLabels.supportStatus, head: ( Status @@ -174,7 +175,7 @@ const leadershipColumns = ({ }, { id: 'sector', - label: 'Setor', + label: leadershipListSortLabels.sector, head: ( Setor @@ -256,6 +257,7 @@ const leadershipColumns = ({ }, { id: 'updatedAt', + label: leadershipListSortLabels.updatedAt, head: ( Última atualização