feat: add redux action to generate aiagent schemas#39791
Conversation
WalkthroughThe changes introduce new Redux handlers and constants to support the AI agent schema generation process. In the reducer, three new action handlers update the state when a schema generation request is initiated, succeeds, or encounters an error. In addition, corresponding action types and error constants are added to the constants file. These updates aim to correctly track the schema generation lifecycle for AI agents within the application. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant Reducer
participant Service
User->>UI: Initiate AI Agent Schema Generation
UI->>Reducer: Dispatch GENERATE_AI_AGENT_SCHEMA_REQUEST
Reducer->>Reducer: Set isSchemaGenerating = true
Service-->>Reducer: Return Response (Success/Error)
alt Success
Reducer->>Reducer: Dispatch GENERATE_AI_AGENT_SCHEMA_SUCCESS (set isSchemaGenerating = false)
else Error
Reducer->>Reducer: Dispatch GENERATE_AI_AGENT_SCHEMA_ERROR (set isSchemaGenerating = false)
end
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Definitions (1)app/client/src/PluginActionEditor/store/pluginEditorReducer.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
## Description Fixes appsmithorg#39781 ## Automation /ok-to-test tags="@tag.JS, @tag.Datasource" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > 🔴 🔴 🔴 Some tests have failed. > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13941556348> > Commit: 6586907 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13941556348&attempt=3&selectiontype=test&testsstatus=failed&specsstatus=fail" target="_blank">Cypress dashboard</a>. > Tags: @tag.JS, @tag.Datasource > Spec: > The following are new failures, please fix them before merging the PR: <ol> > <li>cypress/e2e/Regression/ClientSide/BugTests/DS_Bug26941_Spec.ts</ol> > <a href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master" target="_blank">List of identified flaky tests</a>. > <hr>Wed, 19 Mar 2025 09:16:15 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced the AI agent schema generation process with improved status tracking for initiation, cancellation, success, and error scenarios. - Introduced refined state management to ensure a more responsive and reliable experience during schema generation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Fixes #39781
Automation
/ok-to-test tags="@tag.JS, @tag.Datasource"
🔍 Cypress test results
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13941556348
Commit: 6586907
Cypress dashboard.
Tags: @tag.JS, @tag.Datasource
Spec:
The following are new failures, please fix them before merging the PR:
- cypress/e2e/Regression/ClientSide/BugTests/DS_Bug26941_Spec.ts
List of identified flaky tests.Wed, 19 Mar 2025 09:16:15 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit