aboutsummaryrefslogtreecommitdiffstats
path: root/static/app.js
AgeCommit message (Collapse)AuthorFilesLines
2026-11-10fix(dashboard): review fixesDanilo M.1-2/+5
- 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.1-184/+26
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-10fix: swiping between tabs works on the tabletDanilo M.1-3/+12
#tab-body scrolls, so Chrome claimed every moving finger as a pan and sent pointercancel, and the shell dropped the swipe before pointerup: it never worked on touch. touch-action: pan-y keeps vertical scrolling the browser's and sideways moves the page's. Swipes may now also start on buttons (most of the Windows tab is cards); only sliders and the dashboard's drag and resize handles keep theirs, and a recognised swipe swallows the click it ends in. Checked with adb swipes: empty space and a window card both change tab, the card's window is not focused, and vertical scrolling still works. Also hide the OBS tab's empty blocks while OBS is off: .deck-cols set display: grid, which overrode their hidden attribute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: icons in the tab barDanilo M.1-2/+12
Each tab is a Nerd Font glyph (gauge, windows, camera, chat, printer), with the name only next to the active one; a tab without an icon keeps its name. Swipes find tabs by data-tab now that the text is not the name. The reload button is the refresh glyph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: the PC tells the tablet it is going to sleepDanilo M.1-8/+12
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-10feat: "The PC is asleep" overlay, and the tablet may sleep tooDanilo M.1-2/+31
A sleeping PC answers no poll, and the wake lock kept the tablet's screen on over a frozen dashboard all night. After 15 s without any answer the page shows an overlay and releases the lock; the first answer hides it and takes the lock again. Checked on the tablet by stopping the server for 21 s: no screen wake lock while stopped, Chrome's taken again 5 s after it resumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10perf: load and mount panels in parallelDanilo M.1-16/+19
Boot imported, mounted and awaited the first poll of each panel in turn, so one slow source (the build VM over ssh, a printer that is off) held back every panel after it, and tabs appeared one by one. All panel code is now imported at once, panels mount in the server's order so cards and tabs do not shuffle, and first polls run without being awaited. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: fold dashboard cards and a reload buttonDanilo M.1-1/+75
Each Dashboard card gets a fold button in its title bar. Folded, it shrinks to one grid row ending at the title bar and cannot be resized; its height is kept in localStorage (deckit.folded) and restored on unfold. The grid floats, so nothing moved into the rows a folded card gave back: cards below it in its columns are pulled up as far as the space is free, on fold and again once every card has mounted, since a card restored folded from storage never folds at runtime. Unfolding needs no mirror; the grid pushes down whatever the regrown card hits. The installed web app has no browser chrome and so no pull-to-refresh, which left no way to load new page code on the tablet. A reload button sits at the top right; JS and CSS are served no-store, so it always fetches the current code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: keep the tablet awake while the dashboard is shownDanilo M.1-0/+14
The page takes a Screen Wake Lock while visible and again whenever it comes back to the front, so the tablet neither dims nor starts its screensaver over the dashboard. It changes no tablet setting, and the screen goes back to its own timeout when the page is hidden. 127.0.0.1 is a secure context, which the API requires. 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/+22
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.1-0/+16
2026-11-09feat: center the tabs and swipe to switch themDanilo M.1-7/+25
2026-11-09feat: fullscreen toggle for the tablet browserDanilo M.1-0/+10
2026-11-09feat: move Windows to its own tabDanilo M.1-0/+14
2026-11-09feat: tabbed layout with OBS as an icon-forward stream-deckDanilo M.1-35/+97
2026-11-09feat: card headers, music art/seek, clearer build cardDanilo M.1-4/+8
2026-11-09feat: vendored Gridstack for drag and free grid resizeDanilo M.1-80/+55
2026-11-09feat: browser-local panel move and resizeDanilo M.1-5/+97
2026-11-09fix: add stats, music and windows panelsDanilo M.1-20/+27
2026-11-09feat: frontend shell and UDT-themed layoutDanilo M.1-0/+39