mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
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.
20 lines
876 B
TypeScript
20 lines
876 B
TypeScript
/**
|
|
* The localised names of the score's pillars and the domains they sit in.
|
|
*
|
|
* One map per concept, read by the hero panel and by the settings surface
|
|
* that decides what counts. Two copies of a name map drift the moment one
|
|
* surface renames a pillar, and the two surfaces would then be talking
|
|
* about different things while showing the same list.
|
|
*/
|
|
import type { ScorePillarId } from "@/lib/analytics/score/types";
|
|
|
|
export const SCORE_PILLAR_LABEL_KEYS: Record<ScorePillarId, string> = {
|
|
BLOOD_PRESSURE: "insights.healthScore.pillar.bloodPressure",
|
|
GLYCAEMIA: "insights.healthScore.pillar.glycaemia",
|
|
ACTIVITY: "insights.healthScore.pillar.activity",
|
|
SLEEP: "insights.healthScore.pillar.sleep",
|
|
ADIPOSITY: "insights.healthScore.pillar.adiposity",
|
|
WELLBEING: "insights.healthScore.pillar.wellbeing",
|
|
LIPIDS: "insights.healthScore.pillar.lipids",
|
|
};
|