From 3c6e0822bc6be502d03ae7648282d3c9b0897f2b Mon Sep 17 00:00:00 2001 From: allison-truhlar Date: Wed, 17 Dec 2025 10:39:18 -0500 Subject: [PATCH 1/2] fix: dark styles in file selector - the main file table test inherited some styles from a parent div that I did not previously apply in the file selector table --- frontend/src/components/ui/BrowsePage/BreadcrumbSegment.tsx | 6 ++---- .../ui/BrowsePage/FileSelector/FileSelectorTable.tsx | 4 ++-- frontend/src/components/ui/widgets/Loaders.tsx | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/ui/BrowsePage/BreadcrumbSegment.tsx b/frontend/src/components/ui/BrowsePage/BreadcrumbSegment.tsx index 87aa8ac8..72d79f95 100644 --- a/frontend/src/components/ui/BrowsePage/BreadcrumbSegment.tsx +++ b/frontend/src/components/ui/BrowsePage/BreadcrumbSegment.tsx @@ -32,9 +32,7 @@ export default function BreadcrumbSegment({ // Last segment is always non-clickable text return ( {label} @@ -58,7 +56,7 @@ export default function BreadcrumbSegment({ // Callback-based navigation (for dialogs) {label} diff --git a/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorTable.tsx b/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorTable.tsx index 07917744..6a85e42e 100644 --- a/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorTable.tsx +++ b/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorTable.tsx @@ -143,7 +143,7 @@ export default function FileSelectorTable({ {headerGroup.headers.map(header => ( @@ -189,7 +189,7 @@ export default function FileSelectorTable({ > {row.getVisibleCells().map(cell => ( diff --git a/frontend/src/components/ui/widgets/Loaders.tsx b/frontend/src/components/ui/widgets/Loaders.tsx index 18bf082d..d115eba2 100644 --- a/frontend/src/components/ui/widgets/Loaders.tsx +++ b/frontend/src/components/ui/widgets/Loaders.tsx @@ -13,7 +13,7 @@ function Spinner({ className={`w-5 h-5 border-4 border-surface-foreground border-t-transparent rounded-full animate-spin ${customClasses}`} title="Loading spinner" /> - {text} + {text} ); } From cb0bf13662e7f2c933813d86ab470b190a8a8d74 Mon Sep 17 00:00:00 2001 From: allison-truhlar Date: Wed, 17 Dec 2025 10:58:01 -0500 Subject: [PATCH 2/2] fix: dark styles --- .../ui/BrowsePage/FileSelector/FileSelectorButton.tsx | 10 ++++++++-- frontend/src/components/ui/Dialogs/ConvertFile.tsx | 10 +++++++--- frontend/src/components/ui/widgets/Loaders.tsx | 6 ++++-- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorButton.tsx b/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorButton.tsx index 7c339585..f1cc548f 100644 --- a/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorButton.tsx +++ b/frontend/src/components/ui/BrowsePage/FileSelector/FileSelectorButton.tsx @@ -106,7 +106,10 @@ export default function FileSelectorButton({
{zonesQuery.isPending ? (
- +
) : zonesQuery.isError ? (
@@ -117,7 +120,10 @@ export default function FileSelectorButton({ ) : state.currentLocation.type === 'filesystem' && fileQuery.isPending ? (
- +
) : state.currentLocation.type === 'filesystem' && fileQuery.isError ? ( diff --git a/frontend/src/components/ui/Dialogs/ConvertFile.tsx b/frontend/src/components/ui/Dialogs/ConvertFile.tsx index 853a5afd..c6e2072e 100644 --- a/frontend/src/components/ui/Dialogs/ConvertFile.tsx +++ b/frontend/src/components/ui/Dialogs/ConvertFile.tsx @@ -103,7 +103,7 @@ export default function ConvertFileDialog({
) => { @@ -143,7 +143,7 @@ export default function ConvertFileDialog({ Output File or Folder Name ) => { @@ -178,7 +178,11 @@ export default function ConvertFileDialog({ type="submit" > {createTicketMutation.isPending || allTicketsQuery.isFetching ? ( - + ) : ( 'Submit' )} diff --git a/frontend/src/components/ui/widgets/Loaders.tsx b/frontend/src/components/ui/widgets/Loaders.tsx index d115eba2..8f22f1af 100644 --- a/frontend/src/components/ui/widgets/Loaders.tsx +++ b/frontend/src/components/ui/widgets/Loaders.tsx @@ -2,10 +2,12 @@ import { Typography } from '@material-tailwind/react'; function Spinner({ customClasses, - text + text, + textClasses }: { readonly customClasses?: string; readonly text?: string; + readonly textClasses?: string; }) { return (
@@ -13,7 +15,7 @@ function Spinner({ className={`w-5 h-5 border-4 border-surface-foreground border-t-transparent rounded-full animate-spin ${customClasses}`} title="Loading spinner" /> - {text} + {text}
); }