-
-
Notifications
You must be signed in to change notification settings - Fork 475
tray: Allow switching to a specific realm tab from the context menu #632
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
base: main
Are you sure you want to change the base?
Conversation
@punchagan thanks for working on this. The feature looks good to me. @timabbott, @rishig thoughts? |
91a05fc
to
23b9881
Compare
Do we have more control over what to put in that menu? It'd be nice to have a title and/or the organization icons/unread counts in there, but if we don't have much control, that looks reasonable. |
Yes, I think having unread counts would be quite useful too. Especially, when I see the 99+ badge on the icon. I've been poking around a little to try to figure out a good way of doing this. If anyone has some advice on how to go about doing this, that would be helpful! /cc @abhigyank @akashnimare |
23b9881
to
0dd496c
Compare
One thing I was wondering about was, populating the menu only on click - instead of updating the menu for every new message. Do you have any thoughts/ideas/experience on this? |
I've pushed a change that displays the unread counts next to the realm name. I'm not sure my usage of |
definitely don't want the |
Thanks for the feedback, Rishi. I'll change that. |
fb483bf
to
a8326c6
Compare
Yeah, this is what I was thinking. Re-creating the tray on every new message is expensive (performance wise). There is an api available by which we could get the click event and then update the count. |
I tried playing with this a little, but seems like 'click' doesn't get fired on Gnome Shell in Ubuntu? The context menu appears, but the click handler is not getting called when I click on the tray icon. Not sure, what's happening here. 😞 |
On the other hand, I have been using this branch for the past day or so, with 5 realms (some not super active) and I haven't really seen any thing wonky. |
Oh, I remember the right click has some known issues on some Linux distros. |
Looks good to me I'm just worried about this. @abhigyank can you look into the performance part? In the worst case, I think we could go with the following approach (at least for Windows/macOS)-
|
I think the click thing could be very shell or OS dependent, i.e. could be broken for some people (is the UX worth the broken risk? ). |
I think we could ship it on macOS and Windows since the click event works as expected on these platforms. For Linux, we could either drop this feature or ship with the current implementation. |
Heads up @punchagan, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
What's this PR do?
This PR adds functionality to be able to switch to a specific Realm tab from the system tray menu.
Screenshots?
You have tested this PR on: