project-nomad/admin/inertia/pages
Chris Sherwood 663c1593df
fix(system): disable Update button while a service update is in flight (#931)
A multi-GB service update (e.g. nomad_ollama pulling ~6.5 GB) left the
Update button clickable with no feedback, so users clicked again thinking
it was stuck. The second click raced a concurrent updateContainer run into
Docker 304/400 errors (stop/rename on a container the first run had already
moved). The backend lock was in-memory only and never written to the DB, so
nothing durable signaled "update in progress" to the UI, and a page reload
mid-pull re-enabled the button.

Backend (docker_service.updateContainer):
- Set installation_status='installing' when the update starts and reset it
  to 'idle' in a finally on every exit path. This mirrors the install path,
  survives a page reload, and is visible to other tabs/clients.
- Reject a second update with a clear message when installation_status is
  already 'installing', instead of letting it race into Docker errors.

Frontend (settings/apps.tsx):
- Track in-flight updates per service. Seed optimistically on click and
  reconcile with the durable installation_status from the server.
- Disable the per-service Update button and show "Updating..." while in
  flight. Drop the fullscreen spinner for updates so the table and the
  activity feed (live pull/stop/start progress) stay visible.

Closes #931
2026-06-23 04:46:56 +00:00
..
docs feat(supply-depot): per-app onboarding docs, install fixes, and in-app Docs links 2026-06-23 04:46:47 +00:00
easy-setup feat(easy-setup): split AI into its own conditional step (issue #905) 2026-05-20 10:16:00 -07:00
errors feat: initial commit 2025-06-29 15:51:08 -07:00
settings fix(system): disable Update button while a service update is in flight (#931) 2026-06-23 04:46:56 +00:00
about.tsx feat: initial commit 2025-06-29 15:51:08 -07:00
chat.tsx feat(AI Assistant): custom name option for AI Assistant 2026-03-04 20:05:14 -08:00
home.tsx feat(supply-depot): add custom launch URLs for apps 2026-06-23 04:46:56 +00:00
maps.tsx feat(maps): show map coordinates on mouse move (#786) 2026-05-20 10:16:00 -07:00
supply-depot.tsx feat(supply-depot): add custom launch URLs for apps 2026-06-23 04:46:56 +00:00