mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
feat(mental-health): make the wellbeing check-in a standalone module page
Move the PHQ-9 / GAD-7 screener off `/insights/mental-wellbeing` to a top-level `/mental-wellbeing` route so it no longer borrows the Insights tab strip and layout shell. The page now uses the standard module-page frame at the wider content width the other module pages use. Replace the standing screening disclaimer block and the opt-in/private line in the header with an info icon after the page heading whose hover/focus tooltip carries the screening-not-a-diagnosis note. Drop the now-orphaned `disclaimer` / `optInNote` strings across all six locales and add the `infoTooltip` string in their place. The questionnaire, scoring, severity result, PHQ-9 item-9 crisis-resource handling, focus-on-submit, and 44px touch targets are unchanged. Repoint the module nav entry and the registry comments at the new route.
This commit is contained in:
1 parent
651b02bc1b
commit
37c977e3a4
10 files changed
+21
-28
No files matched your search
@@ -8,7 +8,8 @@ import { useAuth } from "@/hooks/use-auth";
|
||||
import { MentalWellbeing } from "@/components/mental-health/mental-wellbeing";
|
||||
|
||||
/**
|
||||
* v1.25.0 — `/insights/mental-wellbeing`.
|
||||
* `/mental-wellbeing` — standalone module page (moved off `/insights/*` in
|
||||
* v1.25.1 so it no longer borrows the Insights tab strip / layout shell).
|
||||
*
|
||||
* Opt-in PHQ-9 / GAD-7 screener surface, beside mood tracking. The screen owns
|
||||
* its own questionnaire + result + crisis-resource flow; it deliberately does
|
||||
Reference in new issue
Block a user