Skip to content

Commit ba7c4c6

Browse files
Copilothotlong
andcommitted
fix: use SYSTEM_OBJECT_PREFIX constant instead of hardcoded 'sys_' in sidebar
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent f9a7744 commit ba7c4c6

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/studio/src/components/app-sidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ export function AppSidebar({
497497
onClick={() => onSelectObject(itemName)}
498498
>
499499
<span className="truncate">
500-
<span className="text-muted-foreground font-mono text-xs">sys_</span>
500+
{itemName.startsWith(SYSTEM_OBJECT_PREFIX) && (
501+
<span className="text-muted-foreground font-mono text-xs">{SYSTEM_OBJECT_PREFIX}</span>
502+
)}
501503
{itemLabel}
502504
</span>
503505
</SidebarMenuSubButton>

apps/studio/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
"noFallthroughCasesInSwitch": true,
2222
"baseUrl": ".",
2323
"paths": {
24-
"@/*": ["./src/*"],
25-
"@objectstack/plugin-auth/objects": ["../../packages/plugins/plugin-auth/src/objects/index.ts"],
26-
"@objectstack/plugin-security/objects": ["../../packages/plugins/plugin-security/src/objects/index.ts"],
27-
"@objectstack/plugin-audit/objects": ["../../packages/plugins/plugin-audit/src/objects/index.ts"]
24+
"@/*": ["./src/*"]
2825
}
2926
},
3027
"include": ["src", "test"],

0 commit comments

Comments
 (0)