whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

Feature Request: Show Command Output in Web UI

Open nopoz opened this issue 10 months ago • 2 comments

Thanks for implementing the command trigger I requested! It would be great if the output from the script/command could be displayed in the web ui so the user knows what's happening. I implemented this in my fork https://github.com/nopoz/wud/tree/merged_build and attached an animated gif to show an example of it working.

My code changes are pretty messy so I don't think a straight PR would be possible and I'm sure you could implement something cleaner that wouldn't re-arrange as much of the existing code. :smirk:

The workflow is:

  1. the user manually clicks the trigger in the UI
  2. a pop-up window shows the script output
  3. when the script is complete, the update window shows a close button on the bottom of the pop-up window
  4. when the user clicks the close button, the UI is refreshed to show the newly updated container version

EDIT 2025-02-28: Previously referenced container store and pruning issues have been sorted out in fork build 7.0.7 ~~This is mostly working in my fork. The only problem is when the UI is refreshed after the user clicks the close button, the updated container version isn't always shown - this may be some race condition happening and it differs when it's a local docker instance vs remote? I'm not sure. It is running the latest version on the docker host after the update and I made the script wait to make sure the script wasn't getting ahead of wud. Manually clicking the "watch now" button typically fixes this. The container store isn't being updated properly I assume?~~

Image

nopoz avatar Feb 06 '25 22:02 nopoz

I believe I've sorted out the container store and UI refresh bugs in the latest commit https://github.com/nopoz/wud/tree/merged_build - I've labeled it as v7.0.7 for tracking purposes.

nopoz avatar Feb 27 '25 19:02 nopoz

👍 On this feature. I have the Command trigger working to my liking, but not very verbose without stdout visibility coming back to UI

prashker avatar Mar 05 '25 21:03 prashker