aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2026-11-13feat(vm): tablet tiles with screen, trends and a power buttonDanilo M.1-3/+35
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>
2026-11-13feat(vm): a VMs tab for libvirt power, snapshots and sshDanilo M.1-0/+140
virsh domstats each poll for state, CPU and memory; managed save, snapshots and the guest agent's IP in a thread every 10s. Actions are the drawer's power set plus snapshot take/revert/delete, names checked against the last state. SSH opens a tab in a running kitty over its remote-control socket and focuses it, else spawns kitty. Destructive buttons are press and hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(dashboard): running modules as chips that open a panelDanilo M.1-1/+7
The running row of 118px cards took height from music and spending and cut its lines into marquees. It is now a row of chips (icon, value, progress fill) copied from each module's slot; a tap opens the full slot in a centred <dialog closedby="any">, which a tap outside closes without reaching what is under it, and a tap inside opens the tab. A module may export detail(state, el) for the panel. The build VM's shows the job command, start and elapsed time, CPU, memory and disk as meters, and the plan package by package: its result once finished (progress.results, sbb-remote 0.13.1), building, or waiting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(tablet): clock fonts and sizes from keystone's Fonts pageDanilo M.2-5/+21
The dim cover's time and date fonts move out of [tablet] clock_font and clock_font_date into keystone's fonts.json: "family" deckit-clock and deckit-date, each served at /fonts/<key>, and the "override" sizes deckit:clock and deckit:date (else deck.css's 8rem and 1.6rem). The date can now have a font of its own. theme.css carries the rules, so a save on the Fonts page reaches an open tablet page within 5s, with no restart and no flags in the tablet state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13fix(windows): no peek for a dialogDanilo M.2-0/+15
A transient dialog brought the Windows tab forward like any new window. Hyprland's clients JSON has no parent field, so a window counts as a dialog when it floats and its pid already has another window; peek() skips those. They are still listed in the grid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(tablet): a font of the PC's for the dim cover's clockDanilo M.1-0/+15
[tablet] clock_font names a font family installed on the PC; the server finds its file with fc-match and serves it at /fonts/clock, and the cover's clock uses it, the date too while clock_font_date is on (default). fc-match falls back to any font, so the route answers only when the returned family is the one named; otherwise the page font stays. The font file never enters the repo, so a personal-use font can be used on one's own tablet without redistributing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(music): covers for embedded art and videosDanilo M.1-0/+22
Haruna sends an embedded audio cover inline as a data:image URL, which the module dropped, and clears mpris:artUrl for every video on purpose so the task manager shows the live window. Serve both at /api/music/image/<key>: the data URL decoded, a local video as one ffmpeg frame (thumbnail filter, 480 px wide), made on first request and kept until the track changes. Only the current track's key answers, so the tablet names a key, never a path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13fix(music): accept a fractional track lengthDanilo M.1-0/+11
Haruna reports mpris:length as a float (65816666.666666664), so int() raised and the whole state failed: the widget said nothing was playing while a video played. Parse length and position as floats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12fix(dashboard): stroke only the top of the chip graphsDanilo M.1-1/+6
The CPU, GPU and network graphs stroked their closed area path, so the outline also ran along the bottom edge and up the left side while the history filled. Each series is now a filled area and an open line through the samples, and only the line is stroked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12feat(stats): show GPU usage on the dashboard chipDanilo M.1-3/+15
xe reports no busy percentage, but its DRM fdinfo carries per-engine cycle counters. The 2s fdinfo pass that sums VRAM now also sums drm-cycles-rcs/ccs per client, and gpu.util is the busier of render (games) and compute (local LLMs) between two passes; a sum could pass 100% with both running. The GPU chip now matches the CPU chip: usage on a trend, temperature on the small line. VRAM and fan move to keystone's performance page. Without usage the temperature keeps the big value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12fix(tablet): restore the backlight after a restart or shutdownDanilo M.1-5/+10
The server never ran the modules' stop: `deck-it stop` ends it with SIGTERM and nothing called stop_all, so a shutdown left the tablet dim. A SIGTERM handler now runs stop_all before exiting. The settings from before a dim lived only in memory, so a new server's undim had nothing to put back. They are now kept in ~/.cache/deck-it/dim, and a freshly loaded page asks for undim, since it is never dimmed itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(tablet): dim the backlight after an idle timeoutDanilo M.1-0/+22
After [tablet] dim_after seconds with no touch the page covers itself and the tablet module's dim action lowers the backlight to dim_brightness over adb, with auto brightness off meanwhile; an LCD's backlight is the drain, so a dark page alone saves little. The touch on the cover only calls undim, which restores both settings, as does the module's stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11fix(windows): skip special-workspace windows that have no idDanilo M.1-0/+15
Hyprland lists a window on a special workspace (e.g. special:dash) with no workspace "id". _state indexed it directly, so one such window raised KeyError on every poll and the Windows tab froze on its last list, with stale previews and a stale active highlight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(sleep): run deck-it stop on a confirmed shutdownDanilo M.1-4/+8
After the tablet has been told, a PrepareForShutdown runs `deck-it stop` in its own session (it kills the server) so the tunnels, wayvnc and the headless output go cleanly before the inhibitor lets the shutdown on. Login brings everything back on the next boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(sleep): tell the tablet when the PC shuts down or rebootsDanilo M.2-11/+34
The delay inhibitor now covers shutdown too, and dbus-monitor also watches PrepareForShutdown. X-Deckit-Sleep carries the reason ("asleep" or "shutting down") and the page shows "The PC is <reason>", dropping the wake lock as on suspend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(windows): a new window brings the Windows tab forwardDanilo M.1-0/+27
When a window id appears that the last poll did not list, the tablet shows the Windows tab for [windows] peek seconds (default 8, 0 off) and then goes back to the tab it was on. A touch on the page or a tab change meanwhile keeps it there; another new window restarts the timer. The hook is generic: a panel's peek(state) returns seconds, app.js does the switching. The first poll only learns what is open, and an error state keeps what it knew, so neither triggers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(dashboard): pending updates in the system row, icons, opencode logoDanilo M.1-0/+5
The system row now ends with "N updates available", keystone's "to install" count from updatesctl ([dashboard] updates; empty hides it). stats re-reads it in a thread every 5 minutes, so the NFS reads behind it never stall the 1 s poll. The codename reads "-current" next to the OS name, so it no longer looks like part of the kernel. Kernel and uptime get tux and clock icons, the row is tighter, and its separators are a "|" in the first Hyprland border colour instead of an unreadable dot. The opencode spending card shows the opencode logo by its title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(dashboard): review fixesDanilo M.1-0/+9
- The OBS slot has no one-tap stop: a tap opens the OBS tab, so a stray touch cannot end a recording. - Scrolling lines are measured once their slot is on screen, and every slot again when one comes or goes. - The lock watcher survives a missing pidof. - Trend gradients are in user space, so a flat line still paints. - Uptime under an hour shows minutes. - The shell no longer imports panel files for the modules the dashboard draws. - The spec matches the build VM and OBS slots and the error wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(dashboard): one fixed screen for the tabletDanilo M.2-16/+73
The Dashboard tab drops the draggable card grid for a fixed layout: a top band of system, Claude and tablet chips with trend and fill backgrounds, music and spending always on, a row of one to three busy modules (printer, build VM, OBS) that scroll long lines, and the action icons in Hyprland's rotating border. The stats, tablet and llm panels and the vendored Gridstack go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(actions): dashboard actions and the tablet following the lockDanilo M.1-0/+81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(config): the dashboard's action listDanilo M.1-1/+8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(music): a volume slider with a mute toggle, icon buttonsDanilo M.1-0/+9
The Vol-, Mute and Vol+ buttons give way to a mute toggle (its icon shows the state) and a 0-100 slider that sets the default sink with wpctl as it moves. Previous, play/pause and next are Nerd Font glyphs instead of the tablet's Unicode symbols. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(stats): an OS row with logo, kernel and uptimeDanilo M.1-0/+6
The System card's small 'up Nh' line becomes a full-width tile: the distro's Nerd Font logo, NAME and VERSION_ID from /etc/os-release in large type, the codename and kernel release below, and the uptime large on the right. An unknown distro gets Tux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(stats): processor and card names, both network rates largeDanilo M.1-0/+16
The CPU tile is labelled with /proc/cpuinfo's model name, trimmed of core counts and trademarks; the GPU tile with lspci's marketing name for the xe card. The network tile shows download and upload side by side at the same size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(llm): desktop-assistant usage as Local AgentDanilo M.1-1/+4
The LLM usage card gets a third section, the desktop-assistant program from llm-cost-dashboard, with the same session and total stats as opencode. The per-program aggregation now takes the program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): the transcript as chat bubbles with avatarsDanilo M.1-0/+2
Questions sit on the right in an accent bubble with the user's avatar (`[assistant] user_avatar`, served at /api/avatar); replies on the left in a surface bubble with the assistant's, a "…" bubble while a reply has no text yet. The assistant's avatar is the background picture itself, zoomed by CSS onto `[assistant] face` ([centre x, centre y, size] in its pixels), so nothing is cropped on the PC; the page loads the picture once for its real size. Unset, both are plain circles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(windows): preview cards and keystone's workspace iconsDanilo M.2-1/+37
Each window is a card like the Alt+Tab switcher's: a preview in the window's shape (grim -T on Hyprland's stableId, also for hidden workspaces, refreshed every 5 s), the desktop top left, close top right, the app icon bottom left, each on its own scrim, the title below. Tap focuses, a long press opens the move menu at the press point (the grid re-renders under a title that changes every second, so the card itself may already be gone), and Chrome's image menu is suppressed. Module.image serves module images at /api/<module>/image/<key>; windows answers only for a window the last state listed. Workspace tiles, card markers and the move menu use the icons from keystone's Workspaces.qml, falling back to the number; the icon route also searches the theme's places, preferences and categories folders, where two of them live. The workspaces are centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): a faint picture behind the Assistant tabDanilo M.1-0/+12
`[assistant] background` names an image (none by default); the server serves it at /api/bg behind the token, and the tab shows its subject from the right side, desaturated and faded out on every side so no edge shows: opacity .24 while the chat is empty, .07 during a conversation. Tuned on the 1280x800 tablet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: the PC tells the tablet it is going to sleepDanilo M.2-0/+87
deckit/sleep.py holds an elogind delay inhibitor and watches PrepareForSleep with dbus-monitor. On a suspend the server marks its answers with X-Deckit-Sleep for 2 s, so the tablet's next poll shows "The PC is asleep" at once and drops its wake lock, then lets the inhibitor go. On resume it takes the inhibitor again. The 15 s silence fallback stays, worded "The PC is not answering", for a crash or a dropped tunnel. The inhibitor's command is `tail --pid=<server>` and dbus-monitor has a parent-death signal, so a killed server leaves no lock delaying every suspend (checked with kill -9: both gone within 2 s). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(assistant): voice-only tab, tools in an overlay, silent clips droppedDanilo M.2-7/+8
The first voice question on the tablet was a 0.66 s silent clip: the mic gave no feedback until the next poll, an extra tap made a near-empty recording, and the model invented a question from the silence. The mic now turns red on the tap itself, and a clip whose loudest sample is under 1500 (room noise measured ~260, speech 15000+) is not sent. Typing happens on the PC, so the text field, send button and the ask action are gone; the bar is a large mic and a stop icon. The presets and ops move into an overlay opened from the header, so the transcript gets the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(assistant): review fixes: robust reader, op ownership, no stuck opsDanilo M.1-19/+90
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): WAV encoder and safe Markdown for the tabDanilo M.3-0/+94
Vendors marked 18.2.0 (MIT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): presets and ops on a file picked on the PCDanilo M.1-0/+87
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): daemon client with chat, model and voice actionsDanilo M.1-0/+109
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): fold daemon events into the tab's stateDanilo M.1-0/+98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(server): serve the Nerd Font at /fonts/nerd.ttfDanilo M.1-0/+14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(server): upload actions take a raw body up to their own limitDanilo M.1-1/+17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(tablet): battery and Wi-Fi card on the dashboardDanilo M.1-0/+61
Reads `dumpsys battery` and `cmd wifi status` (Android 11+) over adb from the device whose reverse carries the dashboard socket, so a switch between USB and Wi-Fi is followed. Reads are cached for 10s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(obs): pause, Studio Mode, and working transition tilesDanilo M.1-0/+29
The transition tiles listed transition kinds (fade_transition), which SetCurrentSceneTransition rejects and which never matched the current one, so every tile looked inactive. Read GetSceneTransitionList instead. Add a Pause/Resume button, shown while recording, and a Studio toggle. With Studio Mode on, a scene tap cues it in Preview (dashed tile) and the Transition button, shown only then, sends it to Program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(k1c): live camera stream instead of snapshotsDanilo M.1-4/+4
The camera was a snapshot reloaded on every poll. It is now the webcam's MJPEG stream_url, which an <img> plays by itself at the camera's own rate (15 fps on the K1C). The stream connects only while the K1C tab is on screen and the page visible, and disconnects otherwise, so a hidden tab does not keep the printer streaming. A dropped stream hides the image and reconnects on the next poll. The image is shown as soon as its source is set, since a never-ending stream may never fire load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(k1c): read the part fan from Creality's output_pin fan0Danilo M.1-0/+7
Creality's K1C firmware drives the part cooling fan as `output_pin fan0` and reports the standard `fan` object with speed null, so the tab showed no fan speed. The standard object still wins when it has a value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: K1C printer tab and proper cards for switched-off sourcesDanilo M.1-0/+108
A K1C tab follows a Klipper printer through Moonraker ([k1c] url): state, file, progress with elapsed, left and finish time, layer, the slicer's model thumbnail, nozzle and bed with target and power, fan, speed, position, filament, and the camera snapshot. It is read-only bar one action, the emergency stop (M112), behind a press-and-hold button so a stray touch on an always-on tablet cannot kill a print. Klipper being down (after a stop) shows its message in a red banner. The printer is often off, so a failed poll backs off 10s instead of costing every tick a timeout. File metadata is fetched once per job; the slicer's estimate covers the start of a print until the file-position estimate settles. The tablet loads the camera and the thumbnail straight from the printer, so both need it on the printer's LAN. OBS, the build VM and LLM usage showed raw text when their source was off ("OBS offline: [Errno 111] ..."). They now share static/offline.js: a greyed app icon, what is off, what brings it back, and a pulsing "checking" note, with the raw error in the tooltip. OBS hides its empty blocks while off. The card is not rebuilt on every poll. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix: window list flicker and icons missing from the icon themeDanilo M.1-0/+10
The Windows tab rebuilt every row once a second, and each rebuild walked every window icon through its fallback names again, so the rows blinked. It now re-renders only when the state changed. Icon lookup only searched the configured theme, so an app the theme lacks (pcmanfm-qt under candy-icons) lost its icon and showed its label. It now falls back to hicolor, as the icon theme spec does, in hicolor's size/category layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: dashboard-only mode and keystone settings integrationDanilo M.3-10/+36
The second display is now optional: [display] enabled = false skips the headless output, wayvnc, AVNC and the VNC tunnel, so the tablet runs the dashboard alone. `deck-it env` reports it as EXTEND. Keystone's new deck-it page (quickshell, desktop/modules/deckit) edits the config and the autostart line, which needed: - The user config is merged over the shipped config.toml key by key within each table instead of replacing it whole, so the page writes a sparse file and an unset key falls back to the default. - `deck-it defaults` prints the shipped config as JSON for the page's placeholders, so keystone never copies the defaults. - `deck-it status` prints one JSON line (server, display, waiting, tablet, extend) for the page's status line and restart check. - [launch] is now `apps`, a list of desktop ids run with gtk-launch, with name and icon read from the .desktop file, so the page can pick launchers from the installed apps. The old command tables are gone; the client still sends only an id, which must be listed and installed. A launcher whose icon the theme lacks shows its name. - [wifi] address gives the tablet's address in config. The last address that worked is kept in ~/.config/deck-it/last-wifi: `stop` deletes the runtime serial file, so a restart from the page used to wait forever. - `stop` also ends a login's `wifi --wait`, matched by its own command line only, so repeated restarts do not pile up waiters. Also fixed: `deck-it env` fell through into the usage text, and the usage text printed the license header since the header was added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix: follow UDT's font size and live theme changesDanilo M.1-0/+10
UDT gives font sizes to keystone's fonts page, which writes ~/.config/keystone/fonts.json. deck-it hardcoded px sizes, so changing the size on the fonts page did nothing on the tablet. theme.css now carries --udt-font-size (override.deckit, else base, 8 to 40px, as quickshell checks) on html, and deck.css sizes text in rem, scaled from the old 14px design. The page loaded theme.css once, so a scheme, wallpaper or size change reached the tablet only after a reload. The shell now re-reads it every 5s and on visibility, swapping it into a <style> only when it changed, and sets meta theme-color from --udt-base instead of Macchiato's hardcoded base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09chore: GPLv2-only license, docs and source headersDanilo M.14-0/+224
2026-11-09feat: auto-below placement re-reads the live layoutDanilo M.1-0/+10
2026-11-09fix: window focus and close must call hl.dispatchDanilo M.1-0/+6
2026-11-09feat: window rows get app icons and a close/move menuDanilo M.1-0/+30
2026-11-09feat: launcher icons follow the icon theme Keystone setsDanilo M.1-0/+7