From db5fddb104be1d3b026a9aee7d3642c026efb64c Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:46:43 +0530 Subject: [PATCH] feat: replace checkbox inputs with Checkbox component in file deletion UIs - Updated the file deletion UI components for Google Drive, Linear, and Notion to use the new Checkbox component for better consistency and styling. - Enhanced the accessibility of the checkbox inputs by associating labels with their respective checkboxes, improving user experience during file deletion operations. --- .../tool-ui/google-drive/trash-file.tsx | 27 ++++++++++--------- .../tool-ui/linear/delete-linear-issue.tsx | 27 ++++++++++--------- .../tool-ui/notion/delete-notion-page.tsx | 27 ++++++++++--------- 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/surfsense_web/components/tool-ui/google-drive/trash-file.tsx b/surfsense_web/components/tool-ui/google-drive/trash-file.tsx index 02e833f23..ad1157fd4 100644 --- a/surfsense_web/components/tool-ui/google-drive/trash-file.tsx +++ b/surfsense_web/components/tool-ui/google-drive/trash-file.tsx @@ -12,6 +12,7 @@ import { useParams } from "next/navigation"; import { useCallback, useEffect, useState } from "react"; import { toast } from "sonner"; import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; import { TextShimmerLoader } from "@/components/prompt-kit/loader"; import { authenticatedFetch } from "@/lib/auth-utils"; @@ -274,21 +275,21 @@ function ApprovalCard({

The file will be moved to Google Drive trash. You can restore it from trash within 30 days.

-