-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Empty blocks] Tiny refinement to "add new block" placement/flow #1177
Comments
👋 @iamthomasbishop ! I have this mostly done, but I have a question about how to handle this when the title is selected. First, let me give some context. Currently, on the web, when you open a new post and add a series of empty paragraph blocks with the title selected, you get the following behavior:
The behavior is similar on mobile except that we recently made a change to add new blocks inserted from the post title at the beginning of the post instead of the end. I had earlier merged a PR to change the behavior on mobile so that inserting a block from the title would replace an empty paragraph block, instead of adding a new one. We reverted that PR just before release though when @Tug noted that this was inconsistent with the web. So I basically have two questions:
|
Great questions. I have some thoughts :) My over-arching (+ strong) opinion on the topic is that insertion behavior should be consistent agnostic to which block type you've got selected or are adding. To the user, the title is just another block (and it will eventually BE a separate block), so adding a block from anywhere should add it immediately and consistently after the selected block. The way I see it, we have a few potential routes. Once we assess how much this will cost us to maintain, we should do one of the following:
Note: we might also want to propose this in the first scenario above, but I am not sure how much discussion has been done on the web side for this type of thing. |
Oops, I hit enter too soon :)
I think we might want to leave that empty block alone in cases where it's not the only block on the canvas. So in the example you showed above there are 2 blocks – an empty paragraph, and a heading. When you added an image, I saw what I would've expected to see – the block added and the 2 original blocks pushed downward. So maybe the distinction is what happens on a post w/ no content below vs. with content. |
That's such a good way to frame the issue! |
Not sure if you're actively working on this one @mchowning , if so, better to move the ticket to the "In Progress" column in the project board, otherwise let's un-assign the ticket. Thanks! |
Related to my original proposal on #1165, which has been merged (thanks @marecar3 for the quick fix!).
While reviewing, I caught one thing that I should have mentioned in my original proposal – we should probably also hide the empty block when the inserter/library bottom sheet is open.
The text was updated successfully, but these errors were encountered: