mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
A dose logged from another screen marked the Today hero and the dashboard stale without re-reading them, so returning to the home page kept showing the old state until the 120 s poll or a hard reload. The daily reads run with refetchOnMount off, so a bundle invalidation with the default active refetch-type never touched them while they were unmounted. Route every intake-affecting medication write through one blessed invalidateMedicationReads (bundle invalidation plus a forced inactive refetch of the digest and snapshot): Take all due, the intake edit dialog, the history bulk/row delete, the dose-history ledger and its add dialog, the lifecycle and danger-zone actions, and the intake import. Give the Vorsorge reminder mutations the same daily-rail refresh, bust the biomarker assessment and the labs-changes read after a lab write, and refetch the daily reads after a briefing regenerate so the Today lead updates without a reload. Restore the dashboard-layout concurrency belt: the settings layout query now always loads its own tokened copy, so a home-page visit can no longer strand a save without its base token and silently drop the v1.32.16 conflict guard. Add a structural guard that fails CI when a new site invalidates a daily-reads bundle without the paired inactive refetch, so this class cannot recur a fourth time, plus behavioural coverage for the batch take and the Vorsorge refresh. Refs #581