-
Notifications
You must be signed in to change notification settings - Fork 4
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
Redesigned Add Student Modal #425
Conversation
[diff-counting] Significant lines: 337. |
|
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.
Hey Desmond, great work on redesigning the add student modal; it follows the Figma design extremely well and functions perfectly, except for the errors that you pointed out. I feel these errors may be due to how we are parsing addresses and how this parser determines if an address is correct. I'm not exactly sure why checking all of the accessibility needs creates an error because when I try to add a student with all these needs or even more than one need, they are not even added. If I were to be a little nitpicky, I would ask that the "Address" field be shifted further right to follow the Figma design; otherwise, nice work!
Thank you.
Commenting out the For the address like you said it probably has to do with the parsing on the backend as well
the |
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.
The work is awesome Desmond!! You are getting familiar with the codebase pretty quickly!
The issues you raised about the accesibility is on the backend. In the server/src/routes/rider
, the Rider.accesibility
is supposed to be a string. However, if we want to have multiple accesibilities, we would need to make accesibility
field an array instead. We would also need to remove the enum condition, otherwise, we won't be able to store the information about Other
.
For the invalidity of address, the problem is with the parseAddress
function. We need to provide the following information in the address
export interface IParsedAddress {
zipCode: string;
stateAbbreviation: string;
stateName: string;
placeName: string;
addressLine1: string;
streetNumber: string;
streetSuffix: string;
streetName: string;
id: string;
}
We are gonna have to trust that that CULift provides all these information correctly, or we will have to remove the parsing completely. I would discuss this issue with Andrew
close |
Summary
This pull request is the first step towards implementing Add/Edit Student feature by redesigning the modal to match the Figma design
Notes
1. Name Field
2. Accessibility Needs
3. Other Field
Other Features
Other
which always remains at the bottomNext Button
is not yet clicked or form is not yet submittedIssues
1.Payload Response Error on needs
"accessibility must equal [\"\",\"Assistant\",\"Crutches\",\"Wheelchair\",\"Motorized Scooter\",\"Knee Scooter\",\"Low Vision/Blind\",\"Service Animals\",\"Other\"], but is set to Knee Scooter,Low Vision/Blind"
2.Inconsistent Add/Edit Behavior
-Issue appears to be with the address field
-Addresses such as "123 Example St","1 T St" and "Robert Purcell Community Center" work , while others such as "300 Day Hall" and "Cornell University" do not work, even with the same data as the ones that work for other fields
Add/Edit Student Modal