export type TaskStatus = 'todo' | 'in-progress' | 'done'
export type Priority = 'low' | 'medium' | 'high'

export interface LearningGoal {
  id: string
  title: string
  description: string
  category: string
  targetDate: string
  color: string
  createdAt: string
}

export interface LearningTask {
  id: string
  goalId: string
  title: string
  notes: string
  dueDate: string
  priority: Priority
  status: TaskStatus
  estimatedMinutes: number
  createdAt: string
}

export interface AppStateV1 {
  version: 1
  goals: LearningGoal[]
  tasks: LearningTask[]
}

export type AppView = 'dashboard' | 'goals' | 'tasks'

export interface LoadResult {
  state: AppStateV1
  warning?: string
}
