From bb96d0f6168c4afd1e63f8b2bf2703d4aae45443 Mon Sep 17 00:00:00 2001 From: Ankita Kinger Date: Fri, 27 Jun 2025 11:08:41 +0530 Subject: [PATCH] chore: Updating the description for run behaviour options of a JS object function (#41053) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Updating the description for run behaviour options of a JS object function Fixes [#41047](https://github.com/appsmithorg/appsmith/issues/41047) ## Automation /ok-to-test tags="@tag.JS" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 643f72c44ba967a46e6d3d65c0e992816797c62d > Cypress dashboard. > Tags: `@tag.JS` > Spec: >
Thu, 26 Jun 2025 15:09:38 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit * **New Features** * Updated run behavior options for JS functions with clearer, more specific descriptions on how and when they execute. * **Style** * Improved clarity of descriptions for JS function run behaviors to enhance user understanding. --- .../formConfig/PluginSettings.ts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts index fb530fa2a7..bc845df237 100644 --- a/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts +++ b/app/client/src/constants/AppsmithActionConstants/formConfig/PluginSettings.ts @@ -24,7 +24,26 @@ export const RUN_BEHAVIOR_VALUES = [ ]; export const JS_OBJECT_RUN_BEHAVIOR_VALUES = [ - ...RUN_BEHAVIOR_VALUES, + { + label: "Automatic", + subText: + "JS function runs on page load or when a variable it depends on changes", + value: ActionRunBehaviour.AUTOMATIC, + children: "Automatic", + }, + { + label: "On page load", + subText: "JS function runs when the page loads or when manually triggered", + value: ActionRunBehaviour.ON_PAGE_LOAD, + children: "On page load", + }, + { + label: "Manual", + subText: + "JS function only runs when called in an event or JS with functionName()", + value: ActionRunBehaviour.MANUAL, + children: "Manual", + }, { label: "On page unload", subText: "Query runs when the page unloads or when manually triggered",