Skip to content

Conversation

@scttcper
Copy link
Member

On the line that indicates the current event, add all the tooltips from the regular tooltip so that the tooltip doesn't feel in the way. Also fix a color issue

before

image

after

Screenshot 2026-01-13 at 10 05 31 AM

On the line that indicates the current event, add all the tooltips from the regular tooltip so that the tooltip doesn't feel in the way. Also fix a color issue.

Co-Authored-By: Claude <noreply@anthropic.com>
@scttcper scttcper requested a review from a team January 13, 2026 18:27
@scttcper scttcper requested a review from a team as a code owner January 13, 2026 18:27
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 13, 2026

// Colors matching eventGraph.tsx bar chart series
const translucentGray = Color(theme.colors.gray400).alpha(0.5).string();
const lightGray = Color(theme.colors.gray400).alpha(0.2).string();
Copy link
Contributor

Choose a reason for hiding this comment

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

Tooltip marker colors don't match bar chart colors

Medium Severity

The tooltip marker colors are hardcoded as gray400 with alpha values and blue400, but the bar chart in eventGraph.tsx uses theme.tokens.dataviz.semantic.other, theme.tokens.dataviz.semantic.accent, and theme.tokens.dataviz.semantic.neutral. The comment claims "Colors matching eventGraph.tsx bar chart series" but these are different color sources, causing the tooltip dots to visually mismatch the actual bar colors they represent.

Additional Locations (1)

Fix in Cursor Fix in Web

Comment on lines 244 to +249
event,
group,
eventSeries,
isFiltered: isUnfilteredStatsEnabled,
unfilteredEventSeries,
seriesType: visibleSeries,
Copy link

Choose a reason for hiding this comment

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

Bug: The event graph's current event marker tooltip displays event counts instead of user counts when the user graph is active, because it's always passed the eventSeries data.
Severity: HIGH

Suggested Fix

Conditionally pass the correct data series to the useCurrentEventMarklineSeries hook. When visibleSeries is 'user', the hook should receive userSeries and unfilteredUserSeries instead of eventSeries and unfilteredEventSeries.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: static/app/views/issueDetails/streamline/eventGraph.tsx#L244-L249

Potential issue: In the event graph, when the displayed series is switched to 'user',
the tooltip for the current event marker incorrectly shows event counts instead of user
counts. The `useCurrentEventMarklineSeries` hook is always called with `eventSeries`
(event counts), but the tooltip labels change to 'Matching users' and 'Total users'.
This results in a data mismatch, where the UI displays event count values next to user
count labels, potentially misleading the user about the data they are viewing.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

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

I'm working on a fix for the tokens, we have a backwards compat proxy here that doesn't seem to be applied correctly when this is not accessed from a string literal template

@scttcper scttcper merged commit 632fbe3 into master Jan 13, 2026
52 checks passed
@scttcper scttcper deleted the scttcper/current-event-tooltip branch January 13, 2026 19:24
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.

3 participants