Skip to content

Unify survey feedback entry points and update wizard layout - #1016

Merged
Tomasz Naumowicz (tnaum-ms) merged 27 commits into
mainfrom
dev/tnaum/survey-feedback-unification
Oct 15, 2026
Merged

Tomasz Naumowicz (tnaum-ms) merged 27 commits into
mainfrom
dev/tnaum/survey-feedback-unification

Conversation

@tnaum-ms

@tnaum-ms Tomasz Naumowicz (tnaum-ms) commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Make the DocumentDB satisfaction survey the consistent in-extension feedback destination. Replace the Query Insights and Cluster Dashboard thumb/reason dialogs with feedback actions, and add "Give Feedback" actions to Collection View, the Atlas credentials and DocumentDB Local wizards, and the Help and Feedback tree. The Command Palette DocumentDB: Give Feedback command now opens the same feedback sidebar (D0033); it opens the survey directly in the browser only if the survey service failed to initialize. GitHub issue links for bugs and feature suggestions stay in the Help and Feedback tree; adding them to the sidebar is tracked in #1019.

Feedback permission follows VS Code's telemetry.feedback.enabled setting (and its EnableFeedback enterprise policy) instead of telemetry level all (D0032). Feedback buttons, the Help-tree item, the automatic invitation, and the Command Palette command appear only when it is on; the command is hidden by a config.telemetry.feedback.enabled palette clause and does nothing if invoked otherwise. Survey events still pass through the VS Code telemetry reporter, which drops them unless telemetry level is all. Each webview snapshots the setting when opened; reopening the view or restarting VS Code picks up a change. A feedback button or Help-tree item that is still on screen after feedback was turned off shows an information message naming the setting.

Only Collection View (initial query, Indexes tab, Query Insights) and the Cluster Dashboard inventory load can evaluate eligibility and show the automatic invitation (D0031). The Query Playground, interactive shell, paste tasks, Document View saves, and Local Quick Start still count active days and send survey.cohortEntry, but never evaluate, send survey.eligibility, or present. An inviting milestone that arrives while counting is in flight is evaluated right after it.

Feedback sidebar behavior:

  • The automatic invitation never takes focus. A user-requested form moves keyboard focus to "Continue to survey". VS Code's delayed webview reveal focus can pull focus back to its outer frame, so for one second after a focus request the page re-focuses the button when it loses focus; any click or key press in the page ends that window.
  • Pressing a feedback button while an automatic invitation is visible focuses that invitation instead of replacing it, keeping its attribution and outcome. Pressing it while a user-opened form is open focuses that form, keeping the selected rating and original source.
  • The form's "Why am I seeing this?" text thanks users who opened it themselves, and both telemetry disclosures state that they apply only when VS Code telemetry is on.
  • Feedback buttons drop their redundant tooltips and aria-labels, since the text label is always visible.

Attribute feedback activation and survey opening by view, wizard, Collection View tab, command, or automatic invitation; survey.feedbackActivated is sent once per visible sidebar. Distinguish first invitations from reminders and their prior outcome. Fix cold Secondary Sidebar reveal races by ordering context updates and tolerating a transient view replacement.

Also update @microsoft/vscode-ext-webview-fluentui to 1.2.0. ContainerBody and Wizard now accept contentMaxWidth rather than imposing a package-wide 760px cap. Headers and their actions can use the available width; the two existing setup wizards explicitly retain their prior 760px content width.

Validation

  • Full checks (npm run l10n, npm run prettier-fix, npm run lint, npx vitest run, npm run build, npm run package) passed at 7c73c258: 313 test files, 5,159 passing tests, one skipped; VSIX packaging completed with non-blocking warnings.
  • Later commits (focus reclaim cee09bfc, changelog 073a65c7, merge of main 2f470c01) ran npm run build and the affected suites (survey, Give Feedback, feedback permission, extension activation, webviews: 48 files, 1,091 tests, one skipped), which pass.
  • Verified manually in an Extension Development Host: focus on "Continue to survey" when opening feedback from Help and Feedback, with the sidebar closed and already open.
  • Still to verify manually: the remaining feedback entry points, narrow responsive wizard headers, and that only Collection View and the Cluster Dashboard show the automatic invitation. The survey telemetry schema and selected-rating disclosure still need privacy review before shipping.
  • Survey design and decisions: docs/ai-and-plans/features/survey/; FluentUI layout rationale: docs/ai-and-plans/features/webview-fluentui-package/.
  • This PR stays draft until an AI pre-review specifically for Unify survey feedback entry points and update wizard layout #1016 and the author decisions on its findings are committed under the feature iteration docs. No issue is marked closed by this draft PR.

- Added support for manually opened feedback forms, allowing users to provide ratings without an invitation.
- Updated SurveyInvitationView to render appropriate messages based on user actions.
- Modified survey invitation HTML to include explanations for manually opened feedback forms.
- Implemented telemetry reporting for feedback from manually opened forms.
- Refactored feedback components in the Cluster Dashboard and Collection View to streamline feedback collection.
- Removed legacy feedback dialog and card components to simplify the feedback process.
- Improved styling and layout for feedback actions in the Collection View.
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ CI passed: standard tier (ready PR)

Commit 2f470c0, workflow run.

Layer Result Ran or skipped because
Static checks ✅ passed every push
Unit tests ✅ passed every push
npm packages: verify tarballs ✅ passed packages/**, package-lock.json or the CI workflow changed
VSIX: inspect contents ✅ passed ready PR
VSIX: self-test of the checks ✅ passed build/verification/**, build/vite/**, the Vite configs, package-lock.json or the CI workflow changed
VSIX: activate in VS Code ✅ passed ready PR
VSIX: self-test of the activation check ✅ passed build/verification/**, build/vite/**, the Vite configs, package-lock.json or the CI workflow changed
Webview host in unbundled extensions ✅ passed packages/vscode-ext-webview/**, package-lock.json or the CI workflow changed
E2E ⏭️ not available yet arrives with the E2E iteration (full tier)

Full run: add the ci:full-requested label to run every layer once on the current commit.
No full run yet.

Code quality

Check Status How to fix
Localization (l10n) ✅ Passed Nothing to fix
ESLint ✅ Passed Nothing to fix
Prettier formatting ✅ Passed Nothing to fix

Build size

Sizes that changed by 5% or 50 KiB or more against main (warning only):

Graph PR Base Delta Delta %
Cluster Dashboard page (clusterDashboard) 1.5 MiB 1.6 MiB ⬇️ -151.2 KiB -9.1%
  • Cluster Dashboard page (clusterDashboard), biggest package changes (approx., before minification): micromark-core-commonmark 91.5 KiB (left top 60), src/webviews -61.0 KiB, mdast-util-to-hast 44.6 KiB (left top 60)

Only each graph's 60 largest packages are tracked; the rest are counted as (other), so "entered/left top 60" can mean a package crossed that line, not that it was added or removed.

To find out why, compare the chunks (bytes, moduleIds) in host.json and views.json from Bundle-reports-38755056844 with the same reports from a main build.

Artifacts: VSIX | Bundle-reports-38755056844 | L1-manifest-report-38755056844

All graphs (exact bytes)
Graph PR bytes Base bytes Delta bytes Delta %
Collection View page (collectionView) 6,035,539 6,051,749 ⬇️ -16,210 -0.3%
Document View page (documentView) 4,808,032 4,820,017 ⬇️ -11,985 -0.2%
Local Quick Start page (localQuickStart) 1,550,255 1,561,830 ⬇️ -11,575 -0.7%
Atlas Credentials page (atlasCredentials) 1,503,880 1,515,447 ⬇️ -11,567 -0.8%
Cluster Dashboard page (clusterDashboard) 1,550,095 1,704,965 ⬇️ -154,870 -9.1%
Activation (mainStartup) 3,446,702 3,437,035 ⬆️ +9,667 +0.3%
Extension host (main) 9,973,420 9,963,753 ⬆️ +9,667 +0.1%
Playground worker (playgroundWorker) 5,384,565 5,384,565 ✅ 0 0.0%
VSIX (vsix) 8,634,941 8,636,355 ⬇️ -1,414 -0.0%
playgroundTsPlugin 6,175 6,175 ✅ 0 0.0%
viewsEntry 1,455,863 1,467,848 ⬇️ -11,985 -0.8%
viewsAssets 80,340 80,340 ✅ 0 0.0%
editorWorker 259,528 259,528 ✅ 0 0.0%
jsonWorker 389,389 389,389 ✅ 0 0.0%

Packaged bytes. Shared chunks count in every graph that loads them, so rows do not add up.

Updated in place on every run.

Other milestones only count active days (D0031). The debug show-invitation
command now replaces an open feedback form.
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) marked this pull request as ready for review October 15, 2026 11:36
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) requested a review from a team as a code owner October 15, 2026 11:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Feedback lifecycle races, incorrect invitation-history merging, and clipped keyboard-focus outlines remain unresolved.

4 open findings
What changed in this PR

Unifies in-extension feedback around the survey sidebar while keeping the Command Palette’s direct browser action.

Changes:

  • Adds permission-gated feedback actions and source attribution.
  • Restricts automatic invitations to Collection View and Cluster Dashboard milestones.
  • Adds configurable wizard content widths and updates tests, localization, and documentation.

This remains a draft (Case 1); full ready-for-review checks, including prettier-fix, are deferred. No checks were run during this review.

File Description
src/​webviews/​documentdb/​localQuickStart/​localQuickStartController.ts Snapshots feedback permission.
src/​webviews/​documentdb/​localQuickStart/​LocalQuickStart.tsx Adds feedback action and explicit width.
src/​webviews/​documentdb/​collectionView/​queryInsightsTab/​QueryInsightsTab.tsx Removes legacy feedback UI.
src/​webviews/​documentdb/​collectionView/​queryInsightsTab/​components/​index.ts Removes legacy feedback exports.
src/​webviews/​documentdb/​collectionView/​queryInsightsTab/​components/​FeedbackDialog.tsx Deletes reason dialog.
src/​webviews/​documentdb/​collectionView/​queryInsightsTab/​components/​FeedbackCard.tsx Deletes thumbs card.
src/​webviews/​documentdb/​collectionView/​queryInsights/​queryInsightsEventsRouter.ts Enables invitations after analysis.
src/​webviews/​documentdb/​collectionView/​indexesTab/​indexViewRouter.ts Enables invitations after index creation.
src/​webviews/​documentdb/​collectionView/​collectionViewRouter.ts Enables invitations after initial queries.
src/​webviews/​documentdb/​collectionView/​collectionViewController.ts Updates feedback configuration.
src/​webviews/​documentdb/​collectionView/​CollectionView.tsx Adds tab-attributed feedback action.
src/​webviews/​documentdb/​collectionView/​collectionView.scss Styles tabs alongside feedback.
src/​webviews/​documentdb/​clusterDashboard/​components/​DashboardFeedback.tsx Replaces thumbs with survey action.
src/​webviews/​documentdb/​clusterDashboard/​clusterDashboardRouter.ts Enables invitations after inventory loading.
src/​webviews/​documentdb/​clusterDashboard/​clusterDashboardRouter.test.ts Updates survey mock.
src/​webviews/​documentdb/​clusterDashboard/​clusterDashboardController.ts Updates feedback configuration.
src/​webviews/​documentdb/​clusterDashboard/​clusterDashboardController.test.ts Updates configuration fixture.
src/​webviews/​documentdb/​clusterDashboard/​ClusterDashboard.tsx Gates feedback by permission.
src/​webviews/​documentdb/​atlasCredentials/​AtlasCredentialsView.tsx Adds feedback action and explicit width.
src/​webviews/​documentdb/​atlasCredentials/​atlasCredentialsController.ts Snapshots feedback permission.
src/​webviews/​_integration/​appRouter.ts Validates and routes feedback requests.
src/​utils/​feedbackPermission.test.ts Tests Help-tree permission gating.
src/​tree/​help-and-feedback-view/​HelpAndFeedbackBranchDataProvider.ts Adds gated survey item.
src/​services/​survey/​surveyTypes.ts Defines activation and invitation history.
src/​services/​survey/​surveyTelemetry.ts Adds activation attribution.
src/​services/​survey/​surveyTelemetry.test.ts Tests attribution and rating validation.
src/​services/​survey/​surveyState.ts Persists invitation history.
src/​services/​survey/​surveyState.test.ts Tests legacy history handling.
src/​services/​survey/​SurveyService.ts Coordinates manual feedback and inviting milestones.
src/​services/​survey/​SurveyService.test.ts Tests feedback and invitation behavior.
src/​services/​survey/​surveyPresentation.ts Adds manual presentation mode.
src/​services/​survey/​surveyPolicy.ts Derives reminders from invitation history.
src/​services/​survey/​surveyPolicy.test.ts Updates reminder expectations.
src/​services/​survey/​invitation/​SurveyInvitationView.ts Handles manual mode and reveal ordering.
src/​services/​survey/​invitation/​SurveyInvitationView.test.ts Tests manual forms and reveal races.
src/​services/​survey/​invitation/​surveyInvitationHtml.ts Renders manual feedback copy and controls.
src/​services/​survey/​invitation/​surveyInvitationHtml.test.ts Tests manual presentation markup.
src/​debug/​registerDebugCommands.ts Uses inviting milestone entry point.
src/​debug/​debug.test.ts Updates debug command expectations.
src/​commands/​openCollectionView/​openCollectionView.ts Supplies feedback permission.
src/​commands/​openClusterDashboard/​openClusterDashboard.ts Supplies feedback permission.
src/​commands/​giveFeedback/​giveFeedback.ts Registers sidebar feedback command.
src/​commands/​giveFeedback/​giveFeedback.test.ts Tests sidebar command gating.
packages/​vscode-ext-webview-fluentui/​src/​components/​Wizard/​Wizard.types.ts Exposes content width option.
packages/​vscode-ext-webview-fluentui/​src/​components/​Wizard/​Wizard.tsx Forwards content width.
packages/​vscode-ext-webview-fluentui/​src/​components/​Wizard/​Wizard.test.tsx Tests width propagation.
packages/​vscode-ext-webview-fluentui/​src/​components/​Wizard/​README.md Documents wizard sizing.
packages/​vscode-ext-webview-fluentui/​src/​components/​Container/​README.md Documents container sizing.
packages/​vscode-ext-webview-fluentui/​src/​components/​Container/​ContainerNav.tsx Applies navigation width cap.
packages/​vscode-ext-webview-fluentui/​src/​components/​Container/​ContainerMain.tsx Applies main-content width cap.
packages/​vscode-ext-webview-fluentui/​src/​components/​Container/​ContainerBody.tsx Replaces fixed cap with configurable width.
packages/​vscode-ext-webview-fluentui/​src/​components/​Container/​Container.types.ts Defines content width property.
packages/​vscode-ext-webview-fluentui/​package.json Bumps package to 1.2.0.
packages/​vscode-ext-webview-fluentui/​CHANGELOG.md Records layout API changes.
package-lock.json Updates workspace package version.
l10n/​bundle.l10n.json Updates feedback strings.
docs/​release-notes/​1.0.md Describes feedback and layout changes.
docs/​ai-and-plans/​features/​webview-fluentui-package/​README.md Records configurable sizing.
docs/​ai-and-plans/​features/​webview-fluentui-package/​design.md Explains width behavior.
docs/​ai-and-plans/​features/​survey/​README.md Updates survey behavior summary.
docs/​ai-and-plans/​features/​survey/​design.md Documents feedback lifecycle and telemetry.
docs/​ai-and-plans/​features/​survey/​decisions.md Records attribution and invitation decisions.
docs/​ai-and-plans/​features/​cluster-dashboard/​README.md Documents shared survey destination.
CHANGELOG.md Summarizes user-facing changes.
build/​verification/​browser/​fixtures.ts Removes obsolete feedback configuration.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/services/survey/SurveyService.ts Resolved
Comment thread src/services/survey/SurveyService.ts Resolved
Comment thread src/services/survey/surveyState.ts Resolved
Feedback permission now follows the VS Code feedback setting and the
EnableFeedback policy instead of telemetry level 'all' (D0032). The Give
Feedback command is hidden from the Command Palette and does nothing while
feedback is off.
Wait for canceled automatic reveals before showing manual feedback, scope close callbacks to their own presentation, and merge invitation outcomes by recency independently of cooldowns. Add regression coverage and update survey documentation.

Co-authored-by: Copilot <[email protected]>
Move the focus allowance into the tab list scrollport so keyboard focus indicators remain visible. Retain the feedback action trailing inset and accept the two-pixel header height increase.

Co-authored-by: Copilot <[email protected]>
Catches up prettier formatting and the l10n bundle entry for the queued-evaluation trace added with D0031.
The buttons always show their "Give Feedback" text, so the label tooltip and aria-label only repeated it.
A user-requested feedback form now reveals the sidebar with focus and moves keyboard focus to Continue to survey once rendered. A feedback button pressed while an automatic invitation is visible focuses that invitation instead of replacing it, so it keeps its automaticInvitation attribution and its own outcome.
The vscode mock returned undefined for every setting, so telemetry.feedback.enabled read as off and Give Feedback never ran. Return the requested default instead.
The Command Palette command now opens the same feedback sidebar as every other entry point, with giveFeedbackCommand as its source, so it can carry a rating. It opens the survey directly only if the survey service failed to initialize. survey.feedbackActivated is now always tied to a visible sidebar. Records D0033.
A second feedback click while the manual form is open now brings it into view and moves focus to Continue to survey. The form keeps its selected rating and original source, and no second survey.feedbackActivated is sent.
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) marked this pull request as draft October 15, 2026 13:16
A webview feedback button or Help and Feedback item that was shown before telemetry.feedback.enabled was turned off now shows an information message instead of doing nothing. The hidden Command Palette command stays silent, as D0032 records.
The manually opened form now thanks the user under "Why am I seeing this?". Both telemetry disclosures say they apply only when VS Code telemetry is on, and refer to "the survey" instead of "the external form".
A delayed webview focus from VS Code could move focus to its outer frame right after the button was focused, leaving Enter and Space without effect. For one second after a focus request, the page puts focus back on Continue to survey when its window loses focus; any pointer or key press in the page ends that window.
…back-unification

# Conflicts:
#	src/webviews/documentdb/collectionView/CollectionView.tsx
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) marked this pull request as ready for review October 15, 2026 14:50
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) merged commit 5719f48 into main Oct 15, 2026
23 checks passed
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) deleted the dev/tnaum/survey-feedback-unification branch October 15, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants