Skip to content

Add preview label to database dialogs.#21069

Open
aasimkhan30 wants to merge 10 commits intomainfrom
aasim/fix/previewTab
Open

Add preview label to database dialogs.#21069
aasimkhan30 wants to merge 10 commits intomainfrom
aasim/fix/previewTab

Conversation

@aasimkhan30
Copy link
Contributor

Code Changes Checklist

  • New or updated unit tests added
  • All existing tests pass (npm run test)
  • Code follows contributing guidelines
  • Telemetry/logging updated if relevant
  • No regressions or UX breakage

Reviewers: Please read our reviewer guidelines

@github-actions
Copy link

github-actions bot commented Jan 31, 2026

PR Changes

Category Target Branch PR Branch Difference
vscode-mssql VSIX 5902 KB 5903 KB ⚪ 1 KB ( 0% )
sql-database-projects VSIX 7877 KB 7877 KB ⚪ 0 KB ( 0% )
data-workspace VSIX 544 KB 544 KB ⚪ 0 KB ( 0% )

@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.29%. Comparing base (f7bc3ee) to head (75c1826).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #21069   +/-   ##
=======================================
  Coverage   68.29%   68.29%           
=======================================
  Files         242      242           
  Lines       23543    23548    +5     
  Branches     3114     3117    +3     
=======================================
+ Hits        16078    16083    +5     
  Misses       7336     7336           
  Partials      129      129           
Files with missing lines Coverage Δ
extensions/mssql/src/constants/locConstants.ts 87.74% <100.00%> (+0.02%) ⬆️
...src/controllers/backupDatabaseWebviewController.ts 93.84% <100.00%> (+0.01%) ⬆️
...src/controllers/createDatabaseWebviewController.ts 76.92% <100.00%> (+0.29%) ⬆️
...l/src/controllers/dropDatabaseWebviewController.ts 76.00% <100.00%> (+0.48%) ⬆️
...c/controllers/objectManagementWebviewController.ts 81.03% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings February 5, 2026 22:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds "(Preview)" labels to database management dialogs (Create Database, Drop Database, and Rename Database) and implements loading indicators for Create and Drop database operations. The changes ensure users are aware these are preview features and receive visual feedback during long-running operations.

Changes:

  • Added "(Preview)" suffix to database dialog titles in command palette and webview tabs
  • Implemented loading state management with spinners and status messages for create/drop database operations
  • Enhanced ObjectManagementWebviewController architecture to support separate dialog and webview titles

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
localization/xliff/vscode-mssql.xlf Added localization entries for "(Preview)" labels and loading messages
extensions/mssql/src/reactviews/pages/ObjectManagement/dropDatabaseDialogPage.tsx Added isSubmitting state management and loading indicator for drop operations
extensions/mssql/src/reactviews/pages/ObjectManagement/createDatabaseDialogPage.tsx Added isSubmitting state management and loading indicator for create operations
extensions/mssql/src/reactviews/common/objectManagementDialog.tsx Added support for displaying loading messages with spinner component
extensions/mssql/src/reactviews/common/locConstants.ts Updated dialog titles to include "(Preview)" and added loading message strings
extensions/mssql/src/controllers/objectManagementWebviewController.ts Added webviewTitle parameter with documentation to separate internal and user-facing titles
extensions/mssql/src/controllers/dropDatabaseWebviewController.ts Updated constructor to accept webviewTitle parameter
extensions/mssql/src/controllers/createDatabaseWebviewController.ts Updated constructor to accept webviewTitle parameter
extensions/mssql/src/controllers/backupDatabaseWebviewController.ts Updated to pass dialogTitle for both parameters (maintains existing behavior)
extensions/mssql/src/constants/locConstants.ts Added webview title constants for create and drop database dialogs
extensions/mssql/package.nls.json Updated command labels to include "(Preview)"
extensions/mssql/l10n/bundle.l10n.json Added localization entries for preview labels and loading messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants