Skip to content

MPDX-9169 Fix validation in ASR#1632

Merged
kegrimes merged 2 commits intomainfrom
mpdx-9169-fix-asr-validation
Feb 13, 2026
Merged

MPDX-9169 Fix validation in ASR#1632
kegrimes merged 2 commits intomainfrom
mpdx-9169-fix-asr-validation

Conversation

@kegrimes
Copy link
Contributor

@kegrimes kegrimes commented Feb 12, 2026

Description

ASR formik validation is behaving strangely where the additional info error will disappear occasionally. Looking into the issue.

Found: It was some sort of timing issue. After saving a value, the data was refetched which causes the initial values to get recalculated. Because of this, the form gets reset and doesn't pick up on the errors again until the user touches a field.

Not sure if this is the best solution, but it works for now.

Testing

  • Go to /reports/additionalSalaryRequest
  • Click "Continue Request" and enter invalid values
  • Check that the alert box is appearing with correct errors

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels (Add the label "Preview" to automatically create a preview environment)
  • I have run the Claude Code /pr-review command locally and fixed any relevant suggestions
  • I have requested a review from another person on the project
  • I have tested my changes in preview or in staging
  • I have cleaned up my commit history

@kegrimes kegrimes added the Preview Environment Add this label to create an Amplify Preview label Feb 12, 2026
@github-actions
Copy link
Contributor

Preview branch generated at https://mpdx-9169-fix-asr-validation.d3dytjb8adxkk5.amplifyapp.com

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Bundle sizes [mpdx-react]

Compared against ffa449f

No significant changes found

@kegrimes kegrimes requested a review from wjames111 February 13, 2026 18:29
Copy link
Contributor

@wjames111 wjames111 left a comment

Choose a reason for hiding this comment

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

This looks great thanks for figuring out this bug! Quick question though, did you try disabling reinitialize on formik first? That should keep it from recalculating everytime requestData changes. No idea if it would work but just a thought.

@kegrimes
Copy link
Contributor Author

I did try that and it still behaved oddly. I will try again and see if it works because I tested that pretty early, but if it does not work then I'll just merge this how it is!

@kegrimes kegrimes force-pushed the mpdx-9169-fix-asr-validation branch from 39bc6f1 to 0c55aa8 Compare February 13, 2026 21:15
@kegrimes kegrimes merged commit f0f1086 into main Feb 13, 2026
23 of 24 checks passed
@kegrimes kegrimes deleted the mpdx-9169-fix-asr-validation branch February 13, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Preview Environment Add this label to create an Amplify Preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants