Skip to content

Conversation

@canac
Copy link
Contributor

@canac canac commented Jan 27, 2026

Description

  • Step 3 was accidentally removed entirely by a merge, so this PR adds it back
  • Updates the additional info card to say "Approval Process" when it requires approval above division head (division head is the first level)
  • Use the progressive approval tier from the server to determine when requests require approval

MPDX-9267

Testing

  • Edit a salary calculation
  • Check that step 3 exists
  • Set the salary above the individual cap but below the combined cap
  • Check that the comments box says Additional Info
  • Set the salary really high (like $500K)
  • Check that the comments box says Approval Process
  • Go to step 4
  • Check that the comments box is there

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

@canac canac requested a review from wjames111 January 27, 2026 21:44
@canac canac self-assigned this Jan 27, 2026
@canac canac added the Preview Environment Add this label to create an Amplify Preview label Jan 27, 2026
@github-actions
Copy link
Contributor

Preview branch generated at https://9267-approval-process-card.d3dytjb8adxkk5.amplifyapp.com

@github-actions
Copy link
Contributor

Bundle sizes [mpdx-react]

Compared against d51f585

No significant changes found

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. I need to add something very similar for ASR, thanks for paving the way!

overCapName,
overCapSalary,
} = useCaps();
const overCombinedCap =
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Do you think it makes sense to change this variable name now that it isn't calculating combined cap?

sx={{ fontWeight: 'bold' }}
>
{t('Additional Information')}
{tier === ProgressiveApprovalTierEnum.DivisionHead
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed this line a few times in this file, could we just assign it a variable?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add tests for other division tiers now?

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