import { create } from 'zustand'

interface Task {
  id: string
  name: string
  start: string
  end: string
  progress: number
  project: string
}

interface GanttStore {
  projects: string[]
  tasks: Task[]
}

export const useGanttStore = create<GanttStore>((set) => ({
  projects: ['OpenClaw iOS', 'BedrockTestApp', 'Web Gantt Board', 'Viral iOS Research', 'Self-Improvement'],
  tasks: [
    {
      id: '1',
      name: 'BedrockTestApp Icons',
      start: '2026-02-17',
      end: '2026-02-18',
      progress: 50,
      project: 'BedrockTestApp'
    },
    {
      id: '2',
      name: 'Bedrock Assets Complete',
      start: '2026-02-18',
      end: '2026-02-20',
      progress: 20,
      project: 'BedrockTestApp'
    },
    {
      id: '3',
      name: 'MoodWeave Recreate',
      start: '2026-02-18',
      end: '2026-02-25',
      progress: 0,
      project: 'OpenClaw iOS'
    },
    {
      id: '4',
      name: 'Gantt Firebase Auth',
      start: '2026-02-18',
      end: '2026-02-21',
      progress: 0,
      project: 'Web Gantt Board'
    },
    {
      id: '5',
      name: 'Viral iOS Research',
      start: '2026-02-17',
      end: '2026-02-24',
      progress: 10,
      project: 'Viral iOS Research'
    }
  ]
}))
