Skip to content

fix(ourlogs): reset column sort to default on third click#115751

Merged
JoshuaKGoldberg merged 3 commits into
masterfrom
fix/ourlogs-sort-reset-third-click
May 19, 2026
Merged

fix(ourlogs): reset column sort to default on third click#115751
JoshuaKGoldberg merged 3 commits into
masterfrom
fix/ourlogs-sort-reset-third-click

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented May 18, 2026

Column sort previously had no way to return to the default state: clicking a column header only toggled between desc and asc. This adds a third state to reset back to default.

  • Infinite table: undefined → desc → asc → timestamp desc (the default sort)
  • Aggregate table: undefined → desc → asc → first-field desc (the aggregate default)

Closes LOGS-808.

Column sort previously cycled between desc and asc with no way to
return to the default sort. Add a third state: clicking an already-asc
column resets the infinite table to timestamp-desc (the default) and
the aggregate table to its first-field-desc default.

Fixes LOGS-808
Co-Authored-By: Claude Sonnet 4 <noreply@example.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

LOGS-808

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 18, 2026
@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(ourlogs): Reset column sort to default on third click fix(ourlogs): reset column sort to default on third click May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

📊 Type Coverage Diff

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

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 18, 2026 20:45
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner May 18, 2026 20:45
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 683a36e. Configure here.

Comment thread static/app/views/explore/logs/tables/logsAggregateTable.tsx Outdated
Copy link
Copy Markdown
Contributor

@nsdeschenes nsdeschenes left a comment

Choose a reason for hiding this comment

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

Looks good, one small stylistic nit 🎨

Comment thread static/app/views/explore/logs/tables/logsInfiniteTable.spec.tsx Outdated
@JoshuaKGoldberg
Copy link
Copy Markdown
Member Author

Oh @nsdeschenes I found a bug, let me fix and then un-draft...

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft May 19, 2026 12:38
@JoshuaKGoldberg
Copy link
Copy Markdown
Member Author

Never mind, I was working in the wrong directory locally. 🤦

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review May 19, 2026 13:57
@JoshuaKGoldberg JoshuaKGoldberg merged commit a873357 into master May 19, 2026
73 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the fix/ourlogs-sort-reset-third-click branch May 19, 2026 14:17
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