gantt-board/src/stores/useGanttStore.ts
Matt Bruce 7badcb8bba Complete rewrite: Project Hub with Kanban board and threaded notes
- Replaced broken Gantt chart with working Kanban board
- Added task types: idea, task, bug, research, plan
- Added status columns: backlog, in-progress, review, done
- Added priority levels: low, medium, high, urgent
- Implemented 1-to-many threaded comments/notes system
- Added working CRUD for projects and tasks
- Added shadcn/ui components: badge, button, card, dialog, label, select, table, textarea
- Data persistence with Zustand + localStorage
- Fixed all UI overlap issues
2026-02-18 09:32:47 -06:00

62 lines
1.2 KiB
TypeScript

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'
}
]
}))