From 6c8351f9b91e9cb11fa67888a9afce4de07b8026 Mon Sep 17 00:00:00 2001 From: Diljit VJ Date: Thu, 26 Dec 2024 16:42:30 +0530 Subject: [PATCH] Revert "fix: Minor changes in Datasource and API (#38371)" This reverts commit b9504b607e5f8d7c59825383b2d9eb323425f446. --- .../components/CommonEditorForm/CommonEditorForm.tsx | 6 +----- app/client/src/ce/constants/messages.ts | 1 - app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx | 5 ++--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx b/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx index 0568618920df..8ed8e1ca3418 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx @@ -52,11 +52,7 @@ const CommonEditorForm = (props: Props) => { const paramsCount = getParamsCount(actionParams, datasourceHeaders); return ( - + "Datasources in your workspace"; export const DATASOURCE_LIST_BLANK_DESCRIPTION = () => "Connect a datasource to write your first query"; export const DATASOURCE_BLANK_STATE_MESSAGE = () => "No datasources to display"; -export const DATASOURCE_BLANK_STATE_CTA = () => "Bring your data"; // Create New Apps Intermediary step export const CREATE_NEW_APPS_STEP_TITLE = () => "How would you like to start?"; diff --git a/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx b/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx index f5f644f19ef3..914f070f8123 100644 --- a/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx +++ b/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx @@ -17,12 +17,11 @@ import { useLocation } from "react-router"; import { createMessage, DATA_PANE_TITLE, - DATASOURCE_BLANK_STATE_CTA, DATASOURCE_LIST_BLANK_DESCRIPTION, } from "ee/constants/messages"; import PaneHeader from "./PaneHeader"; import { useEditorType } from "ee/hooks"; -import { INTEGRATION_TABS } from "constants/routes"; +import { INTEGRATION_TABS } from "../../../../constants/routes"; import type { AppState } from "ee/reducers"; import { getCurrentAppWorkspace } from "ee/selectors/selectedWorkspaceSelectors"; import { useFeatureFlag } from "utils/hooks/useFeatureFlag"; @@ -100,7 +99,7 @@ const DataSidePane = (props: DataSidePaneProps) => { () => ({ className: "t--add-datasource-button-blank-screen", testId: "t--add-datasource-button-blank-screen", - text: createMessage(DATASOURCE_BLANK_STATE_CTA), + text: createMessage(DATA_PANE_TITLE), onClick: canCreateDatasource ? addButtonClickHandler : undefined, }), [addButtonClickHandler, canCreateDatasource],