Skip to content

Commit db102ca

Browse files
committed
chore: hide search_object in sidebar
1 parent d796409 commit db102ca

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

frontend/src/components/Sidebar/Sidebar.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,25 @@ export default function Sidebar({ sources, isLoading }: SidebarProps) {
3838
<span className="truncate">{currentSource.id}</span>
3939
</Link>
4040
<div className="flex-1 overflow-auto">
41-
{currentSource.tools.map((tool) => (
42-
<Link
43-
key={tool.name}
44-
to={`/source/${currentSource.id}/tool/${tool.name}`}
45-
className={cn(
46-
'flex items-center gap-2 px-4 py-2 text-sm transition-colors rounded-md',
47-
toolName === tool.name
48-
? 'bg-accent text-accent-foreground'
49-
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50'
50-
)}
51-
>
52-
<span className="truncate font-mono text-xs">{tool.name}</span>
53-
{tool.readonly && (
54-
<LockIcon className="w-3 h-3 ml-auto flex-shrink-0" />
55-
)}
56-
</Link>
57-
))}
41+
{currentSource.tools
42+
.filter((tool) => tool.name !== 'search_objects')
43+
.map((tool) => (
44+
<Link
45+
key={tool.name}
46+
to={`/source/${currentSource.id}/tool/${tool.name}`}
47+
className={cn(
48+
'flex items-center gap-2 px-4 py-2 text-sm transition-colors rounded-md',
49+
toolName === tool.name
50+
? 'bg-accent text-accent-foreground'
51+
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50'
52+
)}
53+
>
54+
<span className="truncate font-mono text-xs">{tool.name}</span>
55+
{tool.readonly && (
56+
<LockIcon className="w-3 h-3 ml-auto flex-shrink-0" />
57+
)}
58+
</Link>
59+
))}
5860
</div>
5961
</div>
6062
) : (

0 commit comments

Comments
 (0)