Add new project statuses to ProjectsWidget and ProjectCard

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kyle 2026-02-23 00:40:19 +08:00
parent b5ec38f4b8
commit 7ae19a7cfe
2 changed files with 10 additions and 1 deletions

View File

@ -7,10 +7,13 @@ interface ProjectsWidgetProps {
projects: Project[];
}
const statusColors = {
const statusColors: Record<string, string> = {
not_started: 'bg-gray-500/10 text-gray-500 border-gray-500/20',
in_progress: 'bg-accent/10 text-accent border-accent/20',
completed: 'bg-green-500/10 text-green-500 border-green-500/20',
blocked: 'bg-red-500/10 text-red-500 border-red-500/20',
review: 'bg-yellow-500/10 text-yellow-500 border-yellow-500/20',
on_hold: 'bg-orange-500/10 text-orange-500 border-orange-500/20',
};
export default function ProjectsWidget({ projects }: ProjectsWidgetProps) {

View File

@ -14,12 +14,18 @@ const statusColors: Record<string, string> = {
not_started: 'bg-gray-500/10 text-gray-400 border-gray-500/20',
in_progress: 'bg-purple-500/10 text-purple-400 border-purple-500/20',
completed: 'bg-green-500/10 text-green-400 border-green-500/20',
blocked: 'bg-red-500/10 text-red-400 border-red-500/20',
review: 'bg-yellow-500/10 text-yellow-400 border-yellow-500/20',
on_hold: 'bg-orange-500/10 text-orange-400 border-orange-500/20',
};
const statusLabels: Record<string, string> = {
not_started: 'Not Started',
in_progress: 'In Progress',
completed: 'Completed',
blocked: 'Blocked',
review: 'Review',
on_hold: 'On Hold',
};
export default function ProjectCard({ project }: ProjectCardProps) {