Skip to content

Conversation

@malwilley
Copy link
Member

Uses the new API query param to sort directly connected detectors at the top: #105976

CleanShot 2026-01-12 at 11 47 11

@malwilley malwilley requested a review from a team as a code owner January 12, 2026 19:49
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 12, 2026
Copy link
Contributor

@saponifi3d saponifi3d left a comment

Choose a reason for hiding this comment

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

my comments are just nits about the simple table component 🤣 -- these changes lgtm

const detectorIds = [detectorId, issueStreamDetectorId];
const [cursor, setCursor] = useState<string | undefined>(undefined);
const [searchQuery, setSearchQuery] = useState('');
const [triggeredBySort, setTriggeredBySort] = useState<'asc' | 'desc'>('desc');
Copy link
Contributor

Choose a reason for hiding this comment

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

nit / future -- should this be a literal that we get from the table? (would be cool to have all this built into the table component then we can somehow customize it)

Comment on lines +91 to +92
const handleTriggeredBySort = useCallback(() => {
setTriggeredBySort(sort => (sort === 'asc' ? 'desc' : 'asc'));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: it'd be cool if the component returned the sort direction in the callback.

Copy link
Member Author

Choose a reason for hiding this comment

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

True that would be better! I can make that change in another PR

@malwilley malwilley enabled auto-merge (squash) January 12, 2026 21:15
@malwilley malwilley merged commit 685dc50 into master Jan 12, 2026
63 of 65 checks passed
@malwilley malwilley deleted the malwilley/feat/add-sorting-for-connected-alerts branch January 12, 2026 21:40
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