Skip to content

Show PAUSED app state in the app detail modal and grid#34

Merged
max-tet merged 3 commits into
mainfrom
feature/clayde/show-paused-app-state
Jul 13, 2026
Merged

Show PAUSED app state in the app detail modal and grid#34
max-tet merged 3 commits into
mainfrom
feature/clayde/show-paused-app-state

Conversation

@ClaydeCode

Copy link
Copy Markdown
Contributor

Closes #33

What

Render the new shard_core paused app status (containers frozen, memory paged to swap, wakes on request in ms–2s) so a paused app reads as available, not stopped or broken.

  • App detail modal (AppStoreEntry.vue): pause icon in the card title (next to the existing error/featured/size icons) and a ⏸ Paused — wakes automatically on access line in the modal header, replacing the raw status string only for paused. Other states are unchanged. The Open button already renders for paused (only hidden on error), so launch works exactly as today — wake is server-side.
  • Grid icon (AppIcon.vue): a muted (40% opacity) status dot for paused, distinct from the solid running dot and from the empty stopped state. Matches @max-tet's request for a muted dot.
  • Update gate (Apps.vue): include paused in the update-available filter (['stopped','running','down','paused']) so a paused app with a newer store version still surfaces an update. Reinstall handles state via shard_core.

No API change — status already arrives via GET /core/protected/apps.

Acceptance criteria

  • ✅ A paused app shows a recognizable paused indication in the detail modal, distinct from stopped/error.
  • ✅ Opening the app still works exactly as today (wake-on-request is server-side).

Verification

  • npm run lint → no errors
  • npm run build → build complete

Recommended reading order

  1. src/components/AppIcon.vue — grid dot
  2. src/components/AppStoreEntry.vue — modal + card title
  3. src/views/Apps.vue — update gate

Grid icon previously showed a filled dot only for running apps; paused
apps fell into the empty-else branch and looked identical to stopped.
A paused app is effectively available (wakes on request), so render a
muted (40% opacity) dot to signal it is present but idle.
The detail modal only surfaced 'error' in the card title and printed the
raw status string. shard_core 0.40+ introduces a 'paused' status (frozen,
paged to swap, wakes on request). Render it as a distinct pause icon in
the card title and a badge + 'Paused — wakes automatically on access'
line in the modal header, so a paused app reads as available rather than
stopped or broken. The Open button already shows for paused (wake happens
server-side), so launch works unchanged.
The update-available filter gated on ['stopped','running','down'], so a
paused app with a newer store version would silently not appear in the
update list. Reinstall handles state via shard_core, so include 'paused'.
@ClaydeCode
ClaydeCode requested a review from max-tet July 12, 2026 20:53
@max-tet
max-tet merged commit 6d91d10 into main Jul 13, 2026
2 checks passed
@max-tet
max-tet deleted the feature/clayde/show-paused-app-state branch July 13, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show PAUSED app state in the app detail modal

2 participants