The runner's arm64 kernel has a 39-bit virtual address space, and the
race detector (ThreadSanitizer) needs 48 bits there, so every test
binary aborted. `make check` still runs -race locally.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The dashboard gains a per-kind timeline of the selected day, a 14-day
trend chart per kind, and a goal history grid with streaks, sharing a
tooltip and a fixed color per top series. The activities limit rises
to 5000 so busy days fit on the timeline.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Location: a leave decided its destination before taking the device lock,
so a "leave home" racing an "arrive gym" could undo the arrival. The
decision (now ingest.Destination) runs inside MoveTo under the lock.
Transition external IDs were device|label|time, which collided (500) when
out-of-order events were clamped to the same start; they now name the
interval being closed.
hypr-agent: a control command arriving during shutdown no longer blocks
its goroutine forever.
Tests: internal/testdb gives each database test its own throwaway
database, so they run in parallel and no longer truncate the dev data.
New store tests cover both location bugs. CI starts a Postgres container
so these tests actually run, and adds gofmt, staticcheck (pinned as a go
tool) and -race. `make check` runs the same locally.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
POST /api/v1/location/{arrive,leave} records place intervals (home or a
named place, and away in between) from Shortcuts automations. A stale
"leave" for a place the device has already left is ignored. The Health
Auto Export endpoint and its normalizer are removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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]>
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]>
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]>
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]>
The Go API on PostgreSQL ingests desktop, browser, presence, manual and
Health Auto Export events and serves activities and daily goal summaries.
The Hyprland agent records window focus, idle and lock intervals.
The CI workflow publishes adam-french.co.uk/adamf/activity-tracker to the
Gitea registry and rolls the web_server stack onto it. The image probes
itself through a new `tracker healthcheck` command, because distroless
has no wget.
Co-Authored-By: Claude Opus 5.5 <[email protected]>