Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Show most frequently used blocks next to inserter #2877
Instead of hardcoded paragraph and image blocks, this shows
The algorithm for working out the blocks to display is just "most frequently used." I think that's fine for now, but we probably want to think about future refinements that "age" the usage too, in the future.
How to test
Hover over the inserter icon in the main editing section, and your three most used blocks should appear next to it. Click on them to insert them.
Clear your local storage, and paragraph and image should be displayed to start with.
@@ Coverage Diff @@ ## master #2877 +/- ## ========================================= - Coverage 34.06% 33.87% -0.2% ========================================= Files 192 193 +1 Lines 5677 5789 +112 Branches 997 1012 +15 ========================================= + Hits 1934 1961 +27 - Misses 3166 3237 +71 - Partials 577 591 +14
changed the title from
[WIP] Show most frequently used blocks next to inserter
Show most frequently used blocks next to inserter
Oct 9, 2017
Oct 10, 2017
There's something disconcerting to me about the dynamic nature of this, that it's less predictable. Maybe I'm attached to the idea that there's some comfort in knowing I'd always find the same options in this control, an especially important comfort considering that the controls are hidden until revealed by hover.
Maybe I'm overthinking it