mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 07:51:12 -05:00
Implement full Novu integration
This commit is contained in:
54
src/types/location.ts
Normal file
54
src/types/location.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Location & Info Type Definitions
|
||||
*
|
||||
* Centralized types for location, personal info, accessibility, and unit preferences.
|
||||
*/
|
||||
|
||||
import type { UnitPreferences } from '@/lib/units';
|
||||
|
||||
/**
|
||||
* Accessibility options stored in user_preferences.accessibility_options
|
||||
*/
|
||||
export interface AccessibilityOptions {
|
||||
font_size: 'small' | 'medium' | 'large';
|
||||
high_contrast: boolean;
|
||||
reduced_motion: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Profile location and personal information
|
||||
*/
|
||||
export interface ProfileLocationInfo {
|
||||
personal_location: string | null;
|
||||
home_park_id: string | null;
|
||||
timezone: string;
|
||||
preferred_language: string;
|
||||
preferred_pronouns: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Combined form data for Location tab
|
||||
*/
|
||||
export interface LocationFormData extends ProfileLocationInfo {}
|
||||
|
||||
/**
|
||||
* Park data for home park selection
|
||||
*/
|
||||
export interface ParkOption {
|
||||
id: string;
|
||||
name: string;
|
||||
location?: {
|
||||
city?: string;
|
||||
state_province?: string;
|
||||
country: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete location & info settings
|
||||
*/
|
||||
export interface LocationInfoSettings {
|
||||
profile: ProfileLocationInfo;
|
||||
accessibility: AccessibilityOptions;
|
||||
unitPreferences: UnitPreferences;
|
||||
}
|
||||
Reference in New Issue
Block a user