From d0fc6d793bd139617c260691b4233bf7bbd29b99 Mon Sep 17 00:00:00 2001 From: Ankita Kinger Date: Mon, 25 Nov 2024 17:50:05 +0530 Subject: [PATCH] chore: Removing unused styles, extra space in entity item and passing button condition prop (#37674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description - Removing unused styles and extra space between icon and entity name in entity item component - Passing button condition prop that is missing to show the warning icon on Data tab in sidebar, when there are no datasources connected in the workspace Fixes [#37675](https://github.com/appsmithorg/appsmith/issues/37675) ## Automation /ok-to-test tags="@tag.IDE" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: f4bc4ab419a0b06a6910c0460bd0757db917fe72 > Cypress dashboard. > Tags: `@tag.IDE` > Spec: >
Mon, 25 Nov 2024 12:15:09 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **New Features** - Introduced a `condition` property for enhanced button configuration in the sidebar. - Added an optional `preRightIcon` property to the `Entity` component for improved icon customization. - **Bug Fixes** - Simplified styling of the `IconWrapper`, potentially improving icon display. --- app/client/src/IDE/Components/Sidebar/Sidebar.tsx | 2 ++ app/client/src/pages/Editor/Explorer/Entity/index.tsx | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/client/src/IDE/Components/Sidebar/Sidebar.tsx b/app/client/src/IDE/Components/Sidebar/Sidebar.tsx index 0ef87910dd..223a055eb6 100644 --- a/app/client/src/IDE/Components/Sidebar/Sidebar.tsx +++ b/app/client/src/IDE/Components/Sidebar/Sidebar.tsx @@ -39,6 +39,7 @@ function IDESidebar(props: IDESidebarProps) {
{topButtons.map((button) => ( {bottomButtons.map((button) => ( props.theme.lineHeights[0]}px; - color: var(--ads-v2-color-fg); - display: flex; - align-items: center; - - div { - cursor: pointer; - } - svg { width: 16px; height: 16px; } - margin-right: 4px; `; export const AddButtonWrapper = styled.div`