-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Implementation/53233 replace sidemenu of work package page with rails component #15982
Implementation/53233 replace sidemenu of work package page with rails component #15982
Conversation
153a758
to
c894015
Compare
e626888
to
a895a64
Compare
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.
I did not look at the code yet.
I found the following issues with the work package sidebar menu:
-
When displaying the menu when clicking on the arrow next to "Work packages", multiple items are selected/highlighted, but none should be highlighted
- Go to a project > Overview
- In the side bar menu, click the arrow next to "Work packages"
-
When modifying filters, the selected menu item is still hightlighted. But I'm not sure if that's wanted or if it's a regression compared to before:
- Go to project > Work packages > All open
- Change filter status from "status = open" to "status = closed".
- => expected: nothing highlighted as the filters have been changed and a little "save" icon is displayed (at least, that's the behavior on qa.openproject-stage.com)
- => actual: the "All open" menu item remains highlighted.
- Note: the behavior on stage is not ideal either as the highlighted menu item is easily lost, even without modifying anything on the filters (for instance on stage, click "All open", then "Latest activity", then click in the blank area below the work package table => menu item is unselected and the little save icon is shown, but it should not be).
And what works well 👍 :
- renaming a view => renamed in menu
- saving as a view => a new item is created in menu
- deleting a view => view is removed
- changing visibility => collapsible sections appear and disappear
- using another user with restricted access / shared wp access => work well too
a895a64
to
ee37ae0
Compare
…y the Rails SubmenuComponent. Further the static-queries.service was reduced as the static queries are now also build by the Rails SubmenuComponent
Hi @cbliard thanks for your feedback! I talked with the product team about the requirements regarding your second point:
This was the answer we agreed upon:
So I will stick with the current behavior. Regarding the first point:
I fixed the wrong highlighting of the "All open" query. The other query is indeed highlighted because by default, the first element is focused. However, for me, this happens only when navigating via keyboard which makes sense imho. So I tend to keep that behaviour. What do you think? |
e8fbe14
to
a609931
Compare
For keyboard navigation this is fine. Kapture.2024-07-04.at.14.52.59.webm |
Hi @HDinger, I found another issue: when a query is saved, or when it is selected, then "All open" is also selected. Kapture.2024-07-04.at.15.00.02.webmAnd for the rest, it works very well. |
a609931
to
414101c
Compare
ToDo
Common::SubmenuComponent
to render the submenu of the WorkPackages moduleop-view-select
and reduce theop-static-queries.service
to the functionality of gettting the name of the query but not building them any more.https://community.openproject.org/projects/openproject/work_packages/53233/activity
By chance, this also fixes https://community.openproject.org/projects/openproject/work_packages/52954/activity and https://community.openproject.org/projects/openproject/work_packages/52759/activity