-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[63889] Move toggle button to the sidebar #19170
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
[63889] Move toggle button to the sidebar #19170
Conversation
d7fa135
to
5552e88
Compare
app/components/open_project/common/main_menu_toggler_component.rb
Outdated
Show resolved
Hide resolved
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.
A good start, but there are a few things I think we should address:
Close/Collapse button
Screen.Recording.2025-06-18.at.11.52.07.mov
- the close/collapse button renders underneath some form components, e.g. rich text areas/CKeditor instances.
- I think the close/collapse button would also benefit from being opaque (i.e.
scheme: secondary
). We might even consider a small drop shadow:

Alternatively, we could hide the close/collapse button on scroll?
Project select trigger button
The trigger button renders a title
tag - it would be good to use the tooltip here - to be consistent with the open/expand button directly to the right.
N.B. calling ToolTipElement
from Angular components should be feasible once this upstream fix is merged: primer/view_components#3558

Misc
- I've left various inline comments about being more consistent with naming. ✅
- Just as with my comment here, shouldn't we use try to use the Primer scale and CSS variables rather than hard-coding px values?
- I've been trying to get in the habit of writing component specs. While admittedly they're a bit of a pain at first, it would be good to get our test coverage up. They are orders of magnitude faster than feature specs when we just want to verify that we're rendering the right HTML (server-side at least) rather than simulating full user interactions. ✅
app/components/open_project/common/main_menu_toggler_component.rb
Outdated
Show resolved
Hide resolved
app/components/open_project/common/main_menu_toggler_component.rb
Outdated
Show resolved
Hide resolved
app/components/open_project/common/main_menu_toggler_component.sass
Outdated
Show resolved
Hide resolved
app/components/open_project/common/main_menu_toggler_component.rb
Outdated
Show resolved
Hide resolved
frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
Outdated
Show resolved
Hide resolved
app/components/open_project/common/main_menu_toggler_component.rb
Outdated
Show resolved
Hide resolved
def scheme | ||
:invisible | ||
end |
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.
Per my main review comment:
def scheme | |
:invisible | |
end | |
def scheme | |
@opened ? :invisible : :secondary | |
end |
#menu-toggler--closer | ||
position: absolute | ||
top: 18px | ||
left: 11px |
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.
Per main review comment, something like this?
left: 11px | |
left: 11px | |
z-index: 5000 | |
filter: drop-shadow(var(--bgColor-default) 2px 2px 2px) |
5240242
to
7dde84b
Compare
fef9fd4
to
c0c8dba
Compare
7dde84b
to
15ececb
Compare
c0c8dba
to
17589d9
Compare
15ececb
to
a00b1ac
Compare
…bles. Instead we use the Primer behaviour for ActionLists
9181511
to
08206e0
Compare
…ed/expanded Clean-up sass code Avoid that the type selector in the WP from is scrolled two far when being activated. Currently, it is scrolled twice (one time when activating it and once again when selecting an item). Thus the dropdown overlaps the actual input Move logo to the left side Make naming consistent for MainMenuToggleComponent and add a component test Let menu toggle button scroll with the rest of the page Move modules menu to the left and show it on mobile
08206e0
to
cc90002
Compare
Hi @myabc with the product team, we decided for now to let the button scroll on mobile together with the content. We will further improve on this with https://community.openproject.org/wp/65118 |
The user itself doesn't update when a new attribute help text or role is added to them
…t the autocompleter dropdown overlaps the input
20446d2
into
63888-move-project-selector-to-the-sidebar
Ticket
https://community.openproject.org/wp/63889
https://community.openproject.org/wp/64847
https://community.openproject.org/wp/64832
What are you trying to accomplish?
Screenshots