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

+1 -10
View File
@@ -6,7 +6,7 @@
* surface renames a pillar, and the two surfaces would then be talking
* about different things while showing the same list.
*/
import type { ScoreDomain, ScorePillarId } from "@/lib/analytics/score/types";
import type { ScorePillarId } from "@/lib/analytics/score/types";
export const SCORE_PILLAR_LABEL_KEYS: Record<ScorePillarId, string> = {
BLOOD_PRESSURE: "insights.healthScore.pillar.bloodPressure",
@@ -17,12 +17,3 @@ export const SCORE_PILLAR_LABEL_KEYS: Record<ScorePillarId, string> = {
WELLBEING: "insights.healthScore.pillar.wellbeing",
LIPIDS: "insights.healthScore.pillar.lipids",
};
/** Domain headings, one per distinct area of health. */
export const SCORE_DOMAIN_LABEL_KEYS: Record<ScoreDomain, string> = {
cardiometabolic: "settings.sections.score.domain.cardiometabolic",
activity: "settings.sections.score.domain.activity",
sleep: "settings.sections.score.domain.sleep",
adiposity: "settings.sections.score.domain.adiposity",
wellbeing: "settings.sections.score.domain.wellbeing",
};