Skip to content

[MPDX-10017] Show the requested gross salary on the pending request card - #2052

Open
dr-bizz wants to merge 1 commit into
mainfrom
pending-salary-request
Open

dr-bizz wants to merge 1 commit into
mainfrom
pending-salary-request

Conversation

@dr-bizz

@dr-bizz dr-bizz commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Description

Relates to MPDX-10017.

In this PR, I fix the incorrect gross salary requested on the pending request card. The card was rendering the current gross salary amount instead of the newly requested salary.

I have changed it to use the newly requested salary. I have also updated it to show the user's request gross salary and their spouses' request gross salary (if they have a spouse)

Testing

Testing instructions are in https://jira.cru.org/browse/MPDX-10017

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

🤖 Generated with Claude Code

The pending salary request card was labelled "Gross Salary Requested" but
rendered the HCM current salary, which is the person's existing payroll
amount and unrelated to the request they submitted.

Fetch `calculations.requestedGross` on the latest salary request and render
that instead. This is the same server-computed field the "Gross Requested
Salary" total row of RequestSummaryCard uses, so the landing card and the
request itself can no longer disagree.

Also orient the latest calculation to the user's perspective before reading
its amounts, as the landing page already does for the effective calculation.
Without this, a request created by the spouse showed the spouse's figures.
@github-actions

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against 9a37cac

No significant changes found

@dr-bizz
dr-bizz requested a review from tamvu-cru September 16, 2026 20:26
@dr-bizz dr-bizz added On Staging Will be merged to the staging branch by Github Actions Preview Environment Add this label to create an Amplify Preview labels Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview branch generated at https://pending-salary-request.d3dytjb8adxkk5.amplifyapp.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

On Staging Will be merged to the staging branch by Github Actions Preview Environment Add this label to create an Amplify Preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant