diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-13 20:49:56 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-13 20:49:56 +0100 |
| commit | 896163d7961d86b4e023a50ce4f6e19a30006a3f (patch) | |
| tree | 9a2266a1120f8913616991d9350fa6667c248f0e /docs/superpowers/specs/2026-11-13-vm-tab-design.md | |
| parent | 69e6ce2bf7272797cf08ee4fbe0ff9fe0fc3b1f4 (diff) | |
| download | deck-it-896163d7961d86b4e023a50ce4f6e19a30006a3f.tar.gz deck-it-896163d7961d86b4e023a50ce4f6e19a30006a3f.zip | |
feat(vm): tablet tiles with screen, trends and a power button
Each VM is a tile: its screen from virsh screenshot (JPEG through
ffmpeg, every 5s while the tab shows), booting until sshd answers at
the ssh -G host and port, CPU and RAM trends, and a big power button,
tap for the gentle action and hold to force off. A tap on the tile
opens a sheet with every action as an icon and the snapshots as a
timeline with their age. hold.js is now the one press and hold, K1C's
stop included, and vibrates the tablet when it fires; the Windows
long-press buzzes too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs/2026-11-13-vm-tab-design.md')
| -rw-r--r-- | docs/superpowers/specs/2026-11-13-vm-tab-design.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/superpowers/specs/2026-11-13-vm-tab-design.md b/docs/superpowers/specs/2026-11-13-vm-tab-design.md index b327f7a..4a90f05 100644 --- a/docs/superpowers/specs/2026-11-13-vm-tab-design.md +++ b/docs/superpowers/specs/2026-11-13-vm-tab-design.md @@ -48,3 +48,18 @@ Docker, a dashboard chip. Add when wanted. `tests/test_vm.py`: domstats parsing, CPU delta, action validation, the ssh command choice. `node --check static/modules/vm.js`. + +## Tablet UI (second pass) + +The first panel copied the drawer row for row. The tab now is a grid of +tiles: the VM's screen (`virsh screenshot`, JPEG via ffmpeg, every 5s while +the tab shows), name and status ("booting…" until sshd answers at the +`ssh -G` host and port, then "ssh ready · IP"), CPU and RAM trends drawn +with the dashboard's `line`/`area`, and a bar with a big power button (tap: +start, shut down or resume; hold: force stop), SSH and a "more" button. A +tap on the tile opens a sheet (`<dialog closedby="any">`) with every action +as an icon, and the snapshots as a timeline of chips with their age, the +current one marked; a tapped chip shows its revert and delete. RAM used is +`balloon.available - balloon.usable` when the balloon reports it. +`static/hold.js` is now the one press and hold, used by K1C too, and +vibrates the tablet when it fires. |
