-
Notifications
You must be signed in to change notification settings - Fork 0
Intake form #24
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
Merged
Merged
Intake form #24
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d54b63f
57: Intake form page and component created.
Allimonae f03c45e
Fixing Eslint errors
Allimonae 4110981
fixed eslint errors from cicd tests
Allimonae ba89e56
Intake page naming conventions, removed export default
Allimonae 2971d38
Intake renamed to Sign up. Refactored SignUpForm, continue from State…
Allimonae f0cfab8
Sign up form functions minor fixes
Allimonae a646a66
All files renamed from intake to sign up. Schema.ts created for SignU…
Allimonae 21b0a96
Move marketing text into its own sub component
Allimonae 4ee983e
Sign up form question changes, changed role from select to textinput
Allimonae 90a4932
fixed validation behvior on submit
Allimonae dd74de2
Changed introduction example, all matching preference fields are not …
Allimonae 17420d6
Validation on blur
Allimonae c3c085a
Normalized linkedin to accept linkedin.com/in/profile
Allimonae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { IntroText } from "@/features/sign-up/components/IntroText"; | ||
| import { SignUpForm } from "@/features/sign-up/components/SignUpForm"; | ||
| import { Stack, Title } from "@mantine/core"; | ||
|
|
||
| export function SignUpPage() { | ||
| return ( | ||
| <Stack gap="xl"> | ||
| <Title order={2}>PatChats Sign Up Form</Title> | ||
| <IntroText /> | ||
| <SignUpForm /> | ||
| </Stack> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import { z } from "zod"; | ||
|
|
||
| export const signUpFormSchema = z.object({ | ||
| fullName: z.string().min(1, "Full Name is required."), | ||
| email: z | ||
| .string() | ||
| .min(1, "Email Address is required.") | ||
| .email("Enter a valid email address."), | ||
| linkedin: z | ||
| .string() | ||
| .refine( | ||
| (value) => | ||
| value === "" || | ||
| value.startsWith("https://linkedin.com/in/") || | ||
| value.startsWith("https://www.linkedin.com/in/"), | ||
| { | ||
| message: | ||
| "Enter a LinkedIn profile URL in the format linkedin.com/in/your-profile.", | ||
| }, | ||
| ), | ||
| introduction: z | ||
| .string() | ||
| .min(1, "Introduction is required.") | ||
| .max(300, "Introduction must be 300 characters or fewer."), | ||
| referralSource: z | ||
| .string() | ||
| .max(200, "Referral source must be 200 characters or fewer."), | ||
| matchingPreference: z.string(), | ||
| industry: z.string(), | ||
| role: z.string().max(200, "Role Preference must be 200 characters or fewer."), | ||
| talkingPoints: z | ||
| .string() | ||
| .max(200, "Talking points must be 200 characters or fewer."), | ||
| additionalInfo: z | ||
| .string() | ||
| .max(500, "Additional info must be 500 characters or fewer."), | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { Text } from "@mantine/core"; | ||
|
|
||
| export function IntroText() { | ||
| return ( | ||
| <> | ||
| <Text size="lg"> | ||
| Hi everyone! Would you like to get to know other members of the Patina | ||
| community better? | ||
| <br /> | ||
| <br /> | ||
| PatChats is a program where every month you will get matched with | ||
| another Patina member, and find a time between the two of you to have a | ||
| 30 minute video call or coffee chat! At the end, share your socials and | ||
| take a fun selfie or screenshot to share on the #pat-chats channel on | ||
| our Discord! <br /> | ||
| <br /> | ||
| Connect with other members within the Patina network to learn more about | ||
| each other and share our diverse backgrounds, professional journeys, and | ||
| career insights. Our goal is to foster a more positive, tight-knit | ||
| community where we can support one another in reaching our life and | ||
| career aspirations and have some fun while we're at it! <br /> | ||
| <br /> | ||
| Sign up here to be included in next month's cycle. We currently have 80 | ||
| people signed up and looking to keep it growing! | ||
| </Text> | ||
| </> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.