JumboCode / casa-myrna

JumboCode 2023-2024 project for Casa Myrna, led by Elizabeth Foster
https://casa-myrna-pumv.vercel.app
4 stars 0 forks source link

Validation Time and other edge cases for AddShift Modal #166

Open pmelga01 opened 6 months ago

pmelga01 commented 6 months ago

Developer: Pam Dates: April 8th Time spent: 2 hours Summary: Validation of AddShift times and form completion edge cases with visual Alert! Testing Desktop:

image

image

image

image

Reflection: Had some trouble, stepped away and worked with Naomi on a similar ticket dealing with time, a lot of things clicked and it made this a lot better, I scrapped my previous progress and made an even cleaner implementation this way. I also am happy to have tackled other validation issues like when a form is incomplete and preventing the client from clicking submit anyways.

I did some serious stress testing and then maybe like 2/10 times it wouldn't allow the user to submit despite having valid information and I couldn't figure out why but it was a rare occurrence, just wanted to put that out there.

useEffect > useState is glorious, It fixed a huge BUG I was facing and I'm thankful for chatGPT for recommending it LOL.