Skip to content

The open alternative to Salesforce, designed for AI.

Add New Widget page layout header information (#16098)

Raphaël Bosi8dc182d65972
diff --git a/packages/twenty-front/src/modules/command-menu/components/hooks/usePageLayoutHeaderInfo.ts b/packages/twenty-front/src/modules/command-menu/components/hooks/usePageLayoutHeaderInfo.ts
index cbc15dc30bf..54381e385d0 100644
--- a/packages/twenty-front/src/modules/command-menu/components/hooks/usePageLayoutHeaderInfo.ts
+++ b/packages/twenty-front/src/modules/command-menu/components/hooks/usePageLayoutHeaderInfo.ts
@@ -8,6 +8,7 @@ import { isDefined } from 'twenty-shared/utils';
import {
IconAppWindow,
IconFrame,
+ IconPlus,
type IconComponent,
} from 'twenty-ui/display';
import { type PageLayoutWidget } from '~/generated/graphql';
@@ -145,6 +146,18 @@ export const usePageLayoutHeaderInfo = ({
};
}
+ case CommandMenuPages.PageLayoutWidgetTypeSelect: {
+ return {
+ headerIcon: IconPlus,
+ headerIconColor: iconColor,
+ headerType: '',
+ title: t`New widget`,
+ isReadonly: true,
+ tab: undefined,
+ widgetInEditMode: undefined,
+ };
+ }
+
default:
return null;
}