Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show survey VSCODE-562 #780

Merged
merged 9 commits into from
Aug 22, 2024
Merged

feat: show survey VSCODE-562 #780

merged 9 commits into from
Aug 22, 2024

Conversation

paula-stacho
Copy link
Contributor

@paula-stacho paula-stacho commented Aug 19, 2024

Description

https://jira.mongodb.org/browse/VSCODE-562

Screenshot 2024-08-19 at 13 36 42

We had to adjust the wording, because the information message doesn't support formatting - so we cannot have a title and subtitle as planned. Alternative would be to show a popup, which is much more intrusive.

The prompt is shown at activation, for users who
a) haven't been shown the survey before
b) already have some connections (indicating this is not their first plugin activation)

Note: I am saving the shown survey not as a boolean, but by "id", as I imagine we might have different surveys later.

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@paula-stacho
Copy link
Contributor Author

@mmarcon Could you have a look at the message and let me know if it looks okay to you? (see screenshot) The new wording has been proposed by Gaurab, but he hasn't seen the final version before going OOO.

@mmarcon
Copy link
Member

mmarcon commented Aug 19, 2024

@paula-stacho LGTM!

@paula-stacho paula-stacho marked this pull request as ready for review August 20, 2024 13:52
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

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

lgtm, two small code suggestions, not blockers (feel free to ignore).
Also added one question that may be more for product @mmarcon .

src/mdbExtensionController.ts Outdated Show resolved Hide resolved
src/mdbExtensionController.ts Outdated Show resolved Hide resolved
const action = 'Share your thoughts';
const text = 'How can we make the MongoDB extension better for you?';
const link = 'https://forms.gle/9viN9wcbsC3zvHyg7';
const result = await vscode.window.showInformationMessage(
Copy link
Member

Choose a reason for hiding this comment

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

Is this something we also want to track in telemetry? Like how many folks are shown the survey and dismiss or click? cc @mmarcon

paula-stacho and others added 3 commits August 20, 2024 17:11
Co-authored-by: Rhys <Anemy@users.noreply.github.com>
Co-authored-by: Rhys <Anemy@users.noreply.github.com>
@paula-stacho paula-stacho merged commit d97770b into main Aug 22, 2024
5 checks passed
@paula-stacho paula-stacho deleted the VSCODE-562 branch August 22, 2024 09:17
@@ -150,6 +150,7 @@ export default class MDBExtensionController implements vscode.Disposable {

this.registerCommands();
this.showOverviewPageIfRecentlyInstalled();
void this.showSurveyForEstablishedUsers();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we show this survey to every user of the extension? I remember @GaurabAryal was thinking of limiting the number of users who participate, e.g. 1 out of 10 users will see it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh really? He didn't mention anything like that, but we only spoke briefly before he went OOO.

alenakhineika added a commit that referenced this pull request Aug 26, 2024
* chore(testing): use source map support, improve test cleanup error handling VSCODE-593 (#784)

* feat: show survey VSCODE-562 (#780)


---------

Co-authored-by: Rhys <Anemy@users.noreply.github.com>
Co-authored-by: Rhys Howell <rhys.howell@mongodb.com>

* fix: add telemetry events for survey VSCODE-595 (#787)

* fix(editors): don't show connect code lens on regular js files VSCODE-538 (#789)

---------

Co-authored-by: Rhys <Anemy@users.noreply.github.com>
Co-authored-by: Paula Stachova <paula.stachova@tutanota.com>
Co-authored-by: Rhys Howell <rhys.howell@mongodb.com>
alenakhineika added a commit that referenced this pull request Sep 2, 2024
* chore(testing): use source map support, improve test cleanup error handling VSCODE-593 (#784)

* feat: show survey VSCODE-562 (#780)


---------

Co-authored-by: Rhys <Anemy@users.noreply.github.com>
Co-authored-by: Rhys Howell <rhys.howell@mongodb.com>

* fix: add telemetry events for survey VSCODE-595 (#787)

* fix(editors): don't show connect code lens on regular js files VSCODE-538 (#789)

* fix(deps): bump shell and data-service deps VSCODE-564 (#794)

* fix: clean-up webpack config VSCODE-597 (#795)

* Update changelog (#796)

Co-authored-by: mcasimir <334881+mcasimir@users.noreply.github.com>

* Update changelog (#797)

Co-authored-by: alenakhineika <16307679+alenakhineika@users.noreply.github.com>

* fix: cannot find module electron VSCODE-598 (#799)

* Update changelog (#801)

Co-authored-by: mcasimir <334881+mcasimir@users.noreply.github.com>

* Update changelog (#802)

Co-authored-by: alenakhineika <16307679+alenakhineika@users.noreply.github.com>

---------

Co-authored-by: Rhys <Anemy@users.noreply.github.com>
Co-authored-by: Paula Stachova <paula.stachova@tutanota.com>
Co-authored-by: Rhys Howell <rhys.howell@mongodb.com>
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mcasimir <334881+mcasimir@users.noreply.github.com>
nirinchev added a commit that referenced this pull request Sep 10, 2024
* main:
  chore(ci): Update deprecated github actions (#813)
  Update changelog (#802)
  Update changelog (#801)
  fix: cannot find module electron VSCODE-598 (#799)
  Update changelog (#797)
  Update changelog (#796)
  fix: clean-up webpack config VSCODE-597 (#795)
  fix(deps): bump shell and data-service deps VSCODE-564 (#794)
  fix(editors): don't show connect code lens on regular js files VSCODE-538 (#789)
  fix: add telemetry events for survey VSCODE-595 (#787)
  feat: show survey VSCODE-562 (#780)
  chore(testing): use source map support, improve test cleanup error handling VSCODE-593 (#784)
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.

4 participants