diff --git a/extensions/sql-migration/src/models/product.ts b/extensions/sql-migration/src/models/product.ts new file mode 100644 index 0000000000..51b2d9d7ed --- /dev/null +++ b/extensions/sql-migration/src/models/product.ts @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the Source EULA. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +export interface Product { + name: string; + learnMoreLink: string | undefined; + icon: string; +} + +export interface SKURecommendation { + product: Product; + migratableDatabases: number; + totalDatabases: number; +} diff --git a/extensions/sql-migration/src/models/strings.ts b/extensions/sql-migration/src/models/strings.ts index 5e35cc9726..d6b6792c47 100644 --- a/extensions/sql-migration/src/models/strings.ts +++ b/extensions/sql-migration/src/models/strings.ts @@ -18,3 +18,12 @@ export const COLLECTING_SOURCE_CONFIGURATIONS_ERROR = (error: string = ''): stri return localize('sql.migration.collecting_source_configurations.error', "There was an error when gathering information about your data configuration. {0}", error); }; +export const SKU_RECOMMENDATION_ALL_SUCCESSFUL = (databaseCount: number): string => { + return localize('sql.migration.sku.all', "Based on the results of our source configuration scans, all {0} of your databases can be migrated to Azure SQL.", databaseCount); +}; + +export const SKU_RECOMMENDATION_SOME_SUCCESSFUL = (migratableCount: number, databaseCount: number): string => { + return localize('sql.migration.sku.some', "Based on the results of our source configuration scans, {0} out of {1} of your databases can be migrated to Azure SQL.", migratableCount, databaseCount); +}; + +export const SKU_RECOMMENDATION_NONE_SUCCESSFUL = localize('sql.migration.sku.none', "Based on the results of our source configuration scans, none of your databases can be migrated to Azure SQL."); diff --git a/extensions/sql-migration/src/wizard/sourceConfigurationPage.ts b/extensions/sql-migration/src/wizard/sourceConfigurationPage.ts index b9e1eceac4..ce8932f90c 100644 --- a/extensions/sql-migration/src/wizard/sourceConfigurationPage.ts +++ b/extensions/sql-migration/src/wizard/sourceConfigurationPage.ts @@ -91,6 +91,7 @@ export class SourceConfigurationPage extends MigrationWizardPage { case State.COLLECTION_SOURCE_INFO_ERROR: return this.enterErrorState(); case State.TARGET_SELECTION: + // TODO: Allow pressing next in this state return this.enterTargetSelectionState(); } }