Open Jaylin0312 opened 3 months ago
this can be done by manipulating the zod object used in react-hook-form
at @/common/tools/zod/schemas.ts#L13-L20
currently, we already display a basic meessage on the form input itself and this should be sufficient for our first release:
for future references, we can consider having better message delivery for invalid / unsupported emails by using better vocab or with toasts
Current Implementation
Currently, the web app will display "Please enter a valid school email address" for school domains that are not yet supported by AfterClass.
Potential Issues
The error message might be misleading considered the school domain is indeed valid, just that it is yet to be supported
Discussion