diff --git a/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx b/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx
index d8a8c94ae8..a2165f8215 100644
--- a/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx
+++ b/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo } from "react";
-import { Button, Flex, List, Text } from "design-system";
+import { Flex, List, Text } from "design-system";
import type { ListItemProps } from "design-system";
import { useDispatch, useSelector } from "react-redux";
import keyBy from "lodash/keyBy";
@@ -20,6 +20,7 @@ import { useFeatureFlag } from "utils/hooks/useFeatureFlag";
import { getPagePermissions } from "selectors/editorSelectors";
import { FEATURE_FLAG } from "@appsmith/entities/FeatureFlag";
import { createMessage, PAGES_PANE_TEXTS } from "@appsmith/constants/messages";
+import SegmentAddHeader from "./components/SegmentAddHeader";
const StyledList = styled(List)`
padding: 0;
@@ -94,33 +95,19 @@ const AddQuery = () => {
}, [pageId]);
return (
- <>
-
-
- {createMessage(PAGES_PANE_TEXTS.query_create_tab_title)}
-
-
-
+
+
-
+
{/* From source */}
{
items={getListItems(fromExistingSources)}
/>
-
+
{/* From source */}
{
/>
- >
+
);
};
diff --git a/app/client/src/pages/Editor/IDE/EditorPane/AddWidgets.tsx b/app/client/src/pages/Editor/IDE/EditorPane/AddWidgets.tsx
index ceaad265ab..cc11a5f5a2 100644
--- a/app/client/src/pages/Editor/IDE/EditorPane/AddWidgets.tsx
+++ b/app/client/src/pages/Editor/IDE/EditorPane/AddWidgets.tsx
@@ -1,12 +1,13 @@
import React, { useCallback } from "react";
-import { Flex, Text, Button } from "design-system";
+import { Flex } from "design-system";
import { useSelector } from "react-redux";
import history from "utils/history";
import { getCurrentPageId } from "@appsmith/selectors/entitiesSelector";
import WidgetSidebarWithTags from "pages/Editor/WidgetSidebarWithTags";
import { widgetListURL } from "@appsmith/RouteBuilder";
-import { createMessage, PAGES_PANE_TEXTS } from "@appsmith/constants/messages";
+import { PAGES_PANE_TEXTS } from "@appsmith/constants/messages";
+import SegmentAddHeader from "./components/SegmentAddHeader";
const AddWidgets = () => {
const pageId = useSelector(getCurrentPageId) as string;
@@ -17,28 +18,10 @@ const AddWidgets = () => {
return (
<>
-
-
- {createMessage(PAGES_PANE_TEXTS.widgets_create_tab_title)}
-
-
-
+
diff --git a/app/client/src/pages/Editor/IDE/EditorPane/EditorPaneSegments.tsx b/app/client/src/pages/Editor/IDE/EditorPane/EditorPaneSegments.tsx
index 25491f26c5..97f47f61c9 100644
--- a/app/client/src/pages/Editor/IDE/EditorPane/EditorPaneSegments.tsx
+++ b/app/client/src/pages/Editor/IDE/EditorPane/EditorPaneSegments.tsx
@@ -1,6 +1,5 @@
import React from "react";
-import { Button, Flex, SegmentedControl } from "design-system";
-import { createMessage, PAGES_PANE_TEXTS } from "@appsmith/constants/messages";
+import { Flex } from "design-system";
import { Switch, useRouteMatch } from "react-router";
import { SentryRoute } from "@appsmith/AppRouter";
import { QueriesSection } from "./QueriesSection";
@@ -18,91 +17,15 @@ import {
import { SAAS_EDITOR_API_ID_PATH } from "../../SaaSEditor/constants";
import { JSSection } from "./JS_Section";
import { WidgetsSection } from "./WidgetsSection";
-import { useSelector } from "react-redux";
-import { getCurrentPageId } from "@appsmith/selectors/entitiesSelector";
-import history, { NavigationMethod } from "utils/history";
-import {
- globalAddURL,
- jsCollectionListURL,
- queryListURL,
- widgetListURL,
-} from "@appsmith/RouteBuilder";
-import { EditorEntityTab } from "entities/IDE/constants";
import EntityProperties from "pages/Editor/Explorer/Entity/EntityProperties";
-import { useCurrentEditorState } from "../hooks";
+import SegmentedHeader from "./components/SegmentedHeader";
const EditorPaneSegments = () => {
- const pageId = useSelector(getCurrentPageId);
const { path } = useRouteMatch();
- const { segment } = useCurrentEditorState();
- /**
- * Callback to handle the segment change
- *
- * @param value
- * @returns
- *
- */
- const onSegmentChange = (value: string) => {
- switch (value) {
- case EditorEntityTab.QUERIES:
- history.push(queryListURL({ pageId }), {
- invokedBy: NavigationMethod.SegmentControl,
- });
- break;
- case EditorEntityTab.JS:
- history.push(jsCollectionListURL({ pageId }), {
- invokedBy: NavigationMethod.SegmentControl,
- });
- break;
- case EditorEntityTab.UI:
- history.push(widgetListURL({ pageId }), {
- invokedBy: NavigationMethod.SegmentControl,
- });
- break;
- }
- };
-
- const onAddButtonClick = () => {
- history.push(globalAddURL({ pageId }));
- };
return (
-
-
-
-
+
diff --git a/app/client/src/pages/Editor/IDE/EditorPane/JS_Section.tsx b/app/client/src/pages/Editor/IDE/EditorPane/JS_Section.tsx
index 4674fa6a45..d9685ae87c 100644
--- a/app/client/src/pages/Editor/IDE/EditorPane/JS_Section.tsx
+++ b/app/client/src/pages/Editor/IDE/EditorPane/JS_Section.tsx
@@ -22,6 +22,7 @@ import { ActionParentEntityType } from "@appsmith/entities/Engine/actionHelpers"
import { FilesContextProvider } from "pages/Editor/Explorer/Files/FilesContextProvider";
const JSContainer = styled(Flex)`
+ gap: var(--ads-v2-spaces-4);
& .t--entity-item {
grid-template-columns: 0 auto 1fr auto auto auto auto auto;
height: 32px;
@@ -58,9 +59,10 @@ const JSSection = () => {
className="ide-pages-pane__content-js"
flexDirection="column"
overflow="hidden"
+ py="spaces-3"
>
{JSObjects && JSObjects.length > 0 && canCreateActions && (
-
+