File tree Expand file tree Collapse file tree
packages/twenty-front/src
config-variables/components Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { GET_AI_PROVIDERS } from '@/settings/admin-panel/ai/graphql/queries/getA
2525import { type GetAiProvidersResult } from '@/settings/admin-panel/ai/types/GetAiProvidersResult' ;
2626import { parseProviderItems } from '@/settings/admin-panel/ai/utils/parseProviderItems' ;
2727import { getModelIcon } from '@/settings/ai/utils/getModelIcon' ;
28- import { SettingsAdminTabSkeletonLoader } from '@/settings/admin-panel/ components/SettingsAdminTabSkeletonLoader ' ;
28+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader ' ;
2929import { SettingsEnterpriseFeatureGateCard } from '@/settings/components/SettingsEnterpriseFeatureGateCard' ;
3030import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect' ;
3131import { useUsageValueFormatter } from '@/settings/usage/hooks/useUsageValueFormatter' ;
@@ -128,7 +128,7 @@ export const SettingsAdminAI = () => {
128128 ) ;
129129
130130 if ( isLoadingProviders || isLoadingModels ) {
131- return < SettingsAdminTabSkeletonLoader /> ;
131+ return < SettingsSectionSkeletonLoader /> ;
132132 }
133133
134134 const handleRecommendedToggle = async (
Original file line number Diff line number Diff line change 11import { canManageFeatureFlagsState } from '@/client-config/states/canManageFeatureFlagsState' ;
22import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient' ;
3+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader' ;
34import { SettingsAdminVersionContainer } from '@/settings/admin-panel/components/SettingsAdminVersionContainer' ;
45import { ADMIN_PANEL_RECENT_USERS } from '@/settings/admin-panel/graphql/queries/adminPanelRecentUsers' ;
56import { ADMIN_PANEL_TOP_WORKSPACES } from '@/settings/admin-panel/graphql/queries/adminPanelTopWorkspaces' ;
6- import { SettingsSkeletonLoader } from '@/settings/components/SettingsSkeletonLoader' ;
77import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput' ;
88import { Table } from '@/ui/layout/table/components/Table' ;
99import { TableBody } from '@/ui/layout/table/components/TableBody' ;
@@ -105,7 +105,7 @@ export const SettingsAdminGeneral = () => {
105105 fullWidth
106106 />
107107 { isLoadingUsers ? (
108- < SettingsSkeletonLoader />
108+ < SettingsSectionSkeletonLoader />
109109 ) : recentUsers . length === 0 ? (
110110 < StyledEmptyState >
111111 { t `No users found matching your search criteria.` }
@@ -154,7 +154,7 @@ export const SettingsAdminGeneral = () => {
154154 fullWidth
155155 />
156156 { isLoadingWorkspaces ? (
157- < SettingsSkeletonLoader />
157+ < SettingsSectionSkeletonLoader />
158158 ) : topWorkspaces . length === 0 ? (
159159 < StyledEmptyState >
160160 { t `No workspaces found matching your search criteria.` }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { SettingsAdminTabSkeletonLoader } from '@/settings/admin-panel/ components/SettingsAdminTabSkeletonLoader ' ;
1+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader ' ;
22import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient' ;
33import { ConfigVariableFilterContainer } from '@/settings/admin-panel/config-variables/components/ConfigVariableFilterContainer' ;
44import { ConfigVariableFilterDropdown } from '@/settings/admin-panel/config-variables/components/ConfigVariableFilterDropdown' ;
@@ -160,7 +160,7 @@ export const SettingsAdminConfigVariables = () => {
160160 } , [ filteredVariables , allGroups ] ) ;
161161
162162 if ( configVariablesLoading ) {
163- return < SettingsAdminTabSkeletonLoader /> ;
163+ return < SettingsSectionSkeletonLoader /> ;
164164 }
165165
166166 return (
Original file line number Diff line number Diff line change 11import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient' ;
2- import { SettingsAdminTabSkeletonLoader } from '@/settings/admin-panel/ components/SettingsAdminTabSkeletonLoader ' ;
2+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader ' ;
33import { SettingsAdminHealthStatusListCard } from '@/settings/admin-panel/health-status/components/SettingsAdminHealthStatusListCard' ;
44import { SettingsAdminMaintenanceModeFetchEffect } from '@/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceModeFetchEffect' ;
55import { SettingsAdminMaintenanceMode } from '@/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceMode' ;
@@ -22,7 +22,7 @@ export const SettingsAdminHealthStatus = () => {
2222 const services = data ?. getSystemHealthStatus . services ?? [ ] ;
2323
2424 if ( loadingHealthStatus ) {
25- return < SettingsAdminTabSkeletonLoader /> ;
25+ return < SettingsSectionSkeletonLoader /> ;
2626 }
2727
2828 return (
Original file line number Diff line number Diff line change 1+ import { styled } from '@linaria/react' ;
2+ import { useContext } from 'react' ;
3+ import Skeleton , { SkeletonTheme } from 'react-loading-skeleton' ;
4+ import { ThemeContext , themeCssVariables } from 'twenty-ui/theme-constants' ;
5+
6+ import { SKELETON_LOADER_HEIGHT_SIZES } from '@/activities/components/SkeletonLoader' ;
7+
8+ type SettingsSectionSkeletonLoaderProps = {
9+ rowCount ?: number ;
10+ } ;
11+
12+ const StyledRows = styled . div `
13+ display: flex;
14+ flex-direction: column;
15+ gap: ${ themeCssVariables . spacing [ 2 ] } ;
16+ width: 100%;
17+ ` ;
18+
19+ export const SettingsSectionSkeletonLoader = ( {
20+ rowCount = 4 ,
21+ } : SettingsSectionSkeletonLoaderProps ) => {
22+ const { theme } = useContext ( ThemeContext ) ;
23+
24+ return (
25+ < StyledRows >
26+ < SkeletonTheme
27+ baseColor = { theme . background . tertiary }
28+ highlightColor = { theme . background . transparent . lighter }
29+ borderRadius = { 4 }
30+ >
31+ < Skeleton
32+ count = { rowCount }
33+ height = { SKELETON_LOADER_HEIGHT_SIZES . standard . l }
34+ />
35+ </ SkeletonTheme >
36+ </ StyledRows >
37+ ) ;
38+ } ;
Original file line number Diff line number Diff line change 11import { SettingsPath } from 'twenty-shared/types' ;
2- import { SettingsAccountLoader } from '@/settings/accounts/ components/SettingsAccountLoader ' ;
2+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader ' ;
33import { SettingsAccountsBlocklistSection } from '@/settings/accounts/components/SettingsAccountsBlocklistSection' ;
44import { SettingsAccountsConnectedAccountsListCard } from '@/settings/accounts/components/SettingsAccountsConnectedAccountsListCard' ;
55import { SettingsAccountsSettingsSection } from '@/settings/accounts/components/SettingsAccountsSettingsSection' ;
@@ -29,7 +29,7 @@ export const SettingsAccounts = () => {
2929 >
3030 < SettingsPageContainer >
3131 { loading ? (
32- < SettingsAccountLoader />
32+ < SettingsSectionSkeletonLoader />
3333 ) : (
3434 < >
3535 < Section >
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
1010import { canManageFeatureFlagsState } from '@/client-config/states/canManageFeatureFlagsState' ;
1111import { AI_ADMIN_PATH } from '@/settings/admin-panel/ai/constants/AiAdminPath' ;
1212import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient' ;
13+ import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader' ;
1314import { SettingsAdminWorkspaceContent } from '@/settings/admin-panel/components/SettingsAdminWorkspaceContent' ;
1415import { GET_ADMIN_WORKSPACE_CHAT_THREADS } from '@/settings/admin-panel/graphql/queries/getAdminWorkspaceChatThreads' ;
1516import { WORKSPACE_LOOKUP_ADMIN_PANEL } from '@/settings/admin-panel/graphql/queries/workspaceLookupAdminPanel' ;
@@ -304,7 +305,7 @@ export const SettingsAdminWorkspaceDetail = () => {
304305 description = { t `AI chat threads for this workspace` }
305306 />
306307 { isLoadingThreads ? (
307- < SettingsSkeletonLoader />
308+ < SettingsSectionSkeletonLoader />
308309 ) : threads . length === 0 ? (
309310 < Card rounded >
310311 < TableRow gridTemplateColumns = "1fr" >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import {
4040 UninstallApplicationDocument ,
4141} from '~/generated-metadata/graphql' ;
4242import { useNavigateSettings } from '~/hooks/useNavigateSettings' ;
43- import { SettingsApplicationDetailSkeletonLoader } from '~/pages/ settings/applications/ components/SettingsApplicationDetailSkeletonLoader ' ;
43+ import { SettingsSectionSkeletonLoader } from '@/ settings/components/SettingsSectionSkeletonLoader ' ;
4444import { SettingsApplicationDetailTitle } from '~/pages/settings/applications/components/SettingsApplicationDetailTitle' ;
4545import { CUSTOM_APPLICATION_ILLUSTRATIONS } from '~/pages/settings/applications/constants/CustomApplicationIllustrations' ;
4646import { STANDARD_APPLICATION_ILLUSTRATIONS } from '~/pages/settings/applications/constants/StandardApplicationIllustrations' ;
@@ -241,7 +241,7 @@ export const SettingsApplicationDetails = () => {
241241
242242 const renderActiveTabContent = ( ) => {
243243 if ( ! isDefined ( application ) ) {
244- return < SettingsApplicationDetailSkeletonLoader /> ;
244+ return < SettingsSectionSkeletonLoader /> ;
245245 }
246246
247247 switch ( activeTabId ) {
You can’t perform that action at this time.
0 commit comments