louislam / dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
https://dockge.kuma.pet
MIT License
13.13k stars 375 forks source link

Can't see icon to remove dockge agents in "light" UI theme #646

Open bwirt opened 1 month ago

bwirt commented 1 month ago

⚠️ Please verify that this bug has NOT been reported before.

πŸ›‘οΈ Security Policy

Description

Maybe I'm missing something, but I can't remove a dockge agent. This causes errors to appear in the log.

image

πŸ‘Ÿ Reproduction steps

  1. Install dockge on two different machines
  2. Link them together via the UI (Home / Add Agent)
  3. Destroy the remote instance, should become unavailable
  4. Cannot delete the agent.

πŸ‘€ Expected behavior

Need a trash bin icon next to the name to delete the agent.

πŸ˜“ Actual Behavior

Not possible to delete agent

Dockge Version

1.4.2

πŸ’» Operating System and Arch

Docker / Linux

🌐 Browser

Firefox

πŸ‹ Docker Version

27.1.1

🟩 NodeJS Version

No response

πŸ“ Relevant log output

2024-10-22T14:49:21Z [AGENT-MANAGER] ERROR: Error from the socket server: hoarder.lan:5001
cyril59310 commented 1 month ago

I was unable to reproduce the issue. Do you have any other reproduction steps to provide, or could you clarify how Docker was installed/launched?

image

I see that you're using the white theme, which is normally not available. Check if the button is just not visible because of that.

cyril59310 commented 1 month ago

After some tests, the issue does indeed come from the white theme. I recommend resetting Dockge to its default theme.

image

bwirt commented 1 month ago

Cool... would do that if I could figure out how. Where is the light/dark setting?

image

bwirt commented 1 month ago

I was unable to reproduce the issue. Do you have any other reproduction steps to provide, or could you clarify how Docker was installed/launched?

image

I see that you're using the white theme, which is normally not available. Check if the button is just not visible because of that.

Can confirm this is the problem. I am able to remove the agent by clicking the invisible trash can to the right.

cyril59310 commented 1 month ago

Cool... je le ferais si je pouvais comprendre comment. OΓΉ est le rΓ©glage clair/obscur ?

image

Normally, the setting is not available, and the dark theme is applied by default 🀨 Do you have a browser plugin that changes the theme? If not, try switching your browser to dark mode to see if it makes a difference.

bwirt commented 1 month ago

I'm not running any browser plugin and the mode is set to automatic. Forcing the browser to dark mode doesn't change the behavior, but I did notice if I open in in "private" mode (which has a different color scheme), dockge does in fact use dark mode.

Quite strange as I have another dockge instance (one of the agents), and connecting directly brings it up in dark mode.

Running Firefox on Windows 11, latest version.

cyril59310 commented 1 month ago

I have never encountered this issue. I will try to conduct more in-depth tests to reproduce the problem

bwirt commented 1 month ago

Happy to help if you need it. Quite strange. I am not sure how dockge decides light vs dark theme. If you can tell me, maybe I can assist.

cyril59310 commented 4 weeks ago

Happy to help if you need it. Quite strange. I am not sure how dockge decides light vs dark theme. If you can tell me, maybe I can assist.

Normally, in the code, Dockge is supposed to force the dark theme... It shouldn’t switch to the white theme or automatically choose a theme

louislam commented 3 weeks ago

Try to clear localStorage and refresh.

https://www.leadshook.com/help/how-to-clear-local-storage-in-google-chrome-browser/

Since the core is very similar to Uptime Kuma, if you had ever hosted Uptime Kuma on the same port and the same hostname, Dockge could use Uptime Kuma's settings. Just my guess.