Added Messaging and Reports pages; connected Reports to n8n.
This commit is contained in:
1 parent
697d72f379
commit
cb3325d6df
19 files changed
+3793
-21
No files matched your search
@@ -32,6 +32,7 @@ const ALLOWED_SEND_CHANNELS = [
|
||||
'pb:archive-notification',
|
||||
'audit:run-health-audit',
|
||||
'juvonno:fetch-chart',
|
||||
'reports:fetch-report',
|
||||
]
|
||||
|
||||
const ALLOWED_RECEIVE_CHANNELS = [
|
||||
@@ -56,6 +57,7 @@ const ALLOWED_RECEIVE_CHANNELS = [
|
||||
'pb:archive-notification',
|
||||
'audit:run-health-audit',
|
||||
'juvonno:fetch-chart',
|
||||
'reports:fetch-report',
|
||||
]
|
||||
|
||||
// ─── Exposed API ──────────────────────────────────────────────────────────
|
||||
@@ -95,6 +97,13 @@ contextBridge.exposeInMainWorld('api', {
|
||||
fetchChart: (emrId) => ipcRenderer.invoke('juvonno:fetch-chart', emrId),
|
||||
},
|
||||
|
||||
/**
|
||||
* Reports helper methods
|
||||
*/
|
||||
reports: {
|
||||
fetchReport: (payload) => ipcRenderer.invoke('reports:fetch-report', payload),
|
||||
},
|
||||
|
||||
/**
|
||||
* Send a one-way message to the main process.
|
||||
* @param {string} channel - Must be in ALLOWED_SEND_CHANNELS
|
||||
|
||||
Reference in new issue
Block a user