Skip to content
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

Persist Onboarding Form on DB #45

Merged
merged 12 commits into from
Jul 27, 2023

Conversation

nicolasbrandao
Copy link
Contributor

Description

This PR persists data from onboarding form on the DB

  • Change prisma schema and make migrations
  • Add user provider to app layout
  • Add user ID to request body on the onboarding route
  • Update user with form data on the DB
  • Fix bug on UserProvider (component was not "use client")

Next Steps

  • Redirect user after onboarding

@vercel
Copy link

vercel bot commented Jul 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2023 9:15pm

Copy link
Contributor

@vitorschelb vitorschelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good co-work!

prisma/schema.prisma Outdated Show resolved Hide resolved
src/app/api/onboarding/route.ts Outdated Show resolved Hide resolved
src/app/api/onboarding/route.ts Outdated Show resolved Hide resolved
nicolasbrandao and others added 4 commits July 27, 2023 17:30
Co-authored-by: Vitor Schelb <116350364+vitorschelb@users.noreply.github.com>
Co-authored-by: Vitor Schelb <116350364+vitorschelb@users.noreply.github.com>
Co-authored-by: Vitor Schelb <116350364+vitorschelb@users.noreply.github.com>
Co-authored-by: Vitor Schelb <116350364+vitorschelb@users.noreply.github.com>
Copy link
Contributor

@vitorschelb vitorschelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @nicolasbrandao! We rock!

@nicolasbrandao
Copy link
Contributor Author

Great job @nicolasbrandao! We rock!

Thank you! Happy to work with you ❤️

@vitorschelb vitorschelb deleted the nicolasbrandao/persist-onboarding-form-on-db branch July 27, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants