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

(Review second) Update FI profile - phase3 (part II) #282

Merged
merged 34 commits into from
Mar 13, 2024

Conversation

meissadia
Copy link
Collaborator

@meissadia meissadia commented Feb 28, 2024

Part 2 of #222

Changes

  • Populates form's defaultValues with existing Institution data
  • Implements Clear form functionality
  • Removes previous method of providing form input defaults
  • Removes vague id=stuff
  • Temp fix for TextArea resizing issue

TODO

  • Lots of Typescript stuff (Will work to address these issues in my next PR)

How to test this PR

  1. In browser console, ensure routing is enabled (setIsRoutingEnabled(true))
  2. Login with a user who has an associated institution
  3. Click on the institution to View it's profile
  4. Click on Update your financial institution profile
  5. Modify a single field
  6. Hit the Clear form button, observe that the edited data is reset
  7. Modify a single field
  8. Hit Submit
  9. Verify you are redirected to the /summary route and shown a simulated "Success" confirmation
  10. In console, look for data to be submitted (before format) and confirm the field you edited reflects the data you entered

meissadia and others added 20 commits February 22, 2024 12:03
- [Add] Fetch Institution data
- [Add] Breadcrumb to return to View page
- [Add] Review FI details
Co-authored-by: S T <shindigira@gmail.com>
-  Improved population of existing form data
- Temp fix for TextArea resizing issue
- Implements `Clear form` functionality
@meissadia meissadia changed the title Update FI profile - phase3 (part II) (Review second) Update FI profile - phase3 (part II) Feb 29, 2024
Base automatically changed from 222-update-fi-profile-phase1 to main March 6, 2024 18:24
… LEI (#290)

closes #273 

### Changes
- feat: Moved `ProfileForm` types to `types/formTypes`.
- feat: Addressed the extra _approval_ field on `Get Associated
Institution` request.
- feat: Adds the `getZodKeys` function to extract flattened fields from
Zod Schemas
- todo: Added TODO for handling the edge case of where fetched financial
institutions fail input validation -
#292

### Notes
@meissadia This should be used in Phase 4 of Update your Financial
Institution - Zod and TypeScript handling


### Reference
- getZodKeys: colinhacks/zod#2134
Co-authored-by: S T <shindigira@gmail.com>
Copy link
Contributor

@shindigira shindigira left a comment

Choose a reason for hiding this comment

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

Should updates types handling based on the backend schema.

@billhimmelsbach
Copy link
Contributor

@shindigira Can we get a re-review on this?

Copy link
Contributor

@shindigira shindigira left a comment

Choose a reason for hiding this comment

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

Working great. Many of the changes will be in your Phase 4 PR and thus ignored here.

@meissadia meissadia merged commit af57b08 into main Mar 13, 2024
2 checks passed
@meissadia meissadia deleted the 222-update-fi-profile-phase3-beta branch March 13, 2024 15:24
@meissadia meissadia linked an issue Mar 14, 2024 that may be closed by this pull request
25 tasks
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.

[Page] Update your financial institution profile
3 participants