Tighten assistant dialog headers
This commit is contained in:
@@ -53,7 +53,6 @@ import { Button } from "@/components/ui/button";
|
|||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogDescription,
|
|
||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
@@ -916,7 +915,6 @@ const ComposerAssistButtons: FC = () => {
|
|||||||
<SkillInsertDialog />
|
<SkillInsertDialog />
|
||||||
<PromptInsertDialog
|
<PromptInsertDialog
|
||||||
title="常用工具"
|
title="常用工具"
|
||||||
description="这里用于调试和明确意图,最终是否调用仍由 Agent 决策。"
|
|
||||||
triggerIcon={<WrenchIcon className="size-4" />}
|
triggerIcon={<WrenchIcon className="size-4" />}
|
||||||
triggerLabel=""
|
triggerLabel=""
|
||||||
items={TOOL_PROMPTS}
|
items={TOOL_PROMPTS}
|
||||||
@@ -954,13 +952,11 @@ const TOOL_PROMPTS = [
|
|||||||
|
|
||||||
function PromptInsertDialog({
|
function PromptInsertDialog({
|
||||||
title,
|
title,
|
||||||
description,
|
|
||||||
triggerIcon,
|
triggerIcon,
|
||||||
triggerLabel,
|
triggerLabel,
|
||||||
items,
|
items,
|
||||||
}: {
|
}: {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
|
||||||
triggerIcon: ReactNode;
|
triggerIcon: ReactNode;
|
||||||
triggerLabel: string;
|
triggerLabel: string;
|
||||||
items: { title: string; description: string; prompt: string }[];
|
items: { title: string; description: string; prompt: string }[];
|
||||||
@@ -986,7 +982,6 @@ function PromptInsertDialog({
|
|||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogDescription>{description}</DialogDescription>
|
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
@@ -1061,9 +1056,6 @@ function SlashCommandDialog() {
|
|||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>快捷入口</DialogTitle>
|
<DialogTitle>快捷入口</DialogTitle>
|
||||||
<DialogDescription>
|
|
||||||
这里展示终端 `/` 命令中可在 WebUI 对话框执行的子集。
|
|
||||||
</DialogDescription>
|
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
{status ? (
|
{status ? (
|
||||||
<p className="text-muted-foreground text-sm">{status}</p>
|
<p className="text-muted-foreground text-sm">{status}</p>
|
||||||
@@ -1261,9 +1253,6 @@ function SkillInsertDialog() {
|
|||||||
<DialogContent className="gap-3 p-5">
|
<DialogContent className="gap-3 p-5">
|
||||||
<DialogHeader className="gap-1 pr-6">
|
<DialogHeader className="gap-1 pr-6">
|
||||||
<DialogTitle>Skills</DialogTitle>
|
<DialogTitle>Skills</DialogTitle>
|
||||||
<DialogDescription>
|
|
||||||
勾选的 Skill 会进入模型可见列表;点击名称可插入显式调用。
|
|
||||||
</DialogDescription>
|
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user