CalNourish / pantry-webapp

Pantry web app built with Next.js
https://www.ucbbncfp.com/
MIT License
8 stars 0 forks source link

Format verification checkin #178

Closed justinazhang closed 1 year ago

justinazhang commented 1 year ago

Add some format verification to student ids before writing them to the spreadsheet on the checkin

tinyherocarrot commented 1 year ago

@justinazhang can you please provide parameters of a valid student id?

tinyherocarrot commented 1 year ago

From Natalia:

CAL ID INFO Student ID#s are 10-digit student ID number beginning with 30 or an 8-digit ID number beginning with either a 1, 2, 7, or 8. Employees or affiliates 8-digit ID number beginning with 01 or an 8-digit UCPath ID number that begins with 10.

tinyherocarrot commented 1 year ago

@justinazhang should Valid ID feedback display which type of ID was detected? (ie. undergraduate, graduate, employee or affiliate). On Invalid ID, feedback should read "Invalid ID. Please try again."?