Implement full Novu integration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 20:03:16 +00:00
parent 93a77bf091
commit 53d8a130f5
4 changed files with 514 additions and 128 deletions

54
src/types/location.ts Normal file
View 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;
}