Skip to content
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

fix: click on the dock icon should display dashboard #7649

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Jun 14, 2024

What does this PR do?

if we were clicking on the icon with dashboard being closed, it was not bringing back the dashboard

track the event and add it back.

I don't know if there is such a case on Windows being possible so I added a isMac test

Screenshot / video of UI

What issues does this PR fix or reference?

fixes #7403

How to test this PR?

  • Tests are covering the bug fix or the new feature

@benoitf benoitf requested a review from a team as a code owner June 14, 2024 09:33
@benoitf benoitf requested review from dgolovin and feloy and removed request for a team June 14, 2024 09:33
@feloy
Copy link
Contributor

feloy commented Jun 14, 2024

I'm able to test on Mac with yarn watch only.

Here are the steps I'm doing:

  • start the app with yarn watch
  • close the window
  • in the app icon, Options -> Keep in Dock
  • close the window
  • click the app icon
  • the window appears as expected
  • but, the dot below the icon (indicating a window is visible) is not displayed, and the context menu of the icon is not updated accordingly

@benoitf
Copy link
Collaborator Author

benoitf commented Jun 14, 2024

I'm able to test on Mac with yarn watch only.

hmm why you can only use the yarn watch mode only ?

but, the dot below the icon (indicating a window is visible) is not displayed, and the context menu of the icon is not updated accordingly

AFAIK it might be another issue, it's not related to this change

@feloy
Copy link
Contributor

feloy commented Jun 21, 2024

I'm able to test on Mac with yarn watch only.

hmm why you can only use the yarn watch mode only ?

When I build the app with yarn compile, I get the error Code Signature Invalid when trying to execute it, I suppose because I don't have the keys to sign the app for MacOS.

@feloy
Copy link
Contributor

feloy commented Jun 21, 2024

but, the dot below the icon (indicating a window is visible) is not displayed, and the context menu of the icon is not updated accordingly

AFAIK it might be another issue, it's not related to this change

OK, apart from this problem, it works as expected. LGTM

Copy link
Collaborator

@deboer-tim deboer-tim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two concerns from testing:

  • I'm using yarn watch mode, but this was only working the first time for me - i.e. I close the window and can reopen it, but then if I close again, clicking on the icon does nothing. No error is reported, so I guess it still thinks the window is open?

  • With this change, using the toolbar context menu is less intuitive/standard. I can still get to it using a right (two finger) click, but I looked at how other apps on the Mac behave, and aside from one that doesn't have a context menu at all (Sentinel), clicking on all others (Google desktop, Logitech, Stream Deck) only opens the context menu as we do today.

@benoitf
Copy link
Collaborator Author

benoitf commented Jun 24, 2024

With this change, using the toolbar context menu is less intuitive/standard. I can still get to it using a right (two finger) click, but I looked at how other apps on the Mac behave, and aside from one that doesn't have a context menu at all (Sentinel), clicking on all others (Google desktop, Logitech, Stream Deck) only opens the context menu as we do today.

@deboer-tim could you explain what is your 'toolbar context menu' (screenshot or screencast) to be sure we're talking about the same thing ?

@deboer-tim
Copy link
Collaborator

With this change, using the toolbar context menu is less intuitive/standard. I can still get to it using a right (two finger) click, but I looked at how other apps on the Mac behave, and aside from one that doesn't have a context menu at all (Sentinel), clicking on all others (Google desktop, Logitech, Stream Deck) only opens the context menu as we do today.

@deboer-tim could you explain what is your 'toolbar context menu' (screenshot or screencast) to be sure we're talking about the same thing ?

Not sure what I've done to my machine or if it is the connection I'm on but I can't get this PR to work at all now, will try again later. However, I meant the Mac toolbar / system menu / system tray. After this change it was less obvious how to get to the context menu showing machines and Kubernetes context switcher.

Screenshot 2024-06-24 at 3 37 33 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot reopen Podman Desktop dashboard on Mac by launching the app via icon when it is closed in background
3 participants