Skip to content

last-update-sort - Disable on custom and pre-defined Views - #9926

Merged
fregante merged 3 commits into
mainfrom
last-update-sort
Aug 2, 2026
Merged

fregante merged 3 commits into
mainfrom
last-update-sort

Conversation

@fregante

@fregante fregante commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

@fregante fregante added the bug label Aug 2, 2026
@fregante fregante changed the title last-update-sort - Disable on custom Views last-update-sort - Disable on custom and pre-defined Views Aug 2, 2026

// Exclude /pulls/ global pages since they're already sorted by update time #9604
// This also breaks the feature on the header button regardless of the PR inbox beta status. This is because the feature breaks the inbox, overriding the user's preference.
if (/^[/]pulls[/]\w+$/.test(link.pathname) || link.matches('[href="/pulls"][class*="appHeaderButton"]')) {

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.

Moved to CSS

[href*="/labels/"]
):not(
[href^="/pulls"],
[href^="/issues"],

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.

All global pages are affected, they're already sorted this way anyway

[href^="/issues"],

[href*="/issues/labels"],
[href*="/issues/views"],

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.

This covers the recent bug report

@fregante
fregante merged commit 0ba2556 into main Aug 2, 2026
21 checks passed
@fregante
fregante deleted the last-update-sort branch August 2, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

last-update-sort clears view filters

1 participant