Skip to content

v1.4.1 — User activity tracking#65

Merged
Sportinger merged 2 commits intomasterfrom
staging
Mar 23, 2026
Merged

v1.4.1 — User activity tracking#65
Sportinger merged 2 commits intomasterfrom
staging

Conversation

@Sportinger
Copy link
Owner

Summary

  • Track app version, AI model, and last login time per user in D1
  • Frontend sends X-App-Version header on all API requests
  • User records updated on login (callback + dev-login) and each AI chat request
  • /api/me returns tracking fields (lastAppVersion, lastAiModel, lastLoginAt)
  • Migration 0006_user_tracking.sql already applied to remote D1

Test plan

  • Login via magic link → verify last_app_version and last_login_at populated in DB
  • Send AI chat message → verify last_ai_model updated
  • Call /api/me → verify new fields in response

🤖 Generated with Claude Code

MasterSelects and others added 2 commits March 23, 2026 10:07
- Add last_app_version, last_ai_model, last_login_at columns to users table
- Send X-App-Version header from frontend on all API requests
- Update user record on login (callback + dev-login) with version + timestamp
- Update last_ai_model on each hosted AI chat request
- Return tracking fields in /api/me response
- Migration 0006 applied to remote D1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sportinger Sportinger merged commit 74b8948 into master Mar 23, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant