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

Enable use of previews for inlined objects in documents, just like for arrays #1398

Closed
bjornwang opened this issue Jun 26, 2019 · 2 comments
Closed
Labels

Comments

@bjornwang
Copy link

Is your feature request related to a problem? Please describe.
Sanity documents grow very long, and endless scrolling in forms doesn't give a good overview. Optional fields in particular take up valuable space.

Consider the following example of an inlined product summary object, which steals a lot of vertical space in an otherwise long document, and where the image field is also optional.

image

To optimize use of space, we've wrapped the image in collapsed fieldset, but this poses another problem, as the editor can no longer see if an image is present without expanding the fieldset.

Describe the solution you'd like
To save space, make forms more scannable and give a quicker overview of contwnt, enable collapsing inlined objects like the product summary in the example into "previews" just like for arrays.

For our example, we could get away with something as short and sweet as this:

image

This is brief, scannable, helps with the overview of the document and gets out of the way if fields are left empty, like the optional image.

Also builds on your already great preview functionality, so should hopefully not be too hard to implement. :-)

@evenwestvang
Copy link
Member

This is a great suggestion and incidentally something I was discussing with @mariuslundgard just the other day. We should make sure we capture this for future rework of the form builder.

@kmelve
Copy link
Member

kmelve commented Jan 11, 2023

Hi!

We are currently working on improving our workflows and follow-up on our open GitHub repository. In that work, we have decided to close most issues older than the release of Sanity Studio v3.

We value your feedback, so if this issue is still important to you and relevant for Sanity Studio v3, please search for relevant open issues. If you can’t find any, open a new one and link to relevant comments in this thread. For questions about how to do something, please post them in the slack community.

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

No branches or pull requests

5 participants