diff --git a/app/client/src/PluginActionEditor/PluginActionContext.tsx b/app/client/src/PluginActionEditor/PluginActionContext.tsx index 6a4e3672dad8..f267494aed3d 100644 --- a/app/client/src/PluginActionEditor/PluginActionContext.tsx +++ b/app/client/src/PluginActionEditor/PluginActionContext.tsx @@ -8,12 +8,13 @@ import type { Action } from "entities/Action"; import type { Plugin } from "entities/Plugin"; import type { Datasource, EmbeddedRestDatasource } from "entities/Datasource"; import type { ActionResponse } from "api/ActionAPI"; +import type { ActionSettingsConfig } from "./types/PluginActionTypes"; interface PluginActionContextType { action: Action; actionResponse?: ActionResponse; editorConfig?: unknown[]; - settingsConfig?: unknown[]; + settingsConfig?: ActionSettingsConfig[]; plugin: Plugin; datasource?: EmbeddedRestDatasource | Datasource; } diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useGoogleSheetsSetDefaultProperty.ts b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useGoogleSheetsSetDefaultProperty.ts index c017261fbccf..e012233f4673 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useGoogleSheetsSetDefaultProperty.ts +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useGoogleSheetsSetDefaultProperty.ts @@ -7,6 +7,7 @@ import { getPathAndValueFromActionDiffObject } from "utils/getPathAndValueFromAc import { setActionProperty } from "actions/pluginActionActions"; import { usePluginActionContext } from "../../../../../PluginActionContext"; import { useDispatch } from "react-redux"; +import type { ActionSettingsConfig } from "PluginActionEditor/types/PluginActionTypes"; export const useGoogleSheetsSetDefaultProperty = () => { const { @@ -30,7 +31,7 @@ export const useGoogleSheetsSetDefaultProperty = () => { merge( initialValues, - getConfigInitialValues(settingsConfig as Record[]), + getConfigInitialValues(settingsConfig as ActionSettingsConfig[]), ); // initialValues contains merge of action, editorConfig, settingsConfig and will be passed to redux form diff --git a/app/client/src/PluginActionEditor/components/PluginActionToolbar/components/ActionSettings.tsx b/app/client/src/PluginActionEditor/components/PluginActionToolbar/components/ActionSettings.tsx index cccd1dfe1404..888a6eb9a5f5 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionToolbar/components/ActionSettings.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionToolbar/components/ActionSettings.tsx @@ -6,6 +6,10 @@ import type { EditorTheme } from "components/editorComponents/CodeEditor/EditorC import styled from "styled-components"; import { Text } from "@appsmith/ads"; import CenteredWrapper from "components/designSystems/appsmith/CenteredWrapper"; +import { useSelector, type DefaultRootState } from "react-redux"; +import { selectFeatureFlagCheck } from "ee/selectors/featureFlagsSelectors"; +import { updateRunBehaviourForActionSettings } from "utils/PluginUtils"; +import { FEATURE_FLAG } from "ee/entities/FeatureFlag"; interface ActionSettingsProps { // TODO: Fix this the next time the file is edited @@ -41,9 +45,21 @@ const ActionSettingsWrapper = styled.div` `; function ActionSettings(props: ActionSettingsProps): JSX.Element { + const featureFlagEnabled: boolean = useSelector((state: DefaultRootState) => + selectFeatureFlagCheck( + state, + FEATURE_FLAG.release_reactive_actions_enabled, + ), + ); + + const updateSettingsConfig = updateRunBehaviourForActionSettings( + props.actionSettingsConfig || [], + featureFlagEnabled, + ); + return ( - {!props.actionSettingsConfig ? ( + {!updateSettingsConfig ? ( Error: No settings config found @@ -52,7 +68,7 @@ function ActionSettings(props: ActionSettingsProps): JSX.Element { ) : ( /* TODO: Fix this the next time the file is edited */ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ - props.actionSettingsConfig.map((section: any) => + updateSettingsConfig.map((section: any) => renderEachConfig(section, props.formName), ) )} diff --git a/app/client/src/PluginActionEditor/types/PluginActionTypes.ts b/app/client/src/PluginActionEditor/types/PluginActionTypes.ts index cb3947afcd9b..f81d82a24857 100644 --- a/app/client/src/PluginActionEditor/types/PluginActionTypes.ts +++ b/app/client/src/PluginActionEditor/types/PluginActionTypes.ts @@ -5,23 +5,26 @@ export const THEME = EditorTheme.LIGHT; export enum ActionRunBehaviour { ON_PAGE_LOAD = "ON_PAGE_LOAD", MANUAL = "MANUAL", + AUTOMATIC = "AUTOMATIC", } -export const RUN_BEHAVIOR = { - ON_PAGE_LOAD: { - label: "On page load", - subText: "Query runs when the page loads or when manually triggered", - value: ActionRunBehaviour.ON_PAGE_LOAD, - children: "On page load", - }, - MANUAL: { - label: "Manual", - subText: "Query only runs when called in an event or JS with .run()", - value: ActionRunBehaviour.MANUAL, - children: "Manual", - }, -}; +export type ActionRunBehaviourType = `${ActionRunBehaviour}`; -export const RUN_BEHAVIOR_VALUES = Object.values(RUN_BEHAVIOR); +export interface ActionSettingsConfigChildren { + label: string; + configProperty: string; + controlType: string; + initialValue?: string | boolean; + options?: Array<{ label: string; value: string }>; + tooltipText?: string; + placeholder?: string; + dataType?: string; + subtitle?: string; + name?: string; +} -export type ActionRunBehaviourType = `${ActionRunBehaviour}`; +export interface ActionSettingsConfig { + sectionName: string; + id: number; + children: ActionSettingsConfigChildren[]; +} diff --git a/app/client/src/ce/entities/FeatureFlag.ts b/app/client/src/ce/entities/FeatureFlag.ts index 952b8003f485..a6d84c60537f 100644 --- a/app/client/src/ce/entities/FeatureFlag.ts +++ b/app/client/src/ce/entities/FeatureFlag.ts @@ -58,6 +58,7 @@ export const FEATURE_FLAG = { "license_external_saas_plugins_enabled", release_computation_cache_enabled: "release_computation_cache_enabled", release_ai_chat_integrations_enabled: "release_ai_chat_integrations_enabled", + release_reactive_actions_enabled: "release_reactive_actions_enabled", license_ai_agent_instance_enabled: "license_ai_agent_instance_enabled", } as const; @@ -107,6 +108,7 @@ export const DEFAULT_FEATURE_FLAG_VALUE: FeatureFlags = { license_external_saas_plugins_enabled: false, release_computation_cache_enabled: false, release_ai_chat_integrations_enabled: false, + release_reactive_actions_enabled: false, license_ai_agent_instance_enabled: false, }; diff --git a/app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/unitTestUtils.ts b/app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/unitTestUtils.ts index d00c56822f49..261b638644d4 100644 --- a/app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/unitTestUtils.ts +++ b/app/client/src/components/editorComponents/PartialImportExport/PartialExportModal/unitTestUtils.ts @@ -10043,6 +10043,12 @@ export const defaultAppState = { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: + "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC", + }, { label: "On page load", subText: @@ -10094,6 +10100,12 @@ export const defaultAppState = { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: + "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC", + }, { label: "On page load", subText: @@ -10145,6 +10157,12 @@ export const defaultAppState = { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: + "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC", + }, { label: "On page load", subText: @@ -10225,6 +10243,12 @@ export const defaultAppState = { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: + "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC", + }, { label: "On page load", subText: diff --git a/app/client/src/constants/AppsmithActionConstants/ActionConstants.tsx b/app/client/src/constants/AppsmithActionConstants/ActionConstants.tsx index e703da5a31f0..f630158f95a8 100644 --- a/app/client/src/constants/AppsmithActionConstants/ActionConstants.tsx +++ b/app/client/src/constants/AppsmithActionConstants/ActionConstants.tsx @@ -8,6 +8,7 @@ import saasActionSettingsConfig from "constants/AppsmithActionConstants/formConf import apiActionDependencyConfig from "constants/AppsmithActionConstants/formConfig/ApiDependencyConfigs"; import apiActionDatasourceFormButtonConfig from "constants/AppsmithActionConstants/formConfig/ApiDatasourceFormsButtonConfig"; import type { EntityTypeValue } from "ee/entities/DataTree/types"; +import type { ActionSettingsConfig } from "PluginActionEditor/types/PluginActionTypes"; export interface ExecuteActionPayloadEvent { type: EventType; @@ -166,18 +167,17 @@ export const POSTMAN = "POSTMAN"; export const CURL = "CURL"; export const Swagger = "Swagger"; -// TODO: Fix this the next time the file is edited -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export const defaultActionSettings: Record = { - [PluginType.API]: apiActionSettingsConfig, - [PluginType.DB]: queryActionSettingsConfig, - [PluginType.SAAS]: saasActionSettingsConfig, - [PluginType.REMOTE]: saasActionSettingsConfig, - [PluginType.JS]: [], - [PluginType.AI]: saasActionSettingsConfig, - [PluginType.INTERNAL]: saasActionSettingsConfig, - [PluginType.EXTERNAL_SAAS]: saasActionSettingsConfig, -}; +export const defaultActionSettings: Record = + { + [PluginType.API]: apiActionSettingsConfig, + [PluginType.DB]: queryActionSettingsConfig, + [PluginType.SAAS]: saasActionSettingsConfig, + [PluginType.REMOTE]: saasActionSettingsConfig, + [PluginType.JS]: [], + [PluginType.AI]: saasActionSettingsConfig, + [PluginType.INTERNAL]: saasActionSettingsConfig, + [PluginType.EXTERNAL_SAAS]: saasActionSettingsConfig, + }; // TODO: Fix this the next time the file is edited // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/ApiSettingsConfig.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/ApiSettingsConfig.ts index 2f3c2b4f1275..c74936e79a4c 100644 --- a/app/client/src/constants/AppsmithActionConstants/formConfig/ApiSettingsConfig.ts +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/ApiSettingsConfig.ts @@ -7,9 +7,10 @@ import { HTTP_PROTOCOL_VERSIONS, } from "PluginActionEditor/constants/CommonApiConstants"; import { - RUN_BEHAVIOR, RUN_BEHAVIOR_VALUES, -} from "PluginActionEditor/types/PluginActionTypes"; + RUN_BEHAVIOR_CONFIG_PROPERTY, +} from "constants/AppsmithActionConstants/formConfig/PluginSettings"; +import { ActionRunBehaviour } from "PluginActionEditor/types/PluginActionTypes"; export default [ { @@ -18,9 +19,9 @@ export default [ children: [ { label: "Run behavior", - configProperty: "runBehaviour", + configProperty: RUN_BEHAVIOR_CONFIG_PROPERTY, controlType: "DROP_DOWN", - initialValue: RUN_BEHAVIOR.MANUAL.label, + initialValue: ActionRunBehaviour.MANUAL, options: RUN_BEHAVIOR_VALUES, }, { diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/GoogleSheetsSettingsConfig.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/GoogleSheetsSettingsConfig.ts index 48072b8bbedc..73a5ca299b2f 100644 --- a/app/client/src/constants/AppsmithActionConstants/formConfig/GoogleSheetsSettingsConfig.ts +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/GoogleSheetsSettingsConfig.ts @@ -1,7 +1,8 @@ import { - RUN_BEHAVIOR, RUN_BEHAVIOR_VALUES, -} from "PluginActionEditor/types/PluginActionTypes"; + RUN_BEHAVIOR_CONFIG_PROPERTY, +} from "constants/AppsmithActionConstants/formConfig/PluginSettings"; +import { ActionRunBehaviour } from "PluginActionEditor/types/PluginActionTypes"; export default [ { @@ -10,9 +11,9 @@ export default [ children: [ { label: "Run behavior", - configProperty: "runBehaviour", + configProperty: RUN_BEHAVIOR_CONFIG_PROPERTY, controlType: "DROP_DOWN", - initialValue: RUN_BEHAVIOR.MANUAL.label, + initialValue: ActionRunBehaviour.MANUAL, options: RUN_BEHAVIOR_VALUES, }, { diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts new file mode 100644 index 000000000000..ff0dfc07892d --- /dev/null +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts @@ -0,0 +1,24 @@ +import { ActionRunBehaviour } from "PluginActionEditor/types/PluginActionTypes"; + +export const RUN_BEHAVIOR_CONFIG_PROPERTY = "runBehaviour"; + +export const RUN_BEHAVIOR_VALUES = [ + { + label: "Automatic", + subText: "Query runs on page load or when a variable it depends on changes", + value: ActionRunBehaviour.AUTOMATIC, + children: "Automatic", + }, + { + label: "On page load", + subText: "Query runs when the page loads or when manually triggered", + value: ActionRunBehaviour.ON_PAGE_LOAD, + children: "On page load", + }, + { + label: "Manual", + subText: "Query only runs when called in an event or JS with .run()", + value: ActionRunBehaviour.MANUAL, + children: "Manual", + }, +]; diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/QuerySettingsConfig.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/QuerySettingsConfig.ts index af05483b56b4..28611ae53012 100644 --- a/app/client/src/constants/AppsmithActionConstants/formConfig/QuerySettingsConfig.ts +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/QuerySettingsConfig.ts @@ -1,7 +1,8 @@ import { - RUN_BEHAVIOR, RUN_BEHAVIOR_VALUES, -} from "PluginActionEditor/types/PluginActionTypes"; + RUN_BEHAVIOR_CONFIG_PROPERTY, +} from "constants/AppsmithActionConstants/formConfig/PluginSettings"; +import { ActionRunBehaviour } from "PluginActionEditor/types/PluginActionTypes"; export default [ { @@ -10,9 +11,9 @@ export default [ children: [ { label: "Run behavior", - configProperty: "runBehaviour", + configProperty: RUN_BEHAVIOR_CONFIG_PROPERTY, controlType: "DROP_DOWN", - initialValue: RUN_BEHAVIOR.MANUAL.label, + initialValue: ActionRunBehaviour.MANUAL, options: RUN_BEHAVIOR_VALUES, }, { diff --git a/app/client/src/pages/Editor/JSEditor/JSEditorToolbar/components/JSFunctionSettings.tsx b/app/client/src/pages/Editor/JSEditor/JSEditorToolbar/components/JSFunctionSettings.tsx index c54a9a3e4c12..bffd589119c3 100644 --- a/app/client/src/pages/Editor/JSEditor/JSEditorToolbar/components/JSFunctionSettings.tsx +++ b/app/client/src/pages/Editor/JSEditor/JSEditorToolbar/components/JSFunctionSettings.tsx @@ -15,10 +15,13 @@ import { import AnalyticsUtil from "ee/utils/AnalyticsUtil"; import type { OnUpdateSettingsProps } from "../types"; import { - RUN_BEHAVIOR_VALUES, + ActionRunBehaviour, type ActionRunBehaviourType, } from "PluginActionEditor/types/PluginActionTypes"; import styled from "styled-components"; +import { RUN_BEHAVIOR_VALUES } from "constants/AppsmithActionConstants/formConfig/PluginSettings"; +import { useFeatureFlag } from "utils/hooks/useFeatureFlag"; +import { FEATURE_FLAG } from "ee/entities/FeatureFlag"; const OptionLabel = styled(Text)` color: var(--ads-v2-color-fg); @@ -55,7 +58,14 @@ interface FunctionSettingsRowProps extends Omit { const FunctionSettingRow = (props: FunctionSettingsRowProps) => { const [runBehaviour, setRunBehaviour] = useState(props.action.runBehaviour); - const options = RUN_BEHAVIOR_VALUES as SelectOptionProps[]; + const flagValueForReactiveActions = useFeatureFlag( + FEATURE_FLAG.release_reactive_actions_enabled, + ); + const options = RUN_BEHAVIOR_VALUES.filter( + (option) => + flagValueForReactiveActions || + option.value !== ActionRunBehaviour.AUTOMATIC, + ) as SelectOptionProps[]; const selectedValue = options.find((opt) => opt.value === runBehaviour); const onSelectOptions = useCallback( @@ -90,7 +100,6 @@ const FunctionSettingRow = (props: FunctionSettingsRowProps) => { { + return actionSettings.map((settings) => ({ + ...settings, + children: settings.children.map( + (settings: ActionSettingsConfigChildren) => { + if ( + settings.configProperty === RUN_BEHAVIOR_CONFIG_PROPERTY && + settings.options + ) { + return { + ...settings, + options: [ + ...settings.options.filter( + (option) => + flagValueForReactiveActions || + option.value !== ActionRunBehaviour.AUTOMATIC, + ), + ], + }; + } + + return settings; + }, + ), + })); +}; diff --git a/app/client/test/factories/MockPluginsState.ts b/app/client/test/factories/MockPluginsState.ts index f2c78870fc35..6d1b3991b794 100644 --- a/app/client/test/factories/MockPluginsState.ts +++ b/app/client/test/factories/MockPluginsState.ts @@ -6957,6 +6957,11 @@ export default { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC" + }, { label: "On page load", subText: @@ -7037,6 +7042,11 @@ export default { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC" + }, { label: "On page load", subText: @@ -7117,6 +7127,11 @@ export default { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC" + }, { label: "On page load", subText: @@ -7161,6 +7176,11 @@ export default { controlType: "DROP_DOWN", initialValue: "MANUAL", options: [ + { + label: "Automatic", + subText: "Query runs on page load or when a variable it depends on changes", + value: "AUTOMATIC" + }, { label: "On page load", subText: diff --git a/app/server/appsmith-plugins/amazons3Plugin/src/main/resources/setting.json b/app/server/appsmith-plugins/amazons3Plugin/src/main/resources/setting.json index 4f94c3d58b0e..9b5d6e185699 100644 --- a/app/server/appsmith-plugins/amazons3Plugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/amazons3Plugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/anthropicPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/anthropicPlugin/src/main/resources/setting.json index 29eeef3f9072..664e50c657fe 100644 --- a/app/server/appsmith-plugins/anthropicPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/anthropicPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/setting.json index 29eeef3f9072..664e50c657fe 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/firestorePlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/firestorePlugin/src/main/resources/setting.json index b40e119aa13f..3bd55fa8e595 100644 --- a/app/server/appsmith-plugins/firestorePlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/firestorePlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/googleAiPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/googleAiPlugin/src/main/resources/setting.json index 29eeef3f9072..664e50c657fe 100644 --- a/app/server/appsmith-plugins/googleAiPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/googleAiPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/setting.json index 6ef51a82605e..ee870c8646e6 100644 --- a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/mongoPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/mongoPlugin/src/main/resources/setting.json index d3b65d13187b..458aab4e1d26 100644 --- a/app/server/appsmith-plugins/mongoPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/mongoPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/setting.json index c6d9b84f30f0..7b2d6ef719ec 100644 --- a/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/mssqlPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/setting.json index c6d9b84f30f0..7b2d6ef719ec 100644 --- a/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/mysqlPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/openAiPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/openAiPlugin/src/main/resources/setting.json index 29eeef3f9072..664e50c657fe 100644 --- a/app/server/appsmith-plugins/openAiPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/openAiPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/setting.json index 1b1100df5992..906241476d0e 100755 --- a/app/server/appsmith-plugins/oraclePlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/oraclePlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered", diff --git a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/setting.json b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/setting.json index c6d9b84f30f0..7b2d6ef719ec 100644 --- a/app/server/appsmith-plugins/postgresPlugin/src/main/resources/setting.json +++ b/app/server/appsmith-plugins/postgresPlugin/src/main/resources/setting.json @@ -10,6 +10,11 @@ "controlType": "DROP_DOWN", "initialValue": "MANUAL", "options": [ + { + "label": "Automatic", + "subText": "Query runs on page load or when a variable it depends on changes", + "value": "AUTOMATIC" + }, { "label": "On page load", "subText": "Query runs when the page loads or when manually triggered",