Default JSON log-line viewer nodes to collapsed

A log line whose text parses as JSON was rendering every nested node
fully expanded, dumping large payloads into the timeline instead of a
collapsed summary the user opts into expanding.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TeyhRfMYjMditek6geDRoQ
This commit is contained in:
Hugh Kaznowski
2026-09-07 12:19:47 +01:00
co-authored by Claude Sonnet 5
parent 49bfd6b020
commit 2cc8ac8138
6 changed files with 22 additions and 136 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ function JsonNode({
entries: ReadonlyArray<readonly [string, unknown]>
bracket: [string, string]
}) {
const [expanded, setExpanded] = useState(true)
const [expanded, setExpanded] = useState(false)
if (entries.length === 0) {
return (