-
Notifications
You must be signed in to change notification settings - Fork 384
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
Improve Layer Manipulation #1564
Comments
This is not blocked by Gutenberg specifically, but we need to validate the complexity to do so. AC 1: Look into it to see if it's clear how this happens or if we could make it simpler. |
Drag and drop elements may already be suggested in the Gutenberg repo, we should take a look. |
Note for dev: Development is blocked by UX/design. |
So if this were implemented in Gutenberg, it would make navigating nested blocks much easier: WordPress/gutenberg#11408, especially if WordPress/gutenberg#11010 gets implemented. |
@miina at the moment, if we go with the block navigator, as proposed here, then the only real change we're proposing is drag and drop capability on the block navigator items. I could mock this up with an icon showing that they're draggable, or we could just leave them alone and let people discover this. Welcome feedback on this! cc @cathibosco and @alcurrie |
@jwold For me it does make sense that these could be dragged and dropped even without an icon, however, not sure if that's just because I want this to happen or because it's actually intuitive, ha! |
@jwold Seems to me users will be delighted to discover they can be dragged and dropped through experience and trying it ut😀 |
@cathibosco @jwold Actually there is one more thing from UX perspective -- the drag and drop is a possible change for the block navigator, however, we still have the default up/down arrows which are for changing the order of the layers. We should probably figure out how to make more sense out of these -- for example maybe we should hide them for some layers. Or perhaps we should move these or somehow make it more clear which layer do the arrows belong to. Maybe if there's a way to make it visible and understandable that they belong to the selected block then these could be useful. Ideally we'd make use of the up and down arrows since these are the default way. If there is a way. Do you think there is any way how to make use of those? Any thoughts on what we should do with these? |
I'm a fan of holding off on drag and drop for now in place of having the up/down layer buttons. That's a more straightforward right now!
|
|
Sounds good! I'm wondering if it would also make sense to add a border to the arrows. For example at this moment when a layer is selected, it has a dotted border (not visible very clearly right now though), however, a hovered layer has blue border (visible on the screenshot above). Do you think that perhaps having the same border system could make the arrows more clear? For example that the selected layer's Up/Down arrows would also have a dotted border (or any other border that would be decided within #1524) and the hovered block's Up/Down arrows would also have the blue border? I'm just wondering if there's a way how to make it more clear which Up/Down arrows belong to which block. As far as I remember it might get confusing with multiple layers / blocks. I'm not sure at all if this would look nice though or make a difference. Thoughts? |
@miina great thoughts! Are you blocked today if it takes a few days to figure this out? @cathibosco maybe we could discuss this in our workshop today. |
@jwold Development is unblocked for many other tickets so there is no rush at all. |
@jwold and @cathibosco - I don't think we have complete resolution on this, in particular we still are not 100% resolved on how to recommend that the 'up/down' for blocks and layers will look/work on the main story page interface but we did, I believe, agree that the 'arrow' navigation would be available within the Block navigation. @miina and @mehigh - this still in discussion but this is current solution. Could you weigh in here and/or Cathi's working on updated mockups and I'm working on documenting updated AC, so it would be good to review/discuss internally so we can discuss/finalize for discussion Friday. Within the block navigation this would be the proposed user flow :
Some questions/notes:
|
@alcurrie Thank you for the update.
Are you asking if we have to have the default navigation with arrows at all for stories? It would be ideal if we could reuse the existing default Gutenberg features. The arrows are the default way how to move the layers up and down so it would be great if we could reuse these. On drag and drop: Note that originally the idea was to add the drag and drop to the custom Layer Cards (as written in the AC2) but we are not going to have the Layer cards anymore. For adding drag and drop to the block navigation we would need to create a custom block navigation instead of the default one -- it would again be using a custom navigation instead of reusing the existing features. It would be ideal if we could reuse the arrows for now, considering the time we have, and perhaps we could revisit the idea of replacing the default block navigation with a custom one for adding drag and drop in a future iteration of AMP Stories. Thoughts?
It is already possible to move a story page up / down with the default Up/Down Arrows. |
Howdy! A few additional notes from our call today. We can't do arrows on block navigator right now, so instead what we could do is make arrows persistent when you select a layer in block navigator. Maybe have the arrows show up and persists, with a blue outline around it. Only blur items on other layers. |
@miina @cathibosco I've updated the AC based on the discussion we had on Friday. Cathi, to illustrate to the updated AC, could you please update your mockup (I believe overall-scene-7d.png shown above is the most recent). I realize when documenting the AC updates from Friday's discussion that the mock should probably be updated as well if possible. See requested updates: https://cl.ly/eab00718802c |
@miina - Here's the updated mockup for layer selected state. https://cl.ly/02a19d7c5026 I've also added mock up to the AC and updated - layer selected in the block navigation to only show highlighting the layer (ie. Thirds Layer) Note: labelling update for the hover on the arrows should match the AC above (Bring forward/Move back) not the mockup. |
@alcurrie Thanks for the update. One note on labelling: the arrows we are reusing are the default arrows for moving blocks -- not sure that we can actually easily change these. However, the Arrow labels (Up and Down) do match the movement in the Block Navigation -- the Arrow Up moves the block Up in the Navigator, and the arrow down moves the block down. I'm wondering if this is actually more clear this way -- to match the behavior in the Block Navigator so that the user will get used to this order of the blocks and block navigation? cc @cathibosco |
The styling looks like this: http://cloud.urldocs.com/e1a46fd70c3e |
AC4 & AC5: when the user selects the block, the arrows are persistent - not handled I want to add on the arrows which change the order of the blocks or layers - it's not easy to persist them as they get added to the page only on hover by the Gutenberg core. If the elements were dormant, it would've been fairly easy to show them while the block is selected, but it that was not the case. |
Confirmed updates to layer manipulation and labelling. See Screen cast: https://cl.ly/1a5cb1890808 |
As an AMP story author, I'd like an improved user experience for manipulating layers
- [x] _AC3:_ Ideally allow the author to move layers up and down by re-using the block reordering controls ~and also by dragging the block layer cards.~ - [x] _AC4:_ Within the Block navigation or in the AMP Story interface when the user selects the block, the arrows are persistent and display while the block is selected (not just on hover) and when the user clicks/taps on the up arrow the block moves forward (towards the top of the stack) and when the user clicks/taps on the down arrow the block moves back (towards the bottom of the stack ie. toward background layer) - [x] _AC5:_ Within the Block navigation or in the AMP Story interface when the user selects a layer or the story page, the up/down arrow icons display the arrows are persistent and display while the layer or story is selected (not just on hover) and when the user clicks/taps on the up arrow the block moves forward (towards the top of the stack) and when the user clicks/taps on the down arrow the block moves back (towards the bottom of the stack ie. toward background layer) - [x] _AC6:_ When the parent element moves all child elements move with it. So if a layer moves forward/back all child elements (block elements) within that layer move as well. Also, if a story page moves forward/back all child elements (layer and their block elements) within that story page move as well. - [x] _AC7:_ Hovering on the up arrow shows a tool tip ~'Bring forward' and hovering on the down arrow shows a tool tip 'Move back'~ - AC Update: per discussion here https://github.com//issues/1564#issuecomment-441026950 we are re-using the Gutenberg arrows, so the tool tips will retain the Gutenberg labelling.
Related to: #1531 #1532 #1541 #1559 #1560 #1562 #1563
The text was updated successfully, but these errors were encountered: