From 896163d7961d86b4e023a50ce4f6e19a30006a3f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 13 Nov 2026 20:49:56 +0100 Subject: 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 --- docs/superpowers/specs/2026-11-13-vm-tab-design.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs/superpowers') 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 (``) 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. -- cgit v1.2.3