The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Unify app and account settings tables and standardize status chips (#29296)
nitind3e07f8460b9
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupTableRow.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupTableRow.tsxindex 412af70654c..59a1965e673 100644--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupTableRow.tsx@@ -8,14 +8,11 @@ import { type ConnectedAccountGroup } from '@/settings/app-preferences/types/Conimport { type BuiltInAccountApp } from '@/settings/app-preferences/types/BuiltInAccountApp';import { computeSyncStatus } from '@/settings/accounts/utils/computeSyncStatus';import { getConnectedAccountSettingsChannels } from '@/settings/app-preferences/utils/getConnectedAccountSettingsChannels';-import { TableCell } from '@/ui/layout/table/components/TableCell';-import { TableRow } from '@/ui/layout/table/components/TableRow';-import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink/UndecoratedLink';+import { SettingsApplicationTableRow } from '@/settings/applications/components/SettingsApplicationTableRow';import { SettingsPath } from 'twenty-shared/types';import { getSettingsPath, isDefined } from 'twenty-shared/utils';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { themeCssVariables, useTheme } from 'twenty-ui/theme';-import { useNavigateSettings } from '~/hooks/useNavigateSettings';+import { useTheme } from 'twenty-ui/theme';const DISPLAYED_SYNC_STATUSES: ReadonlySet<SyncStatus> = new Set([SyncStatus.FAILED,@@ -25,17 +22,14 @@ const DISPLAYED_SYNC_STATUSES: ReadonlySet<SyncStatus> = new Set([type SettingsAccountGroupTableRowProps = {group: ConnectedAccountGroup;- gridTemplateColumns: string;builtInAccountApp?: BuiltInAccountApp;};export const SettingsAccountGroupTableRow = ({group,- gridTemplateColumns,builtInAccountApp,}: SettingsAccountGroupTableRowProps) => {const theme = useTheme();- const navigateSettings = useNavigateSettings();const { builtInAccount } = group;const ProviderIcon = SettingsConnectedAccountIcon({@@ -54,68 +48,50 @@ export const SettingsAccountGroupTableRow = ({),));- const accountCell = (- <TableCell- color={themeCssVariables.font.color.primary}- gap={themeCssVariables.spacing[2]}- minWidth="0"- >- <ProviderIcon size={theme.icon.size.md} stroke={theme.icon.stroke.sm} />- <OverflowingTextWithTooltip text={group.handle} />- </TableCell>- );-return (- <TableRow- gridTemplateColumns={gridTemplateColumns}- onClick={+ <SettingsApplicationTableRow+ middleColumn="status"+ hasActionMenu+ link={hasSettings- ? () =>- navigateSettings(SettingsPath.AppPreferencesAccountDetail, {- connectedAccountId: group.id,- })+ ? getSettingsPath(SettingsPath.AppPreferencesAccountDetail, {+ connectedAccountId: group.id,+ }): undefined}- >- {hasSettings ? (- <UndecoratedLink- to={getSettingsPath(SettingsPath.AppPreferencesAccountDetail, {- connectedAccountId: group.id,- })}- onClick={(event) => event.stopPropagation()}- >- {accountCell}- </UndecoratedLink>- ) : (- accountCell- )}- {isDefined(builtInAccountApp) ? (- <SettingsBuiltInAccountAppPermissionsCell- builtInAccountApp={builtInAccountApp}- account={builtInAccount}- />- ) : (- <TableCell align="right" gap={themeCssVariables.spacing[4]}>- <SettingsAccountGroupUsedBy group={group} />- {shouldShowSyncStatus && (- <SettingsConnectedAccountSyncStatus account={builtInAccount} />- )}- </TableCell>- )}- <TableCell- align="right"- gap={themeCssVariables.spacing[4]}- onClick={(event) => event.stopPropagation()}- >- {isDefined(builtInAccountApp) && shouldShowSyncStatus && (+ name={+ <>+ <ProviderIcon+ size={theme.icon.size.md}+ stroke={theme.icon.stroke.sm}+ />+ <OverflowingTextWithTooltip text={group.handle} />+ </>+ }+ middle={+ shouldShowSyncStatus && (<SettingsConnectedAccountSyncStatus account={builtInAccount} />- )}+ )+ }+ details={+ isDefined(builtInAccountApp) ? (+ <SettingsBuiltInAccountAppPermissionsCell+ builtInAccountApp={builtInAccountApp}+ account={builtInAccount}+ />+ ) : (+ <SettingsAccountGroupUsedBy group={group} />+ )+ }+ detailsAlign={isDefined(builtInAccountApp) ? 'left' : 'right'}+ shouldShowDetailsOnMobile+ action={<SettingsAppPreferencesRowDropdownMenugroup={group}hasAccountSettings={hasSettings}builtInAccountApp={builtInAccountApp}/>- </TableCell>- </TableRow>+ }+ />);};diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupsSection.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupsSection.tsxindex 0034a08b354..28243a87c3e 100644--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupsSection.tsx+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAccountGroupsSection.tsx@@ -1,15 +1,12 @@import { SettingsAccountGroupTableRow } from '@/settings/app-preferences/components/SettingsAccountGroupTableRow';import { SettingsAccountGroupsEmptyState } from '@/settings/app-preferences/components/SettingsAccountGroupsEmptyState';-import { SETTINGS_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS } from '@/settings/app-preferences/constants/SettingsAccountGroupTableGridTemplateColumns';-import { SETTINGS_BUILT_IN_ACCOUNT_APP_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS } from '@/settings/app-preferences/constants/SettingsBuiltInAccountAppAccountGroupTableGridTemplateColumns';import { useAddBuiltInAccount } from '@/settings/app-preferences/hooks/useAddBuiltInAccount';import { useMyAccountGroups } from '@/settings/app-preferences/hooks/useMyAccountGroups';import { type BuiltInAccountApp } from '@/settings/app-preferences/types/BuiltInAccountApp';import { getBuiltInAccountAppsUsingAccount } from '@/settings/app-preferences/utils/getBuiltInAccountAppsUsingAccount';+import { SettingsApplicationTableHeaderRow } from '@/settings/applications/components/SettingsApplicationTableHeaderRow';import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader';import { Table } from '@/ui/layout/table/components/Table';-import { TableHeader } from '@/ui/layout/table/components/TableHeader';-import { TableRow } from '@/ui/layout/table/components/TableRow';import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { isDefined } from 'twenty-shared/utils';@@ -49,22 +46,6 @@ export const SettingsAccountGroupsSection = ({): allGroups;- const gridTemplateColumns = isDefined(builtInAccountApp)- ? SETTINGS_BUILT_IN_ACCOUNT_APP_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS- : SETTINGS_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS;-- const tableHeaderRow = (- <TableRow gridTemplateColumns={gridTemplateColumns}>- <TableHeader>{t`Account`}</TableHeader>- {isDefined(builtInAccountApp) ? (- <TableHeader>{t`Permissions`}</TableHeader>- ) : (- <TableHeader align="right">{t`Used by`}</TableHeader>- )}- <TableHeader />- </TableRow>- );-return (<Section.Root><Section.Header@@ -80,13 +61,20 @@ export const SettingsAccountGroupsSection = ({) : (<><Table>- {tableHeaderRow}+ <SettingsApplicationTableHeaderRow+ middleColumn="status"+ nameLabel={t`Account`}+ detailsLabel={+ isDefined(builtInAccountApp) ? t`Permissions` : t`Used by`+ }+ detailsAlign={isDefined(builtInAccountApp) ? 'left' : 'right'}+ shouldShowDetailsOnMobile+ /><StyledTableRows>{groups.map((group) => (<SettingsAccountGroupTableRowkey={group.id}group={group}- gridTemplateColumns={gridTemplateColumns}builtInAccountApp={builtInAccountApp}/>))}diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsBuiltInAccountAppPermissionsCell.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsBuiltInAccountAppPermissionsCell.tsxindex 6555a55f709..11880b902dd 100644--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsBuiltInAccountAppPermissionsCell.tsx+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsBuiltInAccountAppPermissionsCell.tsx@@ -1,6 +1,5 @@import { type ConnectedAccount } from '@/accounts/types/ConnectedAccount';import { type BuiltInAccountApp } from '@/settings/app-preferences/types/BuiltInAccountApp';-import { TableCell } from '@/ui/layout/table/components/TableCell';import { useLingui } from '@lingui/react/macro';import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';@@ -22,9 +21,5 @@ export const SettingsBuiltInAccountAppPermissionsCell = ({).map((permission) => t(permission.label));- return (- <TableCell minWidth="0">- <OverflowingTextWithTooltip text={permissionLabels.join(', ')} />- </TableCell>- );+ return <OverflowingTextWithTooltip text={permissionLabels.join(', ')} />;};diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsConnectedAccountSyncStatus.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsConnectedAccountSyncStatus.tsxindex af939385959..9f955a0e594 100644--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsConnectedAccountSyncStatus.tsx+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsConnectedAccountSyncStatus.tsx@@ -1,6 +1,7 @@import { type ConnectedAccount } from '@/accounts/types/ConnectedAccount';import { SyncStatus } from '@/settings/accounts/constants/SyncStatus';import { computeSyncStatus } from '@/settings/accounts/utils/computeSyncStatus';+import { SettingsSyncFailedStatus } from '@/settings/applications/components/SettingsSyncFailedStatus';import { useLingui } from '@lingui/react/macro';import { MAIL_SERVER_CERTIFICATE_INVALID_AUTH_FAILED_REASON } from 'twenty-shared/constants';import { isDefined } from 'twenty-shared/utils';@@ -27,11 +28,15 @@ export const SettingsConnectedAccountSyncStatus = ({switch (computeSyncStatus(messageChannel, account.calendarChannels[0])) {case SyncStatus.FAILED:- return account.authFailedReason ===- MAIL_SERVER_CERTIFICATE_INVALID_AUTH_FAILED_REASON ? (- <Status color="red" weight="medium">{t`Certificate invalid`}</Status>- ) : (- <Status color="red" weight="medium">{t`Sync failed`}</Status>+ return (+ <SettingsSyncFailedStatus+ reason={+ account.authFailedReason ===+ MAIL_SERVER_CERTIFICATE_INVALID_AUTH_FAILED_REASON+ ? t`The mail server certificate is invalid`+ : undefined+ }+ />);case SyncStatus.SYNCED:return <Status color="green" weight="medium">{t`Synced`}</Status>;diff --git a/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsAccountGroupTableGridTemplateColumns.ts b/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsAccountGroupTableGridTemplateColumns.tsdeleted file mode 100644index 85ddf681039..00000000000--- a/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsAccountGroupTableGridTemplateColumns.ts+++ /dev/null@@ -1,3 +0,0 @@-import { themeCssVariables } from 'twenty-ui/theme';--export const SETTINGS_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS = `minmax(0, 1fr) auto ${themeCssVariables.spacing[8]}`;diff --git a/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsBuiltInAccountAppAccountGroupTableGridTemplateColumns.ts b/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsBuiltInAccountAppAccountGroupTableGridTemplateColumns.tsdeleted file mode 100644index 22764c1a85a..00000000000--- a/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsBuiltInAccountAppAccountGroupTableGridTemplateColumns.ts+++ /dev/null@@ -1,2 +0,0 @@-export const SETTINGS_BUILT_IN_ACCOUNT_APP_ACCOUNT_GROUP_TABLE_GRID_TEMPLATE_COLUMNS =- '200px minmax(0, 1fr) auto';diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationConnectionStatus.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationConnectionStatus.tsxindex ea83a23fe37..29be68a64e8 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationConnectionStatus.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationConnectionStatus.tsx@@ -1,4 +1,5 @@import { type ConnectedAccount } from '@/accounts/types/ConnectedAccount';+import { SettingsSyncFailedStatus } from '@/settings/applications/components/SettingsSyncFailedStatus';import { isApplicationConnectionReconnectNeeded } from '@/settings/applications/utils/isApplicationConnectionReconnectNeeded';import { useLingui } from '@lingui/react/macro';import { isDefined } from 'twenty-shared/utils';@@ -14,12 +15,12 @@ export const SettingsApplicationConnectionStatus = ({const { t } = useLingui();if (isDefined(connection.archivedAt)) {- return <Status color="gray">{t`Disconnected`}</Status>;+ return <Status color="gray" weight="medium">{t`Disconnected`}</Status>;}return isApplicationConnectionReconnectNeeded(connection) ? (- <Status color="red">{t`Reconnect needed`}</Status>+ <SettingsSyncFailedStatus />) : (- <Status color="green">{t`Connected`}</Status>+ <Status color="green" weight="medium">{t`Connected`}</Status>);};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationStatusCell.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationStatusCell.tsxindex 944fa5e2bd7..68c676f7adc 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationStatusCell.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationStatusCell.tsx@@ -1,8 +1,9 @@import { SettingsConnectedAccountSyncStatus } from '@/settings/app-preferences/components/SettingsConnectedAccountSyncStatus';+import { SettingsSyncFailedStatus } from '@/settings/applications/components/SettingsSyncFailedStatus';import { type SettingsApplicationStatus } from '@/settings/applications/types/SettingsApplicationStatus';import { getHighestPrioritySettingsApplicationStatus } from '@/settings/applications/utils/getHighestPrioritySettingsApplicationStatus';import { useLingui } from '@lingui/react/macro';-import { Status, Tag } from 'twenty-ui/primitives/data-display';+import { Status } from 'twenty-ui/primitives/data-display';type SettingsApplicationStatusCellProps = {statuses?: SettingsApplicationStatus[];@@ -18,21 +19,15 @@ export const SettingsApplicationStatusCell = ({case 'accountSyncIssue':return <SettingsConnectedAccountSyncStatus account={status.account} />;case 'reconnectNeeded':- return <Status color="red">{t`Reconnect needed`}</Status>;+ return <SettingsSyncFailedStatus />;case 'missingConfiguration':- return <Status color="red">{t`Missing configuration`}</Status>;- case 'notConnected':return (- <Tag color="gray" weight="regular" truncate={false}>- {t`Not connected`}- </Tag>+ <Status color="orange" weight="medium">{t`Setup incomplete`}</Status>);+ case 'notConnected':+ return <Status color="gray" weight="medium">{t`Not connected`}</Status>;case 'updateAvailable':- return (- <Tag color="blue" weight="medium" truncate={false}>- {t`Update`}- </Tag>- );+ return <Status color="blue" weight="medium">{t`Update`}</Status>;default:return null;}diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableHeaderRow.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableHeaderRow.tsxindex 2df62886ca0..06d12aa6f98 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableHeaderRow.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableHeaderRow.tsx@@ -7,10 +7,18 @@ import { useIsMobile } from 'twenty-ui/utilities';type SettingsApplicationTableHeaderRowProps = {middleColumn: SettingsApplicationTableRowMiddleColumn;+ nameLabel?: string;+ detailsLabel?: string;+ detailsAlign?: 'left' | 'right';+ shouldShowDetailsOnMobile?: boolean;};export const SettingsApplicationTableHeaderRow = ({middleColumn,+ nameLabel,+ detailsLabel,+ detailsAlign,+ shouldShowDetailsOnMobile = false,}: SettingsApplicationTableHeaderRowProps) => {const { t } = useLingui();const isMobile = useIsMobile();@@ -20,13 +28,18 @@ export const SettingsApplicationTableHeaderRow = ({gridTemplateColumns={getApplicationTableRowGridTemplateColumns({middleColumn,isMobile,+ shouldShowDetailsOnMobile,})}>- <TableHeader>{t`Name`}</TableHeader>+ <TableHeader>{nameLabel ?? t`Name`}</TableHeader><TableHeader>{middleColumn === 'status' ? t`Status` : t`Type`}</TableHeader>- {!isMobile && <TableHeader>{t`Description`}</TableHeader>}+ {(!isMobile || shouldShowDetailsOnMobile) && (+ <TableHeader align={detailsAlign}>+ {detailsLabel ?? t`Description`}+ </TableHeader>+ )}<TableHeader /></TableRow>);diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableRow.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableRow.tsxindex 49d62b0eef2..f8497613402 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableRow.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationTableRow.tsx@@ -1,97 +1,85 @@import { type ReactNode } from 'react';+import { useNavigate } from 'react-router-dom';-import { ApplicationDisplay } from '@/applications/components/ApplicationDisplay';-import { useResolvedApplicationDescription } from '@/applications/hooks/useResolvedApplicationDescription';-import { type ApplicationDisplayData } from '@/applications/types/ApplicationDisplayData';-import { SettingsApplicationStatusCell } from '@/settings/applications/components/SettingsApplicationStatusCell';-import { type SettingsApplicationStatus } from '@/settings/applications/types/SettingsApplicationStatus';+import { type SettingsApplicationTableRowMiddleColumn } from '@/settings/applications/types/SettingsApplicationTableRowMiddleColumn';+import { getApplicationTableRowGridTemplateColumns } from '@/settings/applications/utils/getApplicationTableRowGridTemplateColumns';import { StyledNameTableCell } from '@/settings/data-model/object-details/components/SettingsObjectItemTableRowStyledComponents';import { TableCell } from '@/ui/layout/table/components/TableCell';import { TableRow } from '@/ui/layout/table/components/TableRow';-import { msg, t } from '@lingui/core/macro';-import { type MessageDescriptor } from '@lingui/core';-import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';-import { Tag } from 'twenty-ui/primitives/data-display';+import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink/UndecoratedLink';import { isDefined } from 'twenty-shared/utils';import { themeCssVariables } from 'twenty-ui/theme';-import { ApplicationRegistrationSourceType } from '~/generated-metadata/graphql';-import { getApplicationDescriptionSummary } from '@/settings/applications/utils/getApplicationDescriptionSummary';-import { getApplicationTableRowGridTemplateColumns } from '@/settings/applications/utils/getApplicationTableRowGridTemplateColumns';import { useIsMobile } from 'twenty-ui/utilities';-import { type SettingsApplicationTableRowMiddleColumn } from '@/settings/applications/types/SettingsApplicationTableRowMiddleColumn';-export type SettingsApplicationTableRowProps = {+type SettingsApplicationTableRowProps = {+ name: ReactNode;+ middle: ReactNode;+ details: ReactNode;action: ReactNode;- application: ApplicationDisplayData & {- description?: string | null;- };- shouldShowUpdateTag?: boolean;- link?: string;middleColumn?: SettingsApplicationTableRowMiddleColumn;- sourceType?: ApplicationRegistrationSourceType;- statuses?: SettingsApplicationStatus[];-};--const SOURCE_TYPE_LABELS: Record<- ApplicationRegistrationSourceType,- MessageDescriptor-> = {- [ApplicationRegistrationSourceType.LOCAL]: msg`Local`,- [ApplicationRegistrationSourceType.NPM]: msg`NPM`,- [ApplicationRegistrationSourceType.OAUTH_ONLY]: msg`OAuth`,- [ApplicationRegistrationSourceType.TARBALL]: msg`Tarball`,+ detailsAlign?: 'left' | 'right';+ shouldShowDetailsOnMobile?: boolean;+ link?: string;+ hasActionMenu?: boolean;};-const getSourceTypeLabel = (sourceType?: ApplicationRegistrationSourceType) =>- isDefined(sourceType) ? t(SOURCE_TYPE_LABELS[sourceType]) : t`Built-in`;-export const SettingsApplicationTableRow = ({+ name,+ middle,+ details,action,- application,- shouldShowUpdateTag,- link,middleColumn = 'type',- sourceType,- statuses,+ detailsAlign,+ shouldShowDetailsOnMobile = false,+ link,+ hasActionMenu = false,}: SettingsApplicationTableRowProps) => {const isMobile = useIsMobile();- const resolvedDescription = useResolvedApplicationDescription(application);- const descriptionSummary =- getApplicationDescriptionSummary(resolvedDescription);+ const navigate = useNavigate();++ // A menu cannot sit inside a link, so those rows only link their name+ const isNameLink = hasActionMenu && isDefined(link);++ const nameCell = (+ <StyledNameTableCell minWidth="0" overflow="hidden">+ {name}+ </StyledNameTableCell>+ );return (<TableRowgridTemplateColumns={getApplicationTableRowGridTemplateColumns({middleColumn,isMobile,+ shouldShowDetailsOnMobile,})}- key={application.id}- to={link}+ to={hasActionMenu ? undefined : link}+ onClick={isNameLink ? () => navigate(link) : undefined}>- <StyledNameTableCell minWidth="0" overflow="hidden">- <ApplicationDisplay application={application} />- </StyledNameTableCell>+ {isNameLink ? (+ <UndecoratedLink to={link} onClick={(event) => event.stopPropagation()}>+ {nameCell}+ </UndecoratedLink>+ ) : (+ nameCell+ )}<TableCell color={themeCssVariables.font.color.tertiary}>- {middleColumn === 'status' ? (- <SettingsApplicationStatusCell statuses={statuses} />- ) : (- getSourceTypeLabel(sourceType)- )}+ {middle}</TableCell>- {!isMobile && (- <TableCell gap={themeCssVariables.spacing[2]} minWidth="0">- <OverflowingTextWithTooltip text={descriptionSummary} />- {shouldShowUpdateTag && (- <Tag color="blue" weight="medium" truncate={false}>- {t`Update`}- </Tag>- )}+ {(!isMobile || shouldShowDetailsOnMobile) && (+ <TableCell+ align={detailsAlign}+ gap={themeCssVariables.spacing[2]}+ minWidth="0"+ >+ {details}</TableCell>)}<TableCellalign="right"padding={`0 ${themeCssVariables.spacing[2]} 0 0`}color={themeCssVariables.font.color.tertiary}+ onClick={hasActionMenu ? (event) => event.stopPropagation() : undefined}>{action}</TableCell>diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTable.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTable.tsxindex c2d9f6de70c..b2e7c05eebc 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTable.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTable.tsx@@ -7,6 +7,7 @@ import { type SettingsApplicationsTableLinkTarget } from '@/settings/applicationimport { type SettingsApplicationTableRowMiddleColumn } from '@/settings/applications/types/SettingsApplicationTableRowMiddleColumn';import { type SettingsMemberApplicationStatus } from '@/settings/applications/types/SettingsMemberApplicationStatus';import { type SettingsWorkspaceApplicationStatus } from '@/settings/applications/types/SettingsWorkspaceApplicationStatus';+import { getSettingsApplicationLink } from '@/settings/applications/utils/getSettingsApplicationLink';import { getSettingsApplicationsTableRowItems } from '@/settings/applications/utils/getSettingsApplicationsTableRowItems';import { SettingsEmptyPlaceholder } from '@/settings/components/SettingsEmptyPlaceholder';import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader';@@ -113,8 +114,11 @@ export const SettingsApplicationsTable = ({{filteredRowItems.map((rowItem) => (<SettingsApplicationsTableApplicationRowkey={rowItem.id}- rowItem={rowItem}- linkTarget={linkTarget}+ application={rowItem}+ link={getSettingsApplicationLink({+ linkTarget,+ applicationId: rowItem.id,+ })}middleColumn={middleColumn}statuses={statusesById?.[rowItem.id]}/>diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTableApplicationRow.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTableApplicationRow.tsxindex 7369c637a82..2fcc1340ede 100644--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTableApplicationRow.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationsTableApplicationRow.tsx@@ -1,40 +1,78 @@+import { ApplicationDisplay } from '@/applications/components/ApplicationDisplay';+import { useResolvedApplicationDescription } from '@/applications/hooks/useResolvedApplicationDescription';+import { type ApplicationDisplayData } from '@/applications/types/ApplicationDisplayData';+import { SettingsApplicationStatusCell } from '@/settings/applications/components/SettingsApplicationStatusCell';import { SettingsApplicationTableRow } from '@/settings/applications/components/SettingsApplicationTableRow';import { SettingsApplicationTableRowChevronIcon } from '@/settings/applications/components/SettingsApplicationTableRowChevronIcon';import { type SettingsApplicationStatus } from '@/settings/applications/types/SettingsApplicationStatus';-import { type SettingsApplicationsTableLinkTarget } from '@/settings/applications/types/SettingsApplicationsTableLinkTarget';import { type SettingsApplicationTableRowMiddleColumn } from '@/settings/applications/types/SettingsApplicationTableRowMiddleColumn';-import { type SettingsApplicationsTableRowItem } from '@/settings/applications/types/SettingsApplicationsTableRowItem';-import { getSettingsApplicationLink } from '@/settings/applications/utils/getSettingsApplicationLink';+import { getApplicationDescriptionSummary } from '@/settings/applications/utils/getApplicationDescriptionSummary';+import { type MessageDescriptor } from '@lingui/core';+import { msg, t } from '@lingui/core/macro';+import { isDefined } from 'twenty-shared/utils';+import { Tag } from 'twenty-ui/primitives/data-display';+import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';+import { ApplicationRegistrationSourceType } from '~/generated-metadata/graphql';++const SOURCE_TYPE_LABELS: Record<+ ApplicationRegistrationSourceType,+ MessageDescriptor+> = {+ [ApplicationRegistrationSourceType.LOCAL]: msg`Local`,+ [ApplicationRegistrationSourceType.NPM]: msg`NPM`,+ [ApplicationRegistrationSourceType.OAUTH_ONLY]: msg`OAuth`,+ [ApplicationRegistrationSourceType.TARBALL]: msg`Tarball`,+};++const getSourceTypeLabel = (sourceType?: ApplicationRegistrationSourceType) =>+ isDefined(sourceType) ? t(SOURCE_TYPE_LABELS[sourceType]) : t`Built-in`;type SettingsApplicationsTableApplicationRowProps = {- rowItem: SettingsApplicationsTableRowItem;- linkTarget: SettingsApplicationsTableLinkTarget;- middleColumn: SettingsApplicationTableRowMiddleColumn;+ application: ApplicationDisplayData & {+ description?: string | null;+ sourceType?: ApplicationRegistrationSourceType;+ };+ link: string;+ middleColumn?: SettingsApplicationTableRowMiddleColumn;statuses?: SettingsApplicationStatus[];};export const SettingsApplicationsTableApplicationRow = ({- rowItem,- linkTarget,- middleColumn,- statuses,+ application,+ link,+ middleColumn = 'type',+ statuses = [],}: SettingsApplicationsTableApplicationRowProps) => {+ const resolvedDescription = useResolvedApplicationDescription(application);const shouldShowUpdateTag =middleColumn === 'type' &&- (statuses ?? []).some((status) => status.type === 'updateAvailable');+ statuses.some((status) => status.type === 'updateAvailable');return (<SettingsApplicationTableRow- application={rowItem}- shouldShowUpdateTag={shouldShowUpdateTag}- sourceType={rowItem.sourceType}middleColumn={middleColumn}- statuses={statuses}+ link={link}+ name={<ApplicationDisplay application={application} />}+ middle={+ middleColumn === 'status' ? (+ <SettingsApplicationStatusCell statuses={statuses} />+ ) : (+ getSourceTypeLabel(application.sourceType)+ )+ }+ details={+ <>+ <OverflowingTextWithTooltip+ text={getApplicationDescriptionSummary(resolvedDescription)}+ />+ {shouldShowUpdateTag && (+ <Tag color="blue" weight="medium" truncate={false}>+ {t`Update`}+ </Tag>+ )}+ </>+ }action={<SettingsApplicationTableRowChevronIcon />}- link={getSettingsApplicationLink({- linkTarget,- applicationId: rowItem.id,- })}/>);};diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsSyncFailedStatus.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsSyncFailedStatus.tsxnew file mode 100644index 00000000000..540a2b74958--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsSyncFailedStatus.tsx@@ -0,0 +1,19 @@+import { useLingui } from '@lingui/react/macro';+import { Status } from 'twenty-ui/primitives/data-display';+import { Tooltip } from 'twenty-ui/primitives/surfaces';++type SettingsSyncFailedStatusProps = {+ reason?: string;+};++export const SettingsSyncFailedStatus = ({+ reason,+}: SettingsSyncFailedStatusProps) => {+ const { t } = useLingui();++ return (+ <Tooltip content={reason}>+ <Status color="red" weight="medium">{t`Sync failed`}</Status>+ </Tooltip>+ );+};diff --git a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsInstalledAppsSection.stories.tsx b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsInstalledAppsSection.stories.tsxindex 5bdbfa0d2ae..72cadbf8db1 100644--- a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsInstalledAppsSection.stories.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsInstalledAppsSection.stories.tsx@@ -234,7 +234,7 @@ export const ShowsTypeAndUpdateTagWithoutAppPreferences: Story = {expect(recorderRow).toHaveTextContent('NPM');expect(canvas.getByText('Type')).toBeVisible();expect(canvas.queryByText('Status')).not.toBeInTheDocument();- expect(canvas.queryByText('Missing configuration')).not.toBeInTheDocument();+ expect(canvas.queryByText('Setup incomplete')).not.toBeInTheDocument();expect(canvas.queryByText('Gmail and Calendar')).not.toBeInTheDocument();expect(findManyApplicationsForStatus).not.toHaveBeenCalled();},@@ -248,7 +248,7 @@ export const ShowsStatusWithAppPreferences: Story = {const recorderRow = await canvas.findByRole('link', { name: /Recorder/ });expect(- await within(recorderRow).findByText('Missing configuration'),+ await within(recorderRow).findByText('Setup incomplete'),).toBeVisible();expect(recorderRow).not.toHaveTextContent('Update');expect(canvas.getByText('Status')).toBeVisible();@@ -261,13 +261,13 @@ export const ShowsStatusWithAppPreferences: Story = {const notesRow = canvas.getByRole('link', { name: /Notes/ });- expect(notesRow).not.toHaveTextContent('Missing configuration');+ expect(notesRow).not.toHaveTextContent('Setup incomplete');expect(notesRow).not.toHaveTextContent('Update');const gmailRow = canvas.getByRole('link', { name: /Gmail and Calendar/ });expect(gmailRow).not.toHaveTextContent('Built-in');- expect(gmailRow).not.toHaveTextContent('Missing configuration');+ expect(gmailRow).not.toHaveTextContent('Setup incomplete');},};@@ -280,7 +280,7 @@ export const KeepsUpdateAndShowsErrorWhenConfigurationFailsToLoad: Story = {const canvas = within(canvasElement);expect(await canvas.findByText(STATUS_LOAD_ERROR_MESSAGE)).toBeVisible();- expect(canvas.queryByText('Missing configuration')).not.toBeInTheDocument();+ expect(canvas.queryByText('Setup incomplete')).not.toBeInTheDocument();expect(await within(canvas.getByRole('link', { name: /Acme Sync/ })).findByText('Update',@@ -292,7 +292,7 @@ export const KeepsUpdateAndShowsErrorWhenConfigurationFailsToLoad: Story = {expect(await within(canvas.getByRole('link', { name: /Recorder/ })).findByText(- 'Missing configuration',+ 'Setup incomplete',),).toBeVisible();expect(diff --git a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsTable.stories.tsx b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsTable.stories.tsxindex 0489593d0ef..b8894b4517f 100644--- a/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsTable.stories.tsx+++ b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationsTable.stories.tsx@@ -155,7 +155,7 @@ export const StatusColumnShowsTheMostUrgentStatus: Story = {const acmeRow = canvas.getByRole('link', { name: /Acme Sync/ });- expect(within(acmeRow).getByText('Missing configuration')).toBeVisible();+ expect(within(acmeRow).getByText('Setup incomplete')).toBeVisible();expect(acmeRow).not.toHaveTextContent('Update');expect(acmeRow).not.toHaveTextContent('NPM');@@ -165,7 +165,7 @@ export const StatusColumnShowsTheMostUrgentStatus: Story = {const standardRow = canvas.getByRole('link', { name: /Standard/ });- expect(standardRow).not.toHaveTextContent('Missing configuration');+ expect(standardRow).not.toHaveTextContent('Setup incomplete');expect(standardRow).not.toHaveTextContent('Update');},};@@ -189,7 +189,7 @@ export const TypeColumnShowsUpdateNextToTheDescription: Story = {expect(acmeRow).toHaveTextContent('NPM');expect(within(acmeRow).getByText('Update')).toBeVisible();- expect(acmeRow).not.toHaveTextContent('Missing configuration');+ expect(acmeRow).not.toHaveTextContent('Setup incomplete');const weatherRow = canvas.getByRole('link', { name: /Weather Widget/ });@@ -228,8 +228,8 @@ export const MemberRowsLinkToTheirPreferences: Story = {const acmeRow = canvas.getByRole('link', { name: /Acme Sync/ });- expect(within(acmeRow).getByText('Reconnect needed')).toBeVisible();- expect(acmeRow).not.toHaveTextContent('Missing configuration');+ expect(within(acmeRow).getByText('Sync failed')).toBeVisible();+ expect(acmeRow).not.toHaveTextContent('Setup incomplete');expect(within(canvas.getByRole('link', { name: /Zapier/ })).getByText(diff --git a/packages/twenty-front/src/modules/settings/applications/constants/ApplicationTableRowMobileWithDetailsGridTemplateColumns.ts b/packages/twenty-front/src/modules/settings/applications/constants/ApplicationTableRowMobileWithDetailsGridTemplateColumns.tsnew file mode 100644index 00000000000..679c2ac3bad--- /dev/null+++ b/packages/twenty-front/src/modules/settings/applications/constants/ApplicationTableRowMobileWithDetailsGridTemplateColumns.ts@@ -0,0 +1,2 @@+export const APPLICATION_TABLE_ROW_MOBILE_WITH_DETAILS_GRID_TEMPLATE_COLUMNS =+ 'minmax(0, 1fr) auto minmax(0, 1fr) 36px';diff --git a/packages/twenty-front/src/modules/settings/applications/utils/getApplicationTableRowGridTemplateColumns.ts b/packages/twenty-front/src/modules/settings/applications/utils/getApplicationTableRowGridTemplateColumns.tsindex 87946cef1bb..1afe402dfb6 100644--- a/packages/twenty-front/src/modules/settings/applications/utils/getApplicationTableRowGridTemplateColumns.ts+++ b/packages/twenty-front/src/modules/settings/applications/utils/getApplicationTableRowGridTemplateColumns.ts@@ -1,16 +1,24 @@import { APPLICATION_TABLE_ROW_GRID_TEMPLATE_COLUMNS_BY_MIDDLE_COLUMN } from '@/settings/applications/constants/ApplicationTableRowGridTemplateColumnsByMiddleColumn';import { APPLICATION_TABLE_ROW_MOBILE_GRID_TEMPLATE_COLUMNS } from '@/settings/applications/constants/ApplicationTableRowMobileGridTemplateColumns';+import { APPLICATION_TABLE_ROW_MOBILE_WITH_DETAILS_GRID_TEMPLATE_COLUMNS } from '@/settings/applications/constants/ApplicationTableRowMobileWithDetailsGridTemplateColumns';import { type SettingsApplicationTableRowMiddleColumn } from '@/settings/applications/types/SettingsApplicationTableRowMiddleColumn';export const getApplicationTableRowGridTemplateColumns = ({middleColumn,isMobile,+ shouldShowDetailsOnMobile = false,}: {middleColumn: SettingsApplicationTableRowMiddleColumn;isMobile: boolean;-}) =>- isMobile- ? APPLICATION_TABLE_ROW_MOBILE_GRID_TEMPLATE_COLUMNS- : APPLICATION_TABLE_ROW_GRID_TEMPLATE_COLUMNS_BY_MIDDLE_COLUMN[- middleColumn- ];+ shouldShowDetailsOnMobile?: boolean;+}) => {+ if (!isMobile) {+ return APPLICATION_TABLE_ROW_GRID_TEMPLATE_COLUMNS_BY_MIDDLE_COLUMN[+ middleColumn+ ];+ }++ return shouldShowDetailsOnMobile+ ? APPLICATION_TABLE_ROW_MOBILE_WITH_DETAILS_GRID_TEMPLATE_COLUMNS+ : APPLICATION_TABLE_ROW_MOBILE_GRID_TEMPLATE_COLUMNS;+};diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsxindex 5a8199eb29f..3581542d6da 100644--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx@@ -208,6 +208,26 @@ export const AccountsGroupedByEmail: Story = {},};+export const AccountsTabKeepsUsedByOnMobile: Story = {+ ...accountsTabStory,+ parameters: {+ ...accountsTabStory.parameters,+ viewport: { defaultViewport: 'mobile1' },+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);++ await canvas.findByText('[email protected]', undefined, { timeout: 3000 });++ expect(canvas.getByText('Used by')).toBeVisible();+ expect(+ getTableRow(canvasElement, '[email protected]').getByRole('img', {+ name: 'Fathom',+ }),+ ).toBeVisible();+ },+};+export const WorkspaceSharedAppConnectionsStayOff: Story = {...accountsTabStory,play: async ({ canvasElement }) => {@@ -673,12 +693,10 @@ export const InstalledAppsFlagReconnectAndMissingConfiguration: Story = {await canvas.findByText('Fathom', undefined, { timeout: 3000 });expect(- await getTableRow(canvasElement, 'Fathom').findByText(- 'Missing configuration',- ),+ await getTableRow(canvasElement, 'Fathom').findByText('Setup incomplete'),).toBeVisible();expect(- await getTableRow(canvasElement, 'Linear').findByText('Reconnect needed'),+ await getTableRow(canvasElement, 'Linear').findByText('Sync failed'),).toBeVisible();expect(getStatusCell({ canvasElement, text: 'Granola' }),@@ -703,7 +721,7 @@ export const InstalledAppWithoutMyConnectionShowsNotConnectedHint: Story = {const fathomRow = getTableRow(canvasElement, 'Fathom');- expect(fathomRow.getByText('Missing configuration')).toBeVisible();+ expect(fathomRow.getByText('Setup incomplete')).toBeVisible();expect(fathomRow.queryByText('Not connected')).not.toBeInTheDocument();expect(getStatusCell({ canvasElement, text: 'Granola' }),@@ -769,7 +787,7 @@ export const ConnectionsLoadErrorHidesStatusesUntilRetry: Story = {).toBeVisible();expect(canvas.getByText('Linear')).toBeVisible();expect(canvas.queryByText('Not connected')).not.toBeInTheDocument();- expect(canvas.queryByText('Missing configuration')).not.toBeInTheDocument();+ expect(canvas.queryByText('Setup incomplete')).not.toBeInTheDocument();await userEvent.click(canvas.getByRole('button', { name: 'Retry' }));diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferencesConnections.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferencesConnections.stories.tsxindex b62ecdeb6f5..b456285c28b 100644--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferencesConnections.stories.tsx+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferencesConnections.stories.tsx@@ -78,7 +78,7 @@ export const ConnectionOnlyAppListsMyConnectionsWithoutTabs: Story = {text: '[email protected]',});- expect(reconnectNeededRow.getByText('Reconnect needed')).toBeVisible();+ expect(reconnectNeededRow.getByText('Sync failed')).toBeVisible();const archivedRow = withinTableRowOrThrow({canvasElement,diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsxindex ea32f33e678..b086b1ec8b2 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx@@ -35,6 +35,7 @@ import {type ApplicationConnectedAccount,useApplicationConnectedAccounts,} from '~/pages/settings/applications/hooks/useApplicationConnectedAccounts';+import { SettingsSyncFailedStatus } from '@/settings/applications/components/SettingsSyncFailedStatus';import { useTriggerAppOAuth } from '@/settings/applications/hooks/useTriggerAppOAuth';import { type FrontendApplicationConnectionProvider } from '~/pages/settings/applications/types/FrontendApplicationConnectionProvider';@@ -204,9 +205,9 @@ export const SettingsApplicationConnectionDetail = () => {key: 'status',label: t`Status`,value: connection.authFailedAt ? (- <Status color="red">{t`Reconnect needed`}</Status>+ <SettingsSyncFailedStatus />) : (- <Status color="green">{t`Connected`}</Status>+ <Status color="green" weight="medium">{t`Connected`}</Status>),},{diff --git a/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx b/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsxindex 06c956fa011..ffa72176c86 100644--- a/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx+++ b/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx@@ -194,7 +194,7 @@ describe('SettingsApplicationConnectionDetail', () => {renderDetailPage();- expect(screen.getByText('Reconnect needed')).toBeVisible();+ expect(screen.getByText('Sync failed')).toBeVisible();fireEvent.click(screen.getByText('Reconnect'));diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsxindex 231137f77fe..9e8b34abccb 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx@@ -104,7 +104,7 @@ describe('SettingsApplicationConnectionsSection', () => {'href','/settings/applications/app-1/connections/account-1',);- expect(screen.getByText('Reconnect needed')).toBeVisible();+ expect(screen.getByText('Sync failed')).toBeVisible();expect(screen.queryByRole('button', { name: 'Reconnect' }),).not.toBeInTheDocument();diff --git a/packages/twenty-front/src/pages/settings/developers/tabs/SettingsDevelopersAppsTab.tsx b/packages/twenty-front/src/pages/settings/developers/tabs/SettingsDevelopersAppsTab.tsxindex 3d69bb3a748..54de216278c 100644--- a/packages/twenty-front/src/pages/settings/developers/tabs/SettingsDevelopersAppsTab.tsx+++ b/packages/twenty-front/src/pages/settings/developers/tabs/SettingsDevelopersAppsTab.tsx@@ -15,9 +15,9 @@ import { getSettingsPath } from 'twenty-shared/utils';import { CommandBlock } from 'twenty-ui/components/data-display';import { SearchInput } from 'twenty-ui/components/input';import { Section } from 'twenty-ui/components/layout';-import { IconArrowUpRight, IconChevronRight, IconCopy } from 'twenty-ui/icon';+import { IconArrowUpRight, IconCopy } from 'twenty-ui/icon';import { Button } from 'twenty-ui/primitives/input';-import { useTheme, themeCssVariables } from 'twenty-ui/theme';+import { themeCssVariables } from 'twenty-ui/theme';import {type ApplicationRegistrationListItemFragment,FindManyApplicationRegistrationsDocument,@@ -25,7 +25,7 @@ import {} from '~/generated-metadata/graphql';import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';import { SettingsApplicationTableHeaderRow } from '@/settings/applications/components/SettingsApplicationTableHeaderRow';-import { SettingsApplicationTableRow } from '@/settings/applications/components/SettingsApplicationTableRow';+import { SettingsApplicationsTableApplicationRow } from '@/settings/applications/components/SettingsApplicationsTableApplicationRow';import { SettingsClaimApplicationSection } from '~/pages/settings/applications/components/SettingsClaimApplicationSection';import { openUrlInNewTab } from '~/utils/openUrlInNewTab';@@ -46,7 +46,6 @@ const StyledTableRowsContainer = styled.div`export const SettingsDevelopersAppsTab = () => {const { t } = useLingui();- const theme = useTheme();const currentWorkspaceMember = useAtomStateValue(currentWorkspaceMemberState);const { copyToClipboard } = useCopyToClipboard();@@ -130,23 +129,13 @@ export const SettingsDevelopersAppsTab = () => {<Table><SettingsApplicationTableHeaderRow middleColumn="type" /><StyledTableRowsContainer>- {registrations.map((registration) => {- return (- <SettingsApplicationTableRow- key={registration.id}- application={registration}- sourceType={registration.sourceType}- action={- <IconChevronRight- size={theme.icon.size.md}- stroke={theme.icon.stroke.sm}- color={theme.font.color.light}- />- }- link={getRegistrationLink(registration)}- />- );- })}+ {registrations.map((registration) => (+ <SettingsApplicationsTableApplicationRow+ key={registration.id}+ application={registration}+ link={getRegistrationLink(registration)}+ />+ ))}</StyledTableRowsContainer></Table></Section.Root>