stoplightio / json-schema-viewer

A JSON Schema viewer React component
Apache License 2.0
175 stars 37 forks source link

feat: tree-ui and path crumbs #179

Closed marbemac closed 2 years ago

marbemac commented 2 years ago

closes https://github.com/stoplightio/platform-internal/issues/9189

Apologies in advance for the large PR - if it's too much I can take some time to try and break it out into 2 or 3 PRs just LMK.


Tree "guidelines" + crumbs:

2021-11-29 19 01 42

Screen Shot 2021-11-29 at 7 05 34 PM

Small adjustments to the validations layout, including a fix such that long validations (like the long example in the first row) do not push the "custom row addon" off the page. Note how in the first image, the checkbox on the right side is pushed outside of the JSV container.

Before

Screen Shot 2021-11-30 at 3 57 43 PM

After

Screen Shot 2021-11-30 at 3 56 47 PM

Dark mode still works nicely:

Screen Shot 2021-11-30 at 4 58 26 PM
stoplight-bot commented 2 years ago

:tada: This PR is included in version 4.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: