diff --git a/src/pages/admin/bots/[bot_id]/(partials)/composer-computer-button.tsx b/src/pages/admin/bots/[bot_id]/(partials)/composer-computer-button.tsx
index 7357447..516262a 100644
--- a/src/pages/admin/bots/[bot_id]/(partials)/composer-computer-button.tsx
+++ b/src/pages/admin/bots/[bot_id]/(partials)/composer-computer-button.tsx
@@ -2,6 +2,7 @@ import { useContext } from "react";
import Button from "@moduletrace/twui/layout/Button";
import { Monitor } from "lucide-react";
import { BotComputersContext } from "../(data)/bot-computers-context";
+import Span from "@moduletrace/twui/layout/Span";
/**
* Beside the composer's tools: opens the computer the bot is on in the
@@ -24,9 +25,14 @@ export default function ComposerComputerButton() {
variant="ghost"
color="gray"
size="small"
- onClick={() => openComputer({ computer_id: computer.id || 0, mode: "browser" })}
+ onClick={() =>
+ openComputer({ computer_id: computer.id || 0, mode: "browser" })
+ }
className="shrink-0 px-1.5! py-0.5! text-ink-secondary dark:text-ink-secondary hover:text-ink hover:dark:text-ink"
>
+
+ Computer
+
);
diff --git a/src/pages/admin/bots/[bot_id]/(partials)/composer-tools.tsx b/src/pages/admin/bots/[bot_id]/(partials)/composer-tools.tsx
index f2586ec..88e7f74 100644
--- a/src/pages/admin/bots/[bot_id]/(partials)/composer-tools.tsx
+++ b/src/pages/admin/bots/[bot_id]/(partials)/composer-tools.tsx
@@ -7,6 +7,7 @@ import { BotComputersContext } from "../(data)/bot-computers-context";
import ComposerAddToolModal from "./composer-add-tool-modal";
import ComposerComputerButton from "./composer-computer-button";
import ComposerToolChip from "./composer-tool-chip";
+import { Dot } from "lucide-react";
type Props = {
bot: BotWithLastMessage;
@@ -29,14 +30,20 @@ export default function ComposerTools({ bot, workspace_id, initial }: Props) {
const { computers } = useContext(BotComputersContext);
- const has_tools = Boolean(extensions.attached.length || (extensions.can_manage && extensions.addable.length));
+ const has_tools = Boolean(
+ extensions.attached.length ||
+ (extensions.can_manage && extensions.addable.length),
+ );
if (!has_tools && !computers.length) return null;
return (
-
- {has_tools ? Tools : null}
+ {has_tools ? (
+
+ Tools
+
+ ) : null}
{extensions.attached.map((item) => (
extensions.remove({ kind: item.kind, id: item.id, name: item.name })
+ ? () =>
+ extensions.remove({
+ kind: item.kind,
+ id: item.id,
+ name: item.name,
+ })
: undefined
}
/>
))}
+
+ {has_tools ? (
+
+
+
+ ) : null}
+
+
{extensions.can_manage ? (
) : null}
{extensions.status?.error ? (
-
+
{extensions.status.msg}
) : null}