MPDX-9626, MPDX-9627 MHA UAT fixes#1800
Conversation
|
Preview branch generated at https://MPDX-9626-mha-uat.d3dytjb8adxkk5.amplifyapp.com |
Bundle sizes [mpdx-react]Compared against f9395e4 No significant changes found |
🤖 Multi-Agent Code Review Report — PR #1800PR: MPDX-9626, MPDX-9627 MHA UAT fixes 📊 Risk Assessment
Risk factors:
🚫 Critical Blockers (Severity 9–10)All five blockers below were independently flagged by 4 or more agents. 1.
|
| Category | Status | Notes |
|---|---|---|
| Exports & Naming | ✅ | Named exports throughout; export default in page files is the required Next.js Pages Router exception |
| Localization | ✅ | Proper t() usage and {{mode}} interpolation |
| GraphQL & Apollo | Submit mutation missing id in selection set (#9) |
|
| TypeScript | ✅ | No new any |
| Forms | ❌ | Yup parity with server not confirmed (#10); submit button not disabled while submitting (#7) |
| Testing | Coverage reduced: Own branch + all-empty submit untested (#5) | |
| Code Quality | ❌ | Empty catch {} (#3); fragile mutation count assertion (#16) |
📦 Dependency Impact
CostOfHome.tsx→ 1 importer (parent Step component)FairRentalValue.tsx→ 1 importer (parent Step component)Calculation.tsx→ ~14 importer matches, but most are likely false-positive substring matches againstCalculationin unrelated GoalCalculator components. Low real blast radius.- No breaking changes (no removed exports)
🎯 Recommended Next Steps
Must fix before merge (in order of severity):
- Add
awaittosubmitMutation; move snackbar +handleNextStepafter success; surface errors via snackbar (Tasks #1, add notifications #3) - Verify backend behavior for
PositiveFloatwith value0; choose between?? 0and conditional spread (contacts #2) - Include
overallAmountintransformNullValuespayload (Bump axios from 0.20.0 to 0.21.1 #4) - Add
idtosubmitMinistryHousingAllowanceRequestselection set (Bump @storybook/addon-viewport from 6.1.17 to 6.1.18 #9) - Add tests for the Own branch of
transformNullValuesand for an all-empty Rent submission (Move to Yarn V2 and upgrade packages #5) - Confirm Yup/server validation parity, or document why removed (Bump @next/bundle-analyzer from 10.0.6 to 10.0.7 #10)
Should fix before merge:
- Disable submit button while
isSubmitting(Make prettier config closer to defaults #7) - Use
rentOrOwnprop (notrequestData) intransformNullValues(MPDX-6917-Remove-Lodash #8) - Reconcile autosave (
null) vs submit (0) semantics (Remove ts-node #6) - Add empty-state guard in
SubmitModalfor all-zero submissions (Bump next from 10.0.6 to 10.0.7 #11)
Nice to have:
- Deduplicate
transformNullValuesbranches (Bump @storybook/react from 6.1.17 to 6.1.18 #12) - Delete dead "required fields" alert branch (Bump @storybook/addon-knobs from 6.1.17 to 6.1.18 #13)
- Rename
transformNullValuesor extract touseMhaSubmit()hook (MPDX-6916: Replace Moment #14) - Guard against empty
requestId(Fix-Dropdown-Menu-Item #15) - Stronger mutation assertion in test (
toHaveGraphqlOperation) (MPDX-6926-Fix-Filter-For-Tasks #16)
Agent Confidence Summary
| Agent | Critical | Important | Suggestions | Confidence |
|---|---|---|---|---|
| 💰 Financial | 3 | 4 | 4 | High |
| 🧪 Testing | 3 | 4 | 4 | High |
| 👤 UX | 0 | 5 | 4 | High |
| 🏗️ Architecture | 2 | 5 | 3 | High |
| 💾 Data Integrity | 0 | 6 | 4 | High (Medium on submit-cache semantics) |
| 📋 Standards | 2 | 4 | — | High |
Convergence: Every critical finding above was independently flagged by 4 or more agents — strong consensus, no debate rounds needed.
🤖 Generated by MPDX Multi-Agent Code Review System (6 of 7 agents, smart selection)
06cd864 to
2085de3
Compare
Description
Jira tickets:
Testing
Name Changes test:
/hrTools/mhaCalculatorValidation test:
/hrTools/mhaCalculatorChecklist:
/pr-reviewcommand locally and fixed any relevant suggestions