Skip to content

Redesign query result summary and settings#21467

Open
aasimkhan30 wants to merge 15 commits intomainfrom
aasim/fix/redesignedSummary
Open

Redesign query result summary and settings#21467
aasimkhan30 wants to merge 15 commits intomainfrom
aasim/fix/redesignedSummary

Conversation

@aasimkhan30
Copy link
Contributor

Description

  1. Moves out the row count, execution time and summary from the status bar to query result's own status bar. This makes the items more readable
    Before:
image Now: image

Before: (with cell selection)
image
Now: (With cell selection)
image

  1. Adds a new menu for important setting as it requested by many users to switch to panel view but the vscode config is not discoverable.
image

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

Copilot AI review requested due to automatic review settings March 5, 2026 19:02
@aasimkhan30 aasimkhan30 marked this pull request as draft March 5, 2026 19:03
@aasimkhan30 aasimkhan30 changed the title Aasim/fix/redesigned summary Redesign query result summary and settings (WIP) (Not for march) Mar 5, 2026
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

PR Changes

Category Target Branch PR Branch Difference
vscode-mssql VSIX 6410 KB 6411 KB ⚪ 1 KB ( 0% )
sql-database-projects VSIX 7061 KB 7061 KB ⚪ 0 KB ( 0% )
data-workspace VSIX 535 KB 535 KB ⚪ 0 KB ( 0% )

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 56.98925% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.80%. Comparing base (e120e1e) to head (322d45c).
⚠️ Report is 90 commits behind head on main.

Files with missing lines Patch % Lines
...nsions/mssql/src/reactviews/common/locConstants.ts 0.00% 23 Missing ⚠️
extensions/mssql/src/controllers/queryRunner.ts 0.00% 18 Missing ⚠️
...ql/src/queryResult/queryResultWebViewController.ts 80.00% 14 Missing ⚠️
...sions/mssql/src/models/sqlOutputContentProvider.ts 0.00% 10 Missing ⚠️
extensions/mssql/src/views/statusView.ts 41.66% 7 Missing ⚠️
extensions/mssql/src/queryResult/utils.ts 69.23% 4 Missing ⚠️
extensions/mssql/src/controllers/mainController.ts 25.00% 3 Missing ⚠️
...c/queryResult/queryResultWebviewPanelController.ts 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (56.98%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #21467      +/-   ##
==========================================
+ Coverage   72.67%   72.80%   +0.12%     
==========================================
  Files         331      331              
  Lines       98489    98424      -65     
  Branches     5462     5475      +13     
==========================================
+ Hits        71580    71660      +80     
+ Misses      26909    26764     -145     
Files with missing lines Coverage Δ
extensions/mssql/src/constants/locConstants.ts 77.71% <ø> (+1.76%) ⬆️
...tensions/mssql/src/sharedInterfaces/queryResult.ts 100.00% <100.00%> (ø)
extensions/mssql/src/sharedInterfaces/telemetry.ts 100.00% <100.00%> (ø)
...c/queryResult/queryResultWebviewPanelController.ts 33.33% <0.00%> (+0.31%) ⬆️
extensions/mssql/src/controllers/mainController.ts 33.92% <25.00%> (-0.02%) ⬇️
extensions/mssql/src/queryResult/utils.ts 49.02% <69.23%> (+0.47%) ⬆️
extensions/mssql/src/views/statusView.ts 53.73% <41.66%> (+5.26%) ⬆️
...sions/mssql/src/models/sqlOutputContentProvider.ts 53.23% <0.00%> (-0.47%) ⬇️
...ql/src/queryResult/queryResultWebViewController.ts 50.40% <80.00%> (+7.84%) ⬆️
extensions/mssql/src/controllers/queryRunner.ts 69.36% <0.00%> (+0.59%) ⬆️
... and 1 more

... and 1 file with indirect coverage changes

🚀 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.

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…n configuration changes and add unit tests for the new behavior
@aasimkhan30 aasimkhan30 marked this pull request as ready for review March 9, 2026 20:23
Copilot AI review requested due to automatic review settings March 9, 2026 20:23
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

Copilot reviewed 19 out of 22 changed files in this pull request and generated 2 comments.


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

@aasimkhan30 aasimkhan30 changed the title Redesign query result summary and settings (WIP) (Not for march) Redesign query result summary and settings Mar 9, 2026
Copilot AI review requested due to automatic review settings March 10, 2026 22:30
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

Copilot reviewed 20 out of 23 changed files in this pull request and generated 2 comments.


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

Comment on lines +4955 to +4957
<trans-unit id="++CODE++2ada9c77ff43c3a64eb670413987d527359f366fe2ddc314dfdfd6102df8ba07">
<source xml:lang="en">Results Settings</source>
</trans-unit>
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

New trans-units were added/removed in the source vscode-mssql.xlf, but the corresponding localized XLIFF files (e.g. localization/xliff/vscode-mssql.de.xlf, etc.) still contain removed entries (like “Average: {0}”) and don’t include the new ones (like “Results Settings”). Please run yarn localization and commit the updated localization/xliff/*.xlf outputs so the repo’s localization files stay in sync.

Suggested change
<trans-unit id="++CODE++2ada9c77ff43c3a64eb670413987d527359f366fe2ddc314dfdfd6102df8ba07">
<source xml:lang="en">Results Settings</source>
</trans-unit>

Copilot uses AI. Check for mistakes.
Comment on lines +184 to +189
<Switch
checked={openResultsInEditorTabByDefault}
onChange={(_event, data) => {
void setDefaultResultLocation(data.checked);
}}
/>
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The Switch control has no accessible label. In other React views (e.g. SchemaDesigner) the Switch uses the label prop so screen readers announce what the toggle does. Please add a label (or an equivalent aria-label association) describing the setting being toggled.

Copilot uses AI. Check for mistakes.
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.

3 participants