Skip to content

feat(issues): Add recommended sort with localStorage persistence#116320

Draft
roggenkemper wants to merge 5 commits into
masterfrom
roggenkemper/feat/recommended-sort-dropdown
Draft

feat(issues): Add recommended sort with localStorage persistence#116320
roggenkemper wants to merge 5 commits into
masterfrom
roggenkemper/feat/recommended-sort-dropdown

Conversation

@roggenkemper
Copy link
Copy Markdown
Member

Add the experimental "Recommended" sort option to the issue stream dropdown,
gated behind the issue-stream-recommended-sort feature flag. Users with
the flag see "Recommended" as their default sort, which ranks issues by
combined recency, severity, and impact signals (backend in #111043).

Sort selection is persisted in localStorage per-org so the choice survives
page navigation. The sort also appears in the dropdown when ?sort=recommended
is in the URL, allowing manual testing without the flag.

The ?sort=recommended query param fallback was included so anyone can test
the sort without needing the feature flag enabled.

roggenkemper and others added 4 commits May 26, 2026 12:49
Gate the experimental recommended sort behind the
issue-stream-recommended-sort feature flag. Also show the option when
?sort=recommended is already in the URL for manual testing.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
When the issue-stream-recommended-sort flag is enabled, default the
sort to "recommended" instead of "last seen". Persist the user's sort
choice in localStorage so it survives navigation.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

📊 Type Coverage Diff

Metric Before After Delta
Coverage 93.58% 93.58% ±0%
Typed 133,218 133,226 🟢 +8
Untyped 9,138 9,141 🔴 +3
🔍 4 new type safety issues introduced

Type assertions (as) (4 new)

File Line Detail
static/app/views/issueList/overview.tsx 224 as IssueSortOptionsdecodeScalar(location.query.sort, defaultSort) as IssueSortOptions
static/app/views/issueList/overview.tsx 683 as IssueSortOptionsnewSort as IssueSortOptions
static/app/views/issueList/utils.tsx 93 as IssueSortOptionsvalue as IssueSortOptions
static/app/views/issueList/utils.tsx 94 as IssueSortOptionsvalue as IssueSortOptions

This is informational only and does not block the PR.

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.

1 participant