feat: add JSON Table preview for response pane#69
Open
khemthit wants to merge 1 commit into
Open
Conversation
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
Adds a Table view for JSON responses in the response pane as a tabular
alternative to the existing tree view. Tree remains the default; users opt in
with a Tree/Table toggle inside the JSON preview area. The choice persists
per tab.
Features
top-level keys, preserved in first-appearance order.
key | valuetable.level of the structure is visible at once, no clicking required.
a numeric, boolean, or
localeComparestring comparator per column.nullvalues sort last in both directions.across every column, including nested-cell previews.
values copy as pretty-printed JSON.
Implementation notes
(`tableState.ts`) are pure modules with 31 vitest unit tests in the
existing `node` test environment.
`FilterInput`, `JsonTablePreview`) are thin shells over those pure helpers.
(Tree mode overlay and Table mode toolbar).
`theme.colors.text.*`) match the convention in sibling files.
schema persists the user's choice per request tab. Default `null` resolves
to `tree`, so existing tabs are unaffected.