-
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
Patterns: Add rename command #55188
Patterns: Add rename command #55188
Conversation
Size Change: +451 B (0%) Total Size: 1.65 MB
ℹ️ View Unchanged
|
ebdfaf6
to
2c2e1ce
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.
This tested well for me:
✅ Command was only available when on pattern summary and edit pages
✅ Pattern could be renamed using the command on both pattern summary and edit pages, and name change was immediately reflected in interface
✅ No name change was reflected if modal cancel button used
Related:
What?
Adds a command to rename a pattern when the currently edited entity is a pattern.
Note:
This PR lays the ground work for multiple patterns-related commands, e.g. duplicate pattern, which will be split into dependent PRs
Commands for renaming or duplicating template parts will be a further follow-up
Why?
Currently, renaming a pattern can only be done via the Patterns site editor grid view. Users should be able to quickly rename a pattern while editing or viewing the pattern.
How?
use-edit-mode-commands
to rename a patternTesting Instructions
Screenshots or screencast
Screen.Recording.2023-10-10.at.5.21.17.pm.mp4