-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add: Selection and bulk actions to grid view. #58144
Add: Selection and bulk actions to grid view. #58144
Conversation
Size Change: +332 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
@jorgefilipecosta I've pushed some style adjustments. I think we probably need to include a checkbox otherwise it's not possible to perform a partial selection using the keyboard. I don't have a strong opinion about whether it appears next to the title (first row in screenshot below), or overlays the preview on hover (second row). It's probably one of those details that needs to be felt out. If you can add the checkbox I'm happy to work on those options. |
Flaky tests detected in 130ff21. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7725189620
|
Just quickly tested this and if the are clickable fields(like the title and preview), the Regarding the designs for the checkbox, I'd go with the one before the |
50db3d2
to
63cf98b
Compare
Hi @ntsekouras, @jameskoster, I updated the PR, it now includes a checkbox to select, and addressed the bug of clickable fields nested inside the grid item executing their action like navigating. |
3d0da49
to
ffc183e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jorgefilipecosta.
I pushed some styles for selected items.
For me the checkbox appearance is a bit prominent and would benefit from a reduction in size, but that's a detail to look at separately.
In terms of design the last piece missing is a click-to-select behavior on the card. I don't think we need that in this PR though so I'm happy to approve :)
This pull request introduces the ability to perform bulk actions and make selections using the grid view.
Currently, the only way to select items is by clicking them while holding down the command or ctrl key, or by using the bulk edit select all option. I plan to add support for other standard selection methods, such as using shift-click to select a range of items. Additionally, I will explore the possibility of adding a checkbox to the grid view. I am unsure if it should be visible by default or only appear when hovering over an item.
Screenshots