Skip to content

Commit

Permalink
refactor(config-types): Add accessibility score
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 28, 2023
1 parent 1c9f6e3 commit 4f9cc21
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/util/config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,23 @@ export interface ModeColorConfig {
}

export interface TransitOperatorConfig extends TransitOperator {
colorMode: 'gtfs' | 'gtfs-softened' | 'disabled'
modeColors: Record<string, ModeColorConfig>
colorMode?: 'gtfs' | 'gtfs-softened' | 'disabled'
modeColors?: Record<string, ModeColorConfig>
}

export interface AccessibilityScoreThresholdConfig {
color: string
icon: string
text?: string
}

export interface AccessibilityScoreConfig {
gradationMap: Record<string, AccessibilityScoreThresholdConfig>
}

/** The main application configuration object */
export interface AppConfig {
accessibilityScore?: AccessibilityScoreConfig
api: ApiConfig
// Optional on declaration, populated with defaults in reducer if not configured.
autoPlan: AutoPlanConfig
Expand Down

0 comments on commit 4f9cc21

Please sign in to comment.