mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Two defects behind one omission. The card counts what a visit produced, so a list that dropped the links made every card read zero for a visit with three documents. And the edit sheet seeds its pickers from the row it was handed: an edit opened from a linkless list row would save a replace-set of three empty arrays and silently unfile everything the visit had collected. The links now ride the list, resolved in three grouped queries for the whole page through the batched arm of the same service the detail uses, with the same per-family redaction from the same predicate. The single-visit read hook had no caller and is gone with it — the list is where the surfaces read from. Both defects get a test that would have caught them: the card counts assert against a populated links object, the draft asserts the arrays survive a round trip through draftToBody, and the integration file asserts the list response itself carries every family.
1.4 MiB
1.4 MiB