mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
fix(medications): key the dedup pin guard on persisted attribution, not a timestamp shape
Every standalone intake anchors its slot on the take time since v1.15.19, so guarding the nightly dedup on that shape excluded ordinary drift duplicates from collapsing — the original point of the sweep. Releasing a pinned dose now persists the user's choice on the row, the dedup and the repair script key their exclusion on that flag, the read model reports a released row as deliberately off-schedule instead of re-snapping it within the anchor epsilon, and the attributed badge only shows on rows actually bound to a slot. A few fixture names and stray comments also drop personal references.
This commit is contained in:
1 parent
04765ea8ac
commit
a5650d0617
11 files changed
+267
-93
No files matched your search
@@ -29,7 +29,10 @@
|
||||
* kebab "Slot … zuordnen" action that pins the take onto it after a
|
||||
* confirm that names the consequence ("zählt als verspätet"). A pinned
|
||||
* slot row carries a quiet "zugeordnet" badge and the inverse
|
||||
* "Zuordnung lösen" kebab action (`forceSlotInstant: null`).
|
||||
* "Zuordnung lösen" kebab action (`forceSlotInstant: null`). v1.16.0:
|
||||
* the released row keeps USER_PIN provenance server-side (the dedup
|
||||
* leaves it standalone) and reads as a plain ad-hoc row here — no
|
||||
* badge, since it is no longer bound to a slot.
|
||||
*
|
||||
* A compact took / skipped history chart sits at the top — the ledger already
|
||||
* carries the counts. The card body never tints by status (removed earlier);
|
||||
@@ -634,7 +637,11 @@ function LedgerRowItem({
|
||||
{t("medications.detail.verlauf.adHocTag")}
|
||||
</Badge>
|
||||
)}
|
||||
{row.pinned && (
|
||||
{/* v1.16.0 — the "zugeordnet" badge only when the row is actually
|
||||
bound to a slot. A released ("Zuordnung lösen") USER_PIN take
|
||||
surfaces as an ad-hoc row that also carries `pinned`; badging
|
||||
it "zugeordnet" would claim the binding the user just released. */}
|
||||
{row.kind === "slot" && row.pinned && (
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="text-[0.65rem]"
|
||||
|
||||
Reference in new issue
Block a user