-
Notifications
You must be signed in to change notification settings - Fork 115
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
UX improvements for "Add Blocks" widget with many block types #370
Comments
@ScopeyNZ yup @newleeland is on it. |
I guess we also need to show a limited number of blocks to start with (9 maybe, if it's three columns?). Then the search feature can show more. We probably need a way for devs to give priority to specific block types for their projects, e.g. where a "carousel block" is more used than a "content block" so they'd want to make sure it shows up by default rather than having to search for it each time. We could do that with a numeric config flag which could be increased in YAML to give a higher priority, but I'm not sure how that would work with GraphQL queries which expect DB values, and it would also mean having to filter a list of blocks in PHP rather than in the ORM query which might have a small performance hit. We could also just return the list of block types in PHP with no ORM queries at all, then problem solved. |
The long term goal sounds like it will allow CMS authors to categorise blocks. The short term "MVP" is to show a number in two columns (12 I think?) and have it scrollable. I think @newleeland is still finalising. |
Added designs to top comment for further breakdown of ACs |
Maximum-height was added as part of #406. Before I close this ticket I would like to add an automated way to test this, i.e. making it easy to add at least a dozen different block types. |
I'm only building a block generator which uses existing block types: silverstripe/silverstripe-frameworktest#49. You're correct that you should check this with a number of blocks. You could either adapt https://github.com/silverstripe/silverstripe-frameworktest/blob/master/code/tasks/FTPageTypeCreatorTask.php, or just do it manually. But don't let this card be blocked by my (somewhat unrelated) block generator work |
Alrighty, thanks for the update @chillu. Will proceed manually... for now! ;) |
Hi @newleeland, The design looks slightly different, but I used the measurements provided.... 🤔 |
Made some minor adjustment in #413 - had to be more precise in regards to the elements - and now the title of the last elements are shown in the popover. Are you happy with that? |
Showed @newleeland in person and got approval! 😀 Requested that the search bar stays fixed to the top of the popover when one scrolls through the available block types. Logged as a separate issue in #414 |
Follow up from #338.
#338 has implemented the content of a popover that will be used to add blocks to a page. Currently all blocks will show in the popover. This will be an issue given project may have many block types.
We should at least implement a max-height for this widget and allow scrolling (or similar) when there are many blocks.
Designs: https://projects.invisionapp.com/dsm/silver-stripe/silver-stripe/asset/components/5b90499d4d45900010a7be60
The text was updated successfully, but these errors were encountered: