+ {/* eslint-disable-next-line react/jsx-props-no-spreading */}
+
+ {
+ e.stopPropagation();
+ // TODO: Add section menu
+ },
},
- },
- ]}
- onClick={() => setIsExpanded(!isExpanded)}
- hasSubMenu
- isSubMenuOpened={isExpanded}
+ ]}
+ />
+
+
+
+ {(droppableProvided) => (
+
+ {sortedFields.map((field, fieldIndex) => {
+ const fieldMetadata = objectMetadataItem.fields.find(
+ (f) => f.id === field.fieldMetadataId,
+ );
+
+ if (!fieldMetadata) {
+ return null;
+ }
+
+ return (
+
+ handleToggleFieldVisibility(field.fieldMetadataId)
+ }
+ />
+ }
+ />
+ );
+ })}
+ {droppableProvided.placeholder}
+
+ )}
+
+
+
);
};
diff --git a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
index aaaed9fc77..c654011a6b 100644
--- a/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
+++ b/packages/twenty-front/src/modules/views/components/ViewFieldsVisibleDropdownSection.tsx
@@ -89,7 +89,7 @@ export const ViewFieldsVisibleDropdownSection = () => {
LeftIcon={getIcon(fieldMetadataItemLabelIdentifier.icon)}
text={fieldMetadataItemLabelIdentifier.label}
accent="placeholder"
- showGrip={true}
+ gripMode="always"
isDragDisabled
/>
)}
@@ -131,7 +131,7 @@ export const ViewFieldsVisibleDropdownSection = () => {
},
]}
text={fieldMetadataItem.label}
- showGrip
+ gripMode="always"
/>
}
/>
diff --git a/packages/twenty-sdk/src/front-component/host/generated/host-component-registry.ts b/packages/twenty-sdk/src/front-component/host/generated/host-component-registry.ts
index 62f08ff846..3675673ef1 100644
--- a/packages/twenty-sdk/src/front-component/host/generated/host-component-registry.ts
+++ b/packages/twenty-sdk/src/front-component/host/generated/host-component-registry.ts
@@ -161,6 +161,8 @@ import {
MenuItemSelectTag,
MenuItemSuggestion,
MenuItemToggle,
+ MenuItemIcon,
+ MenuItemIconWithGripSwap,
MenuItemLeftContent,
NavigationBar,
NavigationBarItem,
@@ -188,6 +190,8 @@ import {
type MenuItemSelectTagProps,
type MenuItemSuggestionProps,
type MenuItemToggleProps,
+ type MenuItemIconProps,
+ type MenuItemIconWithGripSwapProps,
type MenuItemLeftContentProps,
type NavigationBarProps,
type NavigationBarItemProps,
@@ -1212,6 +1216,16 @@ const TwentyUiMenuItemToggleWrapper = (
) => {
return React.createElement(MenuItemToggle, filterUiProps(props));
};
+const TwentyUiMenuItemIconWrapper = (
+ props: MenuItemIconProps & { children?: React.ReactNode },
+) => {
+ return React.createElement(MenuItemIcon, filterUiProps(props));
+};
+const TwentyUiMenuItemIconWithGripSwapWrapper = (
+ props: MenuItemIconWithGripSwapProps & { children?: React.ReactNode },
+) => {
+ return React.createElement(MenuItemIconWithGripSwap, filterUiProps(props));
+};
const TwentyUiMenuItemLeftContentWrapper = (
props: MenuItemLeftContentProps & { children?: React.ReactNode },
) => {
@@ -1546,6 +1560,14 @@ export const componentRegistry: Map