Skip to content

[WIP] Fix missing functions for user role edit and suspend actions#49

Merged
JustinhSE merged 2 commits intomainfrom
copilot/fix-admin-edit-suspend-functions
Feb 25, 2026
Merged

[WIP] Fix missing functions for user role edit and suspend actions#49
JustinhSE merged 2 commits intomainfrom
copilot/fix-admin-edit-suspend-functions

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

  • Add adminUpdateUser function to firebase.ts (update role and streakDays)
  • Add adminSuspendUser function to firebase.ts (clear user entries: meditations, journal, relapses; reset streak and lastCheckIn)
  • Add edit dialog in Admin.tsx with role selector and streak input
  • Add suspend confirmation AlertDialog in Admin.tsx
  • Wire up Edit and Suspend buttons with onClick handlers and state management
  • Build passes (TypeScript + Vite)
  • CodeQL security scan: 0 alerts

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: JustinhSE <84724234+JustinhSE@users.noreply.github.com>
@JustinhSE JustinhSE marked this pull request as ready for review February 25, 2026 21:49
@JustinhSE JustinhSE merged commit ea00bb8 into main Feb 25, 2026
2 of 3 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.

2 participants