Show PAUSED app state in the app detail modal and grid#34
Merged
Conversation
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'.
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.
Closes #33
What
Render the new shard_core
pausedapp status (containers frozen, memory paged to swap, wakes on request in ms–2s) so a paused app reads as available, not stopped or broken.AppStoreEntry.vue): pause icon in the card title (next to the existing error/featured/size icons) and a⏸ Paused — wakes automatically on accessline in the modal header, replacing the raw status string only forpaused. Other states are unchanged. The Open button already renders forpaused(only hidden onerror), so launch works exactly as today — wake is server-side.AppIcon.vue): a muted (40% opacity) status dot forpaused, distinct from the solid running dot and from the empty stopped state. Matches @max-tet's request for a muted dot.Apps.vue): includepausedin 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 —
statusalready arrives viaGET /core/protected/apps.Acceptance criteria
Verification
npm run lint→ no errorsnpm run build→ build completeRecommended reading order
src/components/AppIcon.vue— grid dotsrc/components/AppStoreEntry.vue— modal + card titlesrc/views/Apps.vue— update gate