Commit Graph
64 Commits
Author SHA1 Message Date
Hermes Agent 3eb439c769 feat: add i18n support with Chinese/English translations 2026-06-21 11:00:19 +10:00
Hermes Agent d5cd66245e fix: hide My Links nav when not logged in 2026-06-21 10:03:25 +10:00
Hermes Agent 777785ea56 feat: redesign landing hero + live search + dynamic button (GLM 5.2)
- Complete visual overhaul by GLM 5.2: premium design with aurora glow,
  dot-grid background, glassmorphism search shell
- Live search integrated into hero: debounced search of public links
- Dynamic action button: exact match → Go, no match → 创建个人链接
- Login callback flow for unauthenticated users
- Search suggestions chips (canva, piano, claude)
- Full responsive mobile support
2026-06-21 09:57:48 +10:00
Hermes Agent bd31662ab8 fix: landing hero UI, auth guard, stats/history toggle
- Redesigned LandingHero with sleek gradient background, search icon, badge
- Auth guard: unauthenticated users see login page instead of My Links
- LinkDetailPage: stats & history hidden by default, toggle via floating buttons
- Mobile responsive: hero adapts to small screens
- CSS: added detail-floating-actions, refined hero styles
2026-06-21 09:38:55 +10:00
Hermes Agent 4690eca75c feat: landing page, 404 pages, auth redirect + merge remote
- LandingHero: service intro + search input for unauthenticated users
- App.tsx/routing: logged-in users auto-redirect to My Links
- 404 pages: styled with login prompt + alias-based redirect
- Worker: getLinkById API for link detail page (LINK_BY_ID_*_QUERY)
- Private redirect: pass alias to 404/login pages for redirect flow
- Tests: update assertions for new 404 page text
2026-06-21 09:00:18 +10:00
Hermes Agent 4370ef4383 feat: landing page, link detail, 404 pages, auth redirect
- LandingHero: hero section with Heygo service intro + search input
- App.tsx: logged-in users auto-redirect to My Links
- LinkDetailPage: click-based stats/history toggle (hidden by default)
- 404 pages: styled with login prompt for private links
- Private redirect: pass alias to 404/login pages for redirect flow
- Mobile responsive: prevent text overflow on small screens
2026-06-21 08:43:26 +10:00
junv b6212d8b3e Add link search 2026-06-20 22:08:52 +10:00
junv a3ba6dd395 Update! 2026-06-20 21:58:16 +10:00
junv 10f4b530c4 Update UI 2026-06-20 21:53:16 +10:00
junv 45d6debfe5 update UI 2026-06-20 21:49:44 +10:00
junv 5b3472c2df Update UI 2026-06-20 21:43:16 +10:00
junv 425a91c347 Update 2026-06-20 21:40:24 +10:00
junv 8a7dc474ea Update css 2026-06-20 21:23:44 +10:00
junv 22cd7ede24 Update 2026-06-20 21:16:06 +10:00
junv 7cfe499be4 Add notification 2026-06-20 21:07:56 +10:00
junv d8af53a0de Update 2026-06-20 20:44:23 +10:00
junv fb0a0c7ed6 Update 2026-06-20 20:28:53 +10:00
junv ef68cb0bf4 Update 2026-06-20 20:26:20 +10:00
junv 21436ab98e Add logout 2026-06-20 20:18:58 +10:00
junv 3f9af56060 add sign in 2026-06-20 20:16:20 +10:00
junv 6c898fe1f0 update dev env 2026-06-20 20:06:10 +10:00
junv 73ca8ac321 Update dev env 2026-06-20 19:54:55 +10:00
junv 02367ad1b8 update logic 2026-06-20 17:40:20 +10:00
junv d49d0e8e04 update copy links 2026-06-20 17:27:56 +10:00
junv 91b16aba53 make view activity works! 2026-06-20 17:14:51 +10:00
junv 09ab959b08 UI update 2026-06-20 17:02:05 +10:00
junv 87357d5297 Update UI 2026-06-20 16:55:29 +10:00
junv 0ab8e4667f Update view. 2026-06-20 16:28:59 +10:00
junv cb73e17261 Update UI 2026-06-20 16:10:20 +10:00
junv 792a33fecd Update UI 2026-06-20 15:42:57 +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 1b723282f2 fix: import all links as private (personal) instead of public
All 298 links from GoLinks export are now private links owned by
wahyd4@gmail.com. Users can selectively promote links to public
via the promotion flow.
2026-06-20 15:37:19 +10:00
Hermes Agent c7e3017259 feat: listen on 0.0.0.0 for LAN access + import-links just recipe
- just dev now uses wrangler dev --ip 0.0.0.0 --port 8787
- just dev-ui uses vite --host 0.0.0.0
- just import-links [file] to import SQL into local D1
- 298 links from GoLinks export included in imports/links-import.sql
2026-06-20 15:33:04 +10:00
junv f219b018e5 redesign UI 2026-06-20 15:28:44 +10:00
junv c0c0497055 Install frontend design skill 2026-06-20 15:23:53 +10:00
Hermes Agent 09f1090b9d fix: reload page after dev login to refresh user menu auth state 2026-06-20 15:12:01 +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
junv a5b0953cc0 Update 2026-06-20 14:45:26 +10:00
Hermes Agent b81dc0d945 feat: add justfile for all common commands + rewrite README local setup
- justfile with recipes for: build, dev, test, migrate, db helpers,
  deploy (dev/prod), terraform infra, and smoke test
- README rewritten with quick start, command tables, and first-time
  local setup guide
- All commands verified working locally
2026-06-20 14:43:30 +10:00
Hermes Agent cca4ea2ec3 fix: use my.dev.heygo.cc for dev private host instead of my.dev.junv.cc
junv.cc is reserved for k3s home services, not Cloudflare apps.
Both dev and prod private hosts now live under heygo.cc, sharing
the .heygo.cc cookie domain — no cross-domain auth issues.
2026-06-20 14:32:12 +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 f4bf43189f feat: add d1 import script 2026-06-20 13:56:40 +10:00
Hermes Agent 1bd27cd3e0 chore: ignore pycache in scripts 2026-06-20 13:45:57 +10:00
Hermes Agent f75deade23 feat: add django export tooling 2026-06-20 13:45:52 +10:00
Hermes Agent 3b20137a98 feat: add promotion review UI 2026-06-20 13:33:14 +10:00
Hermes Agent d9298239c9 feat: add promotion review APIs 2026-06-20 12:58:56 +10:00
Hermes Agent d4ce524b74 fix: polish link management UI edge cases 2026-06-20 12:49:36 +10:00
Hermes Agent d1294a92d7 feat: add link management UI 2026-06-20 12:40:09 +10:00
Hermes Agent 7f939bef89 fix: harden link API validation and conflicts 2026-06-20 12:28:46 +10:00