Alex/implement email notification functionality#464
Conversation
…ted imports alphabetically
…Technical/gridiron-survivor into ryan/create-admin-layout
… declared in the layout but the props can be updated per page
|
Gridiron Survivor Application
Project name: Gridiron Survivor Application
Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to your deployments. Learn more about Appwrite Function deployments.
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…nality" and "origin/alex/implement-email-notification-functionality" Fix: Deleted userIDs from function to avoid getting spammed
…il-notification-functionality
…il-notification-functionality
…n-functionality' into alex/implement-email-notification-functionality
…il-notification-functionality
Closes #474 Enhance the user experience of the existing admin notification page to improve its formatting and usability. **Acceptance Criteria:** - [X] Review and redesign the layout of the admin notification page for better organization and clarity. - [X] Improve the visual hierarchy of notification elements for easier scanning and management. - [X] Ensure the design is consistent with the overall admin panel aesthetics. --- ## Video Demo https://github.com/user-attachments/assets/cc1e8a0e-45b0-4fbe-9972-2deb085525dc --------- Co-authored-by: Alex Appleget <alexappleget2014@gmail.com> Co-authored-by: Shashi Lo <362527+shashilo@users.noreply.github.com>
ryanfurrer
left a comment
There was a problem hiding this comment.
I pulled and ran this locally, and while I'm getting a POST 200, I do not see any on-screen confirmation that the email was sent
…il-notification-functionality
…il-notification-functionality
ryanfurrer
left a comment
There was a problem hiding this comment.
I am unable to test this; every time I navigate to /admin it redirects me to my leagues.
…il-notification-functionality
…for bcc emailing.
…he league info and then grab the targetIDs of the users.
…il-notification-functionality
| textAreaRef.style.height = `${scrollHeight + offsetBorder}px`; | ||
| } | ||
| } | ||
| }, [textAreaRef, triggerAutoSize]); |
There was a problem hiding this comment.
What happens when we remove textAreaRef and/or triggerAutoSize from useEffect dependencies here?
There was a problem hiding this comment.
If we don't need to re-render the component, this will cause unnecessary re-renders.
| if (textAreaRef) { | ||
| if (init) { | ||
| textAreaRef.style.minHeight = `${minHeight + offsetBorder}px`; | ||
| if (maxHeight > minHeight) { | ||
| textAreaRef.style.maxHeight = `${maxHeight}px`; | ||
| } |
There was a problem hiding this comment.
Are these if statement nestings necessary, or are there ways we can combine some of them into one if conditional?
There was a problem hiding this comment.
This would be a question for Ryan. These were his changes made that got merged into my branch after approval.
…il-notification-functionality
…il-notification-functionality
| textAreaRef.style.height = `${scrollHeight + offsetBorder}px`; | ||
| } | ||
| } | ||
| }, [textAreaRef, triggerAutoSize]); |
There was a problem hiding this comment.
If we don't need to re-render the component, this will cause unnecessary re-renders.
| */ | ||
| const getLeagueData = async (): Promise<void> => { | ||
| try { | ||
| const leagueId = '66f1a8e300102bff03ff'; // EMAIL TEST LEAGUE (DO NOT CHANGE) |
There was a problem hiding this comment.
Do we not have this dynamically working?
| * Fetches the league data. | ||
| * @returns The league data. | ||
| */ | ||
| const fetchData = async (): Promise<void> => { |
There was a problem hiding this comment.
Does this need to be in a useEfect or can it just be called when the component mounts?

Closes #463
Create functionality for email notifications into the project for the admin notifications page.
ONCE this ticket gets merged in, I will create more tickets to implement more customization for sending emails. Ex: survivors only email, eliminated. For now, only participants is created to test that the email function does take in id's and sends an email.
Recording.2024-08-19.143407.mp4