File size: 1,028 Bytes
e1cc3bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export interface Customer {
  id: string;
  name: string;
  segment: string;
  annualRevenue: number;
  employeeCount: number;
  accountAge: number;
  engagementScore: number;
  supportTickets: number;
  nps: number;
}

export interface SegmentSummary {
  name: string;
  count: number;
  color: string;
}

export const SEGMENT_COLORS: Record<string, string> = {
  Enterprise: "#1e40af",
  "Mid-Market": "#0d9488",
  SMB: "#059669",
  Startup: "#6366f1",
};

export const SEGMENTS = ["Enterprise", "Mid-Market", "SMB", "Startup"] as const;
export type SegmentName = (typeof SEGMENTS)[number];

export const METRIC_LABELS: Record<string, string> = {
  annualRevenue: "Annual Revenue",
  employeeCount: "Employees",
  accountAge: "Account Age (mo)",
  engagementScore: "Engagement",
  supportTickets: "Support Tickets",
  nps: "NPS",
};

export const METRICS = [
  "annualRevenue",
  "employeeCount",
  "accountAge",
  "engagementScore",
  "supportTickets",
  "nps",
] as const;
export type MetricName = (typeof METRICS)[number];