Skip to content

Conversation

@kegrimes
Copy link
Contributor

@kegrimes kegrimes commented Jan 22, 2026

Description

Based on new figma designs, we must replace "Cancel" with "Discard" button and update the submit modal text.

Testing

Testing Edit page discard button (In Progress status):

  • Go to /reports/housingAllowance
  • Click "Edit Request" and click "Discard Changes"
  • Check that submit modal has correct text
  • Click "Yes, Discard Changes"
  • Check that the request was deleted and it redirected user to dashboard page

Testing New page discard button (In Progress status):

  • Click "Request New MHA" and click "Discard"
  • Check that submit modal has correct text
  • Click "Yes, Discard"
  • Check that the request was deleted and it redirected user to dashboard page

Testing cancel button (In Progress status):

  • Click "Request New MHA" and click back arrow icon to go back to dashboard
  • Click "Cancel Request"
  • Check that submit modal has correct text
  • Click "Yes, Cancel"
  • Check that the request was deleted

Testing cancel button (Pending status)

  • Click "Request New MHA"
  • Input all valid data and submit request form
  • Go back to dashboard page
  • Click "Cancel Request" and click "Yes, Cancel"
  • Check that the request was deleted
  • Check database records and ensure status is cancelled

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 Jan 22, 2026
@github-actions
Copy link
Contributor

Preview branch generated at https://mpdx-9241-add-discard-button.d3dytjb8adxkk5.amplifyapp.com

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Bundle sizes [mpdx-react]

Compared against 26b469f

No significant changes found

@kegrimes kegrimes requested a review from dr-bizz January 26, 2026 20:50
@kegrimes
Copy link
Contributor Author

kegrimes commented Jan 26, 2026

@dr-bizz Since a user is not allowed to edit when a request is pending, should we remove the edit link option on the Receipt page? When a user submits their request, the status will become pending, so they shouldn't have an option to edit. Currently, if a user clicks that link, it will take them to "Edit Access Denied" page.

Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

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

Approving this, but found some small things

@kegrimes kegrimes force-pushed the mpdx-9241-add-discard-button branch from 3d94767 to f7041f8 Compare January 27, 2026 14:14
@kegrimes kegrimes force-pushed the mpdx-9241-add-discard-button branch from f7041f8 to f2e685e Compare January 27, 2026 14:30
@kegrimes kegrimes merged commit d51f585 into main Jan 27, 2026
23 of 24 checks passed
@kegrimes kegrimes deleted the mpdx-9241-add-discard-button branch January 27, 2026 14:39
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.

3 participants