mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
refactor(medications): split the dose-history ledger into its hook, row and dialogs
The ledger file held two components of 404 and 314 lines. It now reads: - dose-history/use-dose-history-ledger: the window read, summary, day groups and the optimistic mark, plus the owner's edits (toggle, pin, release, delete) and one reconcile step after every write - dose-history/ledger-row-item: the row and, apart from it, the owner's row menu - dose-history/ledger-summary-chart and ledger-confirms dose-history-ledger.tsx keeps the ledger layout. Markup and behaviour are unchanged; the guards name the modules that now hold what they check.
This commit is contained in:
1 parent
3eb5aa9364
commit
58215f3338
14 files changed
+1008
-849
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Comment lines that open with a release version, per file under src/. Maintained by src/__tests__/version-stamp-ratchet.test.ts.",
|
||||
"count": 2950,
|
||||
"total": 10294,
|
||||
"count": 2949,
|
||||
"total": 10287,
|
||||
"entries": {
|
||||
"__tests__/account-payload-consumer-guard.test.ts": 2,
|
||||
"__tests__/acting-account-boundary-guard.test.ts": 7,
|
||||
@@ -1171,7 +1171,6 @@
|
||||
"components/medications/detail/medication-detail-tabs.tsx": 28,
|
||||
"components/medications/dose-history-add-dialog.tsx": 2,
|
||||
"components/medications/dose-history-ledger-compute.ts": 5,
|
||||
"components/medications/dose-history-ledger.tsx": 7,
|
||||
"components/medications/dose-strength-curve.tsx": 2,
|
||||
"components/medications/drug-level-chart.tsx": 2,
|
||||
"components/medications/glp1-medication-card.tsx": 36,
|
||||
|
||||
Reference in new issue
Block a user