magpie/scripts
Alan Weinstock f90124dabe feat(ui): session status widget + SPA API proxy (#12)
- Add SessionWidget.vue: sidebar widget showing Reddit session status
  (dot color: green/yellow/red by age), age in hours, and a refresh
  button that triggers the Playwright re-login (~30s, blocking POST)
- Add SessionStatus + RefreshResult types and api.reddit.* methods to
  api.ts (sessionStatus, refreshSession)
- Mount widget at bottom of sidebar in App.vue via margin-top:auto
- Fix spa_server.py: add reverse proxy for /api/* → FastAPI :8532
  (without this, all API calls returned index.html in production mode)
- Guard ageText/dotClass computeds against undefined age_hours with
  typeof check + == null (catches both null and undefined from stale
  browser-cached HTML responses)

Closes: #12
2026-06-13 18:57:35 -07:00
..
migrate_sessions.py feat: link_url variants, team accounts, session layout, menagerie route (#18 #19) 2026-05-27 15:31:58 -07:00
seed_campaigns.py feat: seed example blog campaign + fix solarpunk sub_rules to banned 2026-04-27 16:12:33 -07:00
spa_server.py feat(ui): session status widget + SPA API proxy (#12) 2026-06-13 18:57:35 -07:00