-
+

,
errorElement:
,
children: [
+ { path: "dashboard", element:
},
{ path: "settings", element:
},
{ path: "import", element:
},
],
diff --git a/src/client/store/index.ts b/src/client/store/index.ts
index 513a9d2..c23289d 100644
--- a/src/client/store/index.ts
+++ b/src/client/store/index.ts
@@ -21,7 +21,7 @@ export const useStore = create((set, get) => ({
// Socket.io state
socketIOInstance: {},
- // Import job results
+ // Import job queue and associated statuses
importJobQueue: {
successfulJobCount: 0,
failedJobCount: 0,
@@ -44,6 +44,14 @@ export const useStore = create((set, get) => ({
break;
}
},
+ mostRecentImport: null,
+ setMostRecentImport: (fileName: string) => {
+ set(
+ produce((state) => {
+ state.importJobQueue.mostRecentImport = fileName;
+ }),
+ );
+ },
},
}));
@@ -67,7 +75,7 @@ if (!isNil(sessionId)) {
"call",
"socket.resumeSession",
{
- session: { sessionId },
+ sessionId,
},
(data) => console.log(data),
);