Give B29's leadership columns their B17 labels.

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.
This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-28 08:27:19 -03:00
parent 155f6492d9
commit 8bf872142b

View file

@ -59,6 +59,7 @@ import {
import {
buildLeadershipListHref,
formatLeadershipListSortSummary,
leadershipListSortLabels,
resolveLeadershipListSort,
resolveLeadershipListUrl,
type LeadershipListState,
@ -126,7 +127,7 @@ const leadershipColumns = ({
}): Array<CampaignTableColumn<LeadershipRowViewModel>> => [
{
id: 'name',
label: 'Nome',
label: leadershipListSortLabels.name,
mandatory: true,
head: (
<LeadershipSortableHead state={state} sortKey="name">
@ -162,7 +163,7 @@ const leadershipColumns = ({
},
{
id: 'supportStatus',
label: 'Status',
label: leadershipListSortLabels.supportStatus,
head: (
<LeadershipSortableHead state={state} sortKey="supportStatus" filterParam="supportStatus">
Status
@ -174,7 +175,7 @@ const leadershipColumns = ({
},
{
id: 'sector',
label: 'Setor',
label: leadershipListSortLabels.sector,
head: (
<LeadershipSortableHead state={state} sortKey="sector" filterParam="sector">
Setor
@ -256,6 +257,7 @@ const leadershipColumns = ({
},
{
id: 'updatedAt',
label: leadershipListSortLabels.updatedAt,
head: (
<LeadershipSortableHead state={state} sortKey="updatedAt">
Última atualização