Skip to content

ref(issues): Migrate similar stack trace to react-query#113344

Open
scttcper wants to merge 3 commits intomasterfrom
scttcper/similar-issues-react-query
Open

ref(issues): Migrate similar stack trace to react-query#113344
scttcper wants to merge 3 commits intomasterfrom
scttcper/similar-issues-react-query

Conversation

@scttcper
Copy link
Copy Markdown
Member

Moves the Similar Issues tab off the Reflux GroupingStore and onto react-query + apiOptions. Selection and merge state live in local React state now, and the in-flight merge drives the row busy state off the mutation's variables instead of a parallel store.

Also strips out the similar-only half of GroupingStore since nothing else reads from it. Merged/unmerge state stays intact for the Merged Issues tab.

First of two stacked PRs - the SimpleTable layout migration follows in #113341.

Replaces GroupingStore.onFetch/onMerge with useQuery + useMutation
against apiOptions. Merge selection (checkbox state, busy-while-merging)
lives in the component as a Set instead of on a reflux listener, so
item.tsx and toolbar.tsx are now pure prop-driven components.

Pulls the scoring transform out of the store into a pure
processSimilarItem in types.ts. The similar half of GroupingStore is
removed entirely; the merged (unmerge) half stays untouched for
groupMerged/.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 17, 2026
@scttcper scttcper marked this pull request as ready for review April 18, 2026 00:14
@scttcper scttcper requested a review from a team as a code owner April 18, 2026 00:14
@scttcper scttcper requested a review from a team April 18, 2026 00:15
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