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

Feature 288 org sign up screens #348

Merged
merged 44 commits into from
Nov 16, 2023
Merged

Conversation

denniswangcodes
Copy link
Contributor

Dev Summary

Mocks

Test Plan

repro steps:

  1. localhost:3000
  2. click X button
    expected:

Resources

@denniswangcodes denniswangcodes linked an issue Jun 8, 2023 that may be closed by this pull request
@denniswangcodes denniswangcodes self-assigned this Aug 4, 2023
@denniswangcodes denniswangcodes marked this pull request as ready for review August 11, 2023 00:49
@marvinsjsu

This comment was marked as resolved.

@marvinsjsu
Copy link
Contributor

marvinsjsu commented Sep 6, 2023

TypeScript is also complaining about the expected prop types for the Select element - I was able to bypass this by adding {/* @ts-ignore */} right above line 495, <Select>.

ERROR in src/components/Users/Auth/SignUpUserAndNonprofit/SignUpUserAndNonprofit.tsx:495:28
TS2322: Type '{ children: (Element | Element[])[]; placeholder: string; variant: "outlined"; autoWidth: true; input: Element; inputProps: { 'aria-label': string; }; displayEmpty: true; ... 4 more ...; ref: RefCallBack; }' is not assignable to type 'SelectProps<string>'.
  Types of property 'onChange' are incompatible.
    Type '(event: string | ChangeEvent<Element>) => void' is not assignable to type '(event: SelectChangeEvent<string>, child: ReactNode) => void'.
      Types of parameters 'event' and 'event' are incompatible.
        Type 'SelectChangeEvent<string>' is not assignable to type 'string | ChangeEvent<Element>'.
          Type 'Event & { target: { value: string; name: string; }; }' is not assignable to type 'string | ChangeEvent<Element>'.
            Type 'Event & { target: { value: string; name: string; }; }' is missing the following properties from type 'ChangeEvent<Element>': nativeEvent, isDefaultPrevented, isPropagationStopped, persist
    493 |                         <>
    494 |                           <FormLabel>IRS Nonprofit Organization Classification</FormLabel>
  > 495 |                           <Select
        |                            ^^^^^^
    496 |                             {...field}
    497 |                             placeholder="Select classification"
    498 |                             variant="outlined"

@marvinsjsu
Copy link
Contributor

marvinsjsu commented Sep 6, 2023

Do you know if we have a list of required fields for the signup form? Asking because we may need to create a follow-up ticket to add that validation. Also, about the last step. It shows the Sign Up button after the user has gone through the workflow - do we need to ask design about removing this?

Screenshot 2023-09-06 at 9 49 54 AM

Copy link
Contributor

@marvinsjsu marvinsjsu left a comment

Choose a reason for hiding this comment

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

This is looking good. There are a couple of issues regarding a filename and TS, and I've also added a couple of suggestions. Otherwise, nice work!

client/src/components/Buttons/CTAButton.tsx Show resolved Hide resolved
client/src/components/Modals/SignInModal.tsx Show resolved Hide resolved
client/src/components/Modals/SignUpModal.tsx Show resolved Hide resolved
client/src/views/Signup.tsx Show resolved Hide resolved
client/src/views/SignupNonProfit.tsx Outdated Show resolved Hide resolved
client/src/views/SignupNonProfit.tsx Outdated Show resolved Hide resolved
@esteban-gs

This comment was marked as resolved.

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@esteban-gs esteban-gs left a comment

Choose a reason for hiding this comment

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

Approved once comments are addressed.

client/src/components/BannerSection.tsx Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

@denniswangcodes , this should already be implemented on the main branch. See:

export function CTAHeroButton({ text, onClick }: Props) {

client/src/components/BannerSection.tsx Show resolved Hide resolved
client/src/components/Buttons/CTAButton.tsx Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

It'll probably be better to add these to the assets folder and save them as svg instead of JS. You can export these from figma.
Then, you can import it like this:

import FAQsImage from '../assets/sign-up-finished-step.svg';

@denniswangcodes denniswangcodes merged commit 1b3fad0 into main Nov 16, 2023
3 checks passed
@denniswangcodes denniswangcodes deleted the feature-288-org-sign-up-screens branch November 16, 2023 06:48
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.

Org sign up screens
4 participants