From 301ce7aea43507fdc53727e11727c4ebe5bc965d Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Sat, 18 Apr 2026 22:28:11 -0400 Subject: [PATCH] fix: resolve Radix Dialog accessibility warnings and duplicate React key (#810) Add visually-hidden DialogTitle and DialogDescription to NewWorkspaceComposerModal and ImageViewer to satisfy Radix UI's accessibility requirements for screen readers. Remove duplicate 'copilot' entry in AGENT_CATALOG that caused React's "two children with the same key" warning. --- src/renderer/src/components/NewWorkspaceComposerModal.tsx | 6 +++++- src/renderer/src/components/editor/ImageViewer.tsx | 3 ++- src/renderer/src/lib/agent-catalog.tsx | 7 ------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/renderer/src/components/NewWorkspaceComposerModal.tsx b/src/renderer/src/components/NewWorkspaceComposerModal.tsx index 3c82fa711..ea9b4e3f6 100644 --- a/src/renderer/src/components/NewWorkspaceComposerModal.tsx +++ b/src/renderer/src/components/NewWorkspaceComposerModal.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useEffect } from 'react' import { useAppStore } from '@/store' -import { Dialog, DialogContent } from '@/components/ui/dialog' +import { Dialog, DialogContent, DialogDescription, DialogTitle } from '@/components/ui/dialog' import NewWorkspaceComposerCard from '@/components/NewWorkspaceComposerCard' import { useComposerState } from '@/hooks/useComposerState' import type { LinkedWorkItemSummary } from '@/lib/new-workspace' @@ -122,6 +122,10 @@ function ComposerModalBody({ promptTextareaRef.current?.focus() }} > + Create New Workspace + + Configure a name and prompt for the new workspace. + {filename} + Full-size image preview
{filename}