PromucFlow_constructor/app/client/src/ee/actions/aiAgentActions.ts

33 lines
644 B
TypeScript
Raw Normal View History

import { noop } from "lodash";
export const toggleAISupportModal = noop;
chore: new agent creation flow (#40351) /ok-to-test tags="@tag.Templates, @tag.Sanity" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/14612542047> > Commit: 6e4c5af948c633376f5219d95e5763309f9929a0 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14612542047&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Templates, @tag.Sanity` > Spec: > <hr>Wed, 23 Apr 2025 08:23:24 UTC <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced conditional UI and messaging support for an AI agent flow across modals, buttons, and onboarding screens. - Added agent-specific text and button variants for datasource connection and navigation. - Adjusted styles and layouts in editors and modals to accommodate the AI agent flow. - Added controls to close the "Create Agent" modal post template import when AI agent flow is enabled. - **Bug Fixes** - Improved template filtering to exclude the "AI Agent" template where appropriate. - **Enhancements** - Updated template and modal components to support additional conditional rendering and styling based on the AI agent flow. - Enhanced template import and navigation logic to handle agent-specific flows and URLs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-23 09:46:08 +00:00
// just a placeholder action to avoid type errors
export const setCreateAgentModalOpen = ({ isOpen }: { isOpen: boolean }) => ({
type: "",
payload: { isOpen },
});
export const openCarbonModal = ({ shouldOpen }: { shouldOpen: boolean }) => ({
type: "",
payload: { shouldOpen },
});
export const toggleFCIntegrations = ({
isEnabled,
}: {
isEnabled: boolean;
}) => ({
type: "",
payload: { isEnabled },
});
chore: Update flags for self-hosting agents (#40639) /ok-to-test tags="@tag.Sanity" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/14994848262> > Commit: 64bdb8cd0606bbc4c1b11d69b2d0e7cd7b5dd78a > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14994848262&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Tue, 13 May 2025 11:39:41 UTC <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new feature flag for AI agent instances, allowing for more granular control over AI agent-related functionality. - **Refactor** - Updated various components and selectors to use the new AI agent instance feature flag and related selectors, replacing previous flags and logic. - Separated agent and non-agent template handling for clearer template management. - Improved feature flag override capabilities, enabling dynamic overrides via external sources. - Added new selectors to better represent AI agent app and creation states. - Refined UI components and modals to reflect updated AI agent state flags. - Enhanced user authentication and signup flows with updated feature flag conditions. - **Bug Fixes** - Ensured consistent UI behavior and conditional rendering based on the updated feature flag logic. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-05-13 12:06:58 +00:00
export const setIsCreatingAgent = ({
isCreatingAgent,
}: {
isCreatingAgent: boolean;
}) => ({
type: "",
payload: { isCreatingAgent },
});