feat(ui): explorable JSON tree overlay for extraction ops column#776
Merged
feat(ui): explorable JSON tree overlay for extraction ops column#776
Conversation
Add an interactive tree viewer that maps the raw extraction ops JSON blob
to a navigable tree with eza-style box-drawing lines. The overlay opens
when pressing enter on the new Ops column in the Documents tab.
Key behaviors:
- Generic JSON tree viewer preserving exact structure from the blob
- Box-drawing tree lines (├─ └─ │) with precomputed prefixes
- +/- expand/collapse indicators with collapsed inline previews
- vim-style navigation (j/k/h/l/g/G/enter/esc) and mouse clicks
- Stable viewport size (padded to fully-expanded node count)
- Ops column with {} header indicator distinct from drilldown's ↘
- Demo extraction ops in seed data for immediate testing
closes #766
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename `close` to `cls` to avoid shadowing builtin (revive) - Check json.Marshal error return in demoExtractionOps (errchkjson) - Add documentColOps to exhaustive switch in inlineEditDocument - Use assert.Empty/require.Len instead of assert.Equal (testifylint) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… tree - collapsedPreview now uses ansi.StringWidth instead of byte length, fixing overflow with multi-byte UTF-8 characters in JSON values - Add left/right arrow key alternatives to h/l for consistency with j/k having up/down arrow equivalents Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
cpcloud
added a commit
that referenced
this pull request
Mar 19, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
├─ └─ │)cellOpskind with{}header indicator (distinct from drilldown's↘), wired into sort, mag format, rendering, and enter dispatchNavigation:
j/kmove cursor,hcollapses (or jumps to parent),l/enterexpand,g/Gjump to first/last,esccloses. Mouse clicks toggle expand/collapse.Design: collapsed nodes show inline previews (
{email: "...", name: "..."}), viewport stays stable size (padded to fully-expanded count),+/-indicators for expand state.closes #766
🤖 Generated with Claude Code