MPDX-9815 - Add completion state to sub-steps in questionnaire components#1880
MPDX-9815 - Add completion state to sub-steps in questionnaire components#1880zweatshirt wants to merge 2 commits into
Conversation
Bundle sizes [mpdx-react]Compared against 5e57129 No significant changes found |
|
Preview branch generated at https://step-status.d3dytjb8adxkk5.amplifyapp.com |
|
@canac Curious if I could get your opinion of the form's design in this preview! And if you had any constructive criticism over the UI/UX particularly. The form is ~95% done until stakeholders desire changes. After tying in the OneApp ministry list, it should be 100% unless I happened to miss anything. |
zweatshirt
left a comment
There was a problem hiding this comment.
🤖 Multi-Agent Review — APPROVED WITH SUGGESTIONS
Verdict: ✅ APPROVED_WITH_SUGGESTIONS · 0 blockers · Risk: MEDIUM
5 agents (Architecture, Testing, Standards, UX, Financial-domain). This is a presentational / state-plumbing change — no auth, API, GraphQL, schema, or dependency surface. The Financial domain agent confirmed there is no financial-calculation code here (isStepComplete only checks field presence).
Resolved during review: the unused export on isFieldFilled was made module-private.
Non-blocking suggestions (posted inline): extract the shared 2-state dot renderer, add page-level wiring tests, and a couple of minor test robustness / edge-case items.
Considered and intentionally skipped: adding titleAccess a11y labels to the dots. MUI's titleAccess renders an SVG <title>, which browsers surface as a hover tooltip — unwanted on these dots — and the completion state is decorative/redundant next to the already-readable sub-step label (and the gap pre-dates this PR). If screen-reader labelling is wanted later, visually-hidden text is the right mechanism, not titleAccess.
| CategoryListItemStyles, | ||
| } from 'src/components/HrTools/Shared/CalculationReports/Shared/styledComponents/StepsListStyles'; | ||
|
|
||
| const StyledCategoryListItemIcon = styled(CategoryListItemIcon, { |
There was a problem hiding this comment.
| { | ||
| id: 'contact-information', | ||
| title: t('Contact Information'), | ||
| complete: isStepComplete( |
There was a problem hiding this comment.
| expect(queryByTestId('CircleIcon')).not.toBeInTheDocument(); | ||
| }); | ||
|
|
||
| it('fills a sub-step dot blue once its data is complete', () => { |
There was a problem hiding this comment.
| }; | ||
|
|
||
| const isStepComplete = ( | ||
| export const isStepComplete = ( |
There was a problem hiding this comment.
There was a problem hiding this comment.
AI Review Auto-Approval
Risk Level: MEDIUM (4/10)
Verdict: APPROVED_WITH_SUGGESTIONS (suggestions posted, no blockers)
This PR was auto-approved because:
- The multi-agent AI review determined it is medium 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.
Description
This adds a completion prop for SubStep array items based on which subsections of the form is completed. It is relatively simple since the form does not have many split-up sections.
https://jira.cru.org/browse/MPDX-9815
Testing
Checklist:
/pr-reviewcommand locally and fixed any relevant suggestions