Feat/feb24#16
Merged
Merged
Conversation
Added /admin page where admin users can switch between Clinic, Assessor, Chief, and Firefighter views. Purple "Admin" back button appears in all dashboard headers only for admin role. Updated login and middleware to route admin users to /admin. Fixed Resend client initialization to be lazy so it doesn't crash during Vercel builds when the API key isn't available.
…evel validation Assessor now returns to personnel list after saving instead of going to the review page. Fixed riskLevel mismatch where review pages sent 'High'/'Low' but the email API expected 'High Risk'/'Low Risk', causing silent 400 errors.
Removed one-time recovery link generation from email API. Email now links to the login page with instructions to use Forgot Password, so firefighters can set their password on their own time without an expiring link.
Both fields were missing from the insert, resulting in NULLs in the database.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix