Web UI on Ant Design, scrollable factory columns, fix empty page after deleting the open chat
Buttons, fields, drop-downs, check boxes, tabs, dialogs and notices are Ant Design components; their tokens come from the theme variables (web/src/ui). Every factory board column has its own vertical scrollbar. ChatView rendered fewer hooks once its chat was deleted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90b9ab6670
commit
6b1a1742b2
79 files changed
+2628
-1393
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { Button } from "antd";
|
||||
import { Icon } from "./Icon";
|
||||
import { FileFigure, imageSize, imageSrc } from "./FileFigure";
|
||||
import { useState } from "react";
|
||||
@@ -142,9 +143,9 @@ export function ToolCard({ call, result, running, baseDir }: { call: ToolCall; r
|
||||
{call.name === "bash" && <pre className="mono">$ {call.input?.command}</pre>}
|
||||
{(call.name === "edit" || call.name === "write") && meta?.diff && <Diff diff={meta.diff} />}
|
||||
{call.name === "task" && meta?.session_id && (
|
||||
<button className="small" onClick={() => navigate(`/s/${meta.session_id}`)}>
|
||||
<Button size="small" onClick={() => navigate(`/s/${meta.session_id}`)}>
|
||||
{t("tool.openSubagent")}
|
||||
</button>
|
||||
</Button>
|
||||
)}
|
||||
{!["bash", "edit", "write", "task"].includes(call.name) && (
|
||||
<>
|
||||
@@ -165,8 +166,7 @@ export function ToolCard({ call, result, running, baseDir }: { call: ToolCall; r
|
||||
</>
|
||||
)}
|
||||
{typeof meta?.model_file === "string" && (
|
||||
<button
|
||||
className="small"
|
||||
<Button size="small"
|
||||
style={{ marginBottom: 8 }}
|
||||
onClick={() => {
|
||||
sessionStorage.setItem("codecraft.openFile", meta.model_file);
|
||||
@@ -174,7 +174,7 @@ export function ToolCard({ call, result, running, baseDir }: { call: ToolCall; r
|
||||
}}
|
||||
>
|
||||
<Icon name="cube" /> {t("tool.open3d")}
|
||||
</button>
|
||||
</Button>
|
||||
)}
|
||||
{Array.isArray(meta?.image_ids) ? (
|
||||
<div className="gallery small">
|
||||
|
||||
Reference in new issue
Block a user