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:
Marc-André Bombeck committed 2026-08-08 20:56:50 +02:00
1 parent 955ef6c6b6
commit e344ebb781
10 files changed
+23 -92

No files matched your search

+5 -6
View File
@@ -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.