Navbar customization improvements (#17863)
- Add folder icon editing support - And other navbar customization fixes/improvements. --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: Devessier <baptiste@devessier.fr> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
+5
@@ -86,6 +86,11 @@ export const seedFeatureFlags = async ({
|
||||
workspaceId: workspaceId,
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
key: FeatureFlagKey.IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED,
|
||||
workspaceId: workspaceId,
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
key: FeatureFlagKey.IS_MARKETPLACE_ENABLED,
|
||||
workspaceId: workspaceId,
|
||||
|
||||
+1
@@ -40,6 +40,7 @@ export const STANDARD_NAVIGATION_MENU_ITEMS = {
|
||||
workflowsFolder: {
|
||||
universalIdentifier: '20202020-b007-4b07-8b07-c0aba11c0007',
|
||||
name: 'Workflows',
|
||||
icon: 'IconSettingsAutomation',
|
||||
position: 6,
|
||||
},
|
||||
workflowsFolderAllWorkflows: {
|
||||
|
||||
+1
@@ -77,6 +77,7 @@ export const buildStandardFlatNavigationMenuItemMaps = ({
|
||||
const workflowsFolder = createStandardNavigationMenuItemFolderFlatMetadata({
|
||||
universalIdentifier: workflowsFolderDefinition.universalIdentifier,
|
||||
name: workflowsFolderDefinition.name,
|
||||
icon: workflowsFolderDefinition.icon,
|
||||
position: workflowsFolderDefinition.position,
|
||||
navigationMenuItemId: workflowsFolderId,
|
||||
workspaceId,
|
||||
|
||||
+2
-1
@@ -64,8 +64,9 @@ export const createStandardNavigationMenuItemFlatMetadata = ({
|
||||
folderId: null,
|
||||
folderUniversalIdentifier: null,
|
||||
name: null,
|
||||
position,
|
||||
link: null,
|
||||
icon: null,
|
||||
position,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
};
|
||||
|
||||
+5
-1
@@ -7,6 +7,7 @@ import { TWENTY_STANDARD_APPLICATION } from 'src/engine/workspace-manager/twenty
|
||||
export const createStandardNavigationMenuItemFolderFlatMetadata = ({
|
||||
universalIdentifier,
|
||||
name,
|
||||
icon,
|
||||
position,
|
||||
navigationMenuItemId,
|
||||
workspaceId,
|
||||
@@ -15,6 +16,7 @@ export const createStandardNavigationMenuItemFolderFlatMetadata = ({
|
||||
}: {
|
||||
universalIdentifier: string;
|
||||
name: string;
|
||||
icon?: string | null;
|
||||
position: number;
|
||||
navigationMenuItemId: string;
|
||||
workspaceId: string;
|
||||
@@ -36,8 +38,9 @@ export const createStandardNavigationMenuItemFolderFlatMetadata = ({
|
||||
folderId: null,
|
||||
folderUniversalIdentifier: null,
|
||||
name,
|
||||
position,
|
||||
link: null,
|
||||
icon: icon ?? null,
|
||||
position,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
});
|
||||
@@ -95,6 +98,7 @@ export const createStandardNavigationMenuItemFolderItemFlatMetadata = ({
|
||||
folderUniversalIdentifier,
|
||||
name: null,
|
||||
link: null,
|
||||
icon: null,
|
||||
position,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
|
||||
Reference in New Issue
Block a user