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:
2026-04-11 19:27:28 +00:00
parent 6b8f002596
commit e34d217345
2 changed files with 5 additions and 6 deletions

View File

@@ -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",
"details": "",
"testStrategy": "",
"status": "in-progress",
"status": "done",
"dependencies": [],
"priority": "high",
"subtasks": [],
"updatedAt": "2026-04-11T19:13:41.219Z"
"updatedAt": "2026-04-11T19:20:56.040Z"
}
],
"metadata": {
"version": "1.0.0",
"lastModified": "2026-04-11T19:13:41.220Z",
"lastModified": "2026-04-11T19:20:56.040Z",
"taskCount": 60,
"completedCount": 56,
"completedCount": 57,
"tags": [
"master"
]

View File

@@ -146,12 +146,11 @@ export default function ComposePage({
</span>
</div>
<div className="space-y-3">
{analysis.data.threshold_claims.map((tc, i) => (
{analysis.data.threshold_claims.map((tc) => (
<SubsectionCard
key={tc.id}
caseNumber={caseNumber}
item={tc}
defaultOpen={i === 0}
precedents={precedentsBySection.get(tc.id) ?? []}
practiceArea={practiceArea}
/>