mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
The review dialog silently dropped any selected reading that could not be written (no date, no unit, no value) and saved the rest. When nothing was left it showed "Select at least one reading to save", which described a different situation and said nothing about what was missing. A save is now all-or-nothing over the selected readings. When one is incomplete, nothing is written; the dialog states how many readings need attention, marks each missing field (aria-invalid, inline message, red border, required marker on the label) and moves focus to the first one. Marks appear after a save attempt and follow the edits. The "nothing selected" message is kept for that case only. Validation is a pure function next to the payload mapping, so the rule that blocks a save and the rule that builds the payload cannot drift apart. Adds EN and DE strings; the other locales are left to the maintainers. Refs #1055