Skip to content

feat(aci): Update metric alerts page to redirect with workflow-engine-metric-issue-ui flag #107645

Merged
malwilley merged 2 commits intomasterfrom
malwilley/feat/update-frontend-redirects-to-use-metric-issues-flag-as-well
Feb 6, 2026
Merged

feat(aci): Update metric alerts page to redirect with workflow-engine-metric-issue-ui flag #107645
malwilley merged 2 commits intomasterfrom
malwilley/feat/update-frontend-redirects-to-use-metric-issues-flag-as-well

Conversation

@malwilley
Copy link
Copy Markdown
Member

@malwilley malwilley commented Feb 5, 2026

Closes ISWF-1940

The goal of this PR is that, when the user has the workflow-engine-metric-issues-ui flag, clicking metric alert notifications will redirect to the corresponding metric issue.

I added a new HOC for this called withMetricIssueRedirect(). While added this, I saw an opportunity to reuse some logic and make the existing HOCs a bit more readable. I also added a bunch of tests to verify that everything still redirects as expected.

Cursor Bugbot reviewed your changes and found no issues for commit 28595bf

@malwilley malwilley requested a review from a team February 5, 2026 00:11
@malwilley malwilley requested a review from a team as a code owner February 5, 2026 00:11
@linear
Copy link
Copy Markdown

linear bot commented Feb 5, 2026

@malwilley malwilley changed the title feat(aci): Update metric alerts page to redirect with workflow-engine-metric-issues-ui flag feat(aci): Update metric alerts page to redirect with workflow-engine-metric-issue-ui flag Feb 5, 2026
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 5, 2026
@malwilley malwilley force-pushed the malwilley/feat/update-frontend-redirects-to-use-metric-issues-flag-as-well branch from 8632e75 to 28595bf Compare February 5, 2026 00:12
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.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

features: ['workflow-engine-ui', 'workflow-engine-redirect-opt-out'],
});

const Wrapped = withAutomationEditRedirect(TestComponent);
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.

Test uses wrong HOC in describe block

Low Severity

Inside the describe('withAutomationDetailsRedirect') block, the opt-out test at line 69 wraps TestComponent with withAutomationEditRedirect instead of withAutomationDetailsRedirect. This means withAutomationDetailsRedirect's opt-out behavior is never actually tested. Both HOCs share the same underlying withRuleRedirect logic so the test passes, but it creates false confidence in coverage and won't catch a regression if withAutomationDetailsRedirect is changed independently.

Fix in Cursor Fix in Web

@malwilley malwilley merged commit 488ab37 into master Feb 6, 2026
59 checks passed
@malwilley malwilley deleted the malwilley/feat/update-frontend-redirects-to-use-metric-issues-flag-as-well branch February 6, 2026 19:10
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
dcramer pushed a commit that referenced this pull request Feb 17, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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