aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
10 hoursfeat(todo): read the Vikunja token from passDanilo M.1-10/+24
[todo] pass names the pass entry holding the API token; it is read once and kept in memory, and read again after Vikunja answers 401. No token file on disk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 hoursfeat(todo): Vikunja tasks due now on the DashboardDanilo M.2-1/+132
A row under the music and spending cards lists the open Vikunja tasks that are due today or overdue, or whose reminder has passed, and is hidden when there are none. A task with a reminder still ahead is left out, so snoozing adds a reminder 30 min ahead and the task returns when it fires. Tap opens the task in the PC's browser, hold marks it done, a swipe right snoozes it. [todo] url points at Vikunja; the API token lives in ~/.config/deck-it/vikunja-token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 hoursfeat(dashboard): drop the action icons rowDanilo M.2-40/+1
The screenshot and lock buttons went unused; the keyboard is faster. The actions module keeps only the hyprlock watcher that sleeps and wakes the tablet, under the same name since keystone's module toggle uses it. [dashboard] actions is gone from the config and its validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 daysfeat(xbox): mark captures saved on the PC, icon save buttonDanilo M.1-0/+5
A capture whose file is already in Pictures/Xbox or Videos/Xbox carries `saved` and gets a check on its tile. The viewer keeps one icon button, save to PC; the download to the tablet is gone. Deleting from Xbox Live was tried and dropped: mediahub's DELETE answers 403 (errorCode 10401) to a token from our own Azure app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 daysfeat(xbox): save a capture to the PCDanilo M.1-1/+21
The viewer's "Save to PC" asks the server to download the capture into Pictures/Xbox (screenshots) or Videos/Xbox (clips), named by title and capture date; the old link stays as "Tablet". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 daysfeat(xbox): list, view and download uploaded capturesDanilo M.1-0/+18
The slow read also searches mediahub for the user's screenshots and game clips. Their CDN URIs are signed, so the tab shows thumbnails and opens a capture in a dialog (outside the redrawn part, so a data change leaves it open) with a download link and a close button, straight from Microsoft. Only captures the console uploaded appear; an in-game photo mode (e.g. Rockstar's) is not an Xbox capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysfeat(dashboard): the music card shows the game being playedDanilo M.1-0/+35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysfeat(games): find the PC game and its name, cover and playtimeDanilo M.1-0/+89
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysfeat(games): parse Steam VDF and emulator game list cachesDanilo M.1-0/+58
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(ui): serve the Propo Nerd Font so icons centreDanilo M.1-2/+2
The plain Inconsolata Nerd Font gives each icon a 500 unit advance while its ink is up to twice that wide, so every Nerd Font button sat right of centre. The Propo variant's advance is the ink, so centring works for all of them; the VM power button's padding workaround goes. The URL becomes /fonts/nerd-propo.ttf because the font is cached for a day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): follow a power change quicklyDanilo M.1-0/+7
2026-11-16fix(xbox): say what to do when the console is unreachableDanilo M.1-0/+7
2026-11-16feat(xbox): one games list with installed badgesDanilo M.1-8/+29
2026-11-16feat(xbox): console model, region, flags and installed titlesDanilo M.1-0/+13
2026-11-16fix(xbox): a refused console list no longer blanks the tab; tab iconDanilo M.1-0/+10
xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): a redrawn hold never fires, and start clears the flagDanilo M.1-0/+5
A power button rebuilt mid-hold lost its pointerup, so letting go early still turned the console off; hold.js now drops a hold whose button is no longer in the page. status.xbox is written 0 on start, in case a crash left it at 1. The "ago" texts move on each minute, and missing storage names and achievement percentages no longer print null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): keep the reader alive and the flags rightDanilo M.1-3/+62
- run() survives any exception from tick(); _http turns http.client.HTTPException into OSError. - Signing out or in again resets the slow-read clock, so the profile is read at once instead of after 10 minutes. - After stop() nothing sets status.xbox back to 1; its compare and write is under a lock. - api() uses a copy of the auth taken under the lock; command() maps a missing auth to "not signed in". - Action and sign-in errors carry Xbox Live's own message when the HTTP error body has one. - type_of caches only a 404; other errors retry on the next tick. - Sign-in: start_login is locked, a poller only ends its own flow, and a failed token save ends it as "failed". - state() is loading only until the first presence read. - Drop a stale placeholder comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): switch to the Xbox tab once per game sessionDanilo M.1-0/+29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live reads, presentation flag and console commandsDanilo M.1-0/+104
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): device code sign-in from the tabDanilo M.1-0/+34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live auth chain and token fileDanilo M.1-0/+92
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): shape Xbox Live responses for the tabDanilo M.1-0/+96
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>