From 88f1853b09c7e32740112f7868a52b73811ab92a Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 26 Feb 2025 22:14:11 -0500 Subject: [PATCH] Style tweaks --- .../MatchColumnsStep/MatchColumnsStep.tsx | 63 +++++-------------- .../SelectHeaderStep/SelectHeaderStep.tsx | 29 +++++---- .../components/SelectHeaderTable.tsx | 8 +-- .../src/steps/Steps.tsx | 9 ++- .../src/steps/UploadStep/UploadStep.tsx | 18 +++--- .../src/translationsRSIProps.ts | 10 +-- 6 files changed, 56 insertions(+), 81 deletions(-) diff --git a/inventory/src/lib/react-spreadsheet-import/src/steps/MatchColumnsStep/MatchColumnsStep.tsx b/inventory/src/lib/react-spreadsheet-import/src/steps/MatchColumnsStep/MatchColumnsStep.tsx index 26ace85..2ef1536 100644 --- a/inventory/src/lib/react-spreadsheet-import/src/steps/MatchColumnsStep/MatchColumnsStep.tsx +++ b/inventory/src/lib/react-spreadsheet-import/src/steps/MatchColumnsStep/MatchColumnsStep.tsx @@ -19,8 +19,7 @@ import { import { useQuery } from "@tanstack/react-query" import config from "@/config" import { Button } from "@/components/ui/button" -import { CheckCircle2, AlertCircle, InfoIcon, EyeIcon, EyeOffIcon, ArrowRightIcon, XIcon, FileIcon, LinkIcon } from "lucide-react" -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" +import { CheckCircle2, AlertCircle, EyeIcon, EyeOffIcon, ArrowRightIcon, XIcon, FileSpreadsheetIcon, LinkIcon, FileIcon } from "lucide-react" import { Separator } from "@/components/ui/separator" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table" import { Badge } from "@/components/ui/badge" @@ -110,7 +109,7 @@ export const MatchColumnsStep = ({ onBack, initialGlobalSelections }: MatchColumnsProps) => { - const dataExample = useMemo(() => data.slice(0, 3), [data]) // Show 3 sample rows + const dataExample = useMemo(() => data.slice(0, 5), [data]) // Show 5 sample rows const { fields, autoMapHeaders, autoMapSelectValues, autoMapDistance, translations } = useRsi() const [isLoading, setIsLoading] = useState(false) const [columns, setColumns] = useState>( @@ -200,8 +199,6 @@ export const MatchColumnsStep = ({ }); }, [columns]); - // Get the first value from the sample data for a column - // Get mapped company value (if company is mapped to a column) const mappedCompanyColumn = useMemo(() => findMappedColumnForField('company'), [findMappedColumnForField]); const mappedCompanyValue = useMemo(() => { @@ -726,7 +723,7 @@ export const MatchColumnsStep = ({ @@ -865,13 +862,13 @@ export const MatchColumnsStep = ({ {/* Left panel - Global selections & Required fields */}
-

Global Settings

-

- Apply these values to all imported items +

Global Settings

+

+ These values will be applied to all imported items

-
-
+
+
-
+
-
+
-
+