Add CSV export for orders and update UI symbols

Introduces an exportOrdersToCSV function in lib/api-client.ts to allow exporting orders by status as a CSV file. Updates various UI components to use the '•' (bullet) symbol instead of '·' (middle dot) and replaces some emoji/unicode characters for improved consistency and compatibility. Also normalizes the 'use client' directive to include a BOM in many files.
This commit is contained in:
g
2025-12-15 17:57:18 +00:00
parent 07dcaf55c0
commit 0176f89cb7
91 changed files with 232 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as AccordionPrimitive from "@radix-ui/react-accordion"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils/styles";

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as AvatarPrimitive from "@radix-ui/react-avatar"

View File

@@ -1,4 +1,4 @@
import * as React from "react";
import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils/styles";
@@ -35,4 +35,4 @@ function Badge({ className, variant, ...props }: BadgeProps) {
);
}
export { Badge, badgeVariants };
export { Badge, badgeVariants };

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { ChevronRight, MoreHorizontal } from "lucide-react"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import { ChevronLeft, ChevronRight } from "lucide-react"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { cn } from "@/lib/utils/general"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import useEmblaCarousel, {

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as RechartsPrimitive from "recharts"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import { type DialogProps } from "@radix-ui/react-dialog"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import { format, addDays, startOfDay, endOfDay, isSameDay, isWithinInterval, getMonth, getYear, setMonth, setYear } from "date-fns"
@@ -410,4 +410,4 @@ export function DateRangeDisplay({ dateRange }: { dateRange?: DateRange }) {
</span>
</div>
)
}
}

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import { Drawer as DrawerPrimitive } from "vaul"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { cn } from "@/lib/utils/styles";

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as MenubarPrimitive from "@radix-ui/react-menubar"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
import { cva } from "class-variance-authority"
import { ChevronDown } from "lucide-react"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
import { cn } from "@/lib/utils/styles";

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as PopoverPrimitive from "@radix-ui/react-popover"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as ProgressPrimitive from "@radix-ui/react-progress"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import { GripVertical } from "lucide-react"
import * as ResizablePrimitive from "react-resizable-panels"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as SelectPrimitive from "@radix-ui/react-select"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"

View File

@@ -1,4 +1,4 @@
import { cn } from "@/lib/utils/styles";
import { cn } from "@/lib/utils/styles";
function Skeleton({
className,

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as SliderPrimitive from "@radix-ui/react-slider"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as SwitchPrimitives from "@radix-ui/react-switch"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { cn } from "@/lib/utils/styles";

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as TabsPrimitive from "@radix-ui/react-tabs"

View File

@@ -1,4 +1,4 @@
import * as React from "react"
import * as React from "react"
import { cn } from "@/lib/utils/styles";

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as ToastPrimitives from "@radix-ui/react-toast"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as TogglePrimitive from "@radix-ui/react-toggle"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"

View File

@@ -1,4 +1,4 @@
"use client"
"use client"
// Inspired by react-hot-toast library
import * as React from "react"