Skip to content

Bump tracking dependencies#15804

Open
SHession wants to merge 5 commits intomainfrom
sh/bump-ophan-tracking-dependencies
Open

Bump tracking dependencies#15804
SHession wants to merge 5 commits intomainfrom
sh/bump-ophan-tracking-dependencies

Conversation

@SHession
Copy link
Copy Markdown
Contributor

@SHession SHession commented May 6, 2026

What does this change?

This PR adds support for the new media events added to the Ophan data model. Bumping the Ophan Tracker JS library which provides typing, and the latest Bridget changes.

Note

I'm not sure how other platforms will handle seeing new event types if they are out-of-date. Is this something to be concerned about?

Why?

This will facilitate the tracking of new media events for self hosted video, namely:

  • PAUSE
  • MUTE
  • UNMUTE
  • ENTER_FULLSCREEN
  • EXIT_FULLSCREEN
  • VIEW

@SHession SHession requested a review from a team as a code owner May 6, 2026 09:19
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@SHession SHession added the feature Departmental tracking: work on a new feature label May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

@SHession SHession added the run_chromatic Runs chromatic when label is applied label May 6, 2026
const supportsAudio =
sources.some((source) => source.hasAudio) && !isCinemagraph;

const sendOphanTrackingEvent = useCallback(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a small refactor to make sending the new tracking events simpler.

@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 6, 2026
@SHession SHession force-pushed the sh/bump-ophan-tracking-dependencies branch from c4caaba to 1435a56 Compare May 7, 2026 09:43
return undefined;
}

if (await hasMinimumBridgetVersion('8.9.2')) {
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.

This will make sure that app clients without the necessary Bridget version will not receive events that can't be understood.

Copy link
Copy Markdown
Contributor

@abeddow91 abeddow91 left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for adding a Bridget version check to prevent the client from receiving events it can't understand.

@SHession SHession force-pushed the sh/bump-ophan-tracking-dependencies branch from 1435a56 to f81be55 Compare May 7, 2026 14:58
@SHession SHession force-pushed the sh/bump-ophan-tracking-dependencies branch from f81be55 to c06f80f Compare May 7, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants