From ba41d51eea4d366cca5116ce7e4e8604538ca297 Mon Sep 17 00:00:00 2001 From: Diljit Date: Wed, 15 Nov 2023 16:37:54 +0530 Subject: [PATCH] chore: Remove AI sign posting (#28861) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This PR removed the AI signposting and the description in the AI quick command menu in EE. The changes in the CE codebase is related to that change. The EE changes are in [this PR](https://github.com/appsmithorg/appsmith-ee/pull/2876) Widget property pane signposting Screenshot 2023-11-15 at 10 20 40 AM Widget Property slash command menu Screenshot 2023-11-15 at 10 38 16 AM SQL query slash command menu Screenshot 2023-11-15 at 10 38 36 AM JS Object slash command menu Screenshot 2023-11-15 at 10 38 26 AM #### PR fixes following issue(s) Fixes # (issue number) > if no issue exists, please create an issue and ask the maintainers about this first > > #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change > Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - Chore (housekeeping or task changes that don't impact user perception) - This change requires a documentation update > > > ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [ ] Manual - [ ] JUnit - [ ] Jest - [ ] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --- .../editorComponents/CodeEditorSignPosting.tsx | 2 -- .../editorComponents/EditorFormSignPosting.tsx | 11 ----------- .../CodeEditor/BindingPrompt.tsx | 1 - .../CodeEditor/generateQuickCommands.tsx | 5 ++--- .../editorComponents/CodeEditor/index.tsx | 1 - .../editorComponents/EditorFormSignPosting.tsx | 1 - .../Editor/QueryEditor/EditorJSONtoForm.tsx | 18 ------------------ 7 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 app/client/src/ce/components/editorComponents/EditorFormSignPosting.tsx delete mode 100644 app/client/src/ee/components/editorComponents/EditorFormSignPosting.tsx diff --git a/app/client/src/ce/components/editorComponents/CodeEditorSignPosting.tsx b/app/client/src/ce/components/editorComponents/CodeEditorSignPosting.tsx index 3ca8326c9c..9fe8cb04ac 100644 --- a/app/client/src/ce/components/editorComponents/CodeEditorSignPosting.tsx +++ b/app/client/src/ce/components/editorComponents/CodeEditorSignPosting.tsx @@ -10,14 +10,12 @@ export function CodeEditorSignPosting(props: { isOpen?: boolean; editorTheme?: EditorTheme; showLightningMenu?: boolean; - isAIEnabled?: boolean; mode: TEditorModes; forComp?: string; }): JSX.Element { return ( (null); const customMessage = !!props.promptMessage; diff --git a/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx b/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx index 85cde062f5..0b8904348a 100644 --- a/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx +++ b/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx @@ -100,8 +100,8 @@ export function Command(props: { }) { return (
-
- {props.icon} +
+
{props.icon}
{props.name} @@ -235,7 +235,6 @@ export const generateQuickCommands = ( displayText: APPSMITH_AI, shortcut: Shortcuts.ASK_AI, triggerCompletionsPostPick: true, - description: "Generate code using AI", isBeta: true, action: () => { executeCommand({ diff --git a/app/client/src/components/editorComponents/CodeEditor/index.tsx b/app/client/src/components/editorComponents/CodeEditor/index.tsx index 4d4f3d3c59..fedf143147 100644 --- a/app/client/src/components/editorComponents/CodeEditor/index.tsx +++ b/app/client/src/components/editorComponents/CodeEditor/index.tsx @@ -1694,7 +1694,6 @@ class CodeEditor extends Component { dispatch(showDebugger(false)); @@ -1014,11 +1001,6 @@ export function EditorJSONtoForm(props: Props) { className="tab-panel" value={EDITOR_TABS.QUERY} > - - {editorConfig && editorConfig.length > 0 ? ( renderConfig(editorConfig)