Repository navigation
Add loading animation to container action buttons - #46
Merged
Merged
Conversation
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add loading animation to container start, stop, and restart actions
Add loading animation to container action buttons
Jan 13, 2026
JonasGao
approved these changes
Jan 16, 2026
There was a problem hiding this comment.
Pull request overview
This pull request adds visual loading feedback to container action buttons (start/stop/restart) to improve user experience by showing when operations are in progress.
Changes:
- Added loading state tracking using a Map to track in-flight operations per container
- Implemented animated spinners that replace button emojis during action execution
- Added button disabling to prevent concurrent actions on the same container
- Introduced a 200ms stabilization delay after actions before auto-refreshing the container list
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| webui/src/pages/Home.svelte | Added loadingActions Map state, REFRESH_DELAY constant, loading state management in handleAction function, and passed loadingActions to all ContainerList components |
| webui/src/components/ContainerList.svelte | Added loadingActions prop, helper functions for checking loading state, conditional spinner rendering in all action buttons for both compact and standard modes, and CSS for spinner animations |
| // Track if component has mounted to prevent reload during initial setup | ||
| let isMounted = false; | ||
| let filterDebounceTimer: number | null = null; | ||
| let filterDebounceTimer: number | undefined = undefined; |
There was a problem hiding this comment.
The type change from number | null to number | undefined is inconsistent with other timer variables in the codebase. Files like Volumes.svelte and VolumeExplorer.svelte use number | null for their timeout IDs. Consider changing this to number | null = null for consistency across the codebase, or update all timer variables to use the same pattern.
Suggested change
| let filterDebounceTimer: number | undefined = undefined; | |
| let filterDebounceTimer: number | null = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Container start/stop/restart actions lacked visual feedback during execution, causing uncertainty about whether actions were processing.
Changes
Map<containerId, action>to track in-flight operations per containerImplementation
Standard mode buttons:
Compact mode uses smaller
spinner-compactvariant. Loading state clears after API response + 200ms delay + list refresh.Screenshots
Standard mode:

Compact mode:

Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.