Moved migrations from opening board to right sidebar / Migrations.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-11-05 17:06:26 +02:00
parent e93e72234c
commit 1b25d1d572
7 changed files with 277 additions and 62 deletions

View file

@ -99,24 +99,9 @@ BlazeComponent.extendComponent({
return;
}
// Check if board needs comprehensive migration
const needsMigration = await this.checkComprehensiveMigration(boardId);
if (needsMigration) {
// Start comprehensive migration
this.isMigrating.set(true);
const success = await this.executeComprehensiveMigration(boardId);
this.isMigrating.set(false);
if (success) {
this.isBoardReady.set(true);
} else {
console.error('Comprehensive migration failed, setting ready to true anyway');
this.isBoardReady.set(true); // Still show board even if migration failed
}
} else {
this.isBoardReady.set(true);
}
// Automatic migration disabled - migrations must be run manually from sidebar
// Board admins can run migrations from the sidebar Migrations menu
this.isBoardReady.set(true);
} catch (error) {
console.error('Error during board conversion check:', error);