diff --git a/web-ui/src/app/cases/[caseNumber]/compose/page.tsx b/web-ui/src/app/cases/[caseNumber]/compose/page.tsx index 5a389a5..3d73766 100644 --- a/web-ui/src/app/cases/[caseNumber]/compose/page.tsx +++ b/web-ui/src/app/cases/[caseNumber]/compose/page.tsx @@ -9,7 +9,9 @@ import { Button } from "@/components/ui/button"; import { Skeleton } from "@/components/ui/skeleton"; import { SubsectionCard } from "@/components/compose/subsection-card"; import { PrecedentsSection } from "@/components/compose/precedents-section"; +import { DecisionBlocksPanel } from "@/components/cases/decision-blocks-panel"; import { Markdown } from "@/components/ui/markdown"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useCase, type CaseStatus } from "@/lib/api/cases"; import { useResearchAnalysis } from "@/lib/api/research"; import { useCasePrecedents } from "@/lib/api/precedents"; @@ -257,7 +259,7 @@ export default function ComposePage({ {parties &&

{parties}

} - {analysis.isPending ? ( + {caseQuery.isPending ? ( @@ -266,31 +268,54 @@ export default function ComposePage({ - ) : isNotFound ? ( - - -
-

- טרם בוצע ניתוח משפטי לתיק זה -

-

- לאחר שקובץ analysis-and-research.md ייווצר, תוכלי - לערוך כאן את עמדת הוועדה לכל טענת סף וסוגיה. -

-
-
- ) : analysis.error ? ( - - -

{analysis.error.message}

-
-
- ) : analysis.data ? ( - /* ── Two-column workspace: main editor list + 320px side rail ──────── */ + ) : ( + /* ── Two-column workspace: tabbed main editor + 320px side rail ──── */
- {/* MAIN — the block/subsection editor list */} -
- {/* Threshold claims */} + {/* MAIN — block editor (default) + chair positions, as tabs (mockup 03) */} +
+ + + עורך הבלוקים + עמדות וטענות + + + {/* Tab 1 — the 12-block decision editor (reused DecisionBlocksPanel) */} + + + + + {/* Tab 2 — chair positions on the analyst's threshold-claims + issues */} + + {analysis.isPending ? ( + + + + + + + + ) : isNotFound ? ( + + +
+

+ טרם בוצע ניתוח משפטי לתיק זה +

+

+ לאחר שקובץ analysis-and-research.md ייווצר, תוכלי + לערוך כאן את עמדת הוועדה לכל טענת סף וסוגיה. +

+
+
+ ) : analysis.error ? ( + + +

{analysis.error.message}

+
+
+ ) : analysis.data ? ( +
+ {/* Threshold claims */} {analysis.data.threshold_claims && analysis.data.threshold_claims.length > 0 && (
@@ -365,6 +390,10 @@ export default function ComposePage({ )} +
+ ) : null} + +
{/* SIDE RAIL — documents · attached precedents · finish-and-transfer */} @@ -421,7 +450,7 @@ export default function ComposePage({ />
- ) : null} + )} ); }