Skip to content

FEATURE: add collapsible JSON viewer to Document UI (#2441) #4241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ben-devsec
Copy link

Hello, this PR is in reference to the feature request: #2441

What’s new

  • Registered JsonViewer in DocumentViewMode for JSON-typed files
  • Shows a Blueprint Spinner while loading, and an error state if fetching/parsing fails or file size > 2.5 MB
  • Renders JSON as a tree:
    • First two levels expanded by default
    • Clickable brackets/braces to expand/collapse deeper nodes
  • Highlights search terms passed via ?q= in the URL
  • Wrapped in <pre> for clean monospace formatting

Changed files

  • ui/src/components/Document/DocumentViewMode.jsx
  • ui/src/viewers/JsonViewer.jsx
  • ui/src/viewers/JsonViewer.scss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants