-
Notifications
You must be signed in to change notification settings - Fork 299
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
chore: use dropdownmenu component for always on buddy widget popup menu #8269
chore: use dropdownmenu component for always on buddy widget popup menu #8269
Conversation
There are a frew things that needs to be fixed:
|
b035270
to
4c81596
Compare
I haven't looked in any detail, but I'd guess you're going to have to make the NavItem natively support dropdown/selection instead of putting a dropdown inside of it. That would solve 1 & 3 (nav item wouldn't trigger a url in this case, it would trigger the drop down). For 2, changing the z order isn't enough/not the right fix because you'd have a tooltip partially hidden under a menu. But again, the same solution above would fix this too. |
There are issues that prevents to use DropDownMenu component for the Buddy NavItem. I Would suggest to fix them with different PRs to make it easier to review. This pr should be straight forward:
|
There should be the issues opened for DropDownMenu:
|
4c81596
to
4810491
Compare
There is no need to expose the
This is fixed in current commit |
|
e35808f
to
c556038
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 would recommend to ease the review to move the changes of DropDownMenuItems.svelte
and DropdownMenu
in a separate PR with a dedicated test
cc @benoitf you are assign to #7758, is there a risk of conflict/overlap here? From #7758 This may have some similarity with this PR goals, at least for the changes in the |
@axel7083 I see no overlap as right click is/will not be handled by the svelte dropdown menu (it's based on electron right clicks menu) only left click should/are using svelte components. |
f300206
to
f8a46ab
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.
The text for sign out item should include Authentication Provider label, because the same email can be used with different providers and it would not be possible to distinguish github account from Red Hat SSO.
Sign out of Red Hat SSO ([email protected])
Would look better.
d736396
to
6711fff
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.
6711fff
to
7ec6166
Compare
I have discussed this with @axel7083 and we have come to a point where we need to decide which options would be best, either this ^^ or this one which uses the
What do you think? More complex (This PR ^^) or more neater solution (this one) Thanks 🙏 @benoitf @deboer-tim @jeffmaury |
On the other hand it seems that Dropdown Menu on buddy icon just duplicates Authentication settings page features in a form of dropdown menu. We might consider just move Authentication out of preferences and show it when user clicks on buddy icon. |
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.
Works as expected
LGTM
Signed-off-by: Evzen Gasta <[email protected]>
Signed-off-by: Evzen Gasta <[email protected]>
Signed-off-by: Evzen Gasta <[email protected]>
Signed-off-by: Evzen Gasta <[email protected]>
Signed-off-by: Evzen Gasta <[email protected]>
…ownmenuitems to dropdownmenu Signed-off-by: Evzen Gasta <[email protected]>
Signed-off-by: Evzen Gasta <[email protected]>
7ec6166
to
a1aff7a
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.
Tested with multiple extensions adding requests for authentication.
LGTM
What does this PR do?
Use DropDownMenu component for always on Buddy widget popup menu
Screenshot / video of UI
Before:
Screen.Recording.2024-07-30.093023.mp4
After:
Screen.Recording.2024-07-31.130244.mp4
What issues does this PR fix or reference?
Closes #6660
How to test this PR?
Try to open account in the NavBar