Skip to content

fix(auth+stats): MVP user management + hours calculation fix - #6

Merged
KniggeMS merged 1 commit into
mainfrom
fix/p0-build-achievements-ci
May 10, 2026
Merged

fix(auth+stats): MVP user management + hours calculation fix#6
KniggeMS merged 1 commit into
mainfrom
fix/p0-build-achievements-ci

Conversation

@KniggeMS

Copy link
Copy Markdown
Owner
  • Fix totalRuntimeMinutes: guard null/undefined runtime in calculateStatistics
  • Fix thisYearRuntimeMinutes: year-filter KPI now uses filtered runtime, not alltime
  • Add username + lastLoginAt to UserProfile type
  • AuthService: username login via get_email_by_username RPC, last_login_at update
  • LoginScreen: username field for signup, email-or-username login input
  • ProfileModal: show email, username, role badge, registeredAt, lastLoginAt in profile tab
  • Add AdminNotifications component: in-app badge for new registrations (admin only)
  • Add SQL migration files: 001_extend_profiles, 002_admin_notifications, 003_triggers

- Fix totalRuntimeMinutes: guard null/undefined runtime in calculateStatistics
- Fix thisYearRuntimeMinutes: year-filter KPI now uses filtered runtime, not alltime
- Add username + lastLoginAt to UserProfile type
- AuthService: username login via get_email_by_username RPC, last_login_at update
- LoginScreen: username field for signup, email-or-username login input
- ProfileModal: show email, username, role badge, registeredAt, lastLoginAt in profile tab
- Add AdminNotifications component: in-app badge for new registrations (admin only)
- Add SQL migration files: 001_extend_profiles, 002_admin_notifications, 003_triggers
@KniggeMS
KniggeMS merged commit f649261 into main May 10, 2026
1 check failed

@KniggeMS KniggeMS left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit

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