Skip to content

Commit a521c56

Browse files
committed
Restore settings
1 parent ba4c796 commit a521c56

5 files changed

Lines changed: 578 additions & 0 deletions

File tree

apps/sim/app/workspace/[workspaceId]/settings/[section]/settings.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useSession } from '@/lib/auth/auth-client'
77
import { AdminSkeleton } from '@/app/workspace/[workspaceId]/settings/components/admin/admin-skeleton'
88
import { ApiKeysSkeleton } from '@/app/workspace/[workspaceId]/settings/components/api-keys/api-key-skeleton'
99
import { BYOKSkeleton } from '@/app/workspace/[workspaceId]/settings/components/byok/byok-skeleton'
10+
import { CopilotSkeleton } from '@/app/workspace/[workspaceId]/settings/components/copilot/copilot-skeleton'
1011
import { CredentialSetsSkeleton } from '@/app/workspace/[workspaceId]/settings/components/credential-sets/credential-sets-skeleton'
1112
import { CredentialsSkeleton } from '@/app/workspace/[workspaceId]/settings/components/credentials/credential-skeleton'
1213
import { CustomToolsSkeleton } from '@/app/workspace/[workspaceId]/settings/components/custom-tools/custom-tool-skeleton'
@@ -95,6 +96,13 @@ const BYOK = dynamic(
9596
() => import('@/app/workspace/[workspaceId]/settings/components/byok/byok').then((m) => m.BYOK),
9697
{ loading: () => <BYOKSkeleton /> }
9798
)
99+
const Copilot = dynamic(
100+
() =>
101+
import('@/app/workspace/[workspaceId]/settings/components/copilot/copilot').then(
102+
(m) => m.Copilot
103+
),
104+
{ loading: () => <CopilotSkeleton /> }
105+
)
98106
const MCP = dynamic(
99107
() => import('@/app/workspace/[workspaceId]/settings/components/mcp/mcp').then((m) => m.MCP),
100108
{ loading: () => <McpSkeleton /> }
@@ -177,6 +185,7 @@ export function SettingsPage({ section }: SettingsPageProps) {
177185
{isBillingEnabled && effectiveSection === 'team' && <TeamManagement />}
178186
{effectiveSection === 'sso' && <SSO />}
179187
{effectiveSection === 'byok' && <BYOK />}
188+
{effectiveSection === 'copilot' && <Copilot />}
180189
{effectiveSection === 'mcp' && <MCP initialServerId={mcpServerId} />}
181190
{effectiveSection === 'custom-tools' && <CustomTools />}
182191
{effectiveSection === 'skills' && <Skills />}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {
2+
ApiKeySkeleton,
3+
ApiKeysSkeleton,
4+
} from '@/app/workspace/[workspaceId]/settings/components/api-keys/api-key-skeleton'
5+
6+
/**
7+
* Re-export ApiKeySkeleton as CopilotKeySkeleton since both share identical markup.
8+
*/
9+
export const CopilotKeySkeleton = ApiKeySkeleton
10+
11+
/**
12+
* Skeleton for the Copilot section shown during dynamic import loading.
13+
*/
14+
export const CopilotSkeleton = ApiKeysSkeleton

0 commit comments

Comments
 (0)