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

Inserter #58

Closed
3 of 4 tasks
koke opened this issue Jun 12, 2018 · 10 comments
Closed
3 of 4 tasks

Inserter #58

koke opened this issue Jun 12, 2018 · 10 comments
Assignees
Milestone

Comments

@koke
Copy link
Member

koke commented Jun 12, 2018

Add an insert button that shows a list of registered blocks, and adds the selected block after the currently focused block.

image

Requirements for alpha:

  • The inserter button will be in the toolbar as the design shows (depends on Toolbar #55).
  • The block picker should show the right icon for each block. (done in Inserter - block icons #129)
  • After the block is inserted, switch focus to the newly inserted block.

Tasks

Integration with toolbar (2 weeks)

  • add new + adder control placeholder (to be connected to the toolbar)
  • extract and define adder <-> toolbar interface
  • actually connect with toolbar

Other (1 week)

  • UI pass (make it not only work but look as per the designs) -> Inserter UI #349 (Beta)
@koke koke added this to the M2: Toolbar, Inserter milestone Jul 4, 2018
@mzorz
Copy link
Contributor

mzorz commented Aug 1, 2018

Adding rough design draft for v1 here:
image

This is how I plan to approach this:

State management / basic flow

Navigation / Bottom sheet work

I believe this iterative approach will lead us to better understand the needs in each phase, and we'll be better prepared for iteration #4 to actually create the component out of the things we've found out to be useful/needed in the other iterations

@hypest
Copy link
Contributor

hypest commented Sep 18, 2018

Headsup @mzorz , I went ahead and struck out iteration No4 in #58 (comment) as I think it should not block the feature completion and it can be performed at a future point in time.

@koke koke removed this from the M2: Toolbar, Inserter milestone Oct 15, 2018
@koke koke added this to the Alpha milestone Oct 17, 2018
@koke
Copy link
Member Author

koke commented Oct 17, 2018

I updated the description for this one. @mzorz do you think I missed anything in the alpha requirements? Can you take a look at estimations since it looks like you already have a good idea of what needs to be done?

@mzorz
Copy link
Contributor

mzorz commented Oct 17, 2018

Focus handling

While not directly related to the Inserter, it's of basic need that the focus state and UI representation gets handled right when inserting / moving blocks / switching focus.

Integration with toolbar

  • add new + adder control placeholder (to be connected to the toolbar)
  • extract and define adder <-> toolbar interface
  • actually connect with toolbar

Other (code)

  • make createBlockAction actually create a block instead of carry a block model and insert it in the list (Inserter - basic support for block addition #88 (comment))
  • after this one above (createBlockAction change), enhance the CREATE_BLOCK action tests to run through all registered blocks and create each one, verifying the expected block type has been created

Other (UI)

  • UI pass (make it not only work but look as per the designs)

Estimations

My rough thoughts on this are:

  • The Focus problems are a set of unknowns but I think we should be able to gain more information from that with a full week working on identifying (and hopefully solving) the most important of them. I'd give this a full sprint. (2 weeks)
  • integration with the toolbar might be coded and tested in another sprint (maybe it's just a week, but might get into a bit of the next week as well). (2 weeks)
  • Other (code + UI): another sprint to polish (2 weeks)
    cc @koke @hypest

@koke koke mentioned this issue Oct 18, 2018
12 tasks
@koke
Copy link
Member Author

koke commented Oct 18, 2018

Thanks @mzorz.
I've reordered the focus handling so we look at focus on insert first (#113).
Maybe we can move focus on tap under #166 since it seems more related to that than the inserter?

@mzorz
Copy link
Contributor

mzorz commented Oct 18, 2018

Maybe we can move focus on tap under #166 since it seems more related to that than the inserter?

Definitely feel free to move that there 👍

@koke
Copy link
Member Author

koke commented Oct 26, 2018

I ended up grouping the focus issues in #196 and crossed them out of the list here

@koke
Copy link
Member Author

koke commented Oct 29, 2018

I came across a couple good looking (native, iOS) libraries for the bottom sheet, so I'll leave them here in case they're useful in the future:

hypest pushed a commit that referenced this issue Nov 2, 2018
…s-for-gb

Disable Aztec plugins by default since we don't need them on GB mobile
@koke
Copy link
Member Author

koke commented Nov 7, 2018

Moved the task list and estimations to the description, please make sure to update it there as we make progress

@koke
Copy link
Member Author

koke commented Dec 11, 2018

Moved the remaining UI pass to #349 for the Beta

@koke koke closed this as completed Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants