Skip to content

Commit 947349f

Browse files
committed
fix(enterprise): remove dead variables resourceLabel, CHECK_PATH, allFeatures, RESOURCE_TYPE_LABEL
1 parent 17bdc80 commit 947349f

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

apps/sim/app/(home)/components/enterprise/enterprise.tsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,6 @@ const ACTOR_COLORS: Record<string, string> = {
3535
/** Left accent bar opacity by recency — newest is brightest. */
3636
const ACCENT_OPACITIES = [0.75, 0.5, 0.35, 0.22, 0.12, 0.05] as const
3737

38-
/** Human-readable label per resource type. */
39-
const RESOURCE_TYPE_LABEL: Record<string, string> = {
40-
workflow: 'Workflow',
41-
member: 'Member',
42-
byok_key: 'BYOK Key',
43-
api_key: 'API Key',
44-
permission_group: 'Permission Group',
45-
credential_set: 'Credential Set',
46-
knowledge_base: 'Knowledge Base',
47-
environment: 'Environment',
48-
mcp_server: 'MCP Server',
49-
file: 'File',
50-
webhook: 'Webhook',
51-
chat: 'Chat',
52-
table: 'Table',
53-
folder: 'Folder',
54-
document: 'Document',
55-
}
56-
5738
interface LogEntry {
5839
id: number
5940
actor: string
@@ -189,7 +170,6 @@ function AuditRow({ entry, index }: AuditRowProps) {
189170
const color = ACTOR_COLORS[entry.actor] ?? '#F6F6F6'
190171
const accentOpacity = ACCENT_OPACITIES[index] ?? 0.04
191172
const timeAgo = formatTimeAgo(entry.insertedAt)
192-
const resourceLabel = RESOURCE_TYPE_LABEL[entry.resourceType]
193173

194174
return (
195175
<div className='group relative overflow-hidden border-[#2A2A2A] border-b bg-[#1C1C1C] transition-colors duration-150 last:border-b-0 hover:bg-[#212121]'>
@@ -292,9 +272,6 @@ function AuditLogPreview() {
292272
)
293273
}
294274

295-
const CHECK_PATH =
296-
'M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z'
297-
298275
interface PermissionFeature {
299276
name: string
300277
key: string
@@ -377,8 +354,6 @@ function AccessControlPanel() {
377354
const isInView = useInView(ref, { once: true, margin: '-40px' })
378355
const [accessState, setAccessState] = useState<Record<string, boolean>>(INITIAL_ACCESS_STATE)
379356

380-
const allFeatures = PERMISSION_CATEGORIES.flatMap((c) => c.features)
381-
382357
return (
383358
<div ref={ref}>
384359
<div className='lg:hidden'>

0 commit comments

Comments
 (0)