mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
chore: delete dead exports flagged by knip (CI main estava vermelho no drift)
This commit is contained in:
parent
f5cc98463d
commit
de2d457cf9
5 changed files with 7 additions and 21 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
export const CAMPAIGN_LONG_PRESS_MS = 450
|
||||
const CAMPAIGN_LONG_PRESS_SLOP_PX = 10
|
||||
|
||||
export type CampaignLongPressPointerHandlers = {
|
||||
type CampaignLongPressPointerHandlers = {
|
||||
onPointerDown: (event: PointerEvent) => void
|
||||
onPointerMove: (event: PointerEvent) => void
|
||||
onPointerUp: (event: PointerEvent) => void
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export const WIZARD_MUNICIPALITY_SEARCH_EMPTY = 'Nenhum município encontrado.'
|
|||
|
||||
export const WIZARD_VOTES_SAVED_MESSAGE = 'Votos estimados atualizados.' as const
|
||||
|
||||
export const WIZARD_VOTES_NEXT_FLOW_PLACEHOLDER =
|
||||
const WIZARD_VOTES_NEXT_FLOW_PLACEHOLDER =
|
||||
'Próximo passo deste fluxo (sinal, tendência ou resumo) em breve.' as const
|
||||
|
||||
export const WIZARD_VOTES_FINAL_CTA_LABEL = 'Salvar estimativas →' as const
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/** Mirrors `p-4` / `md:p-6` on `campanha/(app)/layout.tsx` for full-bleed hit rows. */
|
||||
export const HOME_SEARCH_HIT_BLEED_CLASS = '-mx-4 px-4 md:-mx-6 md:px-6'
|
||||
const HOME_SEARCH_HIT_BLEED_CLASS = '-mx-4 px-4 md:-mx-6 md:px-6'
|
||||
|
||||
export const HOME_SEARCH_HIT_ROW_WRAPPER_CLASS = `${HOME_SEARCH_HIT_BLEED_CLASS} hover:bg-muted/60 focus-within:bg-muted/60`
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ type NearestInScope = {
|
|||
distanceKm: number
|
||||
}
|
||||
|
||||
export type InScopeMunicipalityMatch = 'municipality' | 'zoneContainment' | 'nearestZone'
|
||||
type InScopeMunicipalityMatch = 'municipality' | 'zoneContainment' | 'nearestZone'
|
||||
|
||||
export type NearbyMunicipalityResolution =
|
||||
/** The point falls inside a município the actor can open. */
|
||||
|
|
@ -190,7 +190,7 @@ export const featureCentroid = (feature: PolygonalFeature): GeoPoint => {
|
|||
* not by this scan's order: the mesh is TopoJSON-derived, so neighbours share
|
||||
* numerically identical arcs and never overlap.
|
||||
*/
|
||||
export const findContainingFeature = <F extends PolygonalFeature>(
|
||||
const findContainingFeature = <F extends PolygonalFeature>(
|
||||
features: readonly F[],
|
||||
point: GeoPoint,
|
||||
): F | undefined => features.find((feature) => featureContainsPoint(feature, point))
|
||||
|
|
@ -204,13 +204,13 @@ export const findContainingMunicipality = (
|
|||
* Past this, "o mais próximo na sua carteira" stops being a shortcut and starts
|
||||
* being noise — an advisor in Salvador does not need a link to Barreiras.
|
||||
*/
|
||||
export const NEAREST_IN_SCOPE_MAX_KM = 150
|
||||
const NEAREST_IN_SCOPE_MAX_KM = 150
|
||||
|
||||
/**
|
||||
* When the point is inside Salvador's municipal polygon but outside every ZE
|
||||
* polygon, only zones within this radius are offered as a direct link.
|
||||
*/
|
||||
export const NEAREST_ZONE_MAX_KM = 30
|
||||
const NEAREST_ZONE_MAX_KM = 30
|
||||
|
||||
const findNearestInScope = (
|
||||
getMunicipalityFeature: MunicipalityGeometryLookup['getMunicipalityFeature'],
|
||||
|
|
|
|||
|
|
@ -368,20 +368,6 @@ export const campoFederalVotesByCityZoneFromFederalSlice = (
|
|||
return votes
|
||||
}
|
||||
|
||||
/**
|
||||
* cityCode:zone → sum of nominal deputado-federal T1 votes for campo parties
|
||||
* (E8 "share intracampo"). One DB scan via the federal nominal slice.
|
||||
*/
|
||||
export const loadCampoFederalVotesByCityZone = async (
|
||||
payload: Payload,
|
||||
user: ElectionReader,
|
||||
{ year }: { year: number },
|
||||
): Promise<Map<string, number>> => {
|
||||
assertCanReadElectionData(user)
|
||||
const slice = await loadFederalVotesByCityZoneAndCandidate(payload, user, { year })
|
||||
return campoFederalVotesByCityZoneFromFederalSlice(slice, year)
|
||||
}
|
||||
|
||||
/** Folds `loadFederalVotesByCityZoneAndCandidate` over one municipality's cityCode×zones. */
|
||||
export const sumCandidateVotesForGeography = (
|
||||
votesByCityZoneAndCandidate: Map<string, Map<number, FederalNominalVoteCell>>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue