-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Dataviews: Add: Bulk actions to templates. #56615
Conversation
Size Change: +174 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
For me this is the use case where designers should give feedback. For example if an item has no actions at all, I guess we shouldn't show the selection checkbox. The most important thing IMO is how to handle if an item has actions, but we select two items that have different actions(one revert and the other delete). |
decodeEntities( templates.length ) | ||
) | ||
: sprintf( | ||
/* translators: The template/part's name. */ |
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.
For consistency with following translators comments, I'd suggest to use the same format:
/* translators: %s: The template or template part's name. */
) } | ||
{ templates.length > 1 | ||
? sprintf( | ||
// translators: %s: The template or template part's title. |
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.
This comment should refer to the number of items: translators: The number of items.
templates.length > 1 | ||
? sprintf( | ||
/* translators: The number of items. */ | ||
__( '%s items reverted reverted.' ), |
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.
Typo: double 'reverted'.
f6f00b1
to
c43ebb6
Compare
c43ebb6
to
43c3d85
Compare
Noting there's an ongoing discussion about the floating toolbar in the main 'bulk actions' PR, as it doesn't seem to be the most usable and accessible pattern. Aslo, quoting this comment from there:
|
6c28d98
to
8e0ab84
Compare
This PR implements bulk actions for templates.
The two bulk actions implemented are the revert template and the delete template.
Testing
Create two user templates verify it is possible to bulk delete them.
Apply user changes to some default templates, and verify it is possible to bulk revert them.
Screenshot