From f9f3156d49312f3b200e12ae4d93e661cc8ae499 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Tue, 17 Mar 2026 16:22:02 -0700 Subject: [PATCH] fix: PRD tracker shows sections complete (0 of 12), not internal phases Made-with: Cursor --- components/project-main/FreshIdeaMain.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/project-main/FreshIdeaMain.tsx b/components/project-main/FreshIdeaMain.tsx index fde444a..3e41d34 100644 --- a/components/project-main/FreshIdeaMain.tsx +++ b/components/project-main/FreshIdeaMain.tsx @@ -139,8 +139,10 @@ export function FreshIdeaMain({ projectId, projectName }: FreshIdeaMainProps) { ); } - const completedCount = savedPhaseIds.size; - const totalPhases = DISCOVERY_PHASES.length; + const completedSections = PRD_SECTIONS.filter(({ phase }) => + phase === null ? allDone : savedPhaseIds.has(phase) + ).length; + const totalSections = PRD_SECTIONS.length; return (
@@ -229,12 +231,12 @@ export function FreshIdeaMain({ projectId, projectName }: FreshIdeaMainProps) {
- {completedCount} of {totalPhases} phases complete + {completedSections} of {totalSections} sections complete