mirror of https://github.com/kortix-ai/suna.git
Merge pull request #971 from kortix-ai/cursor/refine-agent-ui-and-navigation-7ec7
Refine agent UI and navigation
This commit is contained in:
commit
c54c49701a
|
@ -10,17 +10,17 @@ interface TabsNavigationProps {
|
|||
}
|
||||
|
||||
const agentTabs: TabConfig[] = [
|
||||
{
|
||||
value: 'marketplace',
|
||||
icon: ShoppingBag,
|
||||
label: 'Explore',
|
||||
shortLabel: 'Explore',
|
||||
},
|
||||
{
|
||||
value: 'my-agents',
|
||||
icon: Bot,
|
||||
label: 'My Agents',
|
||||
},
|
||||
{
|
||||
value: 'marketplace',
|
||||
icon: ShoppingBag,
|
||||
label: 'Marketplace',
|
||||
shortLabel: 'Market',
|
||||
},
|
||||
];
|
||||
|
||||
export const TabsNavigation = ({ activeTab, onTabChange }: TabsNavigationProps) => {
|
||||
|
|
|
@ -192,21 +192,19 @@ export function SidebarLeft({
|
|||
<SidebarMenuSub>
|
||||
<SidebarMenuSubItem>
|
||||
<SidebarMenuSubButton className={cn({
|
||||
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && (searchParams.get('tab') === 'my-agents' || searchParams.get('tab') === null),
|
||||
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && searchParams.get('tab') === 'marketplace',
|
||||
})} asChild>
|
||||
<Link href="/agents?tab=my-agents">
|
||||
<Bot className="h-4 w-4" />
|
||||
<span>My Agents</span>
|
||||
<Link href="/agents?tab=marketplace">
|
||||
<span>Explore</span>
|
||||
</Link>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
<SidebarMenuSubItem>
|
||||
<SidebarMenuSubButton className={cn({
|
||||
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && searchParams.get('tab') === 'marketplace',
|
||||
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && (searchParams.get('tab') === 'my-agents' || searchParams.get('tab') === null),
|
||||
})} asChild>
|
||||
<Link href="/agents?tab=marketplace">
|
||||
<Store className="h-4 w-4" />
|
||||
<span>Marketplace</span>
|
||||
<Link href="/agents?tab=my-agents">
|
||||
<span>My Agents</span>
|
||||
</Link>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
|
@ -215,7 +213,6 @@ export function SidebarLeft({
|
|||
onClick={() => setShowNewAgentDialog(true)}
|
||||
className="cursor-pointer"
|
||||
>
|
||||
<Plus className="h-4 w-4" />
|
||||
<span>New Agent</span>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
|
|
Loading…
Reference in New Issue