-
Notifications
You must be signed in to change notification settings - Fork 32
✨ [Frontend] Pretty JSON objects #7710
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
✨ [Frontend] Pretty JSON objects #7710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a pretty-print feature for JSON objects in info buttons using the JsonFormatter library. Key changes include:
- Adding the unminified JsonFormatter library as a static resource.
- Refactoring the JsonTreeViewer and JsonFormatter wrappers for improved coding standards.
- Updating job info and dashboard components to integrate the new JSON formatting.
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| json-formatter-2.5.23.js | Added vendor file with the JsonFormatter library |
| JsonTreeViewer.js | Refactored variable declarations to use const for improved code consistency |
| JsonFormatter.js | New qooxdoo wrapper for the JsonFormatter library |
| Info.js | Updated to use the new JSON Formatter; includes unreachable legacy code |
| Dashboard.js | Initialized the new JsonFormatter wrapper |
| CardBase.js | Improved filter ID logic by extracting common functionality |
Files not reviewed (2)
- services/static-webserver/client/source/resource/jsonFormatter/json-formatter-2.5.23.css: Language not supported
- services/static-webserver/client/source/resource/jsontreeviewer/jsonTree.css: Language not supported
services/static-webserver/client/source/class/osparc/jobs/Info.js
Outdated
Show resolved
Hide resolved
…-simcore into feature/json-tree-viewer
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at e395992 |
|



What do these changes do?
This PR prettifies the JSON Objects shown in the info buttons of the Runs and Tasks. If wanted, this could become the default Json viewer in osparc.
In order to prettify them the 3rd party JsonFormatter library was used.
Related issue/s
How to test
Dev-ops