Skip to content

Conversation

@ameliahsu
Copy link
Member

redirects issue alert specific routes to the appropriate automation pages

@ameliahsu ameliahsu requested a review from a team as a code owner November 13, 2025 19:11
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 13, 2025
@codecov
Copy link

codecov bot commented Nov 13, 2025

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

}
}

return children;
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: New UI Fails, Old Interface Returns

When the workflow-engine-ui feature flag is enabled and the API request completes without data (due to failure or missing workflow mapping), the component falls through to render the original alert rules UI. This creates inconsistent behavior where users with the feature flag enabled may still see the old UI when the API fails, rather than being handled explicitly with an error state or alternative redirect.

Fix in Cursor Fix in Web

return cloneElement(children, props);
}

return children;
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Child routes not rendered without Outlet component

The WorkflowEngineRedirectWithData component attempts to render child routes by cloning the children prop, but in React Router v6, nested routes require using the <Outlet /> component instead. The current code checks isValidElement(children) which will be false for route configurations, causing it to return the raw children array which won't render anything. When redirect conditions aren't met (e.g., feature flag disabled or API returns null), the child route components won't be displayed, breaking the normal alert rule pages.

Fix in Cursor Fix in Web

@ameliahsu ameliahsu merged commit ff4efbd into master Nov 19, 2025
68 checks passed
@ameliahsu ameliahsu deleted the mia/aci/redirect-rules-to-automations branch November 19, 2025 18:47
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.

3 participants