Skip to content

CD-8721 Added Ui changes for custom rules with Ai feature [DON'T MERGE]#718

Open
Rajashekar-codescan wants to merge 1 commit into
CD-7112from
CD-8721-ui
Open

CD-8721 Added Ui changes for custom rules with Ai feature [DON'T MERGE]#718
Rajashekar-codescan wants to merge 1 commit into
CD-7112from
CD-8721-ui

Conversation

@Rajashekar-codescan
Copy link
Copy Markdown
Collaborator

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

error?.data?.errors?.map((e: any) => e.msg).join(', ') ||
error?.message ||
JSON.stringify(error);
alert(`Failed to create rule: ${message}`);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we need to use alert or can we go with the setErrorMessage()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants