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

Added onboarding step to ask for referral source #159

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ast-cloud
Copy link

Fixes #144

The second screen in onboarding asks for referral source.

Papermark_144.mp4

Front-end :

  • In pages/welcome.tsx, inserted a new screen ReferralSource between Intro and Next screen.
  • Modified components/welcome/intro.tsx to open ReferralSource screen after it.
  • Created a new file components/welcome/referralSource.tsx containing the UI of the new screen.

Back-end :

  • In schema.prisma, added a new attribute "referralSource String?" in User model.
  • Created a new api pages/api/user/save_user_referral_source.ts to save the selected referral source to the database.

@ast-cloud ast-cloud requested a review from mfts as a code owner November 20, 2023 19:12
Copy link

vercel bot commented Nov 20, 2023

@ast-cloud is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

what-the-diff bot commented Nov 20, 2023

PR Summary

  • New Component Added: ReferralSource
    A new file named components/welcome/referralSource.tsx is created. It introduces a module which allows users to select referral sources and accelerator options through dropdown menus. It also includes a feature to manage these selections. The module communicates with a new API route for saving user referral source selection.

  • Welcome Page Updated
    The welcome page (pages/welcome.tsx) is updated to include the new ReferralSource component for instances when the query type is "referralsource". This means users will be able to access and utilize the new module from the welcome page.

  • Update to User Model
    The User model in the Prisma schema (prisma/schema.prisma) is updated to include a referralSource field. This means the model now stores the data about user's referral sources alongside their other information.

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.

Add one more step in onboarding
1 participant