Add user data verification page
Part of #17 (closed)
Description
This MR introduces the user data verification page. The check CRSid modal and logic has been removed and clicking on the "Register for your University IT account"-button will take you to the user data verification page. Note that this skips the second page, which we will introduce in another epic. This also means there's not an easy way of navigating to the "Last name" branch without altering the state programatically.
Tests
I've removed the old tests as it was mainly testing the check CRSid part which has been removed. As an alternative we could introduce some tests for the front page, but I am not sure if that's worth it. Let me know if you think otherwise.
Zustand
I introduced zustand
to hold internal state such as the current "step" we are looking at, but also which identifier we chose (crsid
or lastName
). My idea is to also store the token we get back from the backend after we submit the details.
Tooling
I noticed that we did not extend from prettier
in our eslint
configuration, which I added in this MR.
Issues
During development of this ticket I noticed a couple of issues or things that are missing. I created the following new issues to address that later:
I also had to create: