Enhancement Feature: Allow User to Edit Submitted Picks
Description
This pull request introduces a new feature that allows users to edit their picks after submission. Once the user submits their picks, they will receive a unique ID that can be used to edit their picks at any time. Additionally, an automated email will be sent to the user upon submission, detailing the following scenarios:
For new submissions, a thank you email will be sent with the user's unique ID.
For updated submissions, an email will be sent with the details of the new picks.
Changes
Frontend
Added an interface for users to enter their unique ID to edit their picks.
Modified the submission form to handle both new and update submissions.
Display confirmation messages upon successful submission or update.
Backend
Created a new endpoint to handle the editing of picks using the unique ID.
Implemented logic to generate and assign unique IDs to each submission.
Set up email notifications for both new and updated submissions.
Email Notifications
Integrated email service to send automated emails upon submission.
For new submissions: Send a thank you email containing the user's unique ID.
For updates: Send an email containing the details of the updated picks.
Implementation Details
Unique ID Generation
A unique ID will be generated for each new submission using a UUID.
This ID will be stored in the database along with the user's picks.
Editing Picks
Users can enter their unique ID on the website to retrieve and edit their picks.
The system will validate the ID and allow users to make changes to their original picks.
Upon resubmission, the system will update the existing record with the new picks.
Automated Email Service
Integrated with an email service provider (e.g., SendGrid, Mailgun).
Emails will be triggered upon form submission.
New Submission: Includes a thank you message and the unique ID.
Updated Submission: Includes a message with the details of the updated picks.
Enhancement Feature: Allow User to Edit Submitted Picks
Description
This pull request introduces a new feature that allows users to edit their picks after submission. Once the user submits their picks, they will receive a unique ID that can be used to edit their picks at any time. Additionally, an automated email will be sent to the user upon submission, detailing the following scenarios:
Changes
Frontend
Backend
Email Notifications
Implementation Details
Unique ID Generation
Editing Picks
Automated Email Service