-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create save, login flow #62
Conversation
Marked this as draft because it's non-functional on mobile. If it were ugly, I would've let it slide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KevinWu098 The modal front-end looks good to me. Not sure if you want this merged into main and merge main into your other branch or directly merge this branch into your lucia/drizzle one.
* feat: ✨ initial tabs setup * style: 🎨 adjust tabs * style: 🎨 adjust bg and block colors * style: 🎨 borders * style: 🎨 set days to 5, simplify styles * style: 🎨 responsiveness * feat: ✨ add columns prop, based on viewport width * style: 🎨 use sean's tabs * chore: 🔧 remove old availability pages * chore: 🔧 rename v2 to default * fix: 🐛 change sample availability date constructor * feat: ✨ setup stores, buttons for saving * fix: 🐛 revert auth changes for easier development * feat: basic modal component * feat: ✨ various modal improvements (esc, backdrop, close icon), styling * feat: get login result * chore: remove unused code * fix: set unsaved state to false only on success * fix: add support for two forms (login, guest) * style: prevent ui shift at smaller screens * chore: create placeholder guest schema * fix: handle mobile/desktop with window width * style: mobile styling of modal * style: decrease button padding on mobile * rename LoginFlow to LoginModal * chore: remove testing code, unused imports * fix: correct guest input binding * feat: ✨ correct login, register to match prisma schema * style: 🎨 make elements more visible w/ bg color * feat: ✨ correct schema and ui to just have username, email, pw * feat: ✨ rename username to displayName * feat: ✨ setup database * chore: 🔧 add dev db to gitignore * refactor: rename boolean stores * refactor: rename to auth-modal * refactor: ♻️ add interface, rename for login data * fix: 🐛 update username to displayName in drizzle schema * chore: 🔧 install dependencies, setup drizzle studio * feat: ✨ update schema * chore: 🔧 uninstall unused lucia dep * feat: ✨ update lucia to v3 * feat: ✨ migrate login/registration * fix: 🐛 update load function for load * fix: 🐛 clear superform warning * fix: 🐛 disable google auth config * feat: ✨ update logout * fix: 🐛 call dotenv config * chore: 🔧 remove testing code * fix: 🐛 adjust lucia config * fix: 🐛 correct postgres client * fix: 🐛 correct schema to use text, not uuid type * chore: 🔧 remove console logs * chore: 🔧 remove log files, update config * feat: ✨ migrate google oauth * chore: 🔧 remove console log * chore: 🔧 update deps * chore: 🔧 update deps pt2 * feat: ✨ disable google auth, correct schema * fix: 🐛 disable google in lucia config * fix: 🐛 correct bugs and errors from #62 * chore: 🔧 extract existingUser function * chore: 🔧 remove console log * fix: 🐛 use scrypt over oslo * chore: 🔧 remove prisma * feat: ✨ update ProfileCard w/ auth buttons and info * feat: ✨ update login ui * fix: 🐛 cleanup login * feat: ✨ update register ui * chore: 🔧 add error into form error message --------- Co-authored-by: Sean Fong <[email protected]>
Summary
This PR is entirely frontend sided as the backend endpoints / db connections haven't been setup yet.
Progress
Screenshots
Future Followup
Note
Currently, this PR is using the old auth for easier development. Those changes should be reverted before merge.
Future Followup
Closes #59