Skip to content

feat: Add analytics for early index journey guidance CLOUDP-311789 #6976

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

Merged
merged 4 commits into from
Jun 2, 2025

Conversation

rubydong
Copy link
Collaborator

@rubydong rubydong commented May 29, 2025

Description

https://jira.mongodb.org/browse/CLOUDP-311789

Following this list but note that some have already been added in previous PRs:
https://docs.google.com/document/d/1wf5x58vRqfTr_5xmhgM1j01VlIkvjnvQRiiyIo57L6Q/edit?tab=t.0#bookmark=kix.5fxzlr43voeh

image image image image image image image image image image

I also alphabetized what's in telemetry-events.ts

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

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)

@rubydong rubydong changed the title CLOUDP-311789 Add analytics for early index journey guidance feat: Add analytics for early index journey guidance CLOUDP-311789 May 29, 2025
@github-actions github-actions bot added the feat label May 29, 2025
@rubydong rubydong added the no release notes Fix or feature not for release notes label May 29, 2025
@rubydong rubydong marked this pull request as ready for review May 29, 2025 19:01
@@ -52,12 +52,14 @@ interface AccordionProps extends React.HTMLProps<HTMLButtonElement> {
hintText?: string;
open?: boolean;
setOpen?: (newValue: boolean) => void;
onOpenCallback?: () => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding callback to a callback prop name is redundant

Suggested change
onOpenCallback?: () => void;
onOpen?: () => void;

@@ -70,6 +72,9 @@ function Accordion({
setOpenRef.current?.(newValue);
return newValue;
});
if (typeof onOpenCallback === 'function') {
onOpenCallback();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will also be called on close, so the prop name is confusing, let's change that

Comment on lines 2831 to 2838
| UpdateExportedEvent
| UpdateExportOpenedEvent
| ViewUpdatedEvent
| SecretStorageNotAvailableEvent
| FirstContentfulPaintEvent
| LargestContentfulPaintEvent
| FirstInputDelayEvent
| CumulativeLayoutShiftEvent
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the future it would be nice to avoid unnecessary changes to the files like this one, we don't have any sorting rules for our codebase and this shift makes it really hard to understand whether or not there any meaningful changes here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i misunderstood and thought that it was meant to be sorted but that it got messed up later on. i reverted the sorting

@rubydong rubydong added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Jun 2, 2025
@rubydong rubydong requested a review from gribnoysup June 2, 2025 14:13
@rubydong rubydong merged commit 33a492c into main Jun 2, 2025
56 checks passed
@rubydong rubydong deleted the cloudp-311789 branch June 2, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants