Skip to content

Split share telemetry events - #444

Open
shilman wants to merge 2 commits into
shilman/fix-share-actionsfrom
shilman/split-share-telemetry
Open

Split share telemetry events#444
shilman wants to merge 2 commits into
shilman/fix-share-actionsfrom
shilman/split-share-telemetry

Conversation

@shilman

@shilman shilman commented Jul 28, 2026

Copy link
Copy Markdown
Member

@ghengeveld Have tested this canary pretty well using Yann's npx @hipster/sb-utils event-logger utility so I can visualize the event stream. The only bug I saw is pre-existing in the code and I've opened a repro PR at #446.

Summary

Routes SharePopup telemetry through a dedicated channel and records it under the chromatic-share Storybook telemetry event.

Panel telemetry is unchanged and continues to use addon-visual-tests.

This PR is stacked on #443.

Flow Storybook telemetry event
Addon panel addon-visual-tests
Sharing chromatic-share

Test plan

  • Focused SharePopup suite: 16 tests pass
  • yarn gate: 221 tests pass

Copilot AI review requested due to automatic review settings July 28, 2026 10:29

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.

Pull request overview

Routes SharePopup telemetry through a dedicated Storybook channel so share-funnel events are recorded under the chromatic-share telemetry event, while existing addon panel telemetry remains under addon-visual-tests.

Changes:

  • Introduced a new SHARE_TELEMETRY channel event constant and updated SharePopup to emit on it.
  • Added a server-side channel listener that forwards SHARE_TELEMETRY to Storybook telemetry as chromatic-share.
  • Updated SharePopup tests to assert against the new channel event name.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/screens/SharePopup/useShareExecution.ts Switches SharePopup action telemetry emission from TELEMETRY to SHARE_TELEMETRY.
src/screens/SharePopup/SharePopup.test.tsx Updates telemetry assertions to match the new shareTelemetry channel event.
src/preset.ts Adds a new server channel listener to route share telemetry to the chromatic-share Storybook telemetry event.
src/constants.ts Defines the new SHARE_TELEMETRY channel event constant.

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

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.40%. Comparing base (8d6def4) to head (415d92e).

Files with missing lines Patch % Lines
src/preset.ts 0.00% 4 Missing ⚠️
src/screens/SharePopup/ShareToolbarButton.tsx 0.00% 2 Missing ⚠️
src/screens/SharePopup/useShareExecution.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           shilman/fix-share-actions     #444      +/-   ##
=============================================================
+ Coverage                      74.18%   74.40%   +0.21%     
=============================================================
  Files                            164      164              
  Lines                          12923    12928       +5     
  Branches                        1142     1148       +6     
=============================================================
+ Hits                            9587     9619      +32     
+ Misses                          3319     3292      -27     
  Partials                          17       17              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@shilman
shilman force-pushed the shilman/fix-share-actions branch from 2e83b21 to 8d6def4 Compare July 28, 2026 16:30
@shilman
shilman force-pushed the shilman/split-share-telemetry branch from be97ac4 to 415d92e Compare July 28, 2026 16:32
@shilman shilman added enhancement Classification: Improvement to existing feature release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Classification: Improvement to existing feature patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants