1
0
Fork 0
polaris-task-force/src/components/admin
Z8MB1E 268d4bb117 feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard
Phase 1 of replacing Microsoft Clarity with first-party usage analytics:
- Plain Postgres tables via shared DDL module (src/lib/analytics/schema.ts)
  executed by both the add_analytics_tables migration and the test bootstrap;
  test-db.ts drops them around drizzle push (composite-PK introspector bug)
- /api/collect beacon collector with IP/UA enrichment, retroactive login
  attribution, bot blocklist, per-IP rate limiting, strict validation
- Client SDK (src/lib/client-analytics): SPA pageviews, clicks, scroll depth,
  focus, data-track visibility, heartbeats; NEXT_PUBLIC_ANALYTICS_DEV=1 dev
  gate with console mirror; mounted beside Clarity in the two frontend layouts
- Hourly rollup + daily retention bins (payload analytics-rollup/-purge)
- Chronicle read progress/completion, wiki new-clicked/created, minigame
  route mapping custom events
- admin:analytics:manage permission (+ roles enum migration) and the
  /admin/analytics Payload view with six recharts-backed report panels
2026-10-14 12:12:53 -04:00
..
analytics feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
assignments feat(assignments): add AssignmentMembersField component for managing assignment members 2026-08-29 23:53:13 -04:00
awards feat(awards): polish Award Automation admin view styling 2026-10-12 15:27:12 -04:00
dashboard feat(admin): add icons to sidebar nav and dashboard collections grid 2026-10-12 13:20:50 -04:00
game fix(game-structures): repair Labor Crew panel data loading 2026-10-10 13:23:52 -04:00
groups feat(admin): add collapsible group field 2026-09-06 01:24:11 -04:00
minigames feat(minigames): add an admin close/reopen control for periods 2026-10-11 17:06:52 -04:00
narrative-flow docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
npc-dialogue feat(npc-dialogue): bigger flow handles + delete edges via Delete 2026-10-07 14:25:14 -04:00
shims feat(shims): add targeted client-side injections 2026-08-26 00:53:31 -04:00
tech-tree feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
voiceover fix(uploads): store upload collections under the persistent media volume 2026-10-08 12:14:46 -04:00
collection-icons.ts feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
VehicleLibraryPicker.tsx feat(arma): import vehicle mass and category defaults, add library picker 2026-10-13 16:02:58 -04:00