Skip to content

Add optional fieldsets for when creating new model from EditableArrayCard#577

Open
ekatsuta wants to merge 3 commits intoantd3-with-updatesfrom
add-create-fieldsets-prop
Open

Add optional fieldsets for when creating new model from EditableArrayCard#577
ekatsuta wants to merge 3 commits intoantd3-with-updatesfrom
add-create-fieldsets-prop

Conversation

@ekatsuta
Copy link
Contributor

@ekatsuta ekatsuta commented Sep 7, 2023

Added this optional props (onCreateFieldsets) to the EditableArrayCard component so that we can conditionally render different fieldsets when user is creating a new objects vs. editing an existing object. (In this example, service team members in CoOp could create a new investment and need to access all fields available on the form, but only be able to edit the "Charge Off Date" on existing investments)

Related Coop-client PR: https://github.com/mighty-justice/coop-client/pull/1200

Jira: https://thatsmighty.atlassian.net/browse/PROD-2137

Test on Storybook

Screen Shot 2023-09-07 at 10 16 05 AM Screen Shot 2023-09-07 at 10 16 15 AM

Test in CoOp

Screen Shot 2023-09-07 at 10 45 52 AM Screen Shot 2023-09-07 at 10 51 28 AM

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.

2 participants