Skip to content

MPDX-9666 Add PDFs to ASR#1826

Open
kegrimes wants to merge 1 commit into
mainfrom
MPDX-9666-asr-empty-links
Open

MPDX-9666 Add PDFs to ASR#1826
kegrimes wants to merge 1 commit into
mainfrom
MPDX-9666-asr-empty-links

Conversation

@kegrimes

@kegrimes kegrimes commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Currently, there are two links on ASR's About Form page that are doing nothing when clicked. We want to add this functionality:

  • "Progressive Approvals" = links to a PDF of the progressive approvals table that Staff Services will maintain
  • "paper version" = download a PDF of ASR's paper version

Testing

  • Go to /hrTools/additionalSalaryRequest
  • Click "Progressive Approvals" and "paper version" links
  • Check that both PDFs have downloaded successfully

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 self-assigned this Jun 9, 2026
@kegrimes kegrimes added the Preview Environment Add this label to create an Amplify Preview label Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Preview branch generated at https://MPDX-9666-asr-empty-links.d3dytjb8adxkk5.amplifyapp.com

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Bundle sizes [mpdx-react]

Compared against eaa0644

No significant changes found

@kegrimes kegrimes left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🤖 Multi-Agent Code Review — PR #1826

Verdict: ✅ APPROVED WITH SUGGESTIONS · Risk: LOW (1/10) · Mode: standard · 5 agents (Architecture, Testing, Standards, UX, Financial Reporting) + dependency analysis

No blockers. This is a small, clean change: two dead href="#" + TODO onClick stubs are replaced with working same-origin static PDF links, and the colocated tests are updated. yarn lint passes. The dead-code/TODO removal is a net improvement and the linking pattern matches established repo conventions (verified against 6+ existing <Link target="_blank" rel="noopener noreferrer"> usages in HrTools).

Dependency impact: LOW

AboutForm (AdditionalSalaryRequest) has a single production consumer (StepList.tsx), an unchanged named export → no breaking changes. Each PDF path is referenced in exactly one place.

Findings (none blocking)

  • Medium (6.5) — Tests assert only href, not the new target/rel/download attributes. rel="noopener noreferrer" is a security mitigation that nothing locks in. (see inline)
  • Medium (6.5)download vs open-in-tab UX for the "Progressive Approvals" link, whose copy describes a process users likely want to read. Product judgment call. (see inline)
  • Suggestion (5.5) — Optional "(opens in a new tab)" accessible hint; no enforceable repo pattern exists, so optional.
  • Suggestion (4.5) — Hardcoded 2026 in asset paths will drift; the ASR context already derives the year dynamically. (see inline)
  • Suggestion (4.0) — Prefer getByRole('link', { name }) over getByText().closest('a') (used once in the whole src tree vs. 41 files using the role query). (see inline)

Open questions worth confirming

  • The "paper version" link points at 2026-salary-calc-us.pdf (salary calculator), but the copy reads "paper version of the Additional Salary request" — confirm that's the correct document, not a mismatched file.
  • Confirm committing these PDFs to public/ (publicly served, unauthenticated) is acceptable for these documents.

Out of scope (not in this PR)

ReceiptAlertText.tsx:8 still carries // TODO [MPDX-9303]: Add link for Progressive Approvals — consider wiring it to the same asset in a follow-up.

Agent Critical High Important Medium Suggestions
Architecture 0 0 0 0 2
Testing 0 0 0 1 1
Standards 0 0 0 0 0
UX 0 0 0 2 0
Financial Reporting 0 0 0 0 N/A
Total 0 0 0 3 3

Suggestions (severity < 5) are informational and don't require /dismiss. Reply /dismiss: <reason> on any Medium finding you disagree with.

Comment thread src/components/HrTools/AdditionalSalaryRequest/AboutForm/AboutForm.test.tsx Outdated
Comment thread src/components/HrTools/AdditionalSalaryRequest/AboutForm/AboutForm.tsx Outdated
Comment thread src/components/HrTools/AdditionalSalaryRequest/AboutForm/AboutForm.tsx Outdated
Comment thread src/components/HrTools/AdditionalSalaryRequest/AboutForm/AboutForm.tsx Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AI Review Auto-Approval

Risk Level: LOW (1/10)
Verdict: APPROVED_WITH_SUGGESTIONS (suggestions posted, no blockers)

This PR was auto-approved because:

  • The multi-agent AI review determined it is low risk
  • No blocking issues were found
  • All suggestions have been posted as review comments for the developer to consider

If you believe this PR needs human review, dismiss this approval and request a review manually.

@kegrimes kegrimes force-pushed the MPDX-9666-asr-empty-links branch from 08b369b to f82333d Compare June 9, 2026 14:55
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.

1 participant