Update batch test page

This commit is contained in:
Xin Wang
2026-08-08 19:08:48 +08:00
parent 21a25874a9
commit 433ff0b255
9 changed files with 607 additions and 438 deletions
@@ -70,7 +70,13 @@ export function EditorBackButton({
);
}
export function AssistantIdentity({ assistantId }: { assistantId: string | null }) {
export function AssistantIdentity({
assistantId,
entityLabel = "助手",
}: {
assistantId: string | null;
entityLabel?: string;
}) {
const [copied, setCopied] = useState(false);
async function copyId() {
@@ -90,7 +96,9 @@ export function AssistantIdentity({ assistantId }: { assistantId: string | null
type="button"
onClick={() => void copyId()}
className="ml-1 flex h-7 w-7 items-center justify-center rounded-full text-muted-soft transition-colors hover:bg-surface-strong hover:text-foreground"
aria-label={copied ? "助手 ID 已复制" : "复制助手 ID"}
aria-label={
copied ? `${entityLabel} ID 已复制` : `复制${entityLabel} ID`
}
title={copied ? "已复制" : "复制 ID"}
>
{copied ? <Check size={13} /> : <Copy size={13} />}