Skip to content

ref(ourlogs): remove expanded and window virtualizer from LogsInfiniteTable#115884

Merged
JoshuaKGoldberg merged 4 commits into
masterfrom
ourlogs-infinite-table-remove-window-virtualizer
May 26, 2026
Merged

ref(ourlogs): remove expanded and window virtualizer from LogsInfiniteTable#115884
JoshuaKGoldberg merged 4 commits into
masterfrom
ourlogs-infinite-table-remove-window-virtualizer

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented May 20, 2026

Prior to this area of work, LogsInfiniteTable could use either a contained virtualizer (non-expanded mode) or window virtualizer (expanded mode). Now that we're always constrained to the page, I suspect we can stick with just contained.

Trying this out, it seems to work effectively the same. Which I think makes sense: that the table is now always constrained to a parent element & size.

As a part of this, I also removed the expanded prop. All but one uses of the table were using it, and it didn't do much else beyond changing the overscan amount.

Closes LOGS-813.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 20, 2026

LOGS-813

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.56%

@JoshuaKGoldberg JoshuaKGoldberg requested a review from k-fish May 20, 2026 14:40
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 20, 2026 14:41
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner May 20, 2026 14:41
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 47cce80. Configure here.

Comment thread static/app/views/explore/logs/tables/logsInfiniteTable.tsx
Comment thread static/app/views/explore/logs/tables/logsInfiniteTable.tsx Outdated
Comment thread static/app/views/explore/logs/tables/logsInfiniteTable.tsx
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft May 20, 2026 15:26
@JoshuaKGoldberg JoshuaKGoldberg changed the title ref(ourlogs): remove window virtualizer from LogsInfiniteTable ref(ourlogs): remove expanded and window virtualizer from LogsInfiniteTable May 20, 2026
: `
overflow-y: auto;
height: 100%;
`}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

[Explanation] I think this was for an overflow edge case that no longer gets hit in the constrained page layouts.

~ footer {
display: none;
}
`;
Copy link
Copy Markdown
Member Author

@JoshuaKGoldberg JoshuaKGoldberg May 20, 2026

Choose a reason for hiding this comment

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

[Explanation] ViewportConstrainedPage hides the footer too. Switching to using it also makes this logs view no longer expand way beyond the viewport size when there are many logs.

Example URL: /explore/traces/trace/6f0c32cb007c4ac5926eb55cfd5bb046/?node=span-85ed9a74e889ad49&tab=logs

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 20, 2026 15:44
@JoshuaKGoldberg JoshuaKGoldberg requested review from a team as code owners May 20, 2026 15:44
@JoshuaKGoldberg JoshuaKGoldberg requested review from JonasBa and removed request for a team May 20, 2026 15:44
Comment thread static/app/views/explore/logs/styles.tsx
@JoshuaKGoldberg JoshuaKGoldberg merged commit cc102a7 into master May 26, 2026
70 checks passed
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