feat(viewer): add extension onboarding columns

This commit is contained in:
Aminejv 2022-09-19 18:18:45 +01:00
parent e7ac012d4f
commit babb45775d
2 changed files with 14 additions and 1 deletions

View File

@ -65,6 +65,11 @@ export const hydratePartial = async (
hasCompletedSurvey: user.hasCompletedSurvey,
hasCompletedUploadOnboarding: user.hasCompletedUploadOnboarding,
hasCompletedSlatesOnboarding: user.hasCompletedSlatesOnboarding,
hasCompletedExtensionOBFirstStep: user.hasCompletedExtensionOBFirstStep,
hasCompletedExtensionOBSecondStep: user.hasCompletedExtensionOBSecondStep,
hasCompletedExtensionOBThirdStep: user.hasCompletedExtensionOBThirdStep,
isRecentViewActivated: user.isRecentViewActivated,
isFilesViewActivated: user.isFilesViewActivated,
username: user.username,
email: user.email,
library: user.library,

View File

@ -124,6 +124,14 @@ const addIsFilterSidebarCollapsedToUsersTable = db.schema.table("users", functio
table.boolean("isFilterSidebarCollapsed").defaultTo(false);
});
const addExtensionColumnsToUsersTable = db.schema.table("users", function (table) {
table.boolean("isRecentViewActivated").defaultTo(false);
table.boolean("isFilesViewActivated").defaultTo(false);
table.boolean("hasCompletedExtensionOBFirstStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBSecondStep").defaultTo(false);
table.boolean("hasCompletedExtensionOBThirdStep").defaultTo(false);
});
// Promise.all([
// dropOnboardingTable,
// createSurveysTable,
@ -132,7 +140,7 @@ const addIsFilterSidebarCollapsedToUsersTable = db.schema.table("users", functio
// addIsFilterSidebarCollapsedToUsersTable,
// ]);
Promise.all([dropOnboardingColumn]);
Promise.all([addExtensionColumnsToUsersTable]);
Logging.log(`FINISHED: adjust.js`);
Logging.log(` CTRL +C to return to terminal.`);