Skip to content

The open alternative to Salesforce, designed for AI.

Add canonical product icon dictionary (#23719)

Thomas des Francsfbcd796a4528
diff --git a/CLAUDE.md b/CLAUDE.md
index a7e6dfb0302..f8bf3598da5 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -15,6 +15,8 @@ Where this repo differs from your defaults:
- No abbreviations in names (`fieldMetadata`, not `fm`); constants in SCREAMING_SNAKE_CASE; component props types suffixed `Props`.
- Use `twenty-shared/utils` guards (`isDefined`, `isNonEmptyString`, …) and other existing helpers before writing your own — reimplementing an existing util is the most common AI-authored defect here.
- Lingui for user-facing strings; Linaria (zero-runtime, styled-components pattern) for twenty-front styling.
+- For Twenty product concepts, consult `packages/twenty-ui/src/icon/icon-dictionary.md` and use the canonical icon.
+- Import icons from `twenty-ui/icon`, never directly from `@tabler/icons-react`; action and status concepts should use their action or status icons.
- Test behavior, not implementation: query by user-visible text/roles, `@testing-library/user-event` for interactions.
Longer-form guides remain in `.cursor/rules/` (from the Cursor era).
diff --git a/packages/twenty-docs/developers/extend/apps/data/system-fields.mdx b/packages/twenty-docs/developers/extend/apps/data/system-fields.mdx
index 7fcdb09db10..6e57ddd2142 100644
--- a/packages/twenty-docs/developers/extend/apps/data/system-fields.mdx
+++ b/packages/twenty-docs/developers/extend/apps/data/system-fields.mdx
@@ -65,7 +65,7 @@ export default defineView({
universalIdentifier: '70f10d44-144a-4da8-8c6f-3ec2422138c0',
name: 'All records',
objectUniversalIdentifier: MY_OBJECT_UNIVERSAL_IDENTIFIER,
- icon: 'IconList',
+ icon: 'IconTable',
position: 0,
fields: [
{
diff --git a/packages/twenty-docs/developers/extend/apps/layout/navigation-menu-items.mdx b/packages/twenty-docs/developers/extend/apps/layout/navigation-menu-items.mdx
index 2b56bafe3e3..46f7fbdb5cf 100644
--- a/packages/twenty-docs/developers/extend/apps/layout/navigation-menu-items.mdx
+++ b/packages/twenty-docs/developers/extend/apps/layout/navigation-menu-items.mdx
@@ -13,7 +13,7 @@ import { EXAMPLE_VIEW_UNIVERSAL_IDENTIFIER } from '../views/example-view';
export default defineNavigationMenuItem({
universalIdentifier: '9327db91-afa1-41b6-bd9d-2b51a26efb4c',
name: 'example-navigation-menu-item',
- icon: 'IconList',
+ icon: 'IconCompass',
color: 'blue',
position: 0,
type: NavigationMenuItemType.VIEW,
diff --git a/packages/twenty-docs/developers/extend/apps/layout/views.mdx b/packages/twenty-docs/developers/extend/apps/layout/views.mdx
index 07c1001873e..042120348dc 100644
--- a/packages/twenty-docs/developers/extend/apps/layout/views.mdx
+++ b/packages/twenty-docs/developers/extend/apps/layout/views.mdx
@@ -17,7 +17,7 @@ export default defineView({
universalIdentifier: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
name: 'All example items',
objectUniversalIdentifier: EXAMPLE_OBJECT_UNIVERSAL_IDENTIFIER,
- icon: 'IconList',
+ icon: 'IconTable',
position: 0,
fields: [
{
diff --git a/packages/twenty-front/src/modules/ai/components/AiChatThreadFilterDropdown.tsx b/packages/twenty-front/src/modules/ai/components/AiChatThreadFilterDropdown.tsx
index 5436b63b5cf..85e7faa9dfc 100644
--- a/packages/twenty-front/src/modules/ai/components/AiChatThreadFilterDropdown.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AiChatThreadFilterDropdown.tsx
@@ -1,6 +1,6 @@
import { useLingui } from '@lingui/react/macro';
import { useState } from 'react';
-import { IconAdjustments } from 'twenty-ui/icon';
+import { IconFilter } from 'twenty-ui/icon';
import { LightIconButton } from 'twenty-ui/input';
import { AiChatThreadFilterDropdownContent } from '@/ai/components/AiChatThreadFilterDropdownContent';
@@ -33,7 +33,7 @@ export const AiChatThreadFilterDropdown = ({
clickableComponent={
<LightIconButton
aria-label={t`Filter chats`}
- Icon={IconAdjustments}
+ Icon={IconFilter}
accent="tertiary"
size="small"
/>
diff --git a/packages/twenty-front/src/modules/marketplace/utils/buildPermissionSummaryFromRoleManifest.ts b/packages/twenty-front/src/modules/marketplace/utils/buildPermissionSummaryFromRoleManifest.ts
index 3a80f101c93..7bf26bae43f 100644
--- a/packages/twenty-front/src/modules/marketplace/utils/buildPermissionSummaryFromRoleManifest.ts
+++ b/packages/twenty-front/src/modules/marketplace/utils/buildPermissionSummaryFromRoleManifest.ts
@@ -2,8 +2,8 @@ import { type RoleManifest } from 'twenty-shared/application';
import { isDefined } from 'twenty-shared/utils';
import {
type IconComponent,
- IconCurrencyDollar,
- IconDatabase,
+ IconAddressBook,
+ IconCreditCard,
IconHierarchy,
IconKey,
IconPlug,
@@ -53,14 +53,14 @@ export const buildPermissionSummaryFromRoleManifest = (
capabilities[capabilities.length - 1];
items.push({
- Icon: IconDatabase,
+ Icon: IconAddressBook,
label: label.charAt(0).toUpperCase() + label.slice(1) + ' records',
});
}
if ((defaultRole.objectPermissions ?? []).length > 0 && items.length === 0) {
items.push({
- Icon: IconDatabase,
+ Icon: IconAddressBook,
label: 'Access specific object records',
});
}
@@ -109,7 +109,7 @@ export const buildPermissionSummaryFromRoleManifest = (
},
[SystemPermissionFlag.BILLING]: {
label: 'Manage billing',
- Icon: IconCurrencyDollar,
+ Icon: IconCreditCard,
},
[SystemPermissionFlag.API_KEYS_AND_WEBHOOKS]: {
label: 'Manage MCP, API keys, and webhooks',
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemMainMenu.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemMainMenu.tsx
index 471351a256f..ef2c247e288 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemMainMenu.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/side-panel/components/SidePanelNewSidebarItemMainMenu.tsx
@@ -2,12 +2,7 @@ import { useLingui } from '@lingui/react/macro';
import { NavigationMenuItemType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import { Avatar, TintedIconTile } from 'twenty-ui/data-display';
-import {
- IconBuildingSkyscraper,
- IconFolder,
- IconLink,
- IconTable,
-} from 'twenty-ui/icon';
+import { IconBox, IconFolder, IconLink, IconTable } from 'twenty-ui/icon';
import { themeCssVariables } from 'twenty-ui/theme-constants';
import { CommandMenuItem } from '@/command-menu/components/CommandMenuItem';
@@ -68,12 +63,7 @@ export const SidePanelNewSidebarItemMainMenu = ({
onEnter={onSelectObject}
>
<CommandMenuItem
- Icon={() => (
- <TintedIconTile
- Icon={IconBuildingSkyscraper}
- color="blue"
- />
- )}
+ Icon={() => <TintedIconTile Icon={IconBox} color="blue" />}
label={t`Object`}
id={NavigationMenuItemType.OBJECT}
hasSubMenu={true}
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupsContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupsContent.tsx
index 174f5b48b1c..42ba567c903 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupsContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownRecordGroupsContent.tsx
@@ -27,12 +27,12 @@ import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks
import { useLingui } from '@lingui/react/macro';
import { isDefined } from 'twenty-shared/utils';
import {
+ IconArrowsSort,
IconChevronLeft,
IconCircleOff,
IconEyeOff,
IconLayoutList,
IconPlus,
- IconSortDescending,
} from 'twenty-ui/icon';
import {
MenuItem,
@@ -159,7 +159,7 @@ export const ObjectOptionsDropdownRecordGroupsContent = () => {
<MenuItem
focused={selectedItemId === 'Sort'}
onClick={() => onContentChange('recordGroupSort')}
- LeftIcon={IconSortDescending}
+ LeftIcon={IconArrowsSort}
text={t`Sort`}
contextualText={recordIndexRecordGroupSort}
contextualTextPosition="right"
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
index 776ab3f324e..ea83eb7020f 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
@@ -8,7 +8,7 @@ import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomStat
import { useUpdateCurrentView } from '@/views/hooks/useUpdateCurrentView';
import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { type GraphQLView } from '@/views/types/GraphQLView';
-import { ViewType, viewTypeIconMapping } from '@/views/types/ViewType';
+import { ViewType, viewTypeIconKeyMapping } from '@/views/types/ViewType';
import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
import { useStore } from 'jotai';
@@ -65,8 +65,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
mainGroupByFieldMetadataId;
if (shouldChangeIcon(currentView.icon, currentView.type)) {
- updateCurrentViewParams.icon =
- viewTypeIconMapping(viewType).displayName;
+ updateCurrentViewParams.icon = viewTypeIconKeyMapping(viewType);
}
setRecordIndexViewType(viewType);
@@ -76,8 +75,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
case ViewType.TABLE:
case ViewType.LIST: {
if (shouldChangeIcon(currentView.icon, currentView.type)) {
- updateCurrentViewParams.icon =
- viewTypeIconMapping(viewType).displayName;
+ updateCurrentViewParams.icon = viewTypeIconKeyMapping(viewType);
}
updateCurrentViewParams.mainGroupByFieldMetadataId = null;
await updateCurrentView(updateCurrentViewParams);
@@ -105,8 +103,7 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
);
if (shouldChangeIcon(currentView.icon, currentView.type)) {
- updateCurrentViewParams.icon =
- viewTypeIconMapping(viewType).displayName;
+ updateCurrentViewParams.icon = viewTypeIconKeyMapping(viewType);
}
updateCurrentViewParams.calendarLayout = ViewCalendarLayout.MONTH;
updateCurrentViewParams.calendarFieldMetadataId =
@@ -144,25 +141,25 @@ export const useSetViewTypeFromLayoutOptionsMenu = () => {
): boolean => {
if (
oldViewType === ViewType.KANBAN &&
- oldIcon === viewTypeIconMapping(ViewType.KANBAN).displayName
+ oldIcon === viewTypeIconKeyMapping(ViewType.KANBAN)
) {
return true;
}
if (
oldViewType === ViewType.TABLE &&
- oldIcon === viewTypeIconMapping(ViewType.TABLE).displayName
+ oldIcon === viewTypeIconKeyMapping(ViewType.TABLE)
) {
return true;
}
if (
oldViewType === ViewType.CALENDAR &&
- oldIcon === viewTypeIconMapping(ViewType.CALENDAR).displayName
+ oldIcon === viewTypeIconKeyMapping(ViewType.CALENDAR)
) {
return true;
}
if (
oldViewType === ViewType.LIST &&
- oldIcon === viewTypeIconMapping(ViewType.LIST).displayName
+ oldIcon === viewTypeIconKeyMapping(ViewType.LIST)
) {
return true;
}
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx
index aaca4b8a644..466c58c52ac 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx
@@ -19,9 +19,9 @@ import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/use
import {
IconArrowLeft,
IconArrowRight,
+ IconArrowsSort,
IconEyeOff,
IconFilter,
- IconSortDescending,
} from 'twenty-ui/icon';
import { MenuItem } from 'twenty-ui/navigation';
@@ -143,7 +143,7 @@ export const RecordTableColumnHeadDropdownMenu = ({
)}
{isSortable && (
<MenuItem
- LeftIcon={IconSortDescending}
+ LeftIcon={IconArrowsSort}
onClick={handleSortClick}
text={t`Sort`}
/>
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
index 98aa1dff844..9f7865aee2e 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
@@ -142,7 +142,7 @@ describe('useCreatePageLayoutTab', () => {
expect(result.current.pageLayoutDraft.tabs[1].title).toBe('Tab 2');
});
- it('should default icon to IconAppWindow for new RECORD_PAGE tabs', () => {
+ it('should default icon to IconPerspective for new RECORD_PAGE tabs', () => {
const uuidModule = require('uuid');
uuidModule.v4.mockReturnValue('mock-uuid');
@@ -183,7 +183,7 @@ describe('useCreatePageLayoutTab', () => {
result.current.createTab.createPageLayoutTab();
});
- expect(result.current.pageLayoutDraft.tabs[0].icon).toBe('IconAppWindow');
+ expect(result.current.pageLayoutDraft.tabs[0].icon).toBe('IconPerspective');
});
it('should leave icon as null for new DASHBOARD tabs', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutTab.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutTab.ts
index eccc53fc101..dd95d1e5539 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutTab.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutTab.ts
@@ -63,7 +63,7 @@ export const useCreatePageLayoutTab = ({
pageLayoutId: pageLayoutId,
icon:
pageLayoutDraft.type === PageLayoutType.RECORD_PAGE
- ? 'IconAppWindow'
+ ? 'IconPerspective'
: null,
layoutMode: getDefaultTabLayoutMode(pageLayoutDraft.type),
widgets: [],
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePendingFieldsWidgetViews.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePendingFieldsWidgetViews.ts
index 14542db1a68..d5e44dd032d 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePendingFieldsWidgetViews.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePendingFieldsWidgetViews.ts
@@ -71,7 +71,7 @@ export const useCreatePendingFieldsWidgetViews = () => {
input: {
id: viewId,
name: viewName,
- icon: 'IconList',
+ icon: 'IconListDetails',
objectMetadataId,
type: ViewType.FIELDS_WIDGET,
},
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageAddWidgetSection.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageAddWidgetSection.tsx
index 9045d0c426e..760a2b3e235 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageAddWidgetSection.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/RecordPageAddWidgetSection.tsx
@@ -4,12 +4,7 @@ import { useNavigateToMoreWidgets } from '@/page-layout/hooks/useNavigateToMoreW
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
import { useContext } from 'react';
-import {
- IconListDetails,
- IconListSearch,
- IconPlus,
- IconSquarePlus,
-} from 'twenty-ui/icon';
+import { IconListDetails, IconPlus, IconSquarePlus } from 'twenty-ui/icon';
import { MenuItem } from 'twenty-ui/navigation';
import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';
@@ -72,7 +67,7 @@ export const RecordPageAddWidgetSection = () => {
onClick={createRecordPageFieldsWidget}
/>
<MenuItem
- LeftIcon={IconListSearch}
+ LeftIcon={IconListDetails}
withIconContainer
text={t`Field`}
contextualText={t`Single field with smart formats`}
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
index b8f5dbbc558..45fe10d53ef 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/fields/components/__stories__/FieldsWidget.stories.tsx
@@ -198,7 +198,7 @@ const createView = (
name: 'Company Fields',
objectMetadataId: companyObjectMetadataItem.id,
type: ViewType.FIELDS_WIDGET,
- icon: 'IconList',
+ icon: 'IconListDetails',
key: null,
shouldHideEmptyGroups: false,
position: 0,
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
index 126aa8837e2..108ee0c2d46 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
@@ -2,7 +2,7 @@ import { SettingsTableCard } from '@/settings/components/SettingsTableCard';
import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient';
import { SettingsAdminVersionDisplay } from '@/settings/admin-panel/components/SettingsAdminVersionDisplay';
import { t } from '@lingui/core/macro';
-import { IconCircleDot, IconStatusChange } from 'twenty-ui/icon';
+import { IconCircleDot, IconVersions } from 'twenty-ui/icon';
import { useQuery } from '@apollo/client/react';
import { GetVersionInfoDocument } from '~/generated-admin/graphql';
@@ -26,7 +26,7 @@ export const SettingsAdminVersionContainer = () => {
),
},
{
- Icon: IconStatusChange,
+ Icon: IconVersions,
label: t`Latest version`,
value: (
<SettingsAdminVersionDisplay
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/buildFieldMetadataItemFromMarketplaceField.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/buildFieldMetadataItemFromMarketplaceField.test.ts
new file mode 100644
index 00000000000..549a13d7397
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/buildFieldMetadataItemFromMarketplaceField.test.ts
@@ -0,0 +1,28 @@
+import { buildFieldMetadataItemFromMarketplaceField } from '@/settings/applications/utils/buildFieldMetadataItemFromMarketplaceField';
+
+import { type ObjectFieldManifest } from 'twenty-shared/application';
+import { FieldMetadataType } from 'twenty-shared/types';
+
+const marketplaceField: ObjectFieldManifest = {
+ universalIdentifier: '20202020-1111-4111-8111-111111111111',
+ name: 'companyName',
+ label: 'Company name',
+ type: FieldMetadataType.TEXT,
+};
+
+describe('buildFieldMetadataItemFromMarketplaceField', () => {
+ it('uses the canonical field icon when the app does not provide one', () => {
+ expect(
+ buildFieldMetadataItemFromMarketplaceField(marketplaceField).icon,
+ ).toBe('IconListDetails');
+ });
+
+ it('preserves the icon provided by the app', () => {
+ expect(
+ buildFieldMetadataItemFromMarketplaceField({
+ ...marketplaceField,
+ icon: 'IconBuilding',
+ }).icon,
+ ).toBe('IconBuilding');
+ });
+});
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/buildFieldMetadataItemFromMarketplaceField.ts b/packages/twenty-front/src/modules/settings/applications/utils/buildFieldMetadataItemFromMarketplaceField.ts
new file mode 100644
index 00000000000..54a1e856005
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/buildFieldMetadataItemFromMarketplaceField.ts
@@ -0,0 +1,33 @@
+import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
+
+import { type ObjectFieldManifest } from 'twenty-shared/application';
+import { v4 as uuidv4 } from 'uuid';
+import { FieldMetadataType } from '~/generated-metadata/graphql';
+
+export const buildFieldMetadataItemFromMarketplaceField = (
+ field: ObjectFieldManifest,
+): FieldMetadataItem => {
+ const now = new Date().toISOString();
+ const universalIdentifier = field.universalIdentifier ?? uuidv4();
+
+ return {
+ id: universalIdentifier,
+ universalIdentifier,
+ name: field.name,
+ label: field.label,
+ type: (field.type as FieldMetadataType) ?? FieldMetadataType.TEXT,
+ description: field.description ?? '',
+ icon: field.icon ?? 'IconListDetails',
+ isActive: true,
+ isSystem: false,
+ isNullable: true,
+ isUnique: false,
+ isUIEditable: true,
+ createdAt: now,
+ updatedAt: now,
+ defaultValue: null,
+ options: null,
+ relation: null,
+ settings: null,
+ };
+};
diff --git a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
index 7b0495ee16e..7694e041219 100644
--- a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
+++ b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
@@ -16,16 +16,16 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { t } from '@lingui/core/macro';
import { isNonEmptyString } from '@sniptt/guards';
import {
+ IconAppWindow,
IconApps,
IconAt,
IconCalendarEvent,
IconColorSwatch,
type IconComponent,
- IconCurrencyDollar,
+ IconCreditCard,
IconDoorEnter,
IconHelpCircle,
- IconHierarchy2,
- IconLayout,
+ IconHierarchy,
IconMail,
IconMessage,
IconMessageCircle,
@@ -126,13 +126,13 @@ const useSettingsNavigationItems = (): SettingsNavigationSection[] => {
{
label: t`Data model`,
path: SettingsPath.Objects,
- Icon: IconHierarchy2,
+ Icon: IconHierarchy,
isHidden: !permissionMap[PermissionFlagType.DATA_MODEL],
},
{
label: t`Layout`,
path: SettingsPath.Layout,
- Icon: IconLayout,
+ Icon: IconAppWindow,
isHidden: !permissionMap[PermissionFlagType.LAYOUTS],
},
{
@@ -144,7 +144,7 @@ const useSettingsNavigationItems = (): SettingsNavigationSection[] => {
{
label: t`Billing`,
path: SettingsPath.Billing,
- Icon: IconCurrencyDollar,
+ Icon: IconCreditCard,
isHidden:
!isBillingEnabled || !permissionMap[PermissionFlagType.WORKSPACE],
},
diff --git a/packages/twenty-front/src/modules/settings/layout/components/SettingsLayoutItemsStats.tsx b/packages/twenty-front/src/modules/settings/layout/components/SettingsLayoutItemsStats.tsx
index 851e788d5b8..887da02f098 100644
--- a/packages/twenty-front/src/modules/settings/layout/components/SettingsLayoutItemsStats.tsx
+++ b/packages/twenty-front/src/modules/settings/layout/components/SettingsLayoutItemsStats.tsx
@@ -7,10 +7,10 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomState
import { viewsSelector } from '@/views/states/selectors/viewsSelector';
import { useLingui } from '@lingui/react/macro';
import {
- IconAppWindow,
IconCommand,
- IconLayoutSidebarLeftExpand,
- IconPuzzle,
+ IconCompass,
+ IconLayoutGridAdd,
+ IconPerspective,
IconTable,
} from 'twenty-ui/icon';
@@ -35,7 +35,7 @@ export const SettingsLayoutItemsStats = () => {
value: commandMenuItems.length.toString(),
},
{
- Icon: IconLayoutSidebarLeftExpand,
+ Icon: IconCompass,
label: t`Sidebar items`,
value: navigationMenuItems.length.toString(),
},
@@ -47,14 +47,14 @@ export const SettingsLayoutItemsStats = () => {
value: views.length.toString(),
},
{
- Icon: IconAppWindow,
+ Icon: IconPerspective,
label: t`Pages`,
value: pageLayoutsWithRelations.length.toString(),
},
],
[
{
- Icon: IconPuzzle,
+ Icon: IconLayoutGridAdd,
label: t`Widgets`,
value: frontComponents.length.toString(),
},
diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesList.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesList.tsx
index e67386e5ba4..fddd6e57ace 100644
--- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesList.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesList.tsx
@@ -15,8 +15,8 @@ import { SettingsPath } from 'twenty-shared/types';
import {
IconFilter,
IconKey,
+ IconLego,
IconPlus,
- IconRobot,
IconSearch,
} from 'twenty-ui/icon';
import { H2Title } from 'twenty-ui/typography';
@@ -112,7 +112,7 @@ export const SettingsRolesList = () => {
<DropdownContent>
<DropdownMenuItemsContainer>
<MenuItemToggle
- LeftIcon={IconRobot}
+ LeftIcon={IconLego}
onToggleChange={() => setShowAgentRoles(!showAgentRoles)}
toggled={showAgentRoles}
text={t`Agent roles`}
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
index dc3f5a50701..f4d5f801963 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
@@ -73,7 +73,7 @@ export const SettingsRoleAssignmentTableRow = ({
);
}
case 'agent': {
- const Icon = getIcon(roleTarget.data.icon || 'IconRobot');
+ const Icon = getIcon(roleTarget.data.icon || 'IconLego');
return <Icon size={theme.icon.size.md} stroke={theme.icon.stroke.sm} />;
}
case 'apiKey': {
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useSettingsRolePermissionFlagConfig.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useSettingsRolePermissionFlagConfig.ts
index ce14cea0c37..7793a9ae2b4 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useSettingsRolePermissionFlagConfig.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/hooks/useSettingsRolePermissionFlagConfig.ts
@@ -6,8 +6,8 @@ import {
IconCreditCard,
IconHierarchy,
IconKey,
- IconLayoutSidebarRightCollapse,
- IconLockOpen,
+ IconAppWindow,
+ IconLock,
IconPlug,
IconSettings,
IconSettingsAutomation,
@@ -70,7 +70,7 @@ export const useSettingsRolePermissionFlagConfig = ({
key: PermissionFlagType.ROLES,
name: t`Roles`,
description: t`Define user roles and access levels`,
- Icon: IconLockOpen,
+ Icon: IconLock,
isRelevantForAgents: true,
isRelevantForApiKeys: true,
isRelevantForUsers: true,
@@ -133,7 +133,7 @@ export const useSettingsRolePermissionFlagConfig = ({
key: PermissionFlagType.LAYOUTS,
name: t`Layouts`,
description: t`Customize page layouts and UI structure`,
- Icon: IconLayoutSidebarRightCollapse,
+ Icon: IconAppWindow,
isRelevantForAgents: true,
isRelevantForApiKeys: true,
isRelevantForUsers: true,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
index 8085b0d3799..092c1eb3efd 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
@@ -1,7 +1,7 @@
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
-import { IconKey, IconRobot, IconUsers } from 'twenty-ui/icon';
+import { IconKey, IconLego, IconUsers } from 'twenty-ui/icon';
import { H2Title } from 'twenty-ui/typography';
import { Checkbox } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
@@ -60,7 +60,7 @@ export const SettingsRoleApplicability = ({
{
key: 'canBeAssignedToAgents' as const,
label: t`Assignable to Agents`,
- Icon: IconRobot,
+ Icon: IconLego,
},
{
key: 'canBeAssignedToApiKeys' as const,
diff --git a/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx b/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx
index ea13f23593d..f88cc091fe1 100644
--- a/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx
@@ -22,7 +22,7 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomState
import { useState } from 'react';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
-import { IconLockOpen, IconSettings, IconUserPlus } from 'twenty-ui/icon';
+import { IconLock, IconSettings, IconUserPlus } from 'twenty-ui/icon';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
import { getDirtyFields } from '~/utils/getDirtyFields';
@@ -79,7 +79,7 @@ export const SettingsRole = ({ roleId, isCreateMode }: SettingsRoleProps) => {
{
id: SETTINGS_ROLE_DETAIL_TABS.TABS_IDS.PERMISSIONS,
title: t`Permissions`,
- Icon: IconLockOpen,
+ Icon: IconLock,
},
{
id: SETTINGS_ROLE_DETAIL_TABS.TABS_IDS.ASSIGNMENT,
diff --git a/packages/twenty-front/src/modules/side-panel/components/hooks/__tests__/usePageLayoutHeaderInfo.test.tsx b/packages/twenty-front/src/modules/side-panel/components/hooks/__tests__/usePageLayoutHeaderInfo.test.tsx
index 13f5b1dca31..3cfc1453b72 100644
--- a/packages/twenty-front/src/modules/side-panel/components/hooks/__tests__/usePageLayoutHeaderInfo.test.tsx
+++ b/packages/twenty-front/src/modules/side-panel/components/hooks/__tests__/usePageLayoutHeaderInfo.test.tsx
@@ -5,6 +5,11 @@ import {
import { usePageLayoutHeaderInfo } from '@/side-panel/components/hooks/usePageLayoutHeaderInfo';
import { renderHook } from '@testing-library/react';
import { SidePanelPages } from 'twenty-shared/types';
+import {
+ IconLayoutDashboard,
+ IconListDetails,
+ IconPerspective,
+} from 'twenty-ui/icon';
import { WidgetType } from '~/generated-metadata/graphql';
describe('usePageLayoutHeaderInfo', () => {
@@ -36,4 +41,53 @@ describe('usePageLayoutHeaderInfo', () => {
getWidgetSettingsHeaderInfo(WidgetType.FRONT_COMPONENT)?.headerType,
).toBe('Widget');
});
+
+ it('keeps the generic widget icon', () => {
+ expect(
+ getWidgetSettingsHeaderInfo(WidgetType.FRONT_COMPONENT)?.headerIcon,
+ ).toBe(IconLayoutDashboard);
+ });
+
+ it.each([
+ SidePanelPages.RecordPageFieldsSettings,
+ SidePanelPages.RecordPageFieldSettings,
+ ])('uses the canonical field icon for %s', (sidePanelPage) => {
+ const widget = makeWidget('widget-id', 0);
+ const { result } = renderHook(() =>
+ usePageLayoutHeaderInfo({
+ sidePanelPage,
+ draftPageLayout: { tabs: [makeTab('tab-id', [widget])] },
+ pageLayoutEditingWidgetId: widget.id,
+ openTabId: null,
+ editedTitle: 'Edited field widget',
+ }),
+ );
+
+ expect(result.current).toMatchObject({
+ headerIcon: IconListDetails,
+ title: 'Edited field widget',
+ widgetInEditMode: widget,
+ isIconEditable: false,
+ });
+ });
+
+ it('uses the canonical tab icon when the tab has no custom icon', () => {
+ const tab = makeTab('tab-id', []);
+ const { result } = renderHook(() =>
+ usePageLayoutHeaderInfo({
+ sidePanelPage: SidePanelPages.PageLayoutTabSettings,
+ draftPageLayout: { tabs: [tab] },
+ pageLayoutEditingWidgetId: null,
+ openTabId: tab.id,
+ editedTitle: null,
+ }),
+ );
+
+ expect(result.current).toMatchObject({
+ headerIcon: IconPerspective,
+ headerType: 'Tab',
+ title: tab.title,
+ isIconEditable: true,
+ });
+ });
});
diff --git a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
index 022b86eed4b..3140e1adac3 100644
--- a/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
+++ b/packages/twenty-front/src/modules/side-panel/components/hooks/usePageLayoutHeaderInfo.ts
@@ -10,10 +10,10 @@ import { useContext } from 'react';
import { SidePanelPages } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import {
- IconAppWindow,
IconFrame,
IconLayoutDashboard,
- IconList,
+ IconListDetails,
+ IconPerspective,
IconPlus,
IconTable,
type IconComponent,
@@ -110,10 +110,10 @@ export const usePageLayoutHeaderInfo = ({
const resolvedTabIcon = isDefined(tab.icon)
? getIcon(tab.icon)
- : IconAppWindow;
+ : IconPerspective;
return {
- headerIcon: resolvedTabIcon ?? IconAppWindow,
+ headerIcon: resolvedTabIcon ?? IconPerspective,
headerIconColor: iconColor,
headerType: t`Tab`,
title,
@@ -185,7 +185,7 @@ export const usePageLayoutHeaderInfo = ({
return getPageLayoutWidgetHeaderInfo({
editedTitle,
- headerIcon: IconList,
+ headerIcon: IconListDetails,
headerIconColor: iconColor,
headerType: t`Fields Widget`,
widgetInEditMode,
@@ -199,7 +199,7 @@ export const usePageLayoutHeaderInfo = ({
return getPageLayoutWidgetHeaderInfo({
editedTitle,
- headerIcon: IconList,
+ headerIcon: IconListDetails,
headerIconColor: iconColor,
headerType: t`Field Widget`,
widgetInEditMode,
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordPageWidgetTypeSelect.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordPageWidgetTypeSelect.tsx
index 6ab11f02201..3816e38784e 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordPageWidgetTypeSelect.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/SidePanelPageLayoutRecordPageWidgetTypeSelect.tsx
@@ -31,7 +31,7 @@ import { useStore } from 'jotai';
import { useCallback } from 'react';
import { SidePanelPages } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { IconApps, IconList } from 'twenty-ui/icon';
+import { IconApps, IconListDetails } from 'twenty-ui/icon';
import { v4 as uuidv4 } from 'uuid';
import {
type FrontComponent,
@@ -334,7 +334,7 @@ export const SidePanelPageLayoutRecordPageWidgetTypeSelect = () => {
<SidePanelGroup heading={t`Widget type`}>
<SelectableListItem itemId="fields" onEnter={handleCreateFieldsWidget}>
<CommandMenuItem
- Icon={IconList}
+ Icon={IconListDetails}
label={t`Fields`}
id="fields"
onClick={handleCreateFieldsWidget}
@@ -342,7 +342,7 @@ export const SidePanelPageLayoutRecordPageWidgetTypeSelect = () => {
</SelectableListItem>
<SelectableListItem itemId="field" onEnter={handleCreateFieldWidget}>
<CommandMenuItem
- Icon={IconList}
+ Icon={IconListDetails}
label={t`Field`}
id="field"
onClick={handleCreateFieldWidget}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-page/SidePanelRecordPageFieldSettings.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-page/SidePanelRecordPageFieldSettings.tsx
index dc95aa49055..a034a9b9ecd 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-page/SidePanelRecordPageFieldSettings.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/record-page/SidePanelRecordPageFieldSettings.tsx
@@ -31,11 +31,7 @@ import { SelectableListItem } from '@/ui/layout/selectable-list/components/Selec
import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
import { isDefined } from 'twenty-shared/utils';
-import {
- IconLayoutSidebarRight,
- IconList,
- IconListDetails,
-} from 'twenty-ui/icon';
+import { IconLayoutSidebarRight, IconListDetails } from 'twenty-ui/icon';
import { FieldDisplayMode, ViewType } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
@@ -240,7 +236,7 @@ export const SidePanelRecordPageFieldSettings = () => {
<CommandMenuItem
id="fields"
label={t`Fields`}
- Icon={IconList}
+ Icon={IconListDetails}
hasSubMenu
onClick={handleNavigateToFields}
description={t`${visibleFieldsCount} visible fields`}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/constants/settings/GroupBySetting.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/constants/settings/GroupBySetting.ts
index 17d728bcd81..3b7af70562e 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/constants/settings/GroupBySetting.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/constants/settings/GroupBySetting.ts
@@ -2,11 +2,11 @@ import { ChartGroupByFieldSelectionDropdownContent } from '@/side-panel/pages/pa
import { CHART_CONFIGURATION_SETTING_LABELS } from '@/side-panel/pages/page-layout/constants/settings/ChartConfigurationSettingLabels';
import { CHART_CONFIGURATION_SETTING_IDS } from '@/side-panel/pages/page-layout/types/ChartConfigurationSettingIds';
import { type ChartSettingsItem } from '@/side-panel/pages/page-layout/types/ChartSettingsGroup';
-import { IconFilters } from 'twenty-ui/icon';
+import { IconLayoutList } from 'twenty-ui/icon';
export const GROUP_BY_SETTING: ChartSettingsItem = {
isBoolean: false,
- Icon: IconFilters,
+ Icon: IconLayoutList,
label: CHART_CONFIGURATION_SETTING_LABELS.GROUP_BY,
id: CHART_CONFIGURATION_SETTING_IDS.GROUP_BY,
dependsOn: [CHART_CONFIGURATION_SETTING_IDS.SOURCE],
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/__tests__/getPageLayoutIcon.test.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/__tests__/getPageLayoutIcon.test.ts
new file mode 100644
index 00000000000..db8fc8a8773
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/__tests__/getPageLayoutIcon.test.ts
@@ -0,0 +1,28 @@
+import { getPageLayoutIcon } from '@/side-panel/pages/page-layout/utils/getPageLayoutIcon';
+import { SidePanelPages } from 'twenty-shared/types';
+import {
+ IconAppWindow,
+ IconChartPie,
+ IconFrame,
+ IconLayoutDashboard,
+ IconListDetails,
+ IconPerspective,
+ IconPlus,
+ IconTable,
+} from 'twenty-ui/icon';
+
+describe('getPageLayoutIcon', () => {
+ it.each([
+ [SidePanelPages.PageLayoutDashboardWidgetTypeSelect, IconAppWindow],
+ [SidePanelPages.DashboardChartSettings, IconChartPie],
+ [SidePanelPages.DashboardIframeSettings, IconFrame],
+ [SidePanelPages.PageLayoutTabSettings, IconPerspective],
+ [SidePanelPages.PageLayoutWidgetSettings, IconLayoutDashboard],
+ [SidePanelPages.RecordPageFieldsSettings, IconListDetails],
+ [SidePanelPages.RecordPageFieldSettings, IconListDetails],
+ [SidePanelPages.DashboardRecordTableSettings, IconTable],
+ [SidePanelPages.PageLayoutRecordPageWidgetTypeSelect, IconPlus],
+ ] as const)('returns the expected icon for %s', (page, expectedIcon) => {
+ expect(getPageLayoutIcon(page)).toBe(expectedIcon);
+ });
+});
diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
index dfb3a5a162d..33c4aa4423f 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getPageLayoutIcon.ts
@@ -5,8 +5,9 @@ import {
IconAppWindow,
IconChartPie,
IconFrame,
- IconList,
IconLayoutDashboard,
+ IconListDetails,
+ IconPerspective,
IconPlus,
IconTable,
} from 'twenty-ui/icon';
@@ -20,13 +21,13 @@ export const getPageLayoutIcon = (page: PageLayoutSidePanelPage) => {
case SidePanelPages.DashboardIframeSettings:
return IconFrame;
case SidePanelPages.PageLayoutTabSettings:
- return IconAppWindow;
+ return IconPerspective;
case SidePanelPages.PageLayoutWidgetSettings:
return IconLayoutDashboard;
case SidePanelPages.RecordPageFieldsSettings:
- return IconList;
+ return IconListDetails;
case SidePanelPages.RecordPageFieldSettings:
- return IconList;
+ return IconListDetails;
case SidePanelPages.DashboardRecordTableSettings:
return IconTable;
case SidePanelPages.PageLayoutRecordPageWidgetTypeSelect:
diff --git a/packages/twenty-front/src/modules/views/types/ViewType.ts b/packages/twenty-front/src/modules/views/types/ViewType.ts
index 735472b9dca..965f4914697 100644
--- a/packages/twenty-front/src/modules/views/types/ViewType.ts
+++ b/packages/twenty-front/src/modules/views/types/ViewType.ts
@@ -5,8 +5,10 @@ import {
type IconComponent,
IconLayoutKanban,
IconList,
+ IconListDetails,
IconTable,
} from 'twenty-ui/icon';
+import { VIEW_TYPE_DEFAULT_ICONS } from 'twenty-shared/constants';
export { ViewType } from '~/generated-metadata/graphql';
import { ViewType } from '~/generated-metadata/graphql';
@@ -30,19 +32,19 @@ export const getViewTypeLabel = (
): MessageDescriptor =>
VIEW_TYPE_LABELS[viewType] ?? VIEW_TYPE_LABELS[ViewType.TABLE];
-const VIEW_TYPE_ICON_MAPPING = [
- { icon: IconLayoutKanban, value: ViewType.KANBAN },
- { icon: IconTable, value: ViewType.TABLE },
- { icon: IconCalendar, value: ViewType.CALENDAR },
- { icon: IconList, value: ViewType.LIST },
-] as const satisfies {
- icon: IconComponent;
- value: ViewType;
-}[];
-
-export const viewTypeIconMapping = (viewType?: ViewType) => {
- return (
- VIEW_TYPE_ICON_MAPPING.find((type) => type.value === viewType)?.icon ??
- IconTable
- );
-};
+type ViewTypeIconKey =
+ (typeof VIEW_TYPE_DEFAULT_ICONS)[keyof typeof VIEW_TYPE_DEFAULT_ICONS];
+
+const VIEW_TYPE_ICON_COMPONENTS = {
+ IconCalendar,
+ IconLayoutKanban,
+ IconList,
+ IconListDetails,
+ IconTable,
+} satisfies Record<ViewTypeIconKey, IconComponent>;
+
+export const viewTypeIconMapping = (viewType: ViewType = ViewType.TABLE) =>
+ VIEW_TYPE_ICON_COMPONENTS[VIEW_TYPE_DEFAULT_ICONS[viewType]];
+
+export const viewTypeIconKeyMapping = (viewType: ViewType = ViewType.TABLE) =>
+ VIEW_TYPE_DEFAULT_ICONS[viewType];
diff --git a/packages/twenty-front/src/modules/views/types/__tests__/ViewType.test.ts b/packages/twenty-front/src/modules/views/types/__tests__/ViewType.test.ts
new file mode 100644
index 00000000000..a4befa10f99
--- /dev/null
+++ b/packages/twenty-front/src/modules/views/types/__tests__/ViewType.test.ts
@@ -0,0 +1,38 @@
+import {
+ ViewType,
+ viewTypeIconKeyMapping,
+ viewTypeIconMapping,
+} from '@/views/types/ViewType';
+
+import {
+ IconCalendar,
+ IconLayoutKanban,
+ IconList,
+ IconListDetails,
+ IconTable,
+} from 'twenty-ui/icon';
+
+describe('view type icon mapping', () => {
+ it.each([
+ [ViewType.TABLE, IconTable, 'IconTable'],
+ [ViewType.KANBAN, IconLayoutKanban, 'IconLayoutKanban'],
+ [ViewType.CALENDAR, IconCalendar, 'IconCalendar'],
+ [ViewType.LIST, IconList, 'IconList'],
+ [ViewType.FIELDS_WIDGET, IconListDetails, 'IconListDetails'],
+ [ViewType.TABLE_WIDGET, IconTable, 'IconTable'],
+ [ViewType.KANBAN_WIDGET, IconLayoutKanban, 'IconLayoutKanban'],
+ [ViewType.LIST_WIDGET, IconList, 'IconList'],
+ [ViewType.CALENDAR_WIDGET, IconCalendar, 'IconCalendar'],
+ ])(
+ 'maps %s to its canonical icon component and key',
+ (viewType, expectedIcon, expectedIconKey) => {
+ expect(viewTypeIconMapping(viewType)).toBe(expectedIcon);
+ expect(viewTypeIconKeyMapping(viewType)).toBe(expectedIconKey);
+ },
+ );
+
+ it('falls back to the table icon', () => {
+ expect(viewTypeIconMapping()).toBe(IconTable);
+ expect(viewTypeIconKeyMapping()).toBe('IconTable');
+ });
+});
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
index 34e909a5b9a..64af7ba4982 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
@@ -15,7 +15,7 @@ import { useAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useAtomC
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { viewObjectMetadataIdComponentState } from '@/views/states/viewObjectMetadataIdComponentState';
-import { ViewType, viewTypeIconMapping } from '@/views/types/ViewType';
+import { ViewType, viewTypeIconKeyMapping } from '@/views/types/ViewType';
import { ViewPickerCreateButton } from '@/views/view-picker/components/ViewPickerCreateButton';
import { ViewPickerIconAndNameContainer } from '@/views/view-picker/components/ViewPickerIconAndNameContainer';
import { ViewPickerSaveButtonContainer } from '@/views/view-picker/components/ViewPickerSaveButtonContainer';
@@ -127,7 +127,7 @@ export const ViewPickerContentCreateMode = () => {
],
});
- const defaultIcon = viewTypeIconMapping(viewPickerType).displayName;
+ const defaultIcon = viewTypeIconKeyMapping(viewPickerType);
const selectedIcon = useMemo(() => {
if (hasManuallySelectedIcon) {
@@ -185,6 +185,12 @@ export const ViewPickerContentCreateMode = () => {
onChange={(value) => {
setViewPickerIsDirty(true);
setViewPickerType(value);
+ if (
+ viewPickerMode === 'create-empty' &&
+ !hasManuallySelectedIcon
+ ) {
+ setViewPickerSelectedIcon(viewTypeIconKeyMapping(value));
+ }
}}
options={VIEW_PICKER_TYPE_SELECT_OPTIONS.filter(
(option) => option.value !== ViewType.LIST || isListViewEnabled,
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
index 2dad0a4dc0e..24ddddd75e6 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
@@ -7,7 +7,7 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';
import { viewsFromObjectMetadataItemFamilySelector } from '@/views/states/selectors/viewsFromObjectMetadataItemFamilySelector';
-import { viewTypeIconMapping } from '@/views/types/ViewType';
+import { viewTypeIconKeyMapping } from '@/views/types/ViewType';
import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useGetAvailableFieldsForCalendar';
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
import { useViewPickerMode } from '@/views/view-picker/hooks/useViewPickerMode';
@@ -84,8 +84,7 @@ export const ViewPickerContentEffect = () => {
!viewPickerIsPersisting &&
!viewPickerIsDirty
) {
- const defaultIcon =
- viewTypeIconMapping(viewPickerType).displayName ?? 'IconTable';
+ const defaultIcon = viewTypeIconKeyMapping(viewPickerType);
if (viewPickerMode === 'create-empty') {
setViewPickerSelectedIcon(defaultIcon);
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowStepFooter.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowStepFooter.tsx
index f48e9e232a5..556e70bb7cf 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowStepFooter.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowStepFooter.tsx
@@ -17,7 +17,7 @@ import { useId } from 'react';
import { SettingsPath } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';
-import { IconRobot, IconTrash, IconUsers } from 'twenty-ui/icon';
+import { IconLego, IconTrash, IconUsers } from 'twenty-ui/icon';
import { Button } from 'twenty-ui/input';
import { MenuItem } from 'twenty-ui/navigation';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
@@ -123,7 +123,7 @@ export const WorkflowStepFooter = ({
focused={selectedItemId === 'view-agent'}
onClick={handleViewAgent}
text={t`View Agent`}
- LeftIcon={IconRobot}
+ LeftIcon={IconLego}
/>
</SelectableListItem>
) : null}
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
index a26bdbf27ce..fb5f363977c 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
@@ -4,10 +4,10 @@ import { Fragment } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { type AiAgentStepLogDetails } from 'twenty-shared/workflow';
import {
- IconBrain,
IconClock,
IconCoins,
IconCpu,
+ IconLego,
IconTool,
IconWorld,
} from 'twenty-ui/icon';
@@ -127,7 +127,7 @@ export const WorkflowRunStepLogsAiAgentDetail = ({
<StyledSummaryCard>
<StyledSummaryHeader>
<StyledHeaderLeft>
- <IconBrain size={16} />
+ <IconLego size={16} />
<StyledTitle>{t`AI agent run`}</StyledTitle>
</StyledHeaderLeft>
<StyledBadgeGroup>
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
index fa5343bac97..500bd199265 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
@@ -101,7 +101,7 @@ export const useWorkflowAiAgentPermissionActions = ({
id: generatedRoleId,
label: roleName,
description: t`Auto-generated role for ${agentDisplayName}`,
- icon: 'IconRobot',
+ icon: 'IconLego',
canAccessAllTools: false,
canUpdateAllSettings: false,
canReadAllObjectRecords: false,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts
index 4b408a925d9..a25554601c3 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/actions/AiAgentAction.ts
@@ -7,5 +7,5 @@ export const AI_AGENT_ACTION: {
} = {
defaultLabel: 'AI Agent',
type: 'AI_AGENT',
- icon: 'IconBrain',
+ icon: 'IconLego',
};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/WebhookTriggerAuthenticationOptions.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/WebhookTriggerAuthenticationOptions.ts
index 91a515bdd33..c501235f56c 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/WebhookTriggerAuthenticationOptions.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/constants/WebhookTriggerAuthenticationOptions.ts
@@ -1,4 +1,4 @@
-import { type IconComponent, IconLockOpen, IconFlag } from 'twenty-ui/icon';
+import { type IconComponent, IconKey, IconLockOpen } from 'twenty-ui/icon';
export type AuthenticationMethods = 'API_KEY' | null;
export const WEBHOOK_TRIGGER_AUTHENTICATION_OPTIONS: Array<{
@@ -14,6 +14,6 @@ export const WEBHOOK_TRIGGER_AUTHENTICATION_OPTIONS: Array<{
{
label: 'API key',
value: 'API_KEY',
- Icon: IconFlag,
+ Icon: IconKey,
},
];
diff --git a/packages/twenty-front/src/pages/settings/ai/SettingsAI.tsx b/packages/twenty-front/src/pages/settings/ai/SettingsAI.tsx
index 1125aff59fa..013c0543cf0 100644
--- a/packages/twenty-front/src/pages/settings/ai/SettingsAI.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/SettingsAI.tsx
@@ -8,12 +8,12 @@ import { getSettingsPath } from 'twenty-shared/utils';
import { t } from '@lingui/core/macro';
import {
+ IconBook,
IconChartBar,
IconCpu,
IconLayoutDashboard,
IconPlus,
IconSparkle2,
- IconSparkles,
IconTool,
} from 'twenty-ui/icon';
import { Button } from 'twenty-ui/input';
@@ -49,7 +49,7 @@ export const SettingsAI = () => {
{
id: SETTINGS_AI_TABS.TABS_IDS.SKILLS,
title: t`Skills`,
- Icon: IconSparkles,
+ Icon: IconBook,
},
{
id: SETTINGS_AI_TABS.TABS_IDS.TOOLS,
diff --git a/packages/twenty-front/src/pages/settings/ai/SettingsAgentForm.tsx b/packages/twenty-front/src/pages/settings/ai/SettingsAgentForm.tsx
index 896d889631b..a41fb445380 100644
--- a/packages/twenty-front/src/pages/settings/ai/SettingsAgentForm.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/SettingsAgentForm.tsx
@@ -18,10 +18,10 @@ import { t } from '@lingui/core/macro';
import { AppPath, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import {
- IconList,
IconListCheck,
IconLock,
IconSettings,
+ IconTerminal,
useIcons,
} from 'twenty-ui/icon';
import { Section } from 'twenty-ui/layout';
@@ -110,7 +110,7 @@ export const SettingsAgentForm = ({ mode }: { mode: 'create' | 'edit' }) => {
name: agent.name,
label: agent.label,
description: agent.description,
- icon: agent.icon || 'IconRobot',
+ icon: agent.icon || 'IconLego',
modelId: agent.modelId,
role: agent.roleId,
prompt: agent.prompt,
@@ -280,7 +280,7 @@ export const SettingsAgentForm = ({ mode }: { mode: 'create' | 'edit' }) => {
{
id: SETTINGS_AGENT_DETAIL_TABS.TABS_IDS.LOGS,
title: t`Logs`,
- Icon: IconList,
+ Icon: IconTerminal,
},
];
@@ -384,7 +384,7 @@ export const SettingsAgentForm = ({ mode }: { mode: 'create' | 'edit' }) => {
? t`Agent`
: agent?.label
: t`New Agent`;
- const AgentIcon = getIcon(formValues.icon || 'IconRobot');
+ const AgentIcon = getIcon(formValues.icon || 'IconLego');
const breadcrumbText = !isCreateMode
? loading
? t`Agent`
diff --git a/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx b/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx
index cc95d329df2..5e741ce1131 100644
--- a/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/SettingsSkillForm.tsx
@@ -117,7 +117,7 @@ export const SettingsSkillForm = ({ mode }: { mode: 'create' | 'edit' }) => {
label: '',
description: '',
content: '',
- icon: 'IconSparkles',
+ icon: 'IconBook',
isLabelSyncedWithName: true,
});
@@ -149,7 +149,7 @@ export const SettingsSkillForm = ({ mode }: { mode: 'create' | 'edit' }) => {
label: skill.label,
description: skill.description ?? '',
content: skill.content,
- icon: skill.icon ?? 'IconSparkles',
+ icon: skill.icon ?? 'IconBook',
isLabelSyncedWithName,
};
setFormValues(initialValues);
@@ -383,7 +383,7 @@ export const SettingsSkillForm = ({ mode }: { mode: 'create' | 'edit' }) => {
label: '',
description: '',
content: '',
- icon: 'IconSparkles',
+ icon: 'IconBook',
isLabelSyncedWithName: true,
});
navigate(SettingsPath.AI);
@@ -416,7 +416,7 @@ export const SettingsSkillForm = ({ mode }: { mode: 'create' | 'edit' }) => {
/>
);
- const SkillIcon = getIcon(formValues.icon || 'IconSparkles');
+ const SkillIcon = getIcon(formValues.icon || 'IconBook');
return (
<SettingsPageLayout
@@ -457,7 +457,7 @@ export const SettingsSkillForm = ({ mode }: { mode: 'create' | 'edit' }) => {
<StyledFormContainer>
<StyledIconNameRow>
<IconPicker
- selectedIconKey={formValues.icon || 'IconSparkles'}
+ selectedIconKey={formValues.icon || 'IconBook'}
onChange={({ iconKey }) =>
handleFieldChange('icon', iconKey)
}
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
index ae0c0f83a75..9d41371123f 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
@@ -98,7 +98,7 @@ export const SettingsAgentSettingsTab = ({
<StyledFormContainer>
<StyledIconNameRow>
<IconPicker
- selectedIconKey={formValues.icon || 'IconRobot'}
+ selectedIconKey={formValues.icon || 'IconLego'}
onChange={({ iconKey }) => {
onFieldChange('icon', iconKey);
}}
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiAgentTableRow.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiAgentTableRow.tsx
index 4adb6de726e..b9d0791bfd4 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiAgentTableRow.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiAgentTableRow.tsx
@@ -29,7 +29,7 @@ export const SettingsAiAgentTableRow = ({
}: SettingsAiAgentTableRowProps) => {
const { theme } = useContext(ThemeContext);
const { getIcon } = useIcons();
- const Icon = getIcon(agent.icon || 'IconRobot');
+ const Icon = getIcon(agent.icon || 'IconLego');
return (
<TableRow
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
index f72b40645ab..94c535ec609 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
@@ -21,7 +21,7 @@ import {
} from 'twenty-shared/constants';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
-import { IconBolt, IconBrain, IconPrompt, IconStar } from 'twenty-ui/icon';
+import { IconBolt, IconCpu, IconPrompt, IconStar } from 'twenty-ui/icon';
import { H2Title } from 'twenty-ui/typography';
import { SearchInput } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
@@ -119,7 +119,7 @@ export const SettingsAiModelsTab = () => {
/>
<Card rounded>
<SettingsOptionCardContentSelect
- Icon={IconBrain}
+ Icon={IconCpu}
title={t`Smart Model`}
description={t`Used for chats, agents, and complex reasoning`}
divider
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiOverviewTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiOverviewTab.tsx
index db54f1ef056..94808f09e1a 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiOverviewTab.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiOverviewTab.tsx
@@ -10,12 +10,7 @@ import { useMutation, useQuery } from '@apollo/client/react';
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
import { Fragment, useContext, useState } from 'react';
-import {
- IconMessage,
- IconSparkle2,
- IconSparkles,
- IconTool,
-} from 'twenty-ui/icon';
+import { IconBook, IconMessage, IconSparkles, IconTool } from 'twenty-ui/icon';
import { H2Title } from 'twenty-ui/typography';
import { Section } from 'twenty-ui/layout';
import { UndecoratedLink } from 'twenty-ui/navigation';
@@ -99,7 +94,7 @@ export const SettingsAiOverviewTab = () => {
],
[
{
- Icon: IconSparkles,
+ Icon: IconBook,
label: t`Skills`,
value: stats ? stats.skillsCount.toString() : '—',
},
@@ -122,7 +117,7 @@ export const SettingsAiOverviewTab = () => {
/>
<UndecoratedLink to={MCP_DEEP_LINK}>
<SettingsCard
- Icon={<IconSparkle2 size={theme.icon.size.md} />}
+ Icon={<IconSparkles size={theme.icon.size.md} />}
title={t`Set up MCP`}
/>
</UndecoratedLink>
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
index ea557f9ac0b..6c8d5f015eb 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
@@ -29,7 +29,7 @@ export const SettingsSkillTableRow = ({
}: SettingsSkillTableRowProps) => {
const { theme } = useContext(ThemeContext);
const { getIcon } = useIcons();
- const Icon = getIcon(skill.icon ?? 'IconSparkles');
+ const Icon = getIcon(skill.icon ?? 'IconBook');
return (
<TableRow
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx
index 0606baa8777..5807d3118d1 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx
@@ -7,10 +7,10 @@ import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
import { isDefined } from 'twenty-shared/utils';
import { Avatar, getIconTileColorShades } from 'twenty-ui/data-display';
import {
- IconCode,
IconEdit,
IconPlus,
IconSearch,
+ IconTool,
IconTrash,
useIcons,
type IconComponent,
@@ -116,7 +116,7 @@ export const SettingsToolIcon = ({
);
}
- const MainIcon = isDefined(icon) ? getIcon(icon) : IconCode;
+ const MainIcon = isDefined(icon) ? getIcon(icon) : IconTool;
const OperationIcon = isDefined(toolName) ? getOperationIcon(toolName) : null;
const objectMetadata = isDefined(objectName)
diff --git a/packages/twenty-front/src/pages/settings/ai/forms/components/SettingsAiAgentForm.tsx b/packages/twenty-front/src/pages/settings/ai/forms/components/SettingsAiAgentForm.tsx
index d814a5580ef..0aee454a4cc 100644
--- a/packages/twenty-front/src/pages/settings/ai/forms/components/SettingsAiAgentForm.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/forms/components/SettingsAiAgentForm.tsx
@@ -64,7 +64,7 @@ export const SettingsAiAgentForm = ({
<StyledFormContainer>
<StyledIconNameRow>
<IconPicker
- selectedIconKey={formValues.icon || 'IconRobot'}
+ selectedIconKey={formValues.icon || 'IconLego'}
onChange={({ iconKey }) => {
onFieldChange('icon', iconKey);
}}
diff --git a/packages/twenty-front/src/pages/settings/ai/hooks/useSettingsAgentFormState.ts b/packages/twenty-front/src/pages/settings/ai/hooks/useSettingsAgentFormState.ts
index f1222756a61..b0ef427f24e 100644
--- a/packages/twenty-front/src/pages/settings/ai/hooks/useSettingsAgentFormState.ts
+++ b/packages/twenty-front/src/pages/settings/ai/hooks/useSettingsAgentFormState.ts
@@ -12,7 +12,7 @@ export const useSettingsAgentFormState = (mode: 'create' | 'edit') => {
name: '',
label: '',
description: '',
- icon: 'IconRobot',
+ icon: 'IconLego',
modelId: mode === 'edit' ? '' : 'auto',
role: null,
prompt: '',
@@ -51,7 +51,7 @@ export const useSettingsAgentFormState = (mode: 'create' | 'edit') => {
name: '',
label: '',
description: '',
- icon: 'IconRobot',
+ icon: 'IconLego',
modelId: mode === 'edit' ? '' : 'auto',
role: '',
prompt: '',
diff --git a/packages/twenty-front/src/pages/settings/api-webhooks/SettingsApiWebhooks.tsx b/packages/twenty-front/src/pages/settings/api-webhooks/SettingsApiWebhooks.tsx
index 0426066506d..47078ba2302 100644
--- a/packages/twenty-front/src/pages/settings/api-webhooks/SettingsApiWebhooks.tsx
+++ b/packages/twenty-front/src/pages/settings/api-webhooks/SettingsApiWebhooks.tsx
@@ -16,7 +16,13 @@ import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
-import { IconPlug, IconPlus, IconSparkle2, IconWebhook } from 'twenty-ui/icon';
+import {
+ IconApi,
+ IconPlus,
+ IconSparkle2,
+ IconSparkles,
+ IconWebhook,
+} from 'twenty-ui/icon';
import { Button } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme-constants';
@@ -59,12 +65,12 @@ export const SettingsApiWebhooks = () => {
{
id: SETTINGS_API_WEBHOOKS_TABS.TABS_IDS.MCP,
title: t`MCP`,
- Icon: IconSparkle2,
+ Icon: IconSparkles,
},
{
id: SETTINGS_API_WEBHOOKS_TABS.TABS_IDS.API,
title: t`API`,
- Icon: IconPlug,
+ Icon: IconApi,
},
{
id: SETTINGS_API_WEBHOOKS_TABS.TABS_IDS.WEBHOOKS,
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
index 1e4c6cb742c..99e0a01e64b 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
@@ -26,7 +26,7 @@ import { InlineBanner } from 'twenty-ui/feedback';
import {
IconAlertTriangle,
IconBox,
- IconCommand,
+ IconBrandTypescript,
IconGraph,
IconInfoCircle,
IconLego,
@@ -216,7 +216,7 @@ export const SettingsApplicationDetails = () => {
many: t`fields`,
},
{
- icon: IconCommand,
+ icon: IconBrandTypescript,
count: (application?.logicFunctions ?? []).length,
one: t`logic function`,
many: t`logic functions`,
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
index 212caebb8d4..e8ccf96f867 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
@@ -7,7 +7,12 @@ import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFla
import { useLingui } from '@lingui/react/macro';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
-import { IconApps, IconCode, IconDownload, IconSparkle2 } from 'twenty-ui/icon';
+import {
+ IconApps,
+ IconCode,
+ IconShoppingBag,
+ IconSparkle2,
+} from 'twenty-ui/icon';
import { Section } from 'twenty-ui/layout';
import { PermissionFlagType } from '~/generated-metadata/graphql';
import coverDark from '~/pages/settings/applications/assets/cover-dark.png';
@@ -29,7 +34,7 @@ export const SettingsApplications = () => {
);
const tabs = [
- { id: 'marketplace', title: t`Marketplace`, Icon: IconDownload },
+ { id: 'marketplace', title: t`Marketplace`, Icon: IconShoppingBag },
{ id: 'installed', title: t`Installed`, Icon: IconApps },
...(hasDeveloperAccess
? [{ id: DEVELOPER_TAB_ID, title: t`Developer`, Icon: IconCode }]
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
index 2b3dee13e4c..169fefa3bc7 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
@@ -21,14 +21,14 @@ import { InlineBanner } from 'twenty-ui/feedback';
import {
IconBook,
IconBox,
+ IconBrandTypescript,
IconCommand,
IconEyeOff,
- IconGraph,
IconInfoCircle,
IconLego,
+ IconLayoutGridAdd,
IconListDetails,
IconLock,
- IconShield,
} from 'twenty-ui/icon';
import {
ApplicationRegistrationSourceType,
@@ -150,13 +150,13 @@ export const SettingsAvailableApplicationDetails = () => {
many: t`fields`,
},
{
- icon: IconCommand,
+ icon: IconBrandTypescript,
count: (manifest?.logicFunctions ?? []).length,
one: t`logic function`,
many: t`logic functions`,
},
{
- icon: IconGraph,
+ icon: IconLayoutGridAdd,
count: (manifest?.frontComponents ?? []).filter(
(fc) =>
!(manifest?.commandMenuItems ?? [])
@@ -179,7 +179,7 @@ export const SettingsAvailableApplicationDetails = () => {
many: t`commands`,
},
{
- icon: IconShield,
+ icon: IconLock,
count: (detail?.roles ?? []).filter(
(role) =>
role.universalIdentifier !== detail?.defaultRoleUniversalIdentifier,
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
index 8e6de00c03d..98ed0bbfa96 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
@@ -1,8 +1,8 @@
import {
IconBox,
IconDownload,
- IconGitBranch,
IconTag,
+ IconVersions,
IconWorld,
} from 'twenty-ui/icon';
import { H2Title } from 'twenty-ui/typography';
@@ -176,7 +176,7 @@ export const SettingsApplicationRegistrationGeneralInfo = ({
if (isNonEmptyString(registration.latestAvailableVersion)) {
items.push({
- Icon: IconGitBranch,
+ Icon: IconVersions,
label: t`Latest version`,
value: registration.latestAvailableVersion,
});
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
index addccab465b..909b12e1e71 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
@@ -1,8 +1,4 @@
-import {
- IconBrandDocker,
- IconChartBar,
- IconStatusChange,
-} from 'twenty-ui/icon';
+import { IconBrandDocker, IconChartBar, IconVersions } from 'twenty-ui/icon';
import { useLingui } from '@lingui/react/macro';
import { SettingsTableCard } from '@/settings/components/SettingsTableCard';
import { type ApplicationRegistration } from '~/generated-metadata/graphql';
@@ -43,7 +39,7 @@ export const SettingsApplicationRegistrationInstallStats = ({
value: stats?.activeInstalls ?? '—',
},
{
- Icon: IconStatusChange,
+ Icon: IconVersions,
label: t`Most installed version`,
value: stats?.mostInstalledVersion ?? '—',
},
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
index 6cf61292366..4f9f2f74a69 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
@@ -5,7 +5,7 @@ import { SettingsAdminVersionDisplay } from '@/settings/admin-panel/components/S
import { useUpgradeApplication } from '@/marketplace/hooks/useUpgradeApplication';
import { t } from '@lingui/core/macro';
import { isDefined } from 'twenty-shared/utils';
-import { IconCircleDot, IconStatusChange, IconUpload } from 'twenty-ui/icon';
+import { IconCircleDot, IconUpload, IconVersions } from 'twenty-ui/icon';
import { Button } from 'twenty-ui/input';
import { type Application } from '~/generated-metadata/graphql';
import { isNewerSemver } from '~/pages/settings/applications/utils/isNewerSemver';
@@ -75,7 +75,7 @@ export const SettingsApplicationVersionContainer = ({
...(isUpgradableApp
? [
{
- Icon: IconStatusChange,
+ Icon: IconVersions,
label: t`Latest version`,
value: (
<SettingsAdminVersionDisplay
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationPermissionsTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationPermissionsTab.tsx
index 23bc8ff3f61..16605ddce4e 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationPermissionsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationPermissionsTab.tsx
@@ -1,7 +1,7 @@
import { ObjectOpenRecordIn } from 'twenty-shared/types';
import { objectMetadataItemsSelector } from '@/object-metadata/states/objectMetadataItemsSelector';
-import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
+import { buildFieldMetadataItemFromMarketplaceField } from '@/settings/applications/utils/buildFieldMetadataItemFromMarketplaceField';
import { SettingsRolesQueryEffect } from '@/settings/roles/components/SettingsRolesQueryEffect';
import { SettingsRolePermissions } from '@/settings/roles/role-permissions/components/SettingsRolePermissions';
import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';
@@ -12,7 +12,6 @@ import { t } from '@lingui/core/macro';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import {
- type ObjectFieldManifest,
type ObjectManifest,
type RoleManifest,
} from 'twenty-shared/application';
@@ -22,7 +21,6 @@ import {
} from 'twenty-shared/constants';
import { isDefined } from 'twenty-shared/utils';
import { v4 as uuidv4 } from 'uuid';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
const SYSTEM_PERMISSION_FLAG_BY_UNIVERSAL_IDENTIFIER = Object.fromEntries(
Object.entries(SystemPermissionFlag).map(([key, uuid]) => [
@@ -145,34 +143,6 @@ const buildSyntheticRole = (
),
});
-const buildFieldMetadataItemFromMarketplaceField = (
- field: ObjectFieldManifest,
-): FieldMetadataItem => {
- const now = new Date().toISOString();
- const universalIdentifier = field.universalIdentifier ?? uuidv4();
-
- return {
- id: universalIdentifier,
- universalIdentifier,
- name: field.name,
- label: field.label,
- type: (field.type as FieldMetadataType) ?? FieldMetadataType.TEXT,
- description: field.description ?? '',
- icon: field.icon ?? 'IconField',
- isActive: true,
- isSystem: false,
- isNullable: true,
- isUnique: false,
- isUIEditable: true,
- createdAt: now,
- updatedAt: now,
- defaultValue: null,
- options: null,
- relation: null,
- settings: null,
- };
-};
-
const buildObjectMetadataItemsFromMarketplaceApp = (
defaultRole: RoleManifest,
objectUniversalIdToIdMap: Record<string, string>,
diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
index 50a53266576..6d812508172 100644
--- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
+++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
@@ -26,7 +26,7 @@ import { useLingui } from '@lingui/react/macro';
import { getAppPath, getSettingsPath, isDefined } from 'twenty-shared/utils';
import {
IconArrowUpRight,
- IconLayout,
+ IconAppWindow,
IconListDetails,
IconPlus,
IconSettings,
@@ -107,7 +107,7 @@ export const SettingsObjectDetailPage = () => {
{
id: SETTINGS_OBJECT_DETAIL_TABS.TABS_IDS.LAYOUT,
title: t`Layout`,
- Icon: IconLayout,
+ Icon: IconAppWindow,
hide:
objectMetadataItem.isRemote ||
objectMetadataItem.nameSingular === CoreObjectNameSingular.Dashboard,
diff --git a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
index a7de08269a5..00f3d33e127 100644
--- a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
+++ b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
@@ -17,7 +17,7 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomState
import { t } from '@lingui/core/macro';
import { CoreObjectNameSingular, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
-import { IconInfoCircle, IconLockOpen } from 'twenty-ui/icon';
+import { IconInfoCircle, IconLock } from 'twenty-ui/icon';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
import { currentUserState } from '@/auth/states/currentUserState';
@@ -206,7 +206,7 @@ export const SettingsWorkspaceMember = () => {
{
id: SETTINGS_WORKSPACE_MEMBER_TABS.TABS_IDS.PERMISSIONS,
title: t`Permissions`,
- Icon: IconLockOpen,
+ Icon: IconLock,
},
]}
componentInstanceId={tabListComponentId}
diff --git a/packages/twenty-front/src/pages/settings/members/tabs/SettingsWorkspaceMembersTeamTab.tsx b/packages/twenty-front/src/pages/settings/members/tabs/SettingsWorkspaceMembersTeamTab.tsx
index fc417edf6f2..5004962376c 100644
--- a/packages/twenty-front/src/pages/settings/members/tabs/SettingsWorkspaceMembersTeamTab.tsx
+++ b/packages/twenty-front/src/pages/settings/members/tabs/SettingsWorkspaceMembersTeamTab.tsx
@@ -24,7 +24,7 @@ import { Avatar } from 'twenty-ui/data-display';
import {
IconArrowUpRight,
IconChevronRight,
- IconHierarchy2,
+ IconHierarchy,
IconListDetails,
} from 'twenty-ui/icon';
import { AppTooltip, TooltipDelay } from 'twenty-ui/surfaces';
@@ -201,7 +201,7 @@ export const SettingsWorkspaceMembersTeamTab = () => {
}}
/>
<MenuItem
- LeftIcon={IconHierarchy2}
+ LeftIcon={IconHierarchy}
text={t`See data model settings`}
onClick={() => {
navigateSettings(SettingsPath.ObjectDetail, {
diff --git a/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-navigation-menu-item-base-file.spec.ts b/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-navigation-menu-item-base-file.spec.ts
index be9fce77d3a..07ff83fbf6b 100644
--- a/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-navigation-menu-item-base-file.spec.ts
+++ b/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-navigation-menu-item-base-file.spec.ts
@@ -15,7 +15,7 @@ describe('getNavigationMenuItemBaseFile', () => {
"universalIdentifier: '71e45a58-41da-4ae4-8b73-a543c0a9d3d4'",
);
expect(result).toContain("name: 'my-nav-item'");
- expect(result).toContain("icon: 'IconList'");
+ expect(result).toContain("icon: 'IconCompass'");
expect(result).toContain('position: 0');
});
diff --git a/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-view-base-file.spec.ts b/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-view-base-file.spec.ts
index 37353bcf2a8..a8ee2521a1c 100644
--- a/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-view-base-file.spec.ts
+++ b/packages/twenty-sdk/src/cli/utilities/entity/__tests__/get-view-base-file.spec.ts
@@ -1,5 +1,6 @@
import { getViewBaseFile } from '@/cli/utilities/entity/entity-view-template';
import { getFieldUniversalIdentifier } from 'twenty-shared/application';
+import { ViewType } from 'twenty-shared/types';
const APPLICATION_UNIVERSAL_IDENTIFIER = 'a1a2a3a4-a5a6-4000-8000-000000000001';
@@ -29,7 +30,7 @@ describe('getViewBaseFile', () => {
);
expect(result).toContain("name: 'my-view'");
expect(result).toContain("objectUniversalIdentifier: 'obj-abc-123'");
- expect(result).toContain("icon: 'IconList'");
+ expect(result).toContain("icon: 'IconTable'");
expect(result).toContain('position: 0');
});
@@ -41,6 +42,23 @@ describe('getViewBaseFile', () => {
expect(result).toContain("objectUniversalIdentifier: 'fill-later'");
});
+ it.each([
+ [ViewType.TABLE, 'IconTable'],
+ [ViewType.KANBAN, 'IconLayoutKanban'],
+ [ViewType.CALENDAR, 'IconCalendar'],
+ [ViewType.FIELDS_WIDGET, 'IconListDetails'],
+ [ViewType.TABLE_WIDGET, 'IconTable'],
+ [ViewType.KANBAN_WIDGET, 'IconLayoutKanban'],
+ [ViewType.CALENDAR_WIDGET, 'IconCalendar'],
+ ])('should use the canonical icon for %s views', (type, icon) => {
+ const result = getTestViewBaseFile({
+ name: 'typed-view',
+ type,
+ });
+
+ expect(result).toContain(`icon: '${icon}'`);
+ });
+
it('should include commented fields, filters and sorts when no fields provided', () => {
const result = getTestViewBaseFile({
name: 'empty-view',
diff --git a/packages/twenty-sdk/src/cli/utilities/entity/entity-navigation-menu-item-template.ts b/packages/twenty-sdk/src/cli/utilities/entity/entity-navigation-menu-item-template.ts
index eee67841afd..5ee2dc1c5a2 100644
--- a/packages/twenty-sdk/src/cli/utilities/entity/entity-navigation-menu-item-template.ts
+++ b/packages/twenty-sdk/src/cli/utilities/entity/entity-navigation-menu-item-template.ts
@@ -39,7 +39,7 @@ export const getNavigationMenuItemBaseFile = ({
export default defineNavigationMenuItem({
universalIdentifier: '${universalIdentifier}',
name: '${kebabCaseName}',
- icon: 'IconList',
+ icon: 'IconCompass',
position: 0,
${typeAndConfig}
});
diff --git a/packages/twenty-sdk/src/cli/utilities/entity/entity-view-template.ts b/packages/twenty-sdk/src/cli/utilities/entity/entity-view-template.ts
index c6173b8d169..b29c39a57b9 100644
--- a/packages/twenty-sdk/src/cli/utilities/entity/entity-view-template.ts
+++ b/packages/twenty-sdk/src/cli/utilities/entity/entity-view-template.ts
@@ -1,6 +1,7 @@
import { kebabCase } from '@/cli/utilities/string/kebab-case';
import { getFieldUniversalIdentifier } from 'twenty-shared/application';
-import { type ViewType } from 'twenty-shared/types';
+import { VIEW_TYPE_DEFAULT_ICONS } from 'twenty-shared/constants';
+import { ViewType } from 'twenty-shared/types';
import { v4 } from 'uuid';
type ViewFieldTemplateBase = {
@@ -93,6 +94,7 @@ ${fields
: defaultFields;
const typeBlock = type !== undefined ? ` type: '${type}',\n` : '';
+ const icon = VIEW_TYPE_DEFAULT_ICONS[type ?? ViewType.TABLE];
const imports = `import { defineView } from 'twenty-sdk/define';`;
@@ -102,7 +104,7 @@ export default defineView({
universalIdentifier: '${universalIdentifier}',
name: '${kebabCaseName}',
objectUniversalIdentifier: '${objectUniversalIdentifier}',
-${typeBlock} icon: 'IconList',
+${typeBlock} icon: '${icon}',
position: 0,
${fieldsBlock}
// filters: [
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/__tests__/compute-system-view-to-create.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/__tests__/compute-system-view-to-create.util.spec.ts
index 0d4efa179d4..11fa9dcbcc1 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/__tests__/compute-system-view-to-create.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/__tests__/compute-system-view-to-create.util.spec.ts
@@ -43,6 +43,7 @@ describe('computeSystemViewToCreate', () => {
expect(result.key).toBe(ViewKey.INDEX);
expect(result.type).toBe(ViewType.TABLE);
+ expect(result.icon).toBe('IconTable');
expect(result.name).toBe('All {objectLabelPlural}');
expect(result.isSystemSideEffect).toBe(true);
expect(result.objectMetadataUniversalIdentifier).toBe(
@@ -63,6 +64,7 @@ describe('computeSystemViewToCreate', () => {
// The record-page view key is derivation-only, never persisted.
expect(result.key).toBeNull();
expect(result.type).toBe(ViewType.FIELDS_WIDGET);
+ expect(result.icon).toBe('IconList');
expect(result.name).toBe('Ticket Record Page Fields');
expect(result.isSystemSideEffect).toBe(true);
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/compute-system-view-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/compute-system-view-to-create.util.ts
index c3b0c5beb37..843bb732e7f 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/compute-system-view-to-create.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/utils/compute-system-view-to-create.util.ts
@@ -3,6 +3,7 @@ import {
getSystemViewUniversalIdentifier,
type SystemViewKey,
} from 'twenty-shared/application';
+import { VIEW_TYPE_DEFAULT_ICONS } from 'twenty-shared/constants';
import {
ViewKey,
ViewOpenRecordIn,
@@ -25,10 +26,12 @@ type SystemViewObjectMetadata = Pick<
const SYSTEM_VIEW_PROPERTIES_BY_VIEW_KEY = {
[SYSTEM_VIEW_KEYS.INDEX]: {
type: ViewType.TABLE,
+ icon: VIEW_TYPE_DEFAULT_ICONS[ViewType.TABLE],
computeName: () => INDEX_VIEW_NAME,
},
[SYSTEM_VIEW_KEYS.FIELDS_WIDGET]: {
type: ViewType.FIELDS_WIDGET,
+ icon: 'IconList',
computeName: (objectMetadata: SystemViewObjectMetadata) =>
`${objectMetadata.labelSingular} Record Page Fields`,
},
@@ -36,6 +39,7 @@ const SYSTEM_VIEW_PROPERTIES_BY_VIEW_KEY = {
SystemViewKey,
{
type: ViewType;
+ icon: string;
computeName: (objectMetadata: SystemViewObjectMetadata) => string;
}
>;
@@ -49,7 +53,8 @@ export const computeSystemViewToCreate = ({
objectMetadata: SystemViewObjectMetadata;
viewKey: SystemViewKey;
}): UniversalFlatView & { id: string } => {
- const { type, computeName } = SYSTEM_VIEW_PROPERTIES_BY_VIEW_KEY[viewKey];
+ const { type, icon, computeName } =
+ SYSTEM_VIEW_PROPERTIES_BY_VIEW_KEY[viewKey];
const createdAt = new Date().toISOString();
return {
@@ -59,7 +64,7 @@ export const computeSystemViewToCreate = ({
// Only INDEX is a persisted key; FIELDS_WIDGET exists solely in the
// universal identifier derivation.
key: viewKey === SYSTEM_VIEW_KEYS.INDEX ? ViewKey.INDEX : null,
- icon: 'IconList',
+ icon,
type,
createdAt,
updatedAt: createdAt,
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
index d9fa5c968fd..fc41991d163 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
@@ -14,7 +14,7 @@ export const STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT = {
},
attachment: {
label: msg({ message: `Attachments`, context: 'fieldMetadata.label' }),
- icon: 'IconFileImport',
+ icon: 'IconPaperclip',
},
timelineActivity: {
label: msg({
diff --git a/packages/twenty-server/src/engine/metadata-modules/permission-flag/constants/standard-permission-flag-definitions.constant.ts b/packages/twenty-server/src/engine/metadata-modules/permission-flag/constants/standard-permission-flag-definitions.constant.ts
index 94e62a00a08..cac467ee024 100644
--- a/packages/twenty-server/src/engine/metadata-modules/permission-flag/constants/standard-permission-flag-definitions.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/permission-flag/constants/standard-permission-flag-definitions.constant.ts
@@ -42,7 +42,7 @@ const STANDARD_PERMISSION_FLAG_METADATA: Record<
[PermissionFlagType.ROLES]: {
label: 'Roles',
description: 'Define user roles and access levels',
- icon: 'IconLockOpen',
+ icon: 'IconLock',
},
[PermissionFlagType.DATA_MODEL]: {
label: 'Data Model',
@@ -82,7 +82,7 @@ const STANDARD_PERMISSION_FLAG_METADATA: Record<
[PermissionFlagType.LAYOUTS]: {
label: 'Layouts',
description: 'Customize page layouts and UI structure',
- icon: 'IconLayoutSidebarRightCollapse',
+ icon: 'IconAppWindow',
},
[PermissionFlagType.BILLING]: {
label: 'Billing',
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/tools/__tests__/view-tools.factory.spec.ts b/packages/twenty-server/src/engine/metadata-modules/view/tools/__tests__/view-tools.factory.spec.ts
index 18a5614f5b8..b4665e96118 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/tools/__tests__/view-tools.factory.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/tools/__tests__/view-tools.factory.spec.ts
@@ -629,7 +629,7 @@ describe('ViewToolsFactory', () => {
name: 'Pipeline',
objectMetadataId: mockObjectMetadataId,
type: ViewType.TABLE,
- icon: 'IconList',
+ icon: 'IconTable',
visibility: ViewVisibility.WORKSPACE,
viewFields: [{}, {}],
viewFilters: [{}],
@@ -691,7 +691,7 @@ describe('ViewToolsFactory', () => {
name: 'Pipeline',
objectMetadataId: mockObjectMetadataId,
type: ViewType.TABLE,
- icon: 'IconList',
+ icon: 'IconTable',
visibility: ViewVisibility.WORKSPACE,
fieldCount: 2,
filterCount: 1,
@@ -705,7 +705,7 @@ describe('ViewToolsFactory', () => {
name: 'By Id',
objectMetadataId: mockObjectMetadataId,
type: ViewType.TABLE,
- icon: 'IconList',
+ icon: 'IconTable',
visibility: ViewVisibility.WORKSPACE,
viewFields: [{}],
} as any);
diff --git a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/utils/prefill-front-component-definitions.util.ts b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/utils/prefill-front-component-definitions.util.ts
index 33e1cc6029e..971e4e2b404 100644
--- a/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/utils/prefill-front-component-definitions.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/utils/prefill-front-component-definitions.util.ts
@@ -128,7 +128,7 @@ export const getSeedFrontComponentCommandMenuItemDefinitions = (
),
frontComponentId: showNotificationId,
label: 'Show Notification',
- icon: 'IconStar',
+ icon: 'IconBell',
position: 202,
isPinned: true,
pageLayoutId: generateSeedId(
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
index dbc6016d15b..1ea880ddfb3 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant.ts
@@ -1181,7 +1181,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {
context: 'commandMenuItem.label',
}),
),
- icon: 'IconHierarchy2',
+ icon: 'IconHierarchy',
isPinned: false,
position: 53,
shortLabel: i18nLabel(
@@ -1269,7 +1269,7 @@ export const STANDARD_COMMAND_MENU_ITEMS = {
context: 'commandMenuItem.label',
}),
),
- icon: 'IconCurrencyDollar',
+ icon: 'IconCreditCard',
isPinned: false,
position: 57,
shortLabel: i18nLabel(
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template.ts
index 28442e788b4..b332ccfcb9a 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/standard-page-layout-tabs.template.ts
@@ -95,7 +95,7 @@ export const TAB_PROPS = {
files: {
title: 'Files',
position: 50,
- icon: 'IconPaperclip',
+ icon: 'IconFiles',
layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,
},
emails: {
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-standard-icon-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-standard-icon-metadata.spec.ts
new file mode 100644
index 00000000000..37c8ccd710c
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-standard-icon-metadata.spec.ts
@@ -0,0 +1,50 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+import { STANDARD_COMMAND_MENU_ITEMS } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-command-menu-item.constant';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+
+const WORKSPACE_ID = '20202020-1111-4111-8111-111111111111';
+const TWENTY_STANDARD_APPLICATION_ID = '20202020-2222-4222-8222-222222222222';
+const NOW = '2024-01-01T00:00:00.000Z';
+
+describe('standard icon metadata', () => {
+ const { allFlatEntityMaps } =
+ computeTwentyStandardApplicationAllFlatEntityMaps({
+ now: NOW,
+ workspaceId: WORKSPACE_ID,
+ twentyStandardApplicationId: TWENTY_STANDARD_APPLICATION_ID,
+ });
+
+ it.each([
+ STANDARD_OBJECTS.timelineActivity.fields.workspaceMember
+ .universalIdentifier,
+ STANDARD_OBJECTS.messageParticipant.fields.workspaceMember
+ .universalIdentifier,
+ STANDARD_OBJECTS.blocklist.fields.workspaceMember.universalIdentifier,
+ STANDARD_OBJECTS.workspaceMember.fields.name.universalIdentifier,
+ STANDARD_OBJECTS.workspaceMember.fields.userId.universalIdentifier,
+ ])(
+ 'uses the canonical member icon for field %s',
+ (fieldUniversalIdentifier) => {
+ expect(
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ fieldUniversalIdentifier
+ ]?.icon,
+ ).toBe('IconUsers');
+ },
+ );
+
+ it('keeps the time-zone field icon available for dynamic resolution', () => {
+ expect(
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS.workspaceMember.fields.timeZone.universalIdentifier
+ ]?.icon,
+ ).toBe('IconTimezone');
+ });
+
+ it('uses the copy-plus icon for the duplicate-dashboard command', () => {
+ expect(STANDARD_COMMAND_MENU_ITEMS.duplicateDashboard.icon).toBe(
+ 'IconCopyPlus',
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-blocklist-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-blocklist-standard-flat-field-metadata.util.ts
index 49d7c9e0695..8863c1af100 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-blocklist-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-blocklist-standard-flat-field-metadata.util.ts
@@ -277,7 +277,7 @@ export const buildBlocklistStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconCircleUser',
+ icon: 'IconUsers',
isNullable: false,
isUIEditable: false,
targetObjectName: 'workspaceMember',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-dashboard-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-dashboard-standard-flat-field-metadata.util.ts
index 887f3b2d7b2..1e6490e7b92 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-dashboard-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-dashboard-standard-flat-field-metadata.util.ts
@@ -187,7 +187,7 @@ export const buildDashboardStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconLayout',
+ icon: 'IconAppWindow',
isNullable: true,
isUIEditable: false,
},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-participant-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-participant-standard-flat-field-metadata.util.ts
index 2bbb757794b..d5c4d9dcbb1 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-participant-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-participant-standard-flat-field-metadata.util.ts
@@ -421,7 +421,7 @@ export const buildMessageParticipantStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconCircleUser',
+ icon: 'IconUsers',
isNullable: true,
isUIEditable: false,
targetObjectName: 'workspaceMember',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-timeline-activity-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-timeline-activity-standard-flat-field-metadata.util.ts
index 78e4ce62594..d5bb3d6f95e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-timeline-activity-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-timeline-activity-standard-flat-field-metadata.util.ts
@@ -406,7 +406,7 @@ export const buildTimelineActivityStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconCircleUser',
+ icon: 'IconUsers',
isNullable: true,
isUIEditable: false,
targetObjectName: 'workspaceMember',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
index 39db2b18c0d..672774b8338 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
@@ -170,7 +170,7 @@ export const buildWorkspaceMemberStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconCircleUser',
+ icon: 'IconUsers',
isNullable: false,
isUIEditable: false,
},
@@ -403,7 +403,7 @@ export const buildWorkspaceMemberStandardFlatFieldMetadatas = ({
context: 'fieldMetadata.description',
}),
),
- icon: 'IconCircleUsers',
+ icon: 'IconUsers',
isSystem: true,
isNullable: false,
isUIEditable: false,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-attachment-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-attachment-views.util.ts
index 345034729fa..dd1586eb9c9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-attachment-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-attachment-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardAttachmentViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-blocklist-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-blocklist-views.util.ts
index 270b6464ef5..11dfed2f1a2 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-blocklist-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-blocklist-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardBlocklistViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
blocklistRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardBlocklistViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-event-association-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-event-association-views.util.ts
index 49addd6d1eb..e27ebe2015b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-event-association-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-channel-event-association-views.util.ts
@@ -23,7 +23,7 @@ export const computeStandardCalendarChannelEventAssociationViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
calendarChannelEventAssociationRecordPageFields:
@@ -36,7 +36,7 @@ export const computeStandardCalendarChannelEventAssociationViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-participant-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-participant-views.util.ts
index f46fe62fbac..d33d79df562 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-participant-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-participant-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardCalendarEventParticipantViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
calendarEventParticipantRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardCalendarEventParticipantViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts
index 85abf2744f8..2943a7e472c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-calendar-event-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardCalendarEventViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
calendarFieldName: 'startsAt',
},
}),
@@ -33,7 +33,7 @@ export const computeStandardCalendarEventViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-call-recording-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-call-recording-views.util.ts
index 3708be600a9..16b8b28cd4e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-call-recording-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-call-recording-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardCallRecordingViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
callRecordingRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardCallRecordingViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-company-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-company-views.util.ts
index 1bfd1e20ad7..1fea950df9b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-company-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-company-views.util.ts
@@ -21,7 +21,7 @@ export const computeStandardCompanyViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
companyRecordPageFields: createStandardViewFlatMetadata({
@@ -33,7 +33,7 @@ export const computeStandardCompanyViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-dashboard-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-dashboard-views.util.ts
index 0fcfd0df863..85ea1045963 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-dashboard-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-dashboard-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardDashboardViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-campaign-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-campaign-views.util.ts
index 7ebe3e833a6..f2c0cefcccb 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-campaign-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-campaign-views.util.ts
@@ -32,7 +32,7 @@ export const computeStandardMessageCampaignViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util.ts
index dea953ec327..035d513a41c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util.ts
@@ -25,7 +25,7 @@ export const computeStandardMessageChannelMessageAssociationMessageFolderViews =
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
messageChannelMessageAssociationMessageFolderRecordPageFields:
@@ -39,7 +39,7 @@ export const computeStandardMessageChannelMessageAssociationMessageFolderViews =
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util.ts
index f8f49d8e342..be42b5b2dec 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util.ts
@@ -23,7 +23,7 @@ export const computeStandardMessageChannelMessageAssociationViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
messageChannelMessageAssociationRecordPageFields:
@@ -36,7 +36,7 @@ export const computeStandardMessageChannelMessageAssociationViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-views.util.ts
index e8d41db7c3a..f93cba3f13d 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardMessageListViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util.ts
index a3bd6ac082b..7efad728ea5 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardMessageParticipantViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
messageParticipantRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardMessageParticipantViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util.ts
index bdb3863f8e9..bbd47f48089 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardMessageThreadViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util.ts
index 0c309ce1e47..b93ddccf45c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardMessageViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-target-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-target-views.util.ts
index 76e7ed1073d..26ec93c0ae7 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-target-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-target-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardNoteTargetViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-views.util.ts
index b0391d25374..6c5339e19c0 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-note-views.util.ts
@@ -32,7 +32,7 @@ export const computeStandardNoteViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-opportunity-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-opportunity-views.util.ts
index 328e60e5704..8bb14c68ef7 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-opportunity-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-opportunity-views.util.ts
@@ -23,7 +23,7 @@ export const computeStandardOpportunityViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
byStage: createStandardViewFlatMetadata({
@@ -50,7 +50,7 @@ export const computeStandardOpportunityViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-person-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-person-views.util.ts
index 7caec84a675..c363a350a89 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-person-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-person-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardPersonViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
personRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardPersonViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-target-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-target-views.util.ts
index bf4d4c90562..043a30aa9ad 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-target-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-target-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardTaskTargetViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-views.util.ts
index e8cf31b6bce..597ce6bc095 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-task-views.util.ts
@@ -23,7 +23,7 @@ export const computeStandardTaskViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
byStatus: createStandardViewFlatMetadata({
@@ -63,7 +63,7 @@ export const computeStandardTaskViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-timeline-activity-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-timeline-activity-views.util.ts
index 2621ecc9093..e2c8d455286 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-timeline-activity-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-timeline-activity-views.util.ts
@@ -21,7 +21,7 @@ export const computeStandardTimelineActivityViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-automated-trigger-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-automated-trigger-views.util.ts
index 87c620cced5..ab80f479343 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-automated-trigger-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-automated-trigger-views.util.ts
@@ -20,7 +20,7 @@ export const computeStandardWorkflowAutomatedTriggerViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
workflowAutomatedTriggerRecordPageFields: createStandardViewFlatMetadata({
@@ -32,7 +32,7 @@ export const computeStandardWorkflowAutomatedTriggerViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-run-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-run-views.util.ts
index 6a225cfe62a..b086c4c1f21 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-run-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-run-views.util.ts
@@ -34,7 +34,7 @@ export const computeStandardWorkflowRunViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-version-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-version-views.util.ts
index eb14cfd8324..57302d286a9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-version-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workflow-version-views.util.ts
@@ -34,7 +34,7 @@ export const computeStandardWorkflowVersionViews = (
type: ViewType.FIELDS_WIDGET,
key: null,
position: 0,
- icon: 'IconList',
+ icon: 'IconListDetails',
},
}),
};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workspace-member-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workspace-member-views.util.ts
index feb75df6c9f..e79de0bfc64 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workspace-member-views.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-workspace-member-views.util.ts
@@ -21,7 +21,7 @@ export const computeStandardWorkspaceMemberViews = (
type: ViewType.TABLE,
key: ViewKey.INDEX,
position: 0,
- icon: 'IconList',
+ icon: 'IconTable',
},
}),
};
diff --git a/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-version-step/workflow-version-step-operations.workspace-service.ts b/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-version-step/workflow-version-step-operations.workspace-service.ts
index 236ac48b361..8b7840c8b72 100644
--- a/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-version-step/workflow-version-step-operations.workspace-service.ts
+++ b/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-version-step/workflow-version-step-operations.workspace-service.ts
@@ -582,7 +582,7 @@ export class WorkflowVersionStepOperationsWorkspaceService {
const newAgent = await this.agentService.createOneAgent(
{
label: 'Workflow Agent ' + baseStep.id.substring(0, 4),
- icon: 'IconRobot',
+ icon: 'IconLego',
description: '',
prompt:
'You are a helpful AI assistant. Complete the task based on the workflow context.',
diff --git a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/successful-find-view.integration-spec.ts.snap b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/successful-find-view.integration-spec.ts.snap
index df2b007b228..83a211f840c 100644
--- a/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/successful-find-view.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/graphql/suites/view/__snapshots__/successful-find-view.integration-spec.ts.snap
@@ -5,7 +5,7 @@ exports[`successful find view with all sub-relations (e2e) Company View Structur
"anyFieldFilterValue": null,
"createdAt": Any<String>,
"deletedAt": null,
- "icon": "IconList",
+ "icon": "IconTable",
"id": Any<String>,
"isCompact": false,
"key": "INDEX",
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
index edc95bab372..f8177b029dd 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
@@ -474,7 +474,7 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"defaultValue": null,
"description": "Tickets tied to the Attachment",
- "icon": "IconFileImport",
+ "icon": "IconPaperclip",
"isActive": true,
"isLabelSyncedWithName": false,
"isNullable": true,
@@ -818,7 +818,7 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"createdByUserWorkspaceId": null,
"deletedAt": null,
- "icon": "IconList",
+ "icon": "IconTable",
"id": Any<String>,
"isActive": true,
"isCompact": false,
@@ -1248,7 +1248,7 @@ exports[`syncApplication should delete old field and create equivalent one when
"applicationUniversalIdentifier": Any<String>,
"createdAt": Any<String>,
"deletedAt": null,
- "icon": "IconPaperclip",
+ "icon": "IconFiles",
"isActive": true,
"isSystemSideEffect": true,
"layoutMode": "VERTICAL_LIST",
@@ -1944,7 +1944,7 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"defaultValue": null,
"description": "Tickets tied to the Attachment",
- "icon": "IconFileImport",
+ "icon": "IconPaperclip",
"isActive": true,
"isLabelSyncedWithName": false,
"isNullable": true,
@@ -2288,7 +2288,7 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"createdByUserWorkspaceId": null,
"deletedAt": null,
- "icon": "IconList",
+ "icon": "IconTable",
"id": Any<String>,
"isActive": true,
"isCompact": false,
@@ -2738,7 +2738,7 @@ This is a test skill.",
"applicationUniversalIdentifier": Any<String>,
"createdAt": Any<String>,
"deletedAt": null,
- "icon": "IconPaperclip",
+ "icon": "IconFiles",
"isActive": true,
"isSystemSideEffect": true,
"layoutMode": "VERTICAL_LIST",
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-cross-app-view-field.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-cross-app-view-field.integration-spec.ts
index 5d0ad5db54f..25d1268de18 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-cross-app-view-field.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-cross-app-view-field.integration-spec.ts
@@ -71,7 +71,7 @@ describe('Sync application should succeed when extending another app view with a
name: APP_A_VIEW_NAME,
objectUniversalIdentifier: PERSON_OBJECT_UNIVERSAL_IDENTIFIER,
type: ViewType.TABLE,
- icon: 'IconList',
+ icon: 'IconTable',
},
],
},
diff --git a/packages/twenty-shared/src/constants/ViewTypeDefaultIcons.ts b/packages/twenty-shared/src/constants/ViewTypeDefaultIcons.ts
new file mode 100644
index 00000000000..2f1f66e26a4
--- /dev/null
+++ b/packages/twenty-shared/src/constants/ViewTypeDefaultIcons.ts
@@ -0,0 +1,15 @@
+import { ViewType } from '@/types';
+
+type ViewTypeValue = `${ViewType}`;
+
+export const VIEW_TYPE_DEFAULT_ICONS = {
+ [ViewType.TABLE]: 'IconTable',
+ [ViewType.KANBAN]: 'IconLayoutKanban',
+ [ViewType.CALENDAR]: 'IconCalendar',
+ [ViewType.LIST]: 'IconList',
+ [ViewType.FIELDS_WIDGET]: 'IconListDetails',
+ [ViewType.TABLE_WIDGET]: 'IconTable',
+ [ViewType.KANBAN_WIDGET]: 'IconLayoutKanban',
+ [ViewType.LIST_WIDGET]: 'IconList',
+ [ViewType.CALENDAR_WIDGET]: 'IconCalendar',
+} as const satisfies Record<ViewTypeValue, string>;
diff --git a/packages/twenty-shared/src/constants/index.ts b/packages/twenty-shared/src/constants/index.ts
index 79b0e19a6b3..559116f4e5b 100644
--- a/packages/twenty-shared/src/constants/index.ts
+++ b/packages/twenty-shared/src/constants/index.ts
@@ -67,3 +67,4 @@ export { TWENTY_COMPANIES_BASE_URL } from './TwentyCompaniesBaseUrl';
export { TWENTY_ICONS_BASE_URL } from './TwentyIconsBaseUrl';
export { UI_SCALE_VALUES } from './UiScaleValues';
export { VIEW_GROUP_VISIBLE_OPTIONS_MAX } from './ViewGroupVisibleOptionsMax';
+export { VIEW_TYPE_DEFAULT_ICONS } from './ViewTypeDefaultIcons';
diff --git a/packages/twenty-ui/jest.config.mjs b/packages/twenty-ui/jest.config.mjs
index 4479a933461..2955b0d6f44 100644
--- a/packages/twenty-ui/jest.config.mjs
+++ b/packages/twenty-ui/jest.config.mjs
@@ -27,6 +27,7 @@ const jestConfig = {
],
},
moduleNameMapper: {
+ '^@assets/(.*)\\.svg\\?react$': '<rootDir>/__mocks__/imageMockUi.js',
'\\.(jpg|jpeg|png|gif|webp|svg|svg)$': '<rootDir>/__mocks__/imageMockUi.js',
'\\.(scss|css)$': '<rootDir>/__mocks__/styleMock.js',
...pathsToModuleNameMapper(tsConfig.compilerOptions.paths, {
diff --git a/packages/twenty-ui/project.json b/packages/twenty-ui/project.json
index eeee3375c53..b28f1d6b9d9 100644
--- a/packages/twenty-ui/project.json
+++ b/packages/twenty-ui/project.json
@@ -18,6 +18,32 @@
],
"options": { "command": "tsx {projectRoot}/scripts/generateBarrels.ts" }
},
+ "generateIconDictionary": {
+ "executor": "nx:run-commands",
+ "cache": true,
+ "inputs": [
+ "{projectRoot}/scripts/generateIconDictionary.ts",
+ "{projectRoot}/src/icon/constants/TwentyIconDictionary.ts",
+ "{projectRoot}/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts"
+ ],
+ "outputs": ["{projectRoot}/src/icon/icon-dictionary.md"],
+ "options": {
+ "command": "tsx {projectRoot}/scripts/generateIconDictionary.ts"
+ }
+ },
+ "checkIconDictionary": {
+ "executor": "nx:run-commands",
+ "cache": true,
+ "inputs": [
+ "{projectRoot}/scripts/generateIconDictionary.ts",
+ "{projectRoot}/src/icon/constants/TwentyIconDictionary.ts",
+ "{projectRoot}/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts",
+ "{projectRoot}/src/icon/icon-dictionary.md"
+ ],
+ "options": {
+ "command": "tsx {projectRoot}/scripts/generateIconDictionary.ts --check"
+ }
+ },
"build:individual": {
"executor": "nx:run-commands",
"cache": true,
diff --git a/packages/twenty-ui/scripts/generateIconDictionary.ts b/packages/twenty-ui/scripts/generateIconDictionary.ts
new file mode 100644
index 00000000000..02145e90343
--- /dev/null
+++ b/packages/twenty-ui/scripts/generateIconDictionary.ts
@@ -0,0 +1,24 @@
+import { existsSync, readFileSync, writeFileSync } from 'node:fs';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+import { generateTwentyIconDictionaryMarkdown } from '../src/icon/internal/generateTwentyIconDictionaryMarkdown';
+
+const scriptDirectory = dirname(fileURLToPath(import.meta.url));
+const outputPath = resolve(scriptDirectory, '../src/icon/icon-dictionary.md');
+const generatedMarkdown = generateTwentyIconDictionaryMarkdown();
+const isCheckOnly = process.argv.includes('--check');
+
+if (isCheckOnly) {
+ const currentMarkdown = existsSync(outputPath)
+ ? readFileSync(outputPath, 'utf8')
+ : undefined;
+
+ if (currentMarkdown !== generatedMarkdown) {
+ throw new Error(
+ 'The icon dictionary Markdown is stale. Run `npx nx generateIconDictionary twenty-ui`.',
+ );
+ }
+} else {
+ writeFileSync(outputPath, generatedMarkdown, 'utf8');
+}
diff --git a/packages/twenty-ui/src/icon/__tests__/AllIcons.test.ts b/packages/twenty-ui/src/icon/__tests__/AllIcons.test.ts
new file mode 100644
index 00000000000..fb3ac1c8835
--- /dev/null
+++ b/packages/twenty-ui/src/icon/__tests__/AllIcons.test.ts
@@ -0,0 +1,16 @@
+import { ALL_ICONS } from '@ui/icon/providers/internal/AllIcons';
+
+const DYNAMIC_ICON_NAMES = [
+ 'IconCopyPlus',
+ 'IconNumber95Small',
+ 'IconTimezone',
+] as const;
+
+describe('ALL_ICONS', () => {
+ it.each(DYNAMIC_ICON_NAMES)(
+ 'makes %s available to string-based icon resolution',
+ (iconName) => {
+ expect(ALL_ICONS[iconName]).toBeDefined();
+ },
+ );
+});
diff --git a/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts b/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts
new file mode 100644
index 00000000000..669eebd04ed
--- /dev/null
+++ b/packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts
@@ -0,0 +1,60 @@
+import { readFileSync } from 'node:fs';
+import { resolve } from 'node:path';
+
+import { TWENTY_ICON_DICTIONARY } from '@ui/icon/constants/TwentyIconDictionary';
+import {
+ escapeMarkdownTableCell,
+ generateTwentyIconDictionaryMarkdown,
+} from '@ui/icon/internal/generateTwentyIconDictionaryMarkdown';
+
+describe('TwentyIconDictionary', () => {
+ it('escapes Markdown table delimiters without losing backslashes', () => {
+ expect(
+ escapeMarkdownTableCell('Backslash \\ and pipe | and\nnewline'),
+ ).toBe('Backslash \\\\ and pipe \\| and newline');
+ });
+
+ it('has a unique key for every concept', () => {
+ const keys = TWENTY_ICON_DICTIONARY.map((entry) => entry.key);
+
+ expect(new Set(keys).size).toBe(keys.length);
+ });
+
+ it('references icons exported by twenty-ui/icon', () => {
+ const publicIconBarrel = readFileSync(
+ resolve(__dirname, '../index.ts'),
+ 'utf8',
+ );
+
+ for (const entry of TWENTY_ICON_DICTIONARY) {
+ expect(publicIconBarrel).toMatch(new RegExp(`\\b${entry.iconName}\\b`));
+ }
+ });
+
+ it('references icons available to string-based icon resolution', () => {
+ const dynamicIconCatalog = readFileSync(
+ resolve(__dirname, '../providers/internal/AllIcons.ts'),
+ 'utf8',
+ );
+
+ for (const entry of TWENTY_ICON_DICTIONARY) {
+ expect(dynamicIconCatalog).toMatch(new RegExp(`\\b${entry.iconName}\\b`));
+ }
+ });
+
+ it('provides semantic guidance and search keywords for every concept', () => {
+ for (const entry of TWENTY_ICON_DICTIONARY) {
+ expect(entry.useWhen).not.toHaveLength(0);
+ expect(entry.avoidWhen).not.toHaveLength(0);
+ expect(entry.keywords.length).toBeGreaterThan(0);
+ }
+ });
+
+ it('keeps the generated Markdown synchronized with the manifest', () => {
+ const markdownPath = resolve(__dirname, '../icon-dictionary.md');
+
+ expect(readFileSync(markdownPath, 'utf8')).toBe(
+ generateTwentyIconDictionaryMarkdown(),
+ );
+ });
+});
diff --git a/packages/twenty-ui/src/icon/components/TablerIcons.ts b/packages/twenty-ui/src/icon/components/TablerIcons.ts
index c4e947c7d72..cdb30ffe601 100644
--- a/packages/twenty-ui/src/icon/components/TablerIcons.ts
+++ b/packages/twenty-ui/src/icon/components/TablerIcons.ts
@@ -53,6 +53,7 @@ export {
IconBrandLinkedin,
IconBrandNpm,
IconBrandOpenai,
+ IconBrandTypescript,
IconBrandWhatsapp,
IconBrandX,
IconBriefcase,
@@ -102,6 +103,7 @@ export {
IconColumnInsertRight,
IconColumns,
IconCommand,
+ IconCompass,
IconMessageCircle,
IconMessageCircle as IconComment,
IconCopy,
@@ -184,6 +186,7 @@ export {
IconFileImport,
IconFileInfo,
IconFilePencil,
+ IconFiles,
IconFileText,
IconFileUpload,
IconFileZip,
@@ -249,9 +252,11 @@ export {
IconLayout,
IconLayoutDashboard,
IconLayoutGrid,
+ IconLayoutGridAdd,
IconLayoutKanban,
IconLayoutList,
IconLayoutNavbar,
+ IconLayoutSidebar,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarLeftExpand,
IconLayoutSidebarRight,
@@ -303,6 +308,7 @@ export {
IconPencil,
IconPencilOff,
IconPercentage,
+ IconPerspective,
IconPhone,
IconPhoto,
IconPhotoUp,
@@ -356,6 +362,7 @@ export {
IconSettingsBolt,
IconShare,
IconShield,
+ IconShoppingBag,
IconSitemap,
IconSlash,
IconSortAscending,
diff --git a/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss
new file mode 100644
index 00000000000..9152d02fb07
--- /dev/null
+++ b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss
@@ -0,0 +1,46 @@
+.dictionary {
+ background: var(--t-background-secondary);
+ border: 1px solid var(--t-border-color-medium);
+ border-radius: var(--t-border-radius-sm);
+ box-sizing: border-box;
+ color: var(--t-font-color-primary);
+ font-family: var(--t-font-family);
+ overflow: hidden;
+ width: 400px;
+}
+
+.category {
+ margin: 0;
+}
+
+.categoryTitle {
+ align-items: center;
+ background: var(--t-background-transparent-lighter);
+ border-bottom: 1px solid var(--t-border-color-light);
+ box-sizing: border-box;
+ color: var(--t-font-color-secondary);
+ display: flex;
+ font-size: 11px;
+ font-weight: var(--t-font-weight-semi-bold);
+ height: 24px;
+ line-height: normal;
+ margin: 0;
+ padding: var(--t-spacing-2);
+}
+
+.item {
+ align-items: center;
+ border-bottom: 1px solid var(--t-border-color-light);
+ box-sizing: border-box;
+ display: flex;
+ font-size: 13px;
+ font-weight: var(--t-font-weight-medium);
+ height: 30px;
+ justify-content: space-between;
+ line-height: 1.4;
+ padding: var(--t-spacing-2);
+}
+
+.category:last-child .item:last-child {
+ border-bottom: 0;
+}
diff --git a/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss.d.ts b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss.d.ts
new file mode 100644
index 00000000000..b7c6fc37835
--- /dev/null
+++ b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.module.scss.d.ts
@@ -0,0 +1,7 @@
+declare const classNames: {
+ readonly category: 'category';
+ readonly categoryTitle: 'categoryTitle';
+ readonly dictionary: 'dictionary';
+ readonly item: 'item';
+};
+export default classNames;
diff --git a/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.tsx b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.tsx
new file mode 100644
index 00000000000..bed9afde7a8
--- /dev/null
+++ b/packages/twenty-ui/src/icon/components/__stories__/IconDictionary.stories.tsx
@@ -0,0 +1,58 @@
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+
+import * as publicIconExports from '@ui/icon';
+import {
+ TWENTY_ICON_DICTIONARY,
+ TWENTY_ICON_DICTIONARY_CATEGORIES,
+} from '@ui/icon/constants/TwentyIconDictionary';
+import { type IconComponent } from '@ui/icon/types/IconComponent';
+import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator';
+
+import styles from './IconDictionary.stories.module.scss';
+
+const getIconComponent = (iconName: string) =>
+ publicIconExports[
+ iconName as keyof typeof publicIconExports
+ ] as IconComponent;
+
+const IconDictionary = () => (
+ <div className={styles.dictionary}>
+ {TWENTY_ICON_DICTIONARY_CATEGORIES.map((category) => (
+ <section className={styles.category} key={category.key}>
+ <h2 className={styles.categoryTitle}>{category.label}</h2>
+ {TWENTY_ICON_DICTIONARY.filter(
+ (entry) => entry.category === category.key,
+ ).map((entry) => {
+ const Icon = getIconComponent(entry.iconName);
+
+ return (
+ <div className={styles.item} key={entry.key}>
+ <span>{entry.label}</span>
+ <Icon
+ aria-hidden
+ color="var(--t-font-color-light)"
+ size={14}
+ stroke={1.6}
+ />
+ </div>
+ );
+ })}
+ </section>
+ ))}
+ </div>
+);
+
+const meta: Meta<typeof IconDictionary> = {
+ title: 'UI/Icon/Icon Dictionary',
+ component: IconDictionary,
+ decorators: [ComponentDecorator],
+ parameters: {
+ container: { width: 432 },
+ },
+};
+
+export default meta;
+
+type Story = StoryObj<typeof IconDictionary>;
+
+export const CanonicalMappings: Story = {};
diff --git a/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts b/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts
new file mode 100644
index 00000000000..052f8048c16
--- /dev/null
+++ b/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts
@@ -0,0 +1,642 @@
+export const TWENTY_ICON_DICTIONARY_FIGMA_URL =
+ 'https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=43908-39914';
+
+export const TWENTY_ICON_DICTIONARY_CATEGORIES = [
+ { key: 'data-model', label: 'Data Model' },
+ { key: 'crm', label: 'CRM' },
+ { key: 'views', label: 'Views' },
+ { key: 'layouts', label: 'Layouts' },
+ { key: 'workspace-and-access', label: 'Workspace and Access' },
+ { key: 'logic', label: 'Logic' },
+ { key: 'ai', label: 'AI' },
+ { key: 'platform', label: 'Platform' },
+ { key: 'general', label: 'General' },
+] as const;
+
+export type TwentyIconDictionaryCategory =
+ (typeof TWENTY_ICON_DICTIONARY_CATEGORIES)[number]['key'];
+
+export type TwentyIconDictionaryEntry = {
+ key: string;
+ label: string;
+ category: TwentyIconDictionaryCategory;
+ iconName: `Icon${string}`;
+ tablerName: string;
+ keywords: readonly [string, ...string[]];
+ useWhen: string;
+ avoidWhen: string;
+};
+
+export const TWENTY_ICON_DICTIONARY = [
+ {
+ key: 'data-model',
+ label: 'Data Model',
+ category: 'data-model',
+ iconName: 'IconHierarchy',
+ tablerName: 'hierarchy',
+ keywords: ['schema', 'data model', 'objects and fields'],
+ useWhen: 'Representing the data model or schema as a whole.',
+ avoidWhen: 'Representing one object, one field, or an organization chart.',
+ },
+ {
+ key: 'object',
+ label: 'Object',
+ category: 'data-model',
+ iconName: 'IconBox',
+ tablerName: 'box',
+ keywords: ['object metadata', 'entity', 'data object'],
+ useWhen: 'Representing an individual data-model object.',
+ avoidWhen: 'Representing a record instance or the complete data model.',
+ },
+ {
+ key: 'field',
+ label: 'Field',
+ category: 'data-model',
+ iconName: 'IconListDetails',
+ tablerName: 'list-details',
+ keywords: ['field metadata', 'property', 'attribute', 'column'],
+ useWhen: 'Representing a field or field metadata.',
+ avoidWhen: 'Representing a list of records or a generic menu.',
+ },
+ {
+ key: 'record',
+ label: 'Record',
+ category: 'data-model',
+ iconName: 'IconAddressBook',
+ tablerName: 'address-book',
+ keywords: ['record', 'record instance', 'CRM entry'],
+ useWhen: 'Representing a record or record-oriented content.',
+ avoidWhen: 'Representing the object definition that records belong to.',
+ },
+ {
+ key: 'person',
+ label: 'Person',
+ category: 'crm',
+ iconName: 'IconUser',
+ tablerName: 'user',
+ keywords: ['person', 'contact', 'individual', 'people record'],
+ useWhen: 'Representing a person or individual CRM contact.',
+ avoidWhen: 'Representing a workspace member, team, or user action.',
+ },
+ {
+ key: 'company',
+ label: 'Company',
+ category: 'crm',
+ iconName: 'IconBuildingSkyscraper',
+ tablerName: 'building-skyscraper',
+ keywords: ['company', 'account', 'organization', 'business'],
+ useWhen: 'Representing a company or organization CRM record.',
+ avoidWhen: 'Representing the current workspace or a generic office.',
+ },
+ {
+ key: 'opportunity',
+ label: 'Opportunity',
+ category: 'crm',
+ iconName: 'IconTargetArrow',
+ tablerName: 'target-arrow',
+ keywords: ['opportunity', 'deal', 'pipeline', 'sales'],
+ useWhen: 'Representing a sales opportunity or deal.',
+ avoidWhen: 'Representing a generic goal, target, or navigation action.',
+ },
+ {
+ key: 'task',
+ label: 'Task',
+ category: 'crm',
+ iconName: 'IconCheckbox',
+ tablerName: 'checkbox',
+ keywords: ['task', 'to-do', 'action item', 'follow-up'],
+ useWhen: 'Representing a task, to-do, or follow-up record.',
+ avoidWhen: 'Representing a boolean field or completed status alone.',
+ },
+ {
+ key: 'note',
+ label: 'Note',
+ category: 'crm',
+ iconName: 'IconNotes',
+ tablerName: 'notes',
+ keywords: ['note', 'memo', 'record note', 'written note'],
+ useWhen: 'Representing a note attached to CRM content.',
+ avoidWhen: 'Representing documentation, comments, or chat messages.',
+ },
+ {
+ key: 'view',
+ label: 'View',
+ category: 'views',
+ iconName: 'IconTable',
+ tablerName: 'table',
+ keywords: ['view', 'saved view', 'record view'],
+ useWhen: 'Representing a view without a more specific view type.',
+ avoidWhen: 'Representing dashboards, widgets, or page layouts.',
+ },
+ {
+ key: 'table-view',
+ label: 'Table view',
+ category: 'views',
+ iconName: 'IconTable',
+ tablerName: 'table',
+ keywords: ['table view', 'grid view', 'rows and columns'],
+ useWhen: 'Representing the table or grid view type.',
+ avoidWhen: 'Representing a Kanban view or a generic data-model field.',
+ },
+ {
+ key: 'kanban-view',
+ label: 'Kanban view',
+ category: 'views',
+ iconName: 'IconLayoutKanban',
+ tablerName: 'layout-kanban',
+ keywords: ['kanban', 'board view', 'columns'],
+ useWhen: 'Representing the Kanban or board view type.',
+ avoidWhen: 'Representing a dashboard or a generic page layout.',
+ },
+ {
+ key: 'group-by',
+ label: 'Group By',
+ category: 'views',
+ iconName: 'IconLayoutList',
+ tablerName: 'layout-list',
+ keywords: ['group by', 'grouping', 'grouped records'],
+ useWhen: 'Representing grouping records by a field.',
+ avoidWhen: 'Representing sorting or a generic list layout.',
+ },
+ {
+ key: 'filter',
+ label: 'Filter',
+ category: 'views',
+ iconName: 'IconFilter',
+ tablerName: 'filter',
+ keywords: ['filter', 'criteria', 'conditions'],
+ useWhen: 'Representing filters or filter criteria.',
+ avoidWhen: 'Representing search, sorting, or workflow conditions.',
+ },
+ {
+ key: 'sort',
+ label: 'Sort',
+ category: 'views',
+ iconName: 'IconArrowsSort',
+ tablerName: 'arrows-sort',
+ keywords: ['sort', 'ordering', 'ascending and descending'],
+ useWhen: 'Representing sorting without a fixed direction.',
+ avoidWhen: 'Representing filtering or a known ascending-only direction.',
+ },
+ {
+ key: 'layout',
+ label: 'Layout',
+ category: 'layouts',
+ iconName: 'IconAppWindow',
+ tablerName: 'app-window',
+ keywords: ['layout', 'page structure', 'arrangement'],
+ useWhen: 'Representing layouts as a general concept.',
+ avoidWhen: 'Representing a specific layout page, widget, or dashboard.',
+ },
+ {
+ key: 'layout-page',
+ label: 'Layout page',
+ category: 'layouts',
+ iconName: 'IconPerspective',
+ tablerName: 'perspective',
+ keywords: ['layout page', 'page canvas', 'page configuration'],
+ useWhen: 'Representing a configurable page inside a layout.',
+ avoidWhen: 'Representing the broader layout system or a record page.',
+ },
+ {
+ key: 'widget',
+ label: 'Widget',
+ category: 'layouts',
+ iconName: 'IconLayoutGridAdd',
+ tablerName: 'layout-grid-add',
+ keywords: ['widget', 'add widget', 'dashboard block'],
+ useWhen: 'Representing a widget or the act of adding a widget.',
+ avoidWhen: 'Representing a complete dashboard or generic application.',
+ },
+ {
+ key: 'record-page',
+ label: 'Record Page',
+ category: 'layouts',
+ iconName: 'IconAddressBook',
+ tablerName: 'address-book',
+ keywords: ['record page', 'record layout', 'record detail'],
+ useWhen: 'Representing a page dedicated to one record.',
+ avoidWhen: 'Representing a generic layout page or object definition.',
+ },
+ {
+ key: 'side-panel',
+ label: 'Side Panel',
+ category: 'layouts',
+ iconName: 'IconLayoutSidebarRight',
+ tablerName: 'layout-sidebar-right',
+ keywords: ['side panel', 'right panel', 'context panel', 'drawer'],
+ useWhen:
+ 'Representing a side panel that shows contextual content alongside a page.',
+ avoidWhen:
+ 'Representing the main navigation sidebar, a modal, or an open or close panel action.',
+ },
+ {
+ key: 'command-menu-item',
+ label: 'Command Menu Item',
+ category: 'layouts',
+ iconName: 'IconCommand',
+ tablerName: 'command',
+ keywords: ['command menu', 'command item', 'keyboard command'],
+ useWhen: 'Representing an item or action in the command menu.',
+ avoidWhen: 'Representing a navigation item or keyboard shortcut alone.',
+ },
+ {
+ key: 'navigation-menu-item',
+ label: 'Navigation menu item',
+ category: 'layouts',
+ iconName: 'IconCompass',
+ tablerName: 'compass',
+ keywords: ['navigation item', 'menu destination', 'navigation menu'],
+ useWhen: 'Representing a destination in a navigation menu.',
+ avoidWhen: 'Representing the navigation sidebar container itself.',
+ },
+ {
+ key: 'dashboard',
+ label: 'Dashboard',
+ category: 'layouts',
+ iconName: 'IconLayoutDashboard',
+ tablerName: 'layout-dashboard',
+ keywords: ['dashboard', 'analytics page', 'dashboard layout'],
+ useWhen: 'Representing a dashboard or dashboard page.',
+ avoidWhen: 'Representing an individual widget or a Kanban board.',
+ },
+ {
+ key: 'workspace',
+ label: 'Workspace',
+ category: 'workspace-and-access',
+ iconName: 'IconSettings',
+ tablerName: 'settings',
+ keywords: ['workspace', 'tenant', 'workspace settings', 'organization'],
+ useWhen: 'Representing the current workspace or its configuration.',
+ avoidWhen: 'Representing a generic settings action or a CRM company.',
+ },
+ {
+ key: 'member-team',
+ label: 'Member / Team',
+ category: 'workspace-and-access',
+ iconName: 'IconUsers',
+ tablerName: 'users',
+ keywords: ['member', 'team', 'workspace user', 'assignee'],
+ useWhen: 'Representing workspace members, teams, or assignments.',
+ avoidWhen: 'Representing an individual CRM person or an invite action.',
+ },
+ {
+ key: 'role',
+ label: 'Role',
+ category: 'workspace-and-access',
+ iconName: 'IconLock',
+ tablerName: 'lock',
+ keywords: ['role', 'permissions', 'access role', 'authorization'],
+ useWhen: 'Representing a role or its permission configuration.',
+ avoidWhen:
+ 'Representing a locked state, security alert, or authentication.',
+ },
+ {
+ key: 'permissions',
+ label: 'Permissions',
+ category: 'workspace-and-access',
+ iconName: 'IconLock',
+ tablerName: 'lock',
+ keywords: ['permissions', 'access control', 'authorization', 'privileges'],
+ useWhen: 'Representing permissions or permission configuration.',
+ avoidWhen: 'Representing a role, locked state, or security credentials.',
+ },
+ {
+ key: 'billing',
+ label: 'Billing',
+ category: 'workspace-and-access',
+ iconName: 'IconCreditCard',
+ tablerName: 'credit-card',
+ keywords: ['billing', 'subscription', 'payment method', 'invoice'],
+ useWhen: 'Representing billing, subscriptions, or payment settings.',
+ avoidWhen: 'Representing a currency field, price, or monetary amount.',
+ },
+ {
+ key: 'security',
+ label: 'Security',
+ category: 'workspace-and-access',
+ iconName: 'IconKey',
+ tablerName: 'key',
+ keywords: ['security', 'credentials', 'access', 'secrets'],
+ useWhen: 'Representing security settings, credentials, or access controls.',
+ avoidWhen:
+ 'Representing a role, one permission, or an authentication state.',
+ },
+ {
+ key: 'audit-logs',
+ label: 'Audit Logs',
+ category: 'workspace-and-access',
+ iconName: 'IconHistory',
+ tablerName: 'history',
+ keywords: ['audit logs', 'event logs', 'history', 'activity history'],
+ useWhen: 'Representing audit, event, or workspace history logs.',
+ avoidWhen: 'Representing runtime output or execution logs.',
+ },
+ {
+ key: 'logic',
+ label: 'Logic',
+ category: 'logic',
+ iconName: 'IconSettingsAutomation',
+ tablerName: 'settings-automation',
+ keywords: ['logic', 'automation', 'business logic'],
+ useWhen: 'Representing automation logic as a general concept.',
+ avoidWhen: 'Representing a tool, skill, or serverless function.',
+ },
+ {
+ key: 'workflows',
+ label: 'Workflows',
+ category: 'logic',
+ iconName: 'IconSettingsAutomation',
+ tablerName: 'settings-automation',
+ keywords: ['workflow', 'automation flow', 'workflow builder'],
+ useWhen: 'Representing workflows or the workflow system.',
+ avoidWhen: 'Representing one workflow action or an AI tool.',
+ },
+ {
+ key: 'tools',
+ label: 'Tools (AI + Workflows)',
+ category: 'logic',
+ iconName: 'IconTool',
+ tablerName: 'tool',
+ keywords: ['tool', 'AI tool', 'workflow tool', 'callable capability'],
+ useWhen: 'Representing tools available to AI agents or workflows.',
+ avoidWhen: 'Representing application settings or developer skills.',
+ },
+ {
+ key: 'skill',
+ label: 'Skill',
+ category: 'logic',
+ iconName: 'IconBook',
+ tablerName: 'book',
+ keywords: ['skill', 'agent instructions', 'knowledge guide'],
+ useWhen: 'Representing an AI skill or reusable instruction set.',
+ avoidWhen: 'Representing documentation in general or an executable tool.',
+ },
+ {
+ key: 'serverless-functions',
+ label: 'Serverless functions',
+ category: 'logic',
+ iconName: 'IconBrandTypescript',
+ tablerName: 'brand-typescript',
+ keywords: ['serverless function', 'logic function', 'TypeScript function'],
+ useWhen: 'Representing Twenty serverless or logic functions.',
+ avoidWhen: 'Representing generic source code or non-TypeScript tools.',
+ },
+ {
+ key: 'execution-logs',
+ label: 'Execution Logs',
+ category: 'logic',
+ iconName: 'IconTerminal',
+ tablerName: 'terminal',
+ keywords: ['execution logs', 'runtime logs', 'workflow logs', 'agent logs'],
+ useWhen: 'Representing runtime output from workflows, agents, or code.',
+ avoidWhen: 'Representing audit trails, event history, or source code.',
+ },
+ {
+ key: 'ai-model',
+ label: 'AI Model',
+ category: 'ai',
+ iconName: 'IconCpu',
+ tablerName: 'cpu',
+ keywords: ['AI model', 'language model', 'LLM', 'model selection'],
+ useWhen: 'Representing an AI model or model configuration.',
+ avoidWhen:
+ 'Representing reasoning state, an AI agent, or computer hardware.',
+ },
+ {
+ key: 'ai',
+ label: 'AI / Ask AI',
+ category: 'ai',
+ iconName: 'IconSparkles',
+ tablerName: 'sparkles',
+ keywords: ['AI', 'Ask AI', 'assistant', 'generative AI'],
+ useWhen: 'Representing generic AI features or the Ask AI experience.',
+ avoidWhen: 'Representing an AI model, agent, prompt, or MCP connection.',
+ },
+ {
+ key: 'prompt',
+ label: 'Prompt',
+ category: 'ai',
+ iconName: 'IconPrompt',
+ tablerName: 'prompt',
+ keywords: [
+ 'prompt',
+ 'system prompt',
+ 'instructions',
+ 'prompt configuration',
+ ],
+ useWhen: 'Representing AI prompts or prompt configuration.',
+ avoidWhen: 'Representing a command menu, terminal, or AI conversation.',
+ },
+ {
+ key: 'conversation-chat',
+ label: 'Conversation / Chat',
+ category: 'ai',
+ iconName: 'IconMessage',
+ tablerName: 'message',
+ keywords: ['conversation', 'chat', 'thread', 'AI message'],
+ useWhen: 'Representing an AI conversation or chat thread.',
+ avoidWhen:
+ 'Representing email, notes, comments, or communication settings.',
+ },
+ {
+ key: 'api',
+ label: 'API',
+ category: 'platform',
+ iconName: 'IconApi',
+ tablerName: 'api',
+ keywords: ['API', 'REST', 'GraphQL', 'API key'],
+ useWhen: 'Representing APIs, API access, or API configuration.',
+ avoidWhen: 'Representing MCP, webhooks, or external-service integrations.',
+ },
+ {
+ key: 'mcp-and-apis',
+ label: 'MCP & APIs',
+ category: 'platform',
+ iconName: 'IconPlug',
+ tablerName: 'plug',
+ keywords: [
+ 'MCP and APIs',
+ 'developer connections',
+ 'API keys and webhooks',
+ 'platform connections',
+ ],
+ useWhen:
+ 'Representing the combined MCP, API keys, and webhooks settings area.',
+ avoidWhen:
+ 'Representing an API, MCP server, webhook, or integration individually.',
+ },
+ {
+ key: 'api-key',
+ label: 'API Key',
+ category: 'platform',
+ iconName: 'IconKey',
+ tablerName: 'key',
+ keywords: ['API key', 'API credential', 'access token', 'secret key'],
+ useWhen: 'Representing an API key or API credential.',
+ avoidWhen:
+ 'Representing APIs generally, security settings, or permissions.',
+ },
+ {
+ key: 'webhook',
+ label: 'Webhook',
+ category: 'platform',
+ iconName: 'IconWebhook',
+ tablerName: 'webhook',
+ keywords: ['webhook', 'event callback', 'HTTP event', 'webhook endpoint'],
+ useWhen: 'Representing webhooks, webhook endpoints, or webhook events.',
+ avoidWhen: 'Representing a generic API, integration, or workflow action.',
+ },
+ {
+ key: 'integration-connection',
+ label: 'Integration / Connection',
+ category: 'platform',
+ iconName: 'IconPlug',
+ tablerName: 'plug',
+ keywords: ['integration', 'connection', 'external service', 'provider'],
+ useWhen:
+ 'Representing an integration or connection to an external service.',
+ avoidWhen: 'Representing an app, API, MCP, or connected email account.',
+ },
+ {
+ key: 'connected-account',
+ label: 'Connected Account',
+ category: 'platform',
+ iconName: 'IconAt',
+ tablerName: 'at',
+ keywords: ['connected account', 'email sync', 'calendar sync', 'mailbox'],
+ useWhen: 'Representing a connected email or calendar account.',
+ avoidWhen:
+ 'Representing a generic integration, user account, or email field.',
+ },
+ {
+ key: 'marketplace',
+ label: 'Marketplace',
+ category: 'platform',
+ iconName: 'IconShoppingBag',
+ tablerName: 'shopping-bag',
+ keywords: ['marketplace', 'app catalog', 'browse apps', 'marketplace apps'],
+ useWhen: 'Representing the app marketplace or marketplace catalog.',
+ avoidWhen: 'Representing an installed app or the action of installing one.',
+ },
+ {
+ key: 'application-version',
+ label: 'Application Version',
+ category: 'platform',
+ iconName: 'IconVersions',
+ tablerName: 'versions',
+ keywords: [
+ 'application version',
+ 'app version',
+ 'latest version',
+ 'version',
+ ],
+ useWhen: 'Representing application version information.',
+ avoidWhen:
+ 'Representing a Git branch, deployment status, or update action.',
+ },
+ {
+ key: 'notification',
+ label: 'Notification',
+ category: 'general',
+ iconName: 'IconBell',
+ tablerName: 'bell',
+ keywords: ['notification', 'notice', 'notification settings', 'alert'],
+ useWhen: 'Representing notifications or notification settings.',
+ avoidWhen: 'Representing an error severity, favorite, or decorative star.',
+ },
+ {
+ key: 'files',
+ label: 'Files',
+ category: 'general',
+ iconName: 'IconFiles',
+ tablerName: 'files',
+ keywords: ['files', 'file collection', 'documents', 'file section'],
+ useWhen: 'Representing a collection of files or a files section.',
+ avoidWhen: 'Representing one file, an attachment, or an upload action.',
+ },
+ {
+ key: 'attachments',
+ label: 'Attachments',
+ category: 'general',
+ iconName: 'IconPaperclip',
+ tablerName: 'paperclip',
+ keywords: [
+ 'attachment',
+ 'attachments',
+ 'attached file',
+ 'record attachment',
+ ],
+ useWhen: 'Representing attachments or an attachment relationship.',
+ avoidWhen:
+ 'Representing a general file collection, import, or upload action.',
+ },
+ {
+ key: 'app',
+ label: 'App',
+ category: 'general',
+ iconName: 'IconApps',
+ tablerName: 'apps',
+ keywords: ['app', 'application', 'Twenty app'],
+ useWhen: 'Representing an application or the apps platform.',
+ avoidWhen: 'Representing a widget, integration, or one navigation item.',
+ },
+ {
+ key: 'mcp',
+ label: 'MCP',
+ category: 'platform',
+ iconName: 'IconSparkles',
+ tablerName: 'sparkles',
+ keywords: ['MCP', 'Model Context Protocol', 'AI connection'],
+ useWhen: 'Representing MCP integrations, servers, or capabilities.',
+ avoidWhen:
+ 'Representing generic AI features, APIs, or non-MCP integrations.',
+ },
+ {
+ key: 'admin-panel',
+ label: 'Admin Panel',
+ category: 'platform',
+ iconName: 'IconServer',
+ tablerName: 'server',
+ keywords: [
+ 'admin panel',
+ 'instance administration',
+ 'system administration',
+ 'admin settings',
+ ],
+ useWhen:
+ 'Representing the Twenty admin panel or instance-level administration.',
+ avoidWhen:
+ 'Representing infrastructure health, server status, or workspace settings.',
+ },
+ {
+ key: 'navigation-sidebar',
+ label: 'Navigation Sidebar',
+ category: 'general',
+ iconName: 'IconLayoutSidebar',
+ tablerName: 'layout-sidebar',
+ keywords: ['navigation sidebar', 'sidebar', 'left navigation'],
+ useWhen: 'Representing the application navigation sidebar.',
+ avoidWhen: 'Representing a destination inside the navigation menu.',
+ },
+ {
+ key: 'iframe',
+ label: 'Iframe',
+ category: 'general',
+ iconName: 'IconFrame',
+ tablerName: 'frame',
+ keywords: ['iframe', 'embedded page', 'web frame'],
+ useWhen: 'Representing an iframe or embedded external page.',
+ avoidWhen: 'Representing a native page layout or browser window.',
+ },
+ {
+ key: 'agents',
+ label: 'Agents',
+ category: 'general',
+ iconName: 'IconLego',
+ tablerName: 'lego',
+ keywords: ['agent', 'AI agent', 'agent configuration'],
+ useWhen: 'Representing AI agents or the agents platform.',
+ avoidWhen: 'Representing MCP, tools, or generic automation logic.',
+ },
+] as const satisfies readonly TwentyIconDictionaryEntry[];
diff --git a/packages/twenty-ui/src/icon/icon-dictionary.md b/packages/twenty-ui/src/icon/icon-dictionary.md
new file mode 100644
index 00000000000..9872ca7628c
--- /dev/null
+++ b/packages/twenty-ui/src/icon/icon-dictionary.md
@@ -0,0 +1,129 @@
+# Twenty Icon Dictionary
+
+<!-- This file is generated. Edit constants/TwentyIconDictionary.ts, then run: npx nx generateIconDictionary twenty-ui -->
+
+This is the canonical engineering reference for icons that represent Twenty product concepts. The [Figma dictionary](https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=43908-39914) is the visual reference; the typed manifest in [`constants/TwentyIconDictionary.ts`](./constants/TwentyIconDictionary.ts) is the code source of truth.
+
+## Selection rules
+
+1. When a UI element represents one of the concepts below, use its canonical icon.
+2. Use action icons such as `IconPlus`, `IconEdit`, or `IconTrash` when the element represents an action rather than a product concept.
+3. Use status icons for statuses and feedback. Do not replace them with a nearby dictionary concept.
+4. Import icons from `twenty-ui/icon`. Do not import directly from `@tabler/icons-react`.
+5. If no concept matches, choose an existing icon from `twenty-ui/icon` and do not add a new icon package.
+
+## Usage
+
+```tsx
+import { IconHierarchy } from 'twenty-ui/icon';
+```
+
+## Data Model
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Data Model | `IconHierarchy` | `hierarchy` | Representing the data model or schema as a whole. | Representing one object, one field, or an organization chart. | schema, data model, objects and fields |
+| Object | `IconBox` | `box` | Representing an individual data-model object. | Representing a record instance or the complete data model. | object metadata, entity, data object |
+| Field | `IconListDetails` | `list-details` | Representing a field or field metadata. | Representing a list of records or a generic menu. | field metadata, property, attribute, column |
+| Record | `IconAddressBook` | `address-book` | Representing a record or record-oriented content. | Representing the object definition that records belong to. | record, record instance, CRM entry |
+
+## CRM
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Person | `IconUser` | `user` | Representing a person or individual CRM contact. | Representing a workspace member, team, or user action. | person, contact, individual, people record |
+| Company | `IconBuildingSkyscraper` | `building-skyscraper` | Representing a company or organization CRM record. | Representing the current workspace or a generic office. | company, account, organization, business |
+| Opportunity | `IconTargetArrow` | `target-arrow` | Representing a sales opportunity or deal. | Representing a generic goal, target, or navigation action. | opportunity, deal, pipeline, sales |
+| Task | `IconCheckbox` | `checkbox` | Representing a task, to-do, or follow-up record. | Representing a boolean field or completed status alone. | task, to-do, action item, follow-up |
+| Note | `IconNotes` | `notes` | Representing a note attached to CRM content. | Representing documentation, comments, or chat messages. | note, memo, record note, written note |
+
+## Views
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| View | `IconTable` | `table` | Representing a view without a more specific view type. | Representing dashboards, widgets, or page layouts. | view, saved view, record view |
+| Table view | `IconTable` | `table` | Representing the table or grid view type. | Representing a Kanban view or a generic data-model field. | table view, grid view, rows and columns |
+| Kanban view | `IconLayoutKanban` | `layout-kanban` | Representing the Kanban or board view type. | Representing a dashboard or a generic page layout. | kanban, board view, columns |
+| Group By | `IconLayoutList` | `layout-list` | Representing grouping records by a field. | Representing sorting or a generic list layout. | group by, grouping, grouped records |
+| Filter | `IconFilter` | `filter` | Representing filters or filter criteria. | Representing search, sorting, or workflow conditions. | filter, criteria, conditions |
+| Sort | `IconArrowsSort` | `arrows-sort` | Representing sorting without a fixed direction. | Representing filtering or a known ascending-only direction. | sort, ordering, ascending and descending |
+
+## Layouts
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Layout | `IconAppWindow` | `app-window` | Representing layouts as a general concept. | Representing a specific layout page, widget, or dashboard. | layout, page structure, arrangement |
+| Layout page | `IconPerspective` | `perspective` | Representing a configurable page inside a layout. | Representing the broader layout system or a record page. | layout page, page canvas, page configuration |
+| Widget | `IconLayoutGridAdd` | `layout-grid-add` | Representing a widget or the act of adding a widget. | Representing a complete dashboard or generic application. | widget, add widget, dashboard block |
+| Record Page | `IconAddressBook` | `address-book` | Representing a page dedicated to one record. | Representing a generic layout page or object definition. | record page, record layout, record detail |
+| Side Panel | `IconLayoutSidebarRight` | `layout-sidebar-right` | Representing a side panel that shows contextual content alongside a page. | Representing the main navigation sidebar, a modal, or an open or close panel action. | side panel, right panel, context panel, drawer |
+| Command Menu Item | `IconCommand` | `command` | Representing an item or action in the command menu. | Representing a navigation item or keyboard shortcut alone. | command menu, command item, keyboard command |
+| Navigation menu item | `IconCompass` | `compass` | Representing a destination in a navigation menu. | Representing the navigation sidebar container itself. | navigation item, menu destination, navigation menu |
+| Dashboard | `IconLayoutDashboard` | `layout-dashboard` | Representing a dashboard or dashboard page. | Representing an individual widget or a Kanban board. | dashboard, analytics page, dashboard layout |
+
+## Workspace and Access
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Workspace | `IconSettings` | `settings` | Representing the current workspace or its configuration. | Representing a generic settings action or a CRM company. | workspace, tenant, workspace settings, organization |
+| Member / Team | `IconUsers` | `users` | Representing workspace members, teams, or assignments. | Representing an individual CRM person or an invite action. | member, team, workspace user, assignee |
+| Role | `IconLock` | `lock` | Representing a role or its permission configuration. | Representing a locked state, security alert, or authentication. | role, permissions, access role, authorization |
+| Permissions | `IconLock` | `lock` | Representing permissions or permission configuration. | Representing a role, locked state, or security credentials. | permissions, access control, authorization, privileges |
+| Billing | `IconCreditCard` | `credit-card` | Representing billing, subscriptions, or payment settings. | Representing a currency field, price, or monetary amount. | billing, subscription, payment method, invoice |
+| Security | `IconKey` | `key` | Representing security settings, credentials, or access controls. | Representing a role, one permission, or an authentication state. | security, credentials, access, secrets |
+| Audit Logs | `IconHistory` | `history` | Representing audit, event, or workspace history logs. | Representing runtime output or execution logs. | audit logs, event logs, history, activity history |
+
+## Logic
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Logic | `IconSettingsAutomation` | `settings-automation` | Representing automation logic as a general concept. | Representing a tool, skill, or serverless function. | logic, automation, business logic |
+| Workflows | `IconSettingsAutomation` | `settings-automation` | Representing workflows or the workflow system. | Representing one workflow action or an AI tool. | workflow, automation flow, workflow builder |
+| Tools (AI + Workflows) | `IconTool` | `tool` | Representing tools available to AI agents or workflows. | Representing application settings or developer skills. | tool, AI tool, workflow tool, callable capability |
+| Skill | `IconBook` | `book` | Representing an AI skill or reusable instruction set. | Representing documentation in general or an executable tool. | skill, agent instructions, knowledge guide |
+| Serverless functions | `IconBrandTypescript` | `brand-typescript` | Representing Twenty serverless or logic functions. | Representing generic source code or non-TypeScript tools. | serverless function, logic function, TypeScript function |
+| Execution Logs | `IconTerminal` | `terminal` | Representing runtime output from workflows, agents, or code. | Representing audit trails, event history, or source code. | execution logs, runtime logs, workflow logs, agent logs |
+
+## AI
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| AI Model | `IconCpu` | `cpu` | Representing an AI model or model configuration. | Representing reasoning state, an AI agent, or computer hardware. | AI model, language model, LLM, model selection |
+| AI / Ask AI | `IconSparkles` | `sparkles` | Representing generic AI features or the Ask AI experience. | Representing an AI model, agent, prompt, or MCP connection. | AI, Ask AI, assistant, generative AI |
+| Prompt | `IconPrompt` | `prompt` | Representing AI prompts or prompt configuration. | Representing a command menu, terminal, or AI conversation. | prompt, system prompt, instructions, prompt configuration |
+| Conversation / Chat | `IconMessage` | `message` | Representing an AI conversation or chat thread. | Representing email, notes, comments, or communication settings. | conversation, chat, thread, AI message |
+
+## Platform
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| API | `IconApi` | `api` | Representing APIs, API access, or API configuration. | Representing MCP, webhooks, or external-service integrations. | API, REST, GraphQL, API key |
+| MCP & APIs | `IconPlug` | `plug` | Representing the combined MCP, API keys, and webhooks settings area. | Representing an API, MCP server, webhook, or integration individually. | MCP and APIs, developer connections, API keys and webhooks, platform connections |
+| API Key | `IconKey` | `key` | Representing an API key or API credential. | Representing APIs generally, security settings, or permissions. | API key, API credential, access token, secret key |
+| Webhook | `IconWebhook` | `webhook` | Representing webhooks, webhook endpoints, or webhook events. | Representing a generic API, integration, or workflow action. | webhook, event callback, HTTP event, webhook endpoint |
+| Integration / Connection | `IconPlug` | `plug` | Representing an integration or connection to an external service. | Representing an app, API, MCP, or connected email account. | integration, connection, external service, provider |
+| Connected Account | `IconAt` | `at` | Representing a connected email or calendar account. | Representing a generic integration, user account, or email field. | connected account, email sync, calendar sync, mailbox |
+| Marketplace | `IconShoppingBag` | `shopping-bag` | Representing the app marketplace or marketplace catalog. | Representing an installed app or the action of installing one. | marketplace, app catalog, browse apps, marketplace apps |
+| Application Version | `IconVersions` | `versions` | Representing application version information. | Representing a Git branch, deployment status, or update action. | application version, app version, latest version, version |
+| MCP | `IconSparkles` | `sparkles` | Representing MCP integrations, servers, or capabilities. | Representing generic AI features, APIs, or non-MCP integrations. | MCP, Model Context Protocol, AI connection |
+| Admin Panel | `IconServer` | `server` | Representing the Twenty admin panel or instance-level administration. | Representing infrastructure health, server status, or workspace settings. | admin panel, instance administration, system administration, admin settings |
+
+## General
+
+| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |
+| --- | --- | --- | --- | --- | --- |
+| Notification | `IconBell` | `bell` | Representing notifications or notification settings. | Representing an error severity, favorite, or decorative star. | notification, notice, notification settings, alert |
+| Files | `IconFiles` | `files` | Representing a collection of files or a files section. | Representing one file, an attachment, or an upload action. | files, file collection, documents, file section |
+| Attachments | `IconPaperclip` | `paperclip` | Representing attachments or an attachment relationship. | Representing a general file collection, import, or upload action. | attachment, attachments, attached file, record attachment |
+| App | `IconApps` | `apps` | Representing an application or the apps platform. | Representing a widget, integration, or one navigation item. | app, application, Twenty app |
+| Navigation Sidebar | `IconLayoutSidebar` | `layout-sidebar` | Representing the application navigation sidebar. | Representing a destination inside the navigation menu. | navigation sidebar, sidebar, left navigation |
+| Iframe | `IconFrame` | `frame` | Representing an iframe or embedded external page. | Representing a native page layout or browser window. | iframe, embedded page, web frame |
+| Agents | `IconLego` | `lego` | Representing AI agents or the agents platform. | Representing MCP, tools, or generic automation logic. | agent, AI agent, agent configuration |
+
+## Updating the dictionary
+
+1. Update the typed manifest in `constants/TwentyIconDictionary.ts`.
+2. Confirm the visual choice in the linked Figma dictionary.
+3. Run `npx nx generateIconDictionary twenty-ui`.
+4. Review the `UI/Icon/Icon Dictionary` Storybook story.
+5. Run `npx jest packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts --config=packages/twenty-ui/jest.config.mjs`.
diff --git a/packages/twenty-ui/src/icon/index.ts b/packages/twenty-ui/src/icon/index.ts
index 0d2d043be0e..018381c0500 100644
--- a/packages/twenty-ui/src/icon/index.ts
+++ b/packages/twenty-ui/src/icon/index.ts
@@ -108,6 +108,7 @@ export {
IconBrandLinkedin,
IconBrandNpm,
IconBrandOpenai,
+ IconBrandTypescript,
IconBrandWhatsapp,
IconBrandX,
IconBriefcase,
@@ -157,6 +158,7 @@ export {
IconColumnInsertRight,
IconColumns,
IconCommand,
+ IconCompass,
IconMessageCircle,
IconComment,
IconCopy,
@@ -239,6 +241,7 @@ export {
IconFileImport,
IconFileInfo,
IconFilePencil,
+ IconFiles,
IconFileText,
IconFileUpload,
IconFileZip,
@@ -304,9 +307,11 @@ export {
IconLayout,
IconLayoutDashboard,
IconLayoutGrid,
+ IconLayoutGridAdd,
IconLayoutKanban,
IconLayoutList,
IconLayoutNavbar,
+ IconLayoutSidebar,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarLeftExpand,
IconLayoutSidebarRight,
@@ -358,6 +363,7 @@ export {
IconPencil,
IconPencilOff,
IconPercentage,
+ IconPerspective,
IconPhone,
IconPhoto,
IconPhotoUp,
@@ -411,6 +417,7 @@ export {
IconSettingsBolt,
IconShare,
IconShield,
+ IconShoppingBag,
IconSitemap,
IconSlash,
IconSortAscending,
@@ -492,6 +499,15 @@ export {
IconX,
} from './components/TablerIcons';
export { ThinkingOrbitLoaderIcon } from './components/ThinkingOrbitLoaderIcon';
+export type {
+ TwentyIconDictionaryCategory,
+ TwentyIconDictionaryEntry,
+} from './constants/TwentyIconDictionary';
+export {
+ TWENTY_ICON_DICTIONARY_FIGMA_URL,
+ TWENTY_ICON_DICTIONARY_CATEGORIES,
+ TWENTY_ICON_DICTIONARY,
+} from './constants/TwentyIconDictionary';
export { useIcons } from './hooks/useIcons';
export { IconsProvider } from './providers/IconsProvider';
export type { IconComponentProps, IconComponent } from './types/IconComponent';
diff --git a/packages/twenty-ui/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts b/packages/twenty-ui/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts
new file mode 100644
index 00000000000..5ba4b1591ac
--- /dev/null
+++ b/packages/twenty-ui/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts
@@ -0,0 +1,59 @@
+import {
+ TWENTY_ICON_DICTIONARY,
+ TWENTY_ICON_DICTIONARY_CATEGORIES,
+ TWENTY_ICON_DICTIONARY_FIGMA_URL,
+ type TwentyIconDictionaryEntry,
+} from '../constants/TwentyIconDictionary';
+
+export const escapeMarkdownTableCell = (value: string) =>
+ value.replace(/\\/g, '\\\\').replace(/\|/g, '\\|').replace(/\n/g, ' ');
+
+const getEntryTableRow = (entry: TwentyIconDictionaryEntry) =>
+ `| ${escapeMarkdownTableCell(entry.label)} | \`${entry.iconName}\` | \`${entry.tablerName}\` | ${escapeMarkdownTableCell(entry.useWhen)} | ${escapeMarkdownTableCell(entry.avoidWhen)} | ${entry.keywords.map(escapeMarkdownTableCell).join(', ')} |`;
+
+export const generateTwentyIconDictionaryMarkdown = () => {
+ const categorySections = TWENTY_ICON_DICTIONARY_CATEGORIES.map((category) => {
+ const entries = TWENTY_ICON_DICTIONARY.filter(
+ (entry) => entry.category === category.key,
+ );
+
+ return [
+ `## ${category.label}`,
+ '',
+ '| Concept | React component | Tabler name | Use when | Avoid when | Search keywords |',
+ '| --- | --- | --- | --- | --- | --- |',
+ ...entries.map(getEntryTableRow),
+ ].join('\n');
+ }).join('\n\n');
+
+ return `# Twenty Icon Dictionary
+
+<!-- This file is generated. Edit constants/TwentyIconDictionary.ts, then run: npx nx generateIconDictionary twenty-ui -->
+
+This is the canonical engineering reference for icons that represent Twenty product concepts. The [Figma dictionary](${TWENTY_ICON_DICTIONARY_FIGMA_URL}) is the visual reference; the typed manifest in [\`constants/TwentyIconDictionary.ts\`](./constants/TwentyIconDictionary.ts) is the code source of truth.
+
+## Selection rules
+
+1. When a UI element represents one of the concepts below, use its canonical icon.
+2. Use action icons such as \`IconPlus\`, \`IconEdit\`, or \`IconTrash\` when the element represents an action rather than a product concept.
+3. Use status icons for statuses and feedback. Do not replace them with a nearby dictionary concept.
+4. Import icons from \`twenty-ui/icon\`. Do not import directly from \`@tabler/icons-react\`.
+5. If no concept matches, choose an existing icon from \`twenty-ui/icon\` and do not add a new icon package.
+
+## Usage
+
+\`\`\`tsx
+import { IconHierarchy } from 'twenty-ui/icon';
+\`\`\`
+
+${categorySections}
+
+## Updating the dictionary
+
+1. Update the typed manifest in \`constants/TwentyIconDictionary.ts\`.
+2. Confirm the visual choice in the linked Figma dictionary.
+3. Run \`npx nx generateIconDictionary twenty-ui\`.
+4. Review the \`UI/Icon/Icon Dictionary\` Storybook story.
+5. Run \`npx jest packages/twenty-ui/src/icon/__tests__/TwentyIconDictionary.test.ts --config=packages/twenty-ui/jest.config.mjs\`.
+`;
+};
diff --git a/packages/twenty-ui/src/icon/providers/internal/AllIcons.ts b/packages/twenty-ui/src/icon/providers/internal/AllIcons.ts
index a4d486b9b8e..6c43506477f 100644
--- a/packages/twenty-ui/src/icon/providers/internal/AllIcons.ts
+++ b/packages/twenty-ui/src/icon/providers/internal/AllIcons.ts
@@ -1,4 +1,6 @@
/* oxlint-disable no-restricted-imports */
+import { IconAddressBook } from '@ui/icon/components/IconAddressBook';
+
import {
IconNumber123 as Icon123,
IconAB,
@@ -1358,6 +1360,7 @@ import {
IconCookieOff,
IconCopy,
IconCopyOff,
+ IconCopyPlus,
IconCopyleft,
IconCopyleftOff,
IconCopyright,
@@ -2992,6 +2995,7 @@ import {
IconNumber7,
IconNumber8,
IconNumber9,
+ IconNumber95Small,
IconNumbers,
IconNurse,
IconOctagon,
@@ -3885,6 +3889,7 @@ import {
IconTimelineEventPlus,
IconTimelineEventText,
IconTimelineEventX,
+ IconTimezone,
IconTir,
IconToggleLeft,
IconToggleRight,
@@ -4204,6 +4209,7 @@ export const ALL_ICONS = {
IconAdCircle,
IconAdCircleOff,
IconAdOff,
+ IconAddressBook,
IconAddressBookOff,
IconAdjustments,
IconAdjustmentsAlt,
@@ -5542,6 +5548,7 @@ export const ALL_ICONS = {
IconCookieOff,
IconCopy,
IconCopyOff,
+ IconCopyPlus,
IconCopyleft,
IconCopyleftOff,
IconCopyright,
@@ -7176,6 +7183,7 @@ export const ALL_ICONS = {
IconNumber7,
IconNumber8,
IconNumber9,
+ IconNumber95Small,
IconNumbers,
IconNurse,
IconOctagon,
@@ -8069,6 +8077,7 @@ export const ALL_ICONS = {
IconTimelineEventPlus,
IconTimelineEventText,
IconTimelineEventX,
+ IconTimezone,
IconTir,
IconToggleLeft,
IconToggleRight,