Added Records screen; added follow up status.

This commit is contained in:
2026-08-26 10:44:30 -04:00
parent e8c69d6558
commit 7085a478fb
13 changed files with 1430 additions and 58 deletions
+23 -1
View File
@@ -1,7 +1,16 @@
import { app, BrowserWindow, shell, ipcMain } from 'electron'
import { fileURLToPath } from 'node:url'
import path from 'node:path'
import { fetchEntries, createEntry, updateEntry, deleteEntry, fetchVaccines } from './pocketbase.js'
import {
fetchEntries,
createEntry,
updateEntry,
deleteEntry,
fetchVaccines,
fetchVaccineRecords,
saveVaccineRecord,
updateVaccineRecord,
} from './pocketbase.js'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -104,3 +113,16 @@ ipcMain.handle('pb:fetch-vaccines', async () => {
return await fetchVaccines()
})
ipcMain.handle('pb:fetch-vaccine-records', async () => {
return await fetchVaccineRecords()
})
ipcMain.handle('pb:save-vaccine-record', async (_event, recordData) => {
return await saveVaccineRecord(recordData)
})
ipcMain.handle('pb:update-vaccine-record', async (_event, id, recordData) => {
return await updateVaccineRecord(id, recordData)
})