Skip to content

feat(ourlogs): sync hover state between pinned and tbody log rows#117034

Merged
JoshuaKGoldberg merged 2 commits into
masterfrom
feat/logs-sync-pinned-hover
Jun 9, 2026
Merged

feat(ourlogs): sync hover state between pinned and tbody log rows#117034
JoshuaKGoldberg merged 2 commits into
masterfrom
feat/logs-sync-pinned-hover

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Jun 5, 2026

Copy link
Copy Markdown
Member

A pinned log shows up twice: once in the pinned section at the top of the table and again in the tbody. Hovering either instance now highlights both so it's clear they're the same row.

Screen.Recording.2026-06-05.at.6.03.38.PM.mov

Closes LOGS-841

A pinned log appears both in the pinned section and in the tbody. Hovering
either instance now highlights both, so it's clear they're the same row.

This was removed from the initial pinning implementation because the hover
state lived on the pinning context, forcing every row to re-render on each
hover. Now that pinning is prop-drilled, the table owns a single hovered-row
id and passes each row a derived boolean, so memo keeps all but the two twin
rows from re-rendering.

Refs LOGS-841
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 5, 2026

Copy link
Copy Markdown

LOGS-841

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 5, 2026
@JoshuaKGoldberg JoshuaKGoldberg changed the title feat(logs): Sync hover state between pinned and tbody log rows feat(ourlogs): sync hover state between pinned and tbody log rows Jun 5, 2026
@JoshuaKGoldberg

Copy link
Copy Markdown
Member Author

@cursor review

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 8bc1747. Configure here.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review June 8, 2026 13:33
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner June 8, 2026 13:33
Comment thread static/app/views/explore/logs/tables/logsInfiniteTable.spec.tsx Outdated
Comment thread static/app/views/explore/logs/tables/logsTableRow.tsx
@JoshuaKGoldberg JoshuaKGoldberg merged commit 039b157 into master Jun 9, 2026
75 of 76 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the feat/logs-sync-pinned-hover branch June 9, 2026 19:43
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