-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/61 limit utility nav #284
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zoom_0.mp4
Can we make it so that the nav item isn't removed when you finish the drag and drop? Details in the video above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@ashleykolodziej I've updated the behavior to reset the menu position to the top/parent level instead of deleting the item on drop. Updating on the drop reseting the base position was an easy adjustment. I'm unsure if I can prevent an item from being nested at this time. I could constantly update the class as an item is in motion but that may cause a lot of JS memory/processing to be used if the process continuously loops while an item is being moved around. If you'd like me to explore the prevention option I can queue that up hopefully for sometime next week or the week after. |
@stonybrookweb I just tested this out and I think we might need to explore either prevention or a way to send updated data to WordPress - it seems like the class is not enough to do that, so the behavior when you save and update is a little funky. WordPress eventually ends up removing the nav item: zoom_0.mp4Let me know what you think - this seems to be a pretty tricky problem. I really like where the interaction and feedback is going though if we can get this figured out. |
…ting the items. Update Alert message. Update Notice.
add i18n update comments
add i18n
@ashleykolodziej I've updated the whole methodology to reset nested items to the parent level, no more deletions. This is on the database level if an item gets through and on the JS level to reset after drop. There is a hidden span Additionally wordsmithing may be helpful to create more user centric messages. I look forward to your feedback! |
I think this is functionally working exactly like what I'd expect now. I'm trying to think of a more user-friendly way to handle the notification that the nested item is not allowed and will be reset to the top than an alert. This is happening in JavaScript, right? Maybe I can add in a small animation or color hint or something so it's not an alert. Since it's so easy to accidentally nest a sub-item, I think an alert could quickly get annoying for users. @stonybrookweb Would it be alright if I branched off this and tried a couple of UI approaches to finalize this? I think your work is great here and doesn't need changes, just want to get that last interaction feeling really good before we send it out to the world. :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally approved, but I think I should take a crack at the UI here. Can you hold on merging until I submit that pull request?
@ashleykolodziej Yes, I'll hold off until you determine a better UI/UX to inform the user. Let me know if you have any questions or need any help or ideas. Since the update already loops through all the menu items, it would be simple to add a class instead. An idea could be to put a text on the item, that is removed via an animation time out in css a few seconds after it is reset. |
@ashleykolodziej checking in to see if you need any additional help or information from me to work on the UI. cc: @sr4136 @smtierneybu |
Fixes #61 .
Changes proposed in this pull request
Important
The original request was for a single site. This update affects all responsive-framework-2x themes and child themes. If sites have nested utility items they will disappear from view immediately on launch of this update.
Additionally, if a user attempts to update the menu, this update will reset all nested menu items to the parent level and they will then display as top level items.
Based on the recommendation in issue #61 no analysis was completed to determine the impact of any existing sites.
Testing
Test Sites
Review checklist
CHANGELOG.MD
with a brief explanation of the changes in this pull request in the unreleased section.