CD-8721 Added Ui changes for custom rules with Ai feature [DON'T MERGE]#718
Open
Rajashekar-codescan wants to merge 1 commit into
Open
CD-8721 Added Ui changes for custom rules with Ai feature [DON'T MERGE]#718Rajashekar-codescan wants to merge 1 commit into
Rajashekar-codescan wants to merge 1 commit into
Conversation
autorabit-nitesh
approved these changes
May 14, 2026
arunsimha-cs
approved these changes
May 15, 2026
| error?.data?.errors?.map((e: any) => e.msg).join(', ') || | ||
| error?.message || | ||
| JSON.stringify(error); | ||
| alert(`Failed to create rule: ${message}`); |
There was a problem hiding this comment.
Do we need to use alert or can we go with the setErrorMessage()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creating AI custom rules through a guided UI flow
Scope
Implement AI Rule Creation flow in the UI (as per design)
Build an input form for:
Rule Name
Rule Key
Type
Severity
Natural language rule description
Submit input to the backend API for processing
Present Rule Validation/Review screen with:
AI rule summary
Generated rule logic (w.o validation further implementation)
Handle error and ambiguity states
Acceptance Criteria
Follows the design.
Users can select “Create AI Rule” from the Custom Rules UI
Users can input all required metadata and a natural language description
Form validates required fields before submission
On submission, UI calls backend API
Flow supports one rule creation at a time