From 038a6b76d7ac21be99bec8b02d1fab70a2a8a30a Mon Sep 17 00:00:00 2001 From: Ankita Kinger Date: Thu, 12 Dec 2024 23:26:43 +0530 Subject: [PATCH] chore: Adding create module icon in the action context menu on EE (#38130) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Adding create module icon in the action context menu on EE Fixes [#38094](https://github.com/appsmithorg/appsmith/issues/38094) ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 0d94f8e4b2daf88f278dc6863e7eabe9efdd0212 > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Thu, 12 Dec 2024 12:25:09 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **New Features** - Introduced a new icon, `CreateModuleIcon`, available for use throughout the application. - **Bug Fixes** - Adjusted the width of the `MenuContent` component in the `PluginActionToolbar` for improved layout. --- .../design-system/ads/src/Icon/Icon.provider.tsx | 4 ++++ .../ads/src/__assets__/icons/ads/create-module.svg | 13 +++++++++++++ .../components/PluginActionToolbar.tsx | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 app/client/packages/design-system/ads/src/__assets__/icons/ads/create-module.svg diff --git a/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx b/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx index d5eaf80dc9..8db9b910c9 100644 --- a/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx +++ b/app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx @@ -775,6 +775,9 @@ const PackageIcon = importSvg( const ModuleIcon = importSvg( async () => import("../__assets__/icons/ads/module.svg"), ); +const CreateModuleIcon = importSvg( + async () => import("../__assets__/icons/ads/create-module.svg"), +); const WorkflowsIcon = importSvg( async () => import("../__assets__/icons/ads/workflows.svg"), ); @@ -1187,6 +1190,7 @@ const ICON_LOOKUP = { "contract-right-line": ContractRight, "copy-control": CopyIcon, "copy2-control": Copy2Icon, + "create-module": CreateModuleIcon, "cut-control": CutIcon, "dashboard-line": DashboardLineIcon, "database-2-line": Database2Line, diff --git a/app/client/packages/design-system/ads/src/__assets__/icons/ads/create-module.svg b/app/client/packages/design-system/ads/src/__assets__/icons/ads/create-module.svg new file mode 100644 index 0000000000..1fb829ae25 --- /dev/null +++ b/app/client/packages/design-system/ads/src/__assets__/icons/ads/create-module.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/app/client/src/PluginActionEditor/components/PluginActionToolbar.tsx b/app/client/src/PluginActionEditor/components/PluginActionToolbar.tsx index e200af92a6..f44c486f69 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionToolbar.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionToolbar.tsx @@ -68,7 +68,7 @@ const PluginActionToolbar = (props: PluginActionToolbarProps) => { key={action.id} loop style={{ zIndex: 100 }} - width="200px" + width="204px" > {props.menuContent}