Skip to content
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

Addition of custom JSON viewer #51

Merged
merged 6 commits into from
Jan 22, 2021
Merged

Addition of custom JSON viewer #51

merged 6 commits into from
Jan 22, 2021

Conversation

robpaveza
Copy link
Contributor

The react-json-view package, while convenient, was not keyboard- or screen-reader-accessible. This change introduces a custom JSON viewer, powered by the FAST-React <TreeView> control.

keyboard-accessibility-treeview-json

The easiest way to test this functionality (and the one demonstrated in the picture above) was to retrieve the content from https://petstore.swagger.io/v2/pet/findByStatus?status=sold and storing that in packages/devtools-network-console/public/dogs.json, running the application via npm run start, and then entering dogs.json in the URL field and clicking "Send". This allows that file to be downloaded, and the functionality can be tested.

Copy link

@brcui brcui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Left a comment.

This change introduces a new JSON viewer component. This component is
based on the FAST-React `<TreeView>` component with minor modifications
(which take place within CSS definitions). It removes the
react-json-view component, which cannot be navigated at all with the
keyboard.
@robpaveza robpaveza merged commit 4b02023 into main Jan 22, 2021
@robpaveza robpaveza deleted the feature/custom-jsonview branch January 22, 2021 22:39
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.

None yet

2 participants