@greatapps/greatagents-ui 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +122 -49
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/agents/agent-edit-form.tsx +4 -1
- package/src/components/agents/agent-form-dialog.tsx +5 -1
- package/src/components/agents/agent-objectives-list.tsx +15 -6
- package/src/components/agents/agent-prompt-editor.tsx +9 -5
- package/src/components/agents/agent-tabs.tsx +4 -4
- package/src/components/agents/agent-tools-list.tsx +12 -5
- package/src/components/agents/agents-table.tsx +7 -2
- package/src/components/conversations/agent-conversations-table.tsx +13 -2
- package/src/components/conversations/conversation-view.tsx +2 -2
- package/src/components/tools/tool-credentials-form.tsx +34 -14
- package/src/components/tools/tool-form-dialog.tsx +9 -5
- package/src/components/tools/tools-table.tsx +8 -3
- package/src/pages/agent-detail-page.tsx +1 -0
|
@@ -70,7 +70,7 @@ function useColumns(
|
|
|
70
70
|
if (!desc) return <span className="text-muted-foreground text-sm">{"\u2014"}</span>;
|
|
71
71
|
return (
|
|
72
72
|
<span className="text-muted-foreground text-sm">
|
|
73
|
-
{desc.length > 50 ? `${desc.slice(0, 50)}
|
|
73
|
+
{desc.length > 50 ? `${desc.slice(0, 50)}\u2026` : desc}
|
|
74
74
|
</span>
|
|
75
75
|
);
|
|
76
76
|
},
|
|
@@ -98,6 +98,7 @@ function useColumns(
|
|
|
98
98
|
variant="ghost"
|
|
99
99
|
size="icon"
|
|
100
100
|
className="h-8 w-8"
|
|
101
|
+
aria-label="Editar"
|
|
101
102
|
onClick={() => onEdit(row.original)}
|
|
102
103
|
>
|
|
103
104
|
<Pencil className="h-4 w-4" />
|
|
@@ -111,6 +112,7 @@ function useColumns(
|
|
|
111
112
|
variant="ghost"
|
|
112
113
|
size="icon"
|
|
113
114
|
className="h-8 w-8 text-destructive hover:text-destructive"
|
|
115
|
+
aria-label="Excluir"
|
|
114
116
|
onClick={() => onDelete(row.original.id)}
|
|
115
117
|
>
|
|
116
118
|
<Trash2 className="h-4 w-4" />
|
|
@@ -171,9 +173,12 @@ export function ToolsTable({ onEdit, config }: ToolsTableProps) {
|
|
|
171
173
|
<>
|
|
172
174
|
<div className="flex items-center gap-3">
|
|
173
175
|
<div className="relative flex-1 max-w-md">
|
|
174
|
-
<Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
|
|
176
|
+
<Search aria-hidden="true" className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
|
|
175
177
|
<Input
|
|
176
|
-
placeholder="Buscar ferramentas
|
|
178
|
+
placeholder="Buscar ferramentas\u2026"
|
|
179
|
+
aria-label="Buscar ferramentas"
|
|
180
|
+
name="search"
|
|
181
|
+
autoComplete="off"
|
|
177
182
|
value={search}
|
|
178
183
|
onChange={(e) => handleSearchChange(e.target.value)}
|
|
179
184
|
className="pl-9"
|