feat(labs): draw list/detail, marker history, PDF file serving

This commit is contained in:
marcuspaico
2026-08-17 15:57:24 -07:00
parent 96692163f1
commit 7e70bd1940
3 changed files with 116 additions and 1 deletions

View File

@@ -508,6 +508,12 @@ for (const a of ANALYTES) {
for (const al of a.aliases) INDEX.set(norm(al), a);
}
const BY_KEY = new Map(ANALYTES.map((a) => [a.key, a]));
export function resolveAnalyte(name: string): Analyte | null {
return INDEX.get(norm(name)) ?? null;
}
export function getAnalyte(key: string): Analyte | null {
return BY_KEY.get(key) ?? null;
}