Skip to content

Conversation

@aduth
Copy link
Member

@aduth aduth commented Sep 8, 2017

This pull request seeks to refactor a separate component of the "Continue Writing" controls currently rendered as children of the <VisualEditorBlockList />. Importantly, this resolves an issue where attempting to navigate the content inserter with the keyboard will cause focus to shift between blocks, due to the behavior of the <WritingFlow /> component introduced in #2424. Since the inserter controls are not relevant to writing flow nor particularly the rendering of the list of blocks, it is sensible to isolate as its own component.

Testing instructions:

Verify that there are no regressions in the insertion of a new block using the inserter from Visual post content. Particularly, note that you can insert a block using keyboard navigation in the Inserter popover.

Ensure unit tests pass:

npm run test-unit

@aduth aduth added the [Feature] Inserter The main way to insert blocks using the + button in the editing interface label Sep 8, 2017
@aduth aduth requested a review from youknowriad September 8, 2017 17:32
@codecov
Copy link

codecov bot commented Sep 8, 2017

Codecov Report

Merging #2706 into master will increase coverage by 0.27%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2706      +/-   ##
=========================================
+ Coverage   33.42%   33.7%   +0.27%     
=========================================
  Files         188     189       +1     
  Lines        5639    5629      -10     
  Branches      981     978       -3     
=========================================
+ Hits         1885    1897      +12     
+ Misses       3181    3162      -19     
+ Partials      573     570       -3
Impacted Files Coverage Δ
editor/modes/visual-editor/block-list.js 0% <ø> (ø) ⬆️
editor/modes/visual-editor/index.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/inserter.js 100% <100%> (ø)
editor/inserter/index.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95cf846...db800c1. Read the comment docs.

@youknowriad
Copy link
Contributor

closes #2726

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

Works great!

@aduth aduth force-pushed the fix/content-inserter-arrow-nav branch from 1168d05 to db800c1 Compare September 25, 2017 15:40
@aduth aduth merged commit eedc07c into master Sep 25, 2017
@aduth aduth deleted the fix/content-inserter-arrow-nav branch September 25, 2017 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Inserter The main way to insert blocks using the + button in the editing interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants