-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: CE-1059 Unable to save Decision section without entering all fields - incorrect toast #629
Conversation
added validation handling to prevent user from creating a decision with missing data, updated thunk to display correct toast
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.
Two additional functionality issues that seem to be here:
- You always get the error message toast regardless of if the save is successful or not.
- If you don't fully enter the action, today's date still shows up in the read only screen. I think there might be a fix for this in the branch CE-1059-natcom-changes but it might not be the most elegant way to resolve the problem
frontend/src/app/components/containers/complaints/outcomes/ceeb/ceeb-decision/decision-form.tsx
Outdated
Show resolved
Hide resolved
frontend/src/app/components/containers/complaints/outcomes/ceeb/ceeb-decision/decision-form.tsx
Outdated
Show resolved
Hide resolved
updates to validation to try and reduce cognitive complexity
Quality Gate passedIssues Measures |
Failing Cypress Test is due to a recent change in how the officer lists are populated. Will create a bug to address. |
Description
Unable to save Decision section without entering all fields - incorrect toast
Fixes # CE-1059
Tasks
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Further comments
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in:
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: