Skip to content
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

Block Movers: Hide movers if there are no blocks before and after. #8011

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Jul 17, 2018

Description

If there are no blocks before or after the group of selected blocks, it is not possible to move the blocks anywhere.
In that case, we should not show the movers. Not showing the movers for this cases makes the UI cleaner in nested contexts as discovered in #7414.

How has this been tested?

I added Added a single paragraph and verified the movers did not appear.
I multi-selected some blocks without having non selected blocks before and after and verified the movers did not appear.
I repeated the tests for blocks inside a column.
I checked that when blocks could be moved the movers appear.

@jorgefilipecosta jorgefilipecosta force-pushed the fix/Hide-movers-if-there-are-no-blocks-before-and-after branch from 504742c to 538da3d Compare August 1, 2018 12:02
@jorgefilipecosta jorgefilipecosta requested a review from a team August 1, 2018 12:04
@jorgefilipecosta jorgefilipecosta added the [Type] Enhancement A suggestion for improvement. label Aug 1, 2018
@jorgefilipecosta jorgefilipecosta changed the title Block Movers: Fix: Hide movers if there are no blocks before and after. Block Movers: Hide movers if there are no blocks before and after. Aug 1, 2018
Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, but seems an easy thing to write an e2e test for, so I'm gonna write one quickly 😄

@jorgefilipecosta jorgefilipecosta merged commit e041770 into master Aug 2, 2018
@jorgefilipecosta jorgefilipecosta deleted the fix/Hide-movers-if-there-are-no-blocks-before-and-after branch August 2, 2018 10:59
@jorgefilipecosta jorgefilipecosta added this to the 3.5 milestone Aug 2, 2018
tofumatt added a commit that referenced this pull request Aug 2, 2018
@jorgefilipecosta
Copy link
Member Author

Thank you for the review and for creating tests @tofumatt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants