style: format após rebase com B155

This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-08-04 02:56:05 -03:00
parent 9780bb23df
commit bd3ba5c2a5

View file

@ -87,17 +87,18 @@ export default async function MunicipalitiesPage({ searchParams }: Municipalitie
...filterFacets.advisorIDs, ...filterFacets.advisorIDs,
]), ]),
] ]
const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] = await Promise.all([ const [advisorSummaries, advisorOptions, leadershipOptions, stateDeputyOptions] =
isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [], await Promise.all([
// Only the coordinator-only assign-advisors control consumes these. isStaffView ? loadAdvisorSummaries(payload, user, advisorIDs) : [],
isCoordinator ? getEligibleAdvisorOptions(payload, user) : [], // Only the coordinator-only assign-advisors control consumes these.
// All staff edit the Lideranças column (scoped server-side); the leader isCoordinator ? getEligibleAdvisorOptions(payload, user) : [],
// never reaches this page (`gate: noLeader`). // All staff edit the Lideranças column (scoped server-side); the leader
isStaffView ? getEligibleLeadershipOptions(payload, user) : [], // never reaches this page (`gate: noLeader`).
// B157 — the Dobradinhas column is coordinator + candidate only; the isStaffView ? getEligibleLeadershipOptions(payload, user) : [],
// catalog serves the avatar-stack display, the tooltip and the search. // B157 — the Dobradinhas column is coordinator + candidate only; the
canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [], // catalog serves the avatar-stack display, the tooltip and the search.
]) canMoveEngagementLevel ? loadStateDeputyOptions(payload, user) : [],
])
const advisorNamesById = new Map(advisorSummaries.map((advisor) => [advisor.id, advisor])) const advisorNamesById = new Map(advisorSummaries.map((advisor) => [advisor.id, advisor]))
const selectedAdvisorIDs = new Set(state.advisors ?? []) const selectedAdvisorIDs = new Set(state.advisors ?? [])