Table Importing Added, UI updates

This commit is contained in:
2026-04-01 20:39:34 -05:00
parent f47385abdc
commit d3021014ed
3 changed files with 324 additions and 4 deletions

View File

@@ -34,6 +34,12 @@ export const chemicalsApi = {
remove: (id: string): Promise<void> =>
apiFetch(`/api/chemicals/${id}`, { method: 'DELETE' }).then(() => undefined),
import: (rows: Partial<ChemicalInventory>[]): Promise<{ imported: number; errors: string[] }> =>
apiFetch('/api/chemicals/import', {
method: 'POST',
body: JSON.stringify({ rows }),
}).then(r => r.json()),
};
export const protocolsApi = {