-
Notifications
You must be signed in to change notification settings - Fork 11
User Interface
Song Zheng edited this page Mar 23, 2020
·
58 revisions
- Forget password feature is unplanned. During development, please don't forget your credentials!
Really simple and straightforward landing page view.
We decided to opt out of putting a confirm password
input box.
- E-mail input
- Username input
- Password input
Takes user to Login page.
Trigger validations on backend
- Username validations
- Must have valid characters (alpha numberic characters only)
- must be >= 1 character
- Must not exist in the DB
- Email validation -> TODO: delete unconfirmed accounts.
- Must be a valid email
- Must not exist in the DB
- Password validation
- greater than 8 characters If validation succeeds, takes the user to the Confirm Email Page.
Checks the login status, displays 2 options
- (LoggedIn) Shows Database Page
- Login Button
- Renders login page
- Sign Up Button
- Renders sign up page
-
Username Input
-
Password Input
-
Submit Button
- Checks if e-mail confirmed
- If e-mail is not confirmed, send them e-mail confirmation, render confirmation e-mail page.
- If e-mail is confirmed, send user to database setup page.
- If e-mail is confirmed and database password set, send user to databases page.
- Sign Up Button
- renders sign up page
- Password Input
- Once all three inputs are populated, send a request to validation endpoint to make sure inputs meet the requirements and we have no duplicates and display prompt of either passing or failing.
- A debounce function will determine when a user stops typing and a request will be sent at that point.
- Submit Button
- Sends a post request with inputs email, username, password to the signup endpoint and creates user.
- Sends user confirmation e-mail.
- Renders e-mail confirmation page.
- Resend Button
- Sends a post request to confirm endpoint to check if email is confirmed
- Confirm Email button
- Will send the user to the database setup page
- Displays list of existing databases
- Displays selection box to create new Databases
- Displays list of databases with new database created.
- Select Database, click create button to create new database.
- Display new databases at the bottom of the database list.
- Logout Button
- Sends a get request to logout endpoint
- renders login page
- input password
- The password is set and used to gain access to the databases page, where one can create new databases
- Set Button
- Sends a request to database setup endpoint
- Renders Databases page