fix(labs): review a unit that was only a calc note, keep unseen category places

A document unit that held only "(calc)" read as no unit and went straight to the record; it now goes to review. Saving a category order keeps the saved keys not on screen after the shown ones. The changelog says what each fix does and no more.
This commit is contained in:
Marc-André Bombeck committed 2026-11-10 19:53:47 +01:00
1 parent 69ba8bec91
commit 4dcb041612
6 files changed
+64 -15

No files matched your search

+6 -1
View File
@@ -49,6 +49,7 @@ import {
type ModuleGroupsOpen,
type ModuleSortDir,
} from "@/lib/module-list-prefs";
import { mergeCategoryOrder } from "@/lib/settings/module-list-layout";
import { BiomarkerManager } from "./biomarker-manager";
import type {
@@ -134,7 +135,11 @@ export function LabsSettings() {
/>
{prefs.groupBy === "category" ? (
<LabsCategoryOrderCard onChange={setCategoryOrder} />
<LabsCategoryOrderCard
onChange={(shown) =>
setCategoryOrder(mergeCategoryOrder(shown, prefs.categoryOrder))
}
/>
) : null}
{manual ? (