Skip to content

Commit 7f8cf36

Browse files
feat(frontend): Add description to Upload Agent dialog (#11053)
### Changes 🏗️ - Added a description to the Upload Agent dialog to provide more context for users. Fixes [BUILDER-3N1](https://sentry.io/organizations/significant-gravitas/issues/6915512912/). The issue was that: DialogContent in LibraryUploadAgentDialog lacks an accessible description, violating WAI-ARIA standards. <img width="2066" height="1740" alt="image" src="https://github.com/user-attachments/assets/c876fb33-4375-4a66-a6a2-6b13c00ef8d3" /> ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: <!-- Put your test plan here: --> - [x] Test it works - [x] Get design approval Co-authored-by: seer-by-sentry[bot] <157164994+seer-by-sentry[bot]@users.noreply.github.com> Co-authored-by: Nicholas Tindle <[email protected]>
1 parent 8b4eb6f commit 7f8cf36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autogpt_platform/frontend/src/app/(platform)/library/components/LibraryUploadAgentDialog/LibraryUploadAgentDialog.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Button } from "@/components/__legacy__/Button";
44
import {
55
Dialog,
66
DialogContent,
7+
DialogDescription,
78
DialogHeader,
89
DialogTitle,
910
DialogTrigger,
@@ -64,6 +65,9 @@ export default function LibraryUploadAgentDialog(): React.ReactNode {
6465
<DialogContent>
6566
<DialogHeader>
6667
<DialogTitle className="mb-8 text-center">Upload Agent</DialogTitle>
68+
<DialogDescription>
69+
Upload your agent by providing a name, description, and JSON file.
70+
</DialogDescription>
6771
</DialogHeader>
6872

6973
<Form {...form}>

0 commit comments

Comments
 (0)