Api+app: usuniecie PlanSet.difficulty z kontraktu planu (trudnosc pozostaje wynikiem rzeczywistym serii)

This commit is contained in:
tisachi
2026-10-11 15:52:33 +02:00
parent d544f6521c
commit 2fb288e029
18 changed files with 230 additions and 99 deletions

View File

@@ -233,7 +233,7 @@ const SET_FIELD_META: { key: 'reps' | 'rir' | 'difficulty'; label: string; hint:
export type SetFieldValues = { reps: string; rir: string; difficulty: string; note: string };
export type PlannedValues = { reps: number | null; rir: number | null; difficulty: number | null };
export type PlannedValues = { reps: number | null; rir: number | null };
/* Trwająca przerwa pokazana w oknie serii (timer + informacja, że zapis zrestartuje odliczanie). */
export type SetEditRestInfo = { remaining: number; total: number; resetsOnSave: boolean };
@@ -280,7 +280,6 @@ export function SetEditDialog({
...d,
reps: planned.reps?.toString() ?? '',
rir: planned.rir?.toString() ?? '',
difficulty: planned.difficulty?.toString() ?? '',
}));
};