Skip to content

Commit 8f6a048

Browse files
committed
chore: remove remaining dead code for template-profile feature
- Remove 'template-profile' from SettingsSection union type - Remove 'template-profile' entry from SECTION_TITLES - Remove now-redundant template-profile guard in settings sidebar - Remove commented-out template-profile nav item
1 parent b102d4f commit 8f6a048

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { SettingsPage } from './settings'
1010
const SECTION_TITLES: Record<string, string> = {
1111
general: 'General',
1212
secrets: 'Secrets',
13-
'template-profile': 'Template Profile',
1413
'access-control': 'Access Control',
1514
'audit-logs': 'Audit Logs',
1615
apikeys: 'Sim Keys',

apps/sim/app/workspace/[workspaceId]/settings/navigation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { getEnv, isTruthy } from '@/lib/core/config/env'
2525
export type SettingsSection =
2626
| 'general'
2727
| 'secrets'
28-
| 'template-profile'
2928
| 'credential-sets'
3029
| 'access-control'
3130
| 'audit-logs'
@@ -95,7 +94,6 @@ export const sectionConfig: { key: NavigationSection; title: string }[] = [
9594

9695
export const allNavigationItems: NavigationItem[] = [
9796
{ id: 'general', label: 'General', icon: Settings, section: 'account' },
98-
// { id: 'template-profile', label: 'Template Profile', icon: User, section: 'account' },
9997
{
10098
id: 'access-control',
10199
label: 'Access Control',

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-sidebar/settings-sidebar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ export function SettingsSidebar({
103103
return false
104104
}
105105

106-
if (item.id === 'template-profile') {
107-
return false
108-
}
109106
if (item.id === 'secrets' && permissionConfig.hideSecretsTab) {
110107
return false
111108
}

0 commit comments

Comments
 (0)