fix: map Non-Functional Reqs to features_scope phase, remove circular 'Generated when PRD finalized' hint

Made-with: Cursor
This commit is contained in:
2026-03-17 17:15:26 -07:00
parent 062e836ff9
commit 8eb6c149cb
3 changed files with 4 additions and 7 deletions

View File

@@ -1022,7 +1022,7 @@ function PrdContent({ projectId }: { projectId: string }) {
)}
{!s.isDone && (
<div style={{ marginTop: 5, marginLeft: 32, fontSize: "0.7rem", color: "#c5c0b8" }}>
{s.phaseId ? "Complete this phase in Vibn" : "Generated when PRD is finalized"}
Complete this phase in Vibn
</div>
)}
</div>

View File

@@ -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" },
];

View File

@@ -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) {
</div>
{!isDone && (
<div style={{ fontSize: "0.65rem", color: "#a09a90", marginTop: 2, lineHeight: 1.3 }}>
{phase === null
? "Generated when PRD is finalized"
: "Complete this phase in Vibn"
}
Complete this phase in Vibn
</div>
)}
</div>