From 8eb6c149cb00d1ae0ad93b79e9df12608390980c Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Tue, 17 Mar 2026 17:15:26 -0700 Subject: [PATCH] fix: map Non-Functional Reqs to features_scope phase, remove circular 'Generated when PRD finalized' hint Made-with: Cursor --- app/[workspace]/project/[projectId]/build/page.tsx | 2 +- app/[workspace]/project/[projectId]/prd/page.tsx | 2 +- components/project-main/FreshIdeaMain.tsx | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/[workspace]/project/[projectId]/build/page.tsx b/app/[workspace]/project/[projectId]/build/page.tsx index 7ae5535..26c7368 100644 --- a/app/[workspace]/project/[projectId]/build/page.tsx +++ b/app/[workspace]/project/[projectId]/build/page.tsx @@ -1022,7 +1022,7 @@ function PrdContent({ projectId }: { projectId: string }) { )} {!s.isDone && (
- {s.phaseId ? "Complete this phase in Vibn" : "Generated when PRD is finalized"} + Complete this phase in Vibn
)} diff --git a/app/[workspace]/project/[projectId]/prd/page.tsx b/app/[workspace]/project/[projectId]/prd/page.tsx index e3b6342..216eba1 100644 --- a/app/[workspace]/project/[projectId]/prd/page.tsx +++ b/app/[workspace]/project/[projectId]/prd/page.tsx @@ -14,7 +14,7 @@ const PRD_SECTIONS = [ { id: "screen_specs", label: "Screen Specs", phaseId: "screens_data" }, { id: "business_model", label: "Business Model", phaseId: "business_model" }, { id: "integrations", label: "Integrations & Dependencies", phaseId: "features_scope" }, - { id: "non_functional", label: "Non-Functional Reqs", phaseId: null }, + { id: "non_functional", label: "Non-Functional Reqs", phaseId: "features_scope" }, { id: "risks", label: "Risks & Mitigations", phaseId: "risks_questions" }, { id: "open_questions", label: "Open Questions", phaseId: "risks_questions" }, ]; diff --git a/components/project-main/FreshIdeaMain.tsx b/components/project-main/FreshIdeaMain.tsx index 8971008..5195b33 100644 --- a/components/project-main/FreshIdeaMain.tsx +++ b/components/project-main/FreshIdeaMain.tsx @@ -25,7 +25,7 @@ const PRD_SECTIONS: { label: string; phase: string | null }[] = [ { label: "Screen Specs", phase: "features_scope" }, { label: "Business Model", phase: "business_model" }, { label: "Integrations & Dependencies", phase: "screens_data" }, - { label: "Non-Functional Reqs", phase: null }, // generated at PRD finalization + { label: "Non-Functional Reqs", phase: "features_scope" }, { label: "Risks & Mitigations", phase: "risks_questions" }, { label: "Open Questions", phase: "risks_questions" }, ]; @@ -242,10 +242,7 @@ export function FreshIdeaMain({ projectId, projectName }: FreshIdeaMainProps) { {!isDone && (
- {phase === null - ? "Generated when PRD is finalized" - : "Complete this phase in Vibn" - } + Complete this phase in Vibn
)}