Skip to content

ref(alerts): migrate issue rule editor off browserHistory#115924

Merged
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-alerts-migrate-issue-rule-editor-off-browserhistory
May 20, 2026
Merged

ref(alerts): migrate issue rule editor off browserHistory#115924
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-alerts-migrate-issue-rule-editor-off-browserhistory

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

Replace the browserHistory.replace call in IssueRuleEditor with a navigate prop supplied by a function wrapper that calls useNavigate().

Replace the `browserHistory.replace` call in `IssueRuleEditor` with a navigate prop supplied by a function wrapper that calls `useNavigate()`.
@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 20, 2026 18:19
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 20, 2026 18:19
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team May 20, 2026 18:19
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 20, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d5aa222. Configure here.

stepBack: -2,
})
}),
{replace: true}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing scroll reset on delete

Low Severity

After a successful delete, this.props.navigate is called with only {replace: true}. The removed browserHistory.replace shim also set preventScrollReset: true to match react-router 3, so post-delete navigation may scroll the rules list to the top unexpectedly.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d5aa222. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.57%

@evanpurkhiser evanpurkhiser merged commit 0d9c080 into master May 20, 2026
72 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-alerts-migrate-issue-rule-editor-off-browserhistory branch May 20, 2026 18:47
JonasBa pushed a commit that referenced this pull request May 21, 2026
Replace the `browserHistory.replace` call in `IssueRuleEditor` with a
navigate prop supplied by a function wrapper that calls `useNavigate()`.
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