Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions apps/web/src/bench/bench-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const DrawerTabContext = createContext<(tab: DrawerTab) => void>(() => un

/** The floating card in the grid column that pushes the thread left. Each
* tab's body arrives as a prop keyed by tab name; a tab without one shows a
* short empty state until its own ticket lands. */
* short empty state. */
export function BenchDrawer({
open,
title,
Expand Down Expand Up @@ -128,9 +128,7 @@ export function BenchDrawer({
</div>
<div className="drawer-body" role="tabpanel">
<DrawerTabContext.Provider value={setTab}>
{body ?? (
<p className="workbench-info-empty-note">{tab} is coming to this drawer soon.</p>
)}
{body ?? <p className="workbench-info-empty-note">Nothing to show for {tab} yet.</p>}
</DrawerTabContext.Provider>
</div>
</div>
Expand Down
23 changes: 13 additions & 10 deletions apps/web/src/bench/tools-tab.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button } from "@corbits/react-ui";

import { QueryView } from "@/lib/api-query";
import { Plugs } from "@/lib/icons";
import { Link } from "../navigation";
import { toolCountLabel } from "../tools/tool-count";
import { useMcpServers } from "../tools/mcp-servers-query";
import "../tools/tools-page.css";
import "./drawer.css";
Expand All @@ -20,23 +20,26 @@ export function ToolsTab({ workbenchTenantId }: { readonly workbenchTenantId: st
<div className="workbench-info-panel-header">
<h2>Tools</h2>
</div>
<p className="workbench-info-empty-note">
No tools are connected in this workbench yet.
<p className="drawer-about">
Nothing connected yet — connect a server from the Tools page and every tool it offers
shows up here.
</p>
<Button asChild size="sm" variant="outline">
<Link to={manage}>
<Plugs size={14} />
Connect a tool
</Link>
<Button asChild size="lg">
<Link to={manage}>Connect a tool</Link>
</Button>
</section>
) : (
<>
{servers.map((server) => (
<section key={server.credentialId} className="drawer-sec">
<div className="drawer-sec-head">
<h3>{server.name}</h3>
<Link to={manage}>Add tools</Link>
<h3>
{server.name}{" "}
<span className="tools-tab-count">{toolCountLabel(server.tools.length)}</span>
</h3>
<Link to={manage} className="tools-tab-add">
Add tools
</Link>
</div>
<ul className="drawer-list">
{server.tools.map((tool) => (
Expand Down
Loading
Loading