grassrootsgrocery / admin-portal

GNU Affero General Public License v3.0
11 stars 6 forks source link

141 warning if volunteer info is missing #161

Closed ibrax2 closed 3 months ago

ibrax2 commented 3 months ago

Description of this change

Added small warning symbol next to first names if missing any info (i.e any of the scheduledslots types were undefined). Additionally added an export function that keeps count of these warnings. Used this function to add a counter on the top of each event in red

Screenshots (for UI changes - otherwise delete this section)

Before this PR:

\

Screenshot 2024-07-31 at 4 07 34 PM Screenshot 2024-07-31 at 4 08 23 PM

After this PR:

\

Screenshot 2024-07-31 at 4 06 30 PM Screenshot 2024-07-31 at 4 06 53 PM

(warnings are from changing if statement from if typeof participanType is undefined to if participantType is driver. Pull request will not show any warnings)

railway-app[bot] commented 3 months ago

🚅 Previously deployed to Railway in the Grassroots Grocery Admin Portal project. Environment has been deleted.

mattsahn commented 3 months ago

@ibrax2, what's your plan for this change?

ibrax2 commented 3 months ago

@ibrax2, what's your plan for this change?

it’s a feature Kenji worked on I just did a pull request since he doesn’t have access to railway. The reason i deleted it was because there was an issue with conflicts like the branch was behind so we needed to update that.