6 Commits
Author SHA1 Message Date
adamfandClaude Opus 5.5 0be97384fa Move the dashboard and setup pages to a Vue SPA
Test and publish / test (push) Successful in 1m28s
Test and publish / publish (push) Successful in 3m30s
The pages are now a Vue 3 + Vite + TypeScript app in web/, built into
internal/web/dist/app and embedded in the binary. Go still serves
index.html for / and /setup behind the admin gate, plus the hashed
/assets/* (public, cached forever). The router takes its base from the
current URL, so it works under nginx's /tracker/ prefix unchanged.

Only dist/.gitkeep is committed, so go build and go test need no Node;
an unbuilt binary shows a "run make web" page at /. The Dockerfile gains
a Node stage, CI typechecks and builds the app, and make build/run build
it first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:06:41 +01:00
adamfandClaude Opus 5.5 230840cabd Run the browser userscript on file:// pages too
Test and publish / test (push) Successful in 22s
Test and publish / publish (push) Successful in 2m42s
It already matched every http and https page. Local files are labelled
"file". The version bump makes installed copies update.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:34:04 +01:00
adamfandClaude Opus 5.5 13602272fc Tidy the dashboard and setup pages, add one-click API keys
Test and publish / test (push) Successful in 20s
Test and publish / publish (push) Has been cancelled
Both pages share style.css and a top bar with Dashboard and Setup tabs.
The dashboard gains summary tiles, card sections and friendly kind names.
The setup page puts each collector in a collapsible section with its own
Generate key button, which picks a free name, copies the key and fills
it into that collector's steps. Command blocks get Copy buttons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:32:57 +01:00
adamfandClaude Opus 5.5 e6a93be15c Gate the dashboard on the site's admin login and add a setup page
Test and publish / test (push) Successful in 25s
Test and publish / publish (push) Successful in 3m1s
Like job-tracker, the tracker forwards the visitor's cookies to the site
backend's /auth/validate-admin instead of asking for an API key. Signed
in, the dashboard shows every device's data. The new /setup page has
instructions for each collector and creates and revokes API keys. The
userscript is served publicly at /tracker.user.js.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:22:02 +01:00
adamfandClaude Opus 5.5 67082226cc Add Violentmonkey browser collector
The userscript records tab_focus intervals per hostname while its tab is
the selected tab of the focused window, queues them in script storage and
uploads them to /api/v1/browser/events.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:22:02 +01:00
adamfandClaude Opus 5.5 06800edd91 Add minimal dashboard page served at /
Test and publish / test (push) Successful in 15s
Test and publish / publish (push) Successful in 3m10s
Single embedded HTML page that reads the daily summary and activities
endpoints with a user-supplied API key: goals, totals by kind, top labels
and a timeline for the selected day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:02:11 +01:00