Closed HectorAgudelo closed 1 month ago
@HectorAgudelo just finished reviewing and testing!
Just a couple things:
- I did not receive a warning when the invite was already accepted. However I did receive a warning for expired and revoked.
- Instead of the status being '1 ALREADY_ACCEPTED', can we change this back to 'ALREADY_ACCEPTED'?
Fixed!
@HectorAgudelo just finished reviewing and testing! Just a couple things:
- I did not receive a warning when the invite was already accepted. However I did receive a warning for expired and revoked.
- Instead of the status being '1 ALREADY_ACCEPTED', can we change this back to 'ALREADY_ACCEPTED'?
Fixed!
Awesome thanks @HectorAgudelo! I do not see it here yet, can you push your changes?
This pull request introduces a new feature that enhances the user invitation flow for our application. Key changes include:
Differentiated Email Handling: The Lambda function now dynamically generates email invitations based on whether the guest is a new or existing user. New users receive registration links, while existing users receive login links.
Customizable Email Templates: The email content and design have been improved to provide a more welcoming and informative experience for invited users. (missing or needs customization).
Invitation Status Tracking: A more robust system for tracking invitation statuses has been implemented, including handling for revoked, expired, unexpected status, and not found scenarios.
Error Handling and Rollback: The Lambda function includes improved error handling with transaction rollbacks to ensure data integrity in case of failures.
Frontend Integration: Added a modal to the frontend to display relevant messages to the user, based on the invitation status, so they are aware of any issues with their invitation.
Technical Details:
Lambda Function (handler): The primary logic for invitation creation, email sending, and status management is handled here.
Database Interaction: The function interacts with the database to store and retrieve invitation data.
AWS SES Integration: Amazon Simple Email Service (SES) is used to send the customized email invitations.
Frontend Components: The frontend was modified to display a modal to the user with relevant information, based on the invitation status.
Additional Notes:
The code has been tested thoroughly to ensure it functions correctly for both new and existing users.
Please review the code changes and provide feedback.
Files Changed:
Functional Testing:
New User Invitation Flow:
Existing User Invitation Flow:
Error Scenarios: