Bump app version to 0.5.1 and add auto-update support

- Implemented auto-update logic in `ScribeTopBar` with update notification and user interaction.
- Integrated `@tauri-apps/plugin-updater` and `@tauri-apps/plugin-process` for updater functionality.
- Added automatic migration feature with `autoMigrateElectron` support and UI feedback.
- Refactored app architecture with new routing, components, and layout for better modularity.
- Enhanced JSON response handling in API client for robust data parsing.
- Updated locales to include new translations for update and migration-related UI.
This commit is contained in:
natreex
2026-04-07 16:09:35 -04:00
parent 687c1d582c
commit 5c7e71ce9e
19 changed files with 461 additions and 46 deletions

View File

@@ -700,6 +700,20 @@ export async function importFromElectron(migrationFilePath: string): Promise<Mig
return invoke<MigrationResult>('import_from_electron', {data: {migrationFilePath}});
}
export interface AutoMigrationResult {
migrated: boolean;
userId: string | null;
tokenMigrated: boolean;
keyMigrated: boolean;
pinMigrated: boolean;
dbMigrated: boolean;
error: string | null;
}
export async function autoMigrateElectron(): Promise<AutoMigrationResult> {
return invoke<AutoMigrationResult>('auto_migrate_electron');
}
// ─── Window Management ──────────────────────────────────────
let loginWindowOpening = false;