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

User selection on payload properties in OpenAPI spec #2246

Closed
martinezdylan opened this issue Mar 28, 2024 · 1 comment · Fixed by #2249
Closed

User selection on payload properties in OpenAPI spec #2246

martinezdylan opened this issue Mar 28, 2024 · 1 comment · Fixed by #2249
Labels

Comments

@martinezdylan
Copy link

Bug description

The current user-selection is less than ideal from a UX perspective when double-clicking a property of a path in an OpenAPI spec rendering. Double-clicking the property name will select also the type or schema (doesn't seem to happen on required properties). Also, for object types, it expands when you click the property name - perhaps we should prevent the default action on text selection & only expand when you click the box around it (denoting the cursor as pointer when it's available). This will be smoother.

How to reproduce

  1. Navigate to https://docs.gitbook.com/content-editor/blocks/openapi#pet
  2. Attempt to copy id property name in the Body (it will select integer as well)
  3. Attempt to copy name property name in the Body (it will only select name)
  4. Attempt to copy tags property name in the Body (it will select array as well as expand the card)

Additional context

N/A

@SamyPesse
Copy link
Member

Nice idea 👍 fixed by #2249

You can give it a try at https://2e11bda3.gitbook-open.pages.dev/docs.gitbook.com/content-editor/blocks/openapi#pet

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

Successfully merging a pull request may close this issue.

2 participants