containers / podman-desktop

Podman Desktop - A graphical tool for developing on containers and Kubernetes
https://podman-desktop.io
Apache License 2.0
4.52k stars 289 forks source link

adding toast when tasks are created #7269

Open axel7083 opened 3 months ago

axel7083 commented 3 months ago

Is your feature request related to a problem? Please describe

When we have a new task created (notification) we should have it showed up as a toast, to properly notify the user, something is happening

Describe the solution you'd like

image

Describe alternatives you've considered

No response

Additional context

We are already using the https://github.com/zerodevx/svelte-toast library for some toaster item (rarely used)

https://github.com/containers/podman-desktop/assets/42176370/0aa0f4ff-c383-4a54-8aa5-716e96d8d4c5

We should probably extract the TaskItem component, and use it as custom toast^1.

https://github.com/containers/podman-desktop/blob/cfeb27546799febf3383b236e5602bbcee204970/packages/renderer/src/lib/task-manager/TaskManagerGroup.svelte#L30

deboer-tim commented 3 months ago

Personally, I would find this annoying. I would prefer we draw attention to the task manager (so the user knows where to look to get future task status) and have a constant indication/animation within the UI that there is a running task (e.g. on status bar).

benoitf commented 3 months ago

Discussed during the call, I like the toasts, also there are not so many tasks being created. And toasts can be time-based or required click. To me it does not prevent to draw attention to the task manager, but you don't want to click sometimes to the task manager, you just want to see something being created/in progress. Also it can disappear when it's done anyway

axel7083 commented 3 months ago

cc @ekidneyrh for opinion

ekidneyrh commented 3 months ago

I think the toast is a good idea, I would have at the bottom of the screen however, so it makes to user look down near the task bar. I maybe wouldn't have it time based unless it's a very short message like 'file created!' etc.

If the message is corresponding with an icon in the task bar, we could make the bubble come out of that icon to notify the user they are related, then they know to keep an eye there for further progress?

Would there be a set amount of use cases for this? like start, error, done etc