-
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
Rename section block to group #14920
Conversation
@kjellr - I think you might have been working on some patches for themes so that they work with what was the section block. I suppose this change affects that and the classes will have to be renamed? |
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.
It looks like a lot of work to rename a single block 😅
@@ -25,7 +25,7 @@ | |||
@import "./quote/editor.scss"; | |||
@import "./rss/editor.scss"; | |||
@import "./search/editor.scss"; | |||
@import "./section/editor.scss"; | |||
@import "./group/editor.scss"; |
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.
Can it be moved to be sorted alphabetically?
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.
👍 done
@@ -45,7 +45,7 @@ import * as pullquote from './pullquote'; | |||
import * as reusableBlock from './block'; | |||
import * as rss from './rss'; | |||
import * as search from './search'; | |||
import * as section from './section'; | |||
import * as group from './group'; |
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.
Can it be moved to be sorted alphabetically?
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.
👍 done
@@ -303,8 +303,8 @@ export const EXPECTED_TRANSFORMS = { | |||
originalBlock: 'Search', | |||
availableTransforms: [], | |||
}, | |||
core__section: { | |||
originalBlock: 'Section', | |||
core__group: { |
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.
Can it be moved to be sorted alphabetically?
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.
👍 done
Yep, that's right. None of the patches have been merged in yet, so this is a great time to make the change. 🙂 |
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.
The block itself can be inserted into post properly 👍
I love this. When I had taken my stab at the container block, this was the approach I was trying to take, along with the "Group" and "Ungroup" functionality. I think this makes so much sense, makes it more intuitive for users, and really opens the door for a better user experience! |
What it's confusing at the moment is that when you insert Group block, what you actually see is Paragraph block: Can we at least do something like: or what @mtias suggested in our private chat with reusing the bits of Block Navigation feature: Those aren't final design proposals by any means 😃 |
To be clear, should we consider this a separate task from the rename itself happening here? I expect the work from #14241 should help to improve the experience of the default block appender. |
Indeed my work on |
@chrisvanpatten Here's my first pass at "Group" #14908 |
I was sharing my experience from testing. I didn’t mean it should block this PR 👍 |
Do you know if there's a related issue for tracking these improvements? Is #9628 relevant? |
Great to see this rename get done so quickly @talldan 👍 |
* Rename section block to group * Update transforms test for rename of section block to group * Alphabeticalize
Description
Closes #14898
Renames the Section block to Group.
How has this been tested?
See also #13964 (comment) for further details on testing (but replace the word section with group in your mind).
Screenshots
Types of changes
Breaking change (but one that should be ok if it's merged before the next release)
Checklist: