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

chore(issue-details): Add analytics about sidebar/sections #80766

Closed
wants to merge 2 commits into from

Conversation

roggenkemper
Copy link
Member

this pr updates the issue_details.viewed event with info about if the sidebar was open and what fold sections are open.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 14, 2024

return {
sidebar_open: localStorage.getItem('issue-details-sidebar-open') === 'true',
...sidebarOpenSections,
Copy link
Member Author

Choose a reason for hiding this comment

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

doing it this way because we can't really send an array over and if we sent an individual event for each section open it would be too many events

Copy link
Member

Choose a reason for hiding this comment

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

doesn't feel like this will be valuable to me since it also depends on if the page even has those sections

Copy link
Member

Choose a reason for hiding this comment

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

oh its just the sidebar

@roggenkemper roggenkemper marked this pull request as ready for review November 14, 2024 21:04
@roggenkemper roggenkemper requested a review from a team as a code owner November 14, 2024 21:04
@@ -7,7 +7,7 @@ import {
useReducer,
} from 'react';

export const enum SectionKey {
Copy link
Member

Choose a reason for hiding this comment

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

how are these in the sidebar?

@roggenkemper
Copy link
Member Author

decided that the existing analytics events should be enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants