feat(mobile): Gewichtsverlauf als Diagramm

found.md: Gewichtsdaten wurden nur als Liste angezeigt. Neues WeightChart
(react-native-svg, Port des Web-Diagramms) ab 2 Eintraegen ueber der Liste:
x-Achse zeitproportional (unregelmaessige Wiegetermine), runde y-Ticks
(1/2/5 x 10^n), Datumslabels nach Pixelabstand, Antippen waehlt die
naechste Messung (Wert + Datum im Kopf), Veraenderung seit erster Messung.
Linienfarbe als neues Token chartLine (#ea580c), mit dem Dataviz-Validator
gegen helle und dunkle Flaechen geprueft. Geometrie rein in
src/lib/weight-chart.ts mit Tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-04 14:52:38 +02:00
1 parent 81e617ece5
commit e60abbabc6
7 files changed
+507 -13

No files matched your search

+8
View File
@@ -26,6 +26,12 @@ export interface ColorTokens {
quietGray: string;
alertRed: string;
alertRedTint: string;
/**
* Data line in charts (weight history). Checked with the dataviz palette
* validator: >= 3:1 against both surfaces and inside the lightness band in
* both modes — the brighter marigoldOrange fails one of the two each way.
*/
chartLine: string;
}
export const colors: ColorTokens = {
@@ -41,6 +47,7 @@ export const colors: ColorTokens = {
quietGray: "#737373",
alertRed: "#dc2626",
alertRedTint: "#fee2e2",
chartLine: "#ea580c",
};
/**
@@ -61,6 +68,7 @@ export const darkColors: ColorTokens = {
quietGray: "#a3a3a3",
alertRed: "#f87171",
alertRedTint: "#450a0a",
chartLine: "#ea580c",
};
export const radii = {