Repository navigation
Unify survey feedback entry points and update wizard layout - #1016
Conversation
- 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.
…oints and wizard header layout improvements
✅ CI passed: standard tier (ready PR)Commit
Full run: add the Code quality
Build sizeSizes that changed by 5% or 50 KiB or more against
Only each graph's 60 largest packages are tracked; the rest are counted as To find out why, compare the chunks ( Artifacts: VSIX | Bundle-reports-38755056844 | L1-manifest-report-38755056844 All graphs (exact bytes)
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.
There was a problem hiding this comment.
🟡 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.
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.
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

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.enabledsetting (and itsEnableFeedbackenterprise policy) instead of telemetry levelall(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 aconfig.telemetry.feedback.enabledpalette clause and does nothing if invoked otherwise. Survey events still pass through the VS Code telemetry reporter, which drops them unless telemetry level isall. 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, sendsurvey.eligibility, or present. An inviting milestone that arrives while counting is in flight is evaluated right after it.Feedback sidebar behavior:
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.feedbackActivatedis 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-fluentuito 1.2.0.ContainerBodyandWizardnow acceptcontentMaxWidthrather 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
npm run l10n,npm run prettier-fix,npm run lint,npx vitest run,npm run build,npm run package) passed at7c73c258: 313 test files, 5,159 passing tests, one skipped; VSIX packaging completed with non-blocking warnings.cee09bfc, changelog073a65c7, merge ofmain2f470c01) rannpm run buildand the affected suites (survey, Give Feedback, feedback permission, extension activation, webviews: 48 files, 1,091 tests, one skipped), which pass.docs/ai-and-plans/features/survey/; FluentUI layout rationale:docs/ai-and-plans/features/webview-fluentui-package/.