Close first threshold claim by default on compose screen
Drop the defaultOpen={i===0} on the first threshold_claim — when a
case has a lot of material already on screen (research background
+ chair positions + now precedents), auto-opening the first card
creates a wall of text on page load. All cards now start collapsed,
same as the issues list already did.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -903,18 +903,18 @@
|
|||||||
"description": "Add case_precedents table + FastAPI endpoints + MCP tools + Next.js compose UI for attaching legal precedents (quote + citation + optional archived PDF) to threshold_claims/issues and to the case as a whole. Plan: ~/.claude/plans/woolly-cooking-graham.md",
|
"description": "Add case_precedents table + FastAPI endpoints + MCP tools + Next.js compose UI for attaching legal precedents (quote + citation + optional archived PDF) to threshold_claims/issues and to the case as a whole. Plan: ~/.claude/plans/woolly-cooking-graham.md",
|
||||||
"details": "",
|
"details": "",
|
||||||
"testStrategy": "",
|
"testStrategy": "",
|
||||||
"status": "in-progress",
|
"status": "done",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"priority": "high",
|
"priority": "high",
|
||||||
"subtasks": [],
|
"subtasks": [],
|
||||||
"updatedAt": "2026-04-11T19:13:41.219Z"
|
"updatedAt": "2026-04-11T19:20:56.040Z"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lastModified": "2026-04-11T19:13:41.220Z",
|
"lastModified": "2026-04-11T19:20:56.040Z",
|
||||||
"taskCount": 60,
|
"taskCount": 60,
|
||||||
"completedCount": 56,
|
"completedCount": 57,
|
||||||
"tags": [
|
"tags": [
|
||||||
"master"
|
"master"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -146,12 +146,11 @@ export default function ComposePage({
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
{analysis.data.threshold_claims.map((tc, i) => (
|
{analysis.data.threshold_claims.map((tc) => (
|
||||||
<SubsectionCard
|
<SubsectionCard
|
||||||
key={tc.id}
|
key={tc.id}
|
||||||
caseNumber={caseNumber}
|
caseNumber={caseNumber}
|
||||||
item={tc}
|
item={tc}
|
||||||
defaultOpen={i === 0}
|
|
||||||
precedents={precedentsBySection.get(tc.id) ?? []}
|
precedents={precedentsBySection.get(tc.id) ?? []}
|
||||||
practiceArea={practiceArea}
|
practiceArea={practiceArea}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user