refactor: generate and use Supabase TypeScript types

Co-authored-by: Moheeb Zara <1184415+virgilvox@users.noreply.github.com>
This commit is contained in:
v0
2026-03-11 08:12:39 +00:00
co-authored by Moheeb Zara
parent c34d5d9529
commit 2e136b5f55
18 changed files with 1135 additions and 342 deletions
+2 -11
View File
@@ -3,18 +3,9 @@
import { useState } from 'react'
import { Plus, X } from 'lucide-react'
import { createProject, updateProjectStatus, deleteProject } from '@/lib/actions'
import type { Tables } from '@/types/database'
interface Project {
id: string
title: string
description?: string
status: string
area?: string
tags?: string[]
progress?: number
due_date?: string
created_at: string
}
type Project = Tables<'projects'>
const STATUS_COLS = [
{ key: 'backlog', label: 'BACKLOG', color: 'text-muted-foreground', dot: 'bg-muted-foreground' },