Skip to content

Commit

Permalink
[New Migration Workflow] New Assessment Summary Card (#24368)
Browse files Browse the repository at this point in the history
* created Assessment Summary Card

* updated update function for assessment summary card

* added comments and localized strings

* added TODO comments

* added comments and localized strings

* resolved comments

* removed duplicate value

* Updated strings.ts
  • Loading branch information
krritik authored Sep 18, 2023
1 parent 1c2f9a1 commit 52c4f57
Show file tree
Hide file tree
Showing 3 changed files with 441 additions and 3 deletions.
9 changes: 6 additions & 3 deletions extensions/sql-migration/src/constants/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const ASSESSMENT_RESULTS_PAGE_HEADER = localize('sql.migration.assessment
export const DATABASES_ASSESSED_LABEL = localize('sql.migration.database.assessed.label', "Database(s) assessed");
export const MIGRATION_TIME_LABEL = localize('sql.migration.migration.time.label', "Ready for migration");
export const ASSESSMENT_FINDINGS_LABEL = localize('sql.migration.assessment.findings.label', "Assessment findings");
export const MIGRATION_READINESS_LABEL = localize('sql.migration.migration.readiness.label', "Migration readiness");
export const SUMMARY_TITLE = localize('sql.migration.summary.title', "Summary");
export const DETAILS_TITLE = localize('sql.migration.details.title', "Details");
export const ASSESSMENT_SUMMARY_TITLE = localize('sql.migration.assessment.summary.title', "Assessment summary");
Expand All @@ -98,7 +99,9 @@ export const SEVERITY_FINDINGS_LABEL = localize('sql.migration.severity.findings
export const ASSESSED_DBS_LABEL = localize('sql.migration.assessed.dbs.label', "Assessed databases");
export const NOT_READY = localize('sql.migration.not.ready', "Not ready");
export const READY = localize('sql.migration.ready', "Ready");
export const NEEDS_REVIEW = localize('sql.migration.needs.review', "Needs review");
export const READY_WARN = localize('sql.migration.ready.warn', "Ready with warnings");
export const BLOCKERS = localize('sql.migration.ready', "Blockers");
export const DATABASE_ISSUES_SUMMARY = localize('sql.migration.database.issues.summary', "Database assessment issues summary");
export const TOTAL_ISSUES_LABEL = localize('sql.migration.total.issues.label', "Total issues found");
export const SEVERITY_ISSUES_LABEL = localize('sql.migration.severity.issues.label', "Issues by severity");
Expand Down Expand Up @@ -147,9 +150,9 @@ export const REFRESH_ASSESSMENT_BUTTON_LABEL = localize('sql.migration.refresh.a
export const SKU_RECOMMENDATION_CHOOSE_A_TARGET = localize('sql.migration.wizard.sku.choose_a_target', "Choose your Azure SQL target");
export const SKU_RECOMMENDATION_CHOOSE_A_TARGET_HELP = localize('sql.migration.wizard.sku.choose_a_target.help', "Not sure which Azure SQL target is right for you? Learn more");

export const SKU_RECOMMENDATION_MI_CARD_TEXT = localize('sql.migration.sku.mi.card.title', "Azure SQL Managed Instance");
export const SKU_RECOMMENDATION_SQLDB_CARD_TEXT = localize('sql.migration.sku.sqldb.card.title', "Azure SQL Database");
export const SKU_RECOMMENDATION_VM_CARD_TEXT = localize('sql.migration.sku.vm.card.title', "SQL Server on Azure Virtual Machine");
export const SKU_RECOMMENDATION_MI_CARD_TEXT = localize('sql.migration.sku.mi.card.title', "Azure SQL Managed Instance (PaaS)");
export const SKU_RECOMMENDATION_SQLDB_CARD_TEXT = localize('sql.migration.sku.sqldb.card.title', "Azure SQL Database (PaaS)");
export const SKU_RECOMMENDATION_VM_CARD_TEXT = localize('sql.migration.sku.vm.card.title', "SQL Server on Azure Virtual Machine (IaaS)");
export const SKU_RECOMMENDATION_MI_TARGET_TEXT = localize('sql.migration.sku.mi.target.title', "Azure SQL Managed Instance");
export const SKU_RECOMMENDATION_SQLDB_TARGET_TEXT = localize('sql.migration.sku.sqldb.target.title', "Azure SQL Database");
export const SKU_RECOMMENDATION_VM_TARGET_TEXT = localize('sql.migration.sku.vm.target.title', "SQL Server on Azure Virtual Machine");
Expand Down
8 changes: 8 additions & 0 deletions extensions/sql-migration/src/constants/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ export const CARD_AXES_LABEL = {
'text-align': 'right',
'font-weight': '600',
};


export const ASSESSMENT_SUMMARY_CARD_CSS = {
'font-size': '16px',
'line-height': '21.28px',
'font-weight': '700',
'margin': '0px',
};
Loading

0 comments on commit 52c4f57

Please sign in to comment.