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] Remove added risk summary and response action options #41

Merged
merged 9 commits into from
Dec 4, 2024

Conversation

deeonwuli
Copy link
Contributor

@deeonwuli deeonwuli commented Nov 27, 2024

📌 References

📝 Implementation

  • Remove added risk summary custom questions
  • Remove added response actions
  • Show risk assessor selection

📹 Screenshots/Screen capture

🔥 Notes to the tester

#8696j3edq

@deeonwuli deeonwuli requested a review from 9sneha-n November 27, 2024 10:23
@deeonwuli deeonwuli changed the title feat: remove added option (wip) [feature] Remove added risk summary and response action options Nov 28, 2024
@deeonwuli deeonwuli marked this pull request as ready for review November 28, 2024 09:10
@@ -104,6 +111,7 @@ export function useForm(formType: FormType, id?: Id): State {
isIncidentManager: isIncidentManager,
}),
});
setEntityData(formData);
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't formdata already set in setConfigurableForm ? why not reuse it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm updating entityData every time a form option is removed so i can get the entityId using the index. when i attempted to do this using formData, i wouldn't get the correct entityId and i would run into an error onPrimaryButtonClick

Copy link
Contributor

@9sneha-n 9sneha-n left a comment

Choose a reason for hiding this comment

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

changes requested, not major enough to block merge/ Can be addressed in v2.

Copy link
Contributor

@anagperal anagperal left a comment

Choose a reason for hiding this comment

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

thanks @deeonwuli ! Only one important comment: validate also the formState when something is deleted

@deeonwuli deeonwuli requested a review from anagperal November 28, 2024 11:32
Copy link
Contributor

@anagperal anagperal left a comment

Choose a reason for hiding this comment

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

thanks @deeonwuli !!

Copy link
Contributor

@bhavananarayanan bhavananarayanan left a comment

Choose a reason for hiding this comment

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

Approved !

@bhavananarayanan bhavananarayanan merged commit b4cdc55 into development Dec 4, 2024
1 check passed
@bhavananarayanan bhavananarayanan deleted the feat/remove-added-option branch December 4, 2024 10:57
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.

4 participants