Commit Graph
2 Commits
Author SHA1 Message Date
adamfandClaude Opus 5.5 b20ea0adf9 Claim goal notifications before sending them
Test and publish / test (push) Successful in 17s
Test and publish / publish (push) Failing after 23s
The check read "already sent?" and recorded the send afterwards, so two
overlapping checks could both notify. Claim the (goal, day) row first
with ON CONFLICT DO NOTHING and release it if ntfy fails, so a later
check retries. The handler now returns a typed result instead of a
map[string]any, and shares one ntfy client. Fix two comments that still
said nginx.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:15:31 +00: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