mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-25 09:15:19 +03:00
feat(viewer): add extension onboarding columns
This commit is contained in:
parent
e7ac012d4f
commit
babb45775d
@ -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,
|
||||
|
@ -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.`);
|
||||
|
Loading…
Reference in New Issue
Block a user