Integrate offline support and improve error handling across app
- Add `OfflineContext` to manage offline state and interactions within components. - Refactor session logic in `ScribeControllerBar` and `page.tsx` to handle offline scenarios (e.g., check connectivity before enabling GPT features). - Enhance offline PIN setup and verification with better flow and error messaging. - Optimize database IPC handlers to initialize and sync data in offline mode. - Refactor code to clean up redundant logs and ensure stricter typings. - Improve consistency and structure in handling online and offline operations for smoother user experience.
This commit is contained in:
2
electron.d.ts
vendored
2
electron.d.ts
vendored
@@ -11,7 +11,7 @@ export interface IElectronAPI {
|
||||
platform: NodeJS.Platform;
|
||||
|
||||
// Generic invoke method - use this for all IPC calls
|
||||
invoke: <T = any>(channel: string, ...args: any[]) => Promise<T>;
|
||||
invoke: <T>(channel: string, ...args: any[]) => Promise<T>;
|
||||
|
||||
// Token management (shortcuts for convenience)
|
||||
getToken: () => Promise<string | null>;
|
||||
|
||||
Reference in New Issue
Block a user