feat: improve dataservice OpenAPI response viewer#1100
Open
Samuelfaure wants to merge 1 commit into
Open
Conversation
ffc30f0 to
7c8a9bb
Compare
- move each field's example below its description - darken description text and tree-node borders for contrast - add per-node collapse/expand with a global "Ouvrir tout / Fermer tout" control, defaulting to fully expanded API-6768
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
Improves the "Données renvoyées" OpenAPI response viewer on the dataservice detail page (API-6768):
examplenow renders below its description — reading order is title → description → example → children.gray-800) and tree-node borders (gray-300) for better contrast.Global open/close-all is coordinated through a provide/inject reactive signal (
openApiCollapse.ts), so it broadcasts to every node across all endpoints without a path registry, while individual node toggles stay independent.Test plan
Verified manually in the dev server against
api-sirene-open-data(spec with nested objects and arrays):hasExpandableNode; not exercised against a real flat schema)nuxt typecheckandeslintboth pass.Linear: https://linear.app/pole-api/issue/API-6768/ameliorer-lui-de-visualisation-des-donnees