Skip to content

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

Merged
roggenkemper merged 7 commits into
masterfrom
roggenkemper/feat/recommended-sort-dropdown
Jun 18, 2026
Merged

feat(issues): Add recommended sort with localStorage persistence#116320
roggenkemper merged 7 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

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 93.70% 93.69% 🔴 -0.01%
Typed 132,914 132,922 🟢 +8
Untyped 8,943 8,946 🔴 +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 699 as IssueSortOptionsnewSort as IssueSortOptions
static/app/views/issueList/utils.tsx 97 as IssueSortOptionsvalue as IssueSortOptions
static/app/views/issueList/utils.tsx 98 as IssueSortOptionsvalue as IssueSortOptions

This is informational only and does not block the PR.

@roggenkemper roggenkemper marked this pull request as ready for review June 16, 2026 22:10
@roggenkemper roggenkemper requested a review from a team as a code owner June 16, 2026 22:10
@roggenkemper roggenkemper requested a review from a team June 16, 2026 22:10
Comment thread static/app/views/issueList/overview.tsx Outdated
…is enabled

onSortChange wrote the selected sort to localStorage unconditionally, but the
default sort only reads that stored value when the issue-stream-recommended-sort
flag is on. A user who changed sort before getting the flag would have a stale
value persisted, and once the flag turned on it would override the intended
Recommended default. Gate the write on the same flag as the read so the
conditions stay symmetric.

Co-Authored-By: Claude <noreply@anthropic.com>
@roggenkemper roggenkemper merged commit cb3abac into master Jun 18, 2026
76 checks passed
@roggenkemper roggenkemper deleted the roggenkemper/feat/recommended-sort-dropdown branch June 18, 2026 22:16
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…6320)

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.
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