diff --git a/frontend/src/views/DashboardView.vue b/frontend/src/views/DashboardView.vue index bdd9bee..f71eb9a 100644 --- a/frontend/src/views/DashboardView.vue +++ b/frontend/src/views/DashboardView.vue @@ -7,7 +7,7 @@ interface TaskRow { id: number; title: string; status: string; priority: string interface MilestoneBlock { id: number; title: string; progress_pct: number; open_tasks: TaskRow[] } interface ActiveProject { id: number; title: string; color: string | null; last_activity: string; - open_count: number; progress_pct: number; + open_count: number; done_count: number; progress_pct: number; milestones: MilestoneBlock[]; no_milestone: TaskRow[]; } interface DoneItem { id: number; title: string; project_title: string | null; completed_at: string } @@ -22,6 +22,8 @@ interface DashboardData { const data = ref(null); const loading = ref(true); +const showAllDone = ref(false); +const DONE_VISIBLE = 5; onMounted(async () => { try { @@ -53,17 +55,25 @@ function fmtEvent(e: UpcomingEvent): string {