Repository navigation
Conversation
mudabs
left a comment
There was a problem hiding this comment.
Thank you @Moon-dg for the dashboard redesign. Please address the following before approval:
-
Rebase this branch onto the current
mainbranch and resolve the conflict infrontend/src/pages/Dashboard.jsx. Preserve the newermainbehavior, including questionnaire status loading and the/health-summarylink. -
Localize the new dashboard text. Add translations for
greeting,subtitle, andstatusGoodin every supported dashboard locale. Do not rely on English fallback text for Arabic, Spanish, Hindi, or Chinese. -
Fix the status indicator. The current
Status: Activevalue is static and is not derived from user or health data. Either connect it to real state or label it clearly as a static account state so it is not presented as a live health status. -
Add focused Dashboard tests for:
- The greeting and subtitle
- The primary questionnaire action link
- The recent-assessments empty state and next action
- The status indicator
- The new localized strings in at least the Arabic locale
- Preservation of existing module links
-
Run and pass all checks after resolving the conflict:
npm run lintnpm run test:runnpm run build
Please push the rebased changes and confirm the GitHub Actions checks pass before requesting another review.
|
I have resolved all requested feedback and resolved the branch conflict with upstream
|
mudabs
left a comment
There was a problem hiding this comment.
Thank you Moon for the dashboard redesign and conflict-resolution work.
Please address these blockers before merge:
- Fix the JSX structure in
frontend/src/pages/Dashboard.jsx. The greeting section contains a duplicated hero fragment with mismatched closing tags, causing lint, tests, and build failures. - Do not present hardcoded values such as
Low,120/80, and30 minsas current user health data. Connect them to real data or clearly label them as placeholders. - Add translations for every new dashboard string in English, Spanish, Hindi, Chinese, and Arabic. Do not rely on English fallbacks for supported locales.
- Update
Dashboard.test.jsxto use shared test providers, mock the questionnaire status request, and switch to Arabic through i18n. Assert Arabic content instead of only settingdirandlangmanually. - Re-run
npm run lint,npm run test:run, andnpm run build, then confirm all GitHub Actions checks pass.
… assertions, and test timeouts (oss-slu#159)
…Moon-dg/TheHealthApp into feature-159-dashboard-hierarchy
|
|
Hi Munashe, I have addressed all the requested blockers for PR #235:
|



Summary
Changes Made
frontend/src/pages/Dashboard.jsx:Testing Details
npm run test:run), successfully passing all 8 test files and 108 tests with zero regressions.has proper heading hierarchy) and component rendering in RTL and LTR viewports.Checklist
Closes #159