From ef7b2a521175ca8ec8cbfe02b985b173d84ac720 Mon Sep 17 00:00:00 2001 From: ChloeGarciaMillerand Date: Tue, 22 Sep 2026 11:31:30 +0200 Subject: [PATCH] fix: ESLint errors relating to accessibility in integration section (#50224) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Improving accessibility by adding aria-label. Adding Tooltip for icon only buttons. ## What is the current behavior? Some `aria-label` and `Tooltip` are missing. ## What is the new behavior? Icon-only buttons have now Tooltip and aria-label have been added. ## Additional context No visual changes have been made. ## Summary by CodeRabbit * **Accessibility Improvements** * Added descriptive tooltips and screen-reader labels to search-clear and close-panel controls. * Added accessible labels and tooltips for managing secrets, showing or hiding secret values, and editing or removing foreign tables. * Improved the lint details panel close control with a descriptive label. * Prevented duplicate tooltip announcements for assistive technologies. --------- Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com> --- .../CronJobs/CronJobsTab.Header.tsx | 26 +++++--- .../Integrations/Queues/QueuesTab.tsx | 26 +++++--- .../SingleQueue/MessageDetailsPanel.tsx | 33 +++++++--- .../Integrations/Vault/Secrets/SecretRow.tsx | 60 +++++++++++++------ .../Vault/Secrets/SecretsManagement.tsx | 27 ++++++--- .../Wrappers/CreateWrapperSheet.tsx | 47 ++++++++++----- .../Wrappers/EditWrapperSheet.tsx | 47 ++++++++++----- .../interfaces/Linter/LinterDataGrid.tsx | 7 ++- 8 files changed, 194 insertions(+), 79 deletions(-) diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx index 6c6c6909a3c..19e41e6bb6f 100644 --- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx +++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx @@ -1,6 +1,6 @@ import { RefreshCw, Search, X } from 'lucide-react' import type { KeyboardEvent, Ref } from 'react' -import { Button } from 'ui' +import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import { Input } from 'ui-patterns/DataInputs/Input' import { EnableCleanupButton } from './CronJobsTab.EnableCleanupButton' @@ -47,14 +47,22 @@ export const CronJobsTabHeader = ({ onKeyDown={handleKeyDown} actions={[ search && ( -