mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
fix(settings): drop the score pillar group headings for a flat list
The score-composition settings grouped its topics under domain headings (Heart and metabolism, Activity, Sleep, Body shape, Wellbeing). Remove them and list the individual topics one under another with hairline dividers, the way the health profile lists its facts. Each row keeps its domain data attribute, so the flattening preserves the registry order and tests still address a pillar by its domain. The now-orphaned domain-label map and its six-locale strings go with it.
This commit is contained in:
1 parent
955ef6c6b6
commit
e344ebb781
10 files changed
+23
-92
No files matched your search
@@ -130,14 +130,13 @@ test.describe("Settings → Health Score", () => {
|
||||
1,
|
||||
);
|
||||
|
||||
// The cardiometabolic triple, visibly under one heading.
|
||||
// The cardiometabolic triple. The list is flat (no group headings) — the
|
||||
// rows carry their domain, so the three cardiometabolic pillars are found
|
||||
// on the row itself.
|
||||
const cardio = page.locator(
|
||||
'[data-slot="score-config-group"][data-domain="cardiometabolic"]',
|
||||
);
|
||||
await expect(cardio).toHaveCount(1);
|
||||
await expect(cardio.locator('[data-slot="score-pillar-row"]')).toHaveCount(
|
||||
3,
|
||||
'[data-slot="score-pillar-row"][data-domain="cardiometabolic"]',
|
||||
);
|
||||
await expect(cardio).toHaveCount(3);
|
||||
|
||||
// The rows say nothing about recording or showing — the card says it
|
||||
// once, above them, and the modules screen owns those two questions.
|
||||
|
||||
Reference in new issue
Block a user