Commit 3cbffc6
* fix(fullstack): consent gating, Beanie 2 Mongo init, Framingham module, auth routes
- Backend: user consent fields; POST/GET /api/v1/consent; health consent guard
on risk assessment; init_beanie via PyMongo connection_string (Beanie 2);
drop Motor dependency; CORS origins include Vite fallback port 5174
- Frontend: ConsentPage, consent service, RequireAuth + RequireHealthConsent,
auth context consent sync, guarded dashboard/questionnaire/modules,
Login/Signup post-auth routing, Framingham UI without demo fallback
- i18n: framingham namespace and nav strings across locales
- Tests: test-utils consent defaults; Dashboard tests aligned
Made-with: Cursor
* fix(frontend): Framingham risk must use backend API with validated responses
Route assessment through healthRiskService (POST /health/risk-assessment only).
Parse and validate HealthRiskOutput before rendering; invalid payloads show a
clear error plus toast. Surface server/network failures via toasts without
fabricating results. Add unit and integration tests; extend i18n for invalid
response copy.
Made-with: Cursor
* fix(backend): align CORS allowed origins with Vite and local dev
Default ALLOWED_ORIGINS to include localhost/127.0.0.1 on ports 5173, 5174
(Vite) and 3000 (common Docker UI mapping). Update backend/.env.example and
README so local .env stays consistent and browsers stop blocking cross-origin
API calls from the standard frontend URLs.
Made-with: Cursor
---------
Co-authored-by: smagen10 <maayizsameer@gmail.com>
1 parent e448bc0 commit 3cbffc6
3 files changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
33 | | - | |
34 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
165 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
166 | 182 | | |
167 | 183 | | |
168 | 184 | | |
| |||
0 commit comments