This commit is contained in:
Tom Chien (IQ-AS)
2026-09-08 17:46:28 +08:00
commit e25c995560
55 changed files with 6928 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// Canonical region labels (spaces normalized), matching the Figma trend legend.
export const REGIONS = ["AMEA IT", "EMEA IT", "NABU IT", "PH IT", "JP IT"] as const;
export type Region = (typeof REGIONS)[number];
export const ALL_REGION = "All";
// Region filter options: "All" plus the five regions.
export const REGION_OPTIONS = [ALL_REGION, ...REGIONS];
// Cost Item filter options for the Dashboard.
export const COST_ITEM_OPTIONS = ["All", "Top 5", "Top 10"] as const;
export type CostItemFilter = (typeof COST_ITEM_OPTIONS)[number];
export function isRegion(value: string): value is Region {
return (REGIONS as readonly string[]).includes(value);
}