Skip to content

[MPDX-9970] Show users their gross requested YTD salary and pending ASR information - #2021

Open
canac wants to merge 3 commits into
mainfrom
9970-asr-ytd
Open

[MPDX-9970] Show users their gross requested YTD salary and pending ASR information#2021
canac wants to merge 3 commits into
mainfrom
9970-asr-ytd

Conversation

@canac

@canac canac commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

On the ASR and salary request page, show the user their gross requested YTD salary (which includes ASRs this year) so when they exceed their cap it is clearer why.

Depends on new server fields added in https://github.com/CruGlobal/mpdx_api/pull/3585

Testing

  • Impersonate [email protected]
  • Go to his salary request summary
  • Check that it shows his "Additional Salary Requested This Year" and "Total Gross Salary This Year"
  • Check that the progress bar uses his gross salary YTD, not the requested gross salary
  • Go to his ASR summary
  • Check that it shows his pending salary request as his gross salary with a tooltip
  • Check that the "Total Salary Requested" is based on the pending salary request, not the current HCM salary

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 /quality:agent-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

@canac canac self-assigned this Sep 4, 2026
@canac canac added Preview Environment Add this label to create an Amplify Preview Staging API Run GraphQL codegen against the staging API labels Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Preview branch generated at https://9970-asr-ytd.d3dytjb8adxkk5.amplifyapp.com

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against 914884c

No significant changes found

canac and others added 2 commits September 4, 2026 11:10
pendingAsrAmount has always held the year's entire ASR total — pending,
action required, approved, and paid alike — so the name implied the
opposite of what it returned. The API now exposes it as ytdAsrAmount and
keeps pendingAsrAmount only as a deprecated alias.

The salary calculation request reads ytdAsrAmount directly rather than
subtracting requestedGross from requestedYtdGross.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 Staging API Run GraphQL codegen against the staging API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant