grassrootsgrocery / admin-portal

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

141 warning if volunteer info is missing #160

Open johnkenjikono opened 3 months ago

johnkenjikono 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
🚅 Deployed to the admin-portal-pr-160 environment in Grassroots Grocery Admin Portal Service Status Web Updated (UTC)
admin-portal ✅ Success (View Logs) Web Aug 13, 2024 at 7:49 pm