13 Commits
Author SHA1 Message Date
junv 7cfe499be4 Add notification 2026-06-20 21:07:56 +10:00
junv 3f9af56060 add sign in 2026-06-20 20:16:20 +10:00
junv 91b16aba53 make view activity works! 2026-06-20 17:14:51 +10:00
Hermes Agent aac1decc71 fix: support LAN access in local dev with wildcard host matching
- PUBLIC_HOST/PRIVATE_HOST='*' matches any hostname (localhost, LAN IPs)
- Public route falls through to private on 404 (shared host in local dev)
- If both return 404, keep original public 404 response
- APP_BASE_URL updated to http://localhost:8787 for local dev
2026-06-20 15:42:21 +10:00
Hermes Agent b357e8aa80 feat: redesign nav — home shows public links, user menu with dropdown
- Remove Public Directory tab; public links now show on home page
- Rename Private Links to My Links
- Add right-aligned user menu with hover dropdown (Profile, Settings, Admin, Logout)
- Show admin badge next to username when role=admin
- Show Sign In button when not logged in
- Admin tab only visible to admins
- New GET /api/auth/me endpoint returns current user from session
- useCurrentUser hook for auth state in React
- CSS-only hover dropdown with fade-in animation
- Placeholder pages for Profile and Settings
2026-06-20 15:09:19 +10:00
Hermes Agent fd647bcc2e feat: add dev-only login for local admin access without OAuth
- POST /api/auth/dev-login creates/finds user, promotes to admin, sets session cookie
- POST /api/auth/dev-logout clears session cookie
- Dev login page at #/dev-login in the SPA
- Fix: getSessionCookieAttributes omits Secure over HTTP (local dev fix)
- Guarded: only works when PUBLIC_HOST=localhost, returns 403 otherwise
- Justfile: dev-admin and dev-logout commands
- README: local admin login instructions
2026-06-20 14:55:28 +10:00
Hermes Agent e4fbbaec14 feat: add terraform IaC, dev/prod environments, and multi-host worker support
- Terraform configs for D1 databases, KV namespaces, Worker custom domains
- wrangler.dev.jsonc and wrangler.prod.jsonc for environment-specific deployments
- Worker code refactored to use env vars for host checking (PUBLIC_HOST, PRIVATE_HOST)
- Configurable app URLs and cookie domain via env vars
- Deploy and migrate npm scripts for dev/prod
- Updated all tests with new env fixtures
- Deployment guide in README
2026-06-20 14:26:56 +10:00
Hermes Agent d9298239c9 feat: add promotion review APIs 2026-06-20 12:58:56 +10:00
Hermes Agent 0e93faab2d feat: add link CRUD APIs 2026-06-20 12:14:51 +10:00
Hermes Agent 57e77f3e3c fix: mark private host reserved responses no-store 2026-06-20 12:04:19 +10:00
Hermes Agent 0af13191df feat: resolve private shortlink redirects 2026-06-20 11:12:21 +10:00
Hermes Agent d45091a7c3 feat: resolve public shortlink redirects 2026-06-20 10:39:53 +10:00
Hermes Agent 32913619f4 feat: scaffold cloudflare shortlinks app 2026-06-20 09:57:13 +10:00