MPDX-9604 Hide save button when no changes present#1798
Conversation
Bundle sizes [mpdx-react]Compared against bdb41fd No significant changes found |
|
Preview branch generated at https://MPDX-9604-hide-save-button.d3dytjb8adxkk5.amplifyapp.com |
🤖 Multi-Agent Code Review — PR #1798PR: MPDX-9604 Hide save button when no changes present 📊 Risk Assessment
Risk factors: HrTools feature component (+2), test file (+1), 50–200 LOC (+1), single-feature scope (1.0×). 🚦 Findings Summary
No critical blockers. The change is small, targeted, and the new test correctly uses 🔴 HIGH PRIORITY (Severity 7–8)1. Hidden-vs-disabled Save button — UX conflict + codebase divergenceSeverity: 7.5/10 Two converging issues:
Recommendation (pick one):
|
| Agent | Confidence | Critical | Important | Suggestions |
|---|---|---|---|---|
| 🧪 Testing | High | 0 | 2 | 2 |
| 👤 UX | High | 1 | 1 | 2 |
| 📋 Standards | High | 0 | 1 | 2 |
🎯 Recommended Next Steps
Before merging:
- Resolve hidden-vs-disabled decision (finding Tasks #1). The cheapest, codebase-consistent fix is
disabled={getUpdates(values).length === 0 || isSubmitting}— covers Tasks #1, contacts #2, and partially Bump axios from 0.20.0 to 0.21.1 #4 in one change. - Add explicit "Save button appears after change" test (finding add notifications #3).
Nice-to-have:
- Remove dead
mockEnqueue.mockClear()at line 129 (finding Move to Yarn V2 and upgrade packages #5). - Memoize the updates calculation if you keep the conditional-render approach (finding Bump axios from 0.20.0 to 0.21.1 #4).
Generated by MPDX Multi-Agent Review (Quick Mode) | 3 agents · Haiku · ~1 min
Description
Currently, Ministry Partner Reminders shows the "Save" button regardless of changes present or not. When there are no changes and the user clicks "Save", there is an information snackbar that says "No changes have been made". Instead, we want to hide the "Save" button until there are changes present.
Jira ticket: MPDX-9604
Testing
Impersonate: caleb.cox@cru.org
/hrTools/partnerRemindersChecklist:
/pr-reviewcommand locally and fixed any relevant suggestions