diff --git a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/plan/page.tsx b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/plan/page.tsx index c6949e6..ef29b27 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/plan/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/plan/page.tsx @@ -411,8 +411,15 @@ function SectionTile({ // Vision // ────────────────────────────────────────────────── - -function BriefPanel({ plan, projectId, onChange }: { plan: Plan; projectId: string; onChange: (p: Plan) => void; }) { +function BriefPanel({ + plan, + projectId, + onChange, +}: { + plan: Plan; + projectId: string; + onChange: (p: Plan) => void; +}) { const [draft, setDraft] = useState(plan.brief ?? ""); const [saving, setSaving] = useState(false); const [editing, setEditing] = useState(!plan.brief); @@ -445,7 +452,7 @@ function BriefPanel({ plan, projectId, onChange }: { plan: Plan; projectId: stri const handleFileUpload = async (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (!file) return; - + // For now we just read text files (txt, md, csv). // In the future you can send PDFs to an extraction API. const reader = new FileReader(); @@ -463,20 +470,106 @@ function BriefPanel({ plan, projectId, onChange }: { plan: Plan; projectId: stri
-

, - h1: ({ node, ...props }) =>

, - h2: ({ node, ...props }) =>

, - h3: ({ node, ...props }) =>

, - ul: ({ node, ...props }) =>
    , - ol: ({ node, ...props }) =>
      , - li: ({ node, ...props }) =>
    1. , - }}> + ( +

      + ), + h1: ({ node, ...props }) => ( +

      + ), + h2: ({ node, ...props }) => ( +

      + ), + h3: ({ node, ...props }) => ( +

      + ), + ul: ({ node, ...props }) => ( +
        + ), + ol: ({ node, ...props }) => ( +
          + ), + li: ({ node, ...props }) => ( +
        1. + ), + }} + > {plan.brief}

@@ -488,15 +581,48 @@ function BriefPanel({ plan, projectId, onChange }: { plan: Plan; projectId: stri
{!plan.brief && (
-

- No project brief uploaded. You can paste your PRD, requirements document, or notes below. The AI will read this to understand the full scope of your project. +

+ No project brief uploaded. You can paste your PRD, requirements + document, or notes below. The AI will read this to understand the + full scope of your project.

-
-