diff --git a/app/components/analysis/analysis-results.tsx b/app/components/analysis/analysis-results.tsx index 80b5c8b..2f7fc12 100644 --- a/app/components/analysis/analysis-results.tsx +++ b/app/components/analysis/analysis-results.tsx @@ -1,10 +1,10 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; -import { useAnalysisStore } from "@/stores/analysis.store"; -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip"; -import { InfoIcon, ArrowUpDown, PlusIcon, MinusIcon } from "lucide-react"; import type { ItemData } from "@/lib/Item"; import { cn } from "@/lib/utils"; +import { useAnalysisStore } from "@/stores/analysis.store"; +import { ArrowUpDown, InfoIcon, MinusIcon, PlusIcon } from "lucide-react"; import { useState } from "react"; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip"; // Wilson score interval for 95% confidence function wilsonScore(wins: number, total: number): number { diff --git a/app/components/analysis/hero-selector.tsx b/app/components/analysis/hero-selector.tsx index 0b8f1a6..5d8e5ae 100644 --- a/app/components/analysis/hero-selector.tsx +++ b/app/components/analysis/hero-selector.tsx @@ -1,6 +1,6 @@ -import { useEffect, useState } from "react"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { useAnalysisStore } from "@/stores/analysis.store"; +import { useEffect, useState } from "react"; import { toTitleCase } from "~/lib/utils"; interface Hero { diff --git a/app/components/analysis/item-analysis.tsx b/app/components/analysis/item-analysis.tsx index dec3269..27b8b78 100644 --- a/app/components/analysis/item-analysis.tsx +++ b/app/components/analysis/item-analysis.tsx @@ -1,13 +1,13 @@ import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import { cn } from "@/lib/utils"; import { useAnalysisStore } from "@/stores/analysis.store"; +import { Item } from "../../lib/Item"; +import { AnalysisResults } from "./analysis-results"; import { HeroSelector } from "./hero-selector"; import { ItemSelector } from "./item-selector"; -import { AnalysisResults } from "./analysis-results"; -import { Item } from "../../lib/Item"; -import { cn } from "@/lib/utils"; -import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; export function ItemAnalysis() { const { diff --git a/app/components/analysis/item-selector.tsx b/app/components/analysis/item-selector.tsx index 28b77e4..4bf69ad 100644 --- a/app/components/analysis/item-selector.tsx +++ b/app/components/analysis/item-selector.tsx @@ -1,7 +1,7 @@ import { Button } from "@/components/ui/button"; -import { type ItemCategory, useAnalysisStore } from "@/stores/analysis.store"; import { Item } from "@/lib/Item"; import { cn } from "@/lib/utils"; +import { type ItemCategory, useAnalysisStore } from "@/stores/analysis.store"; // Define the weapon names by tier for organization const weaponsByTier = { diff --git a/app/components/layout/nav-header.tsx b/app/components/layout/nav-header.tsx index b89352d..e0a3d3a 100644 --- a/app/components/layout/nav-header.tsx +++ b/app/components/layout/nav-header.tsx @@ -1,6 +1,6 @@ -import { useState } from "react"; -import { Link } from "@remix-run/react"; import { Button } from "@/components/ui/button"; +import { Link } from "@remix-run/react"; +import { useState } from "react"; export function NavHeader() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); @@ -30,7 +30,12 @@ export function NavHeader() { {/* Mobile Menu Toggle */}
- diff --git a/app/components/ui/button.tsx b/app/components/ui/button.tsx index 6c9b054..51dd6f6 100644 --- a/app/components/ui/button.tsx +++ b/app/components/ui/button.tsx @@ -1,6 +1,6 @@ -import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; -import { cva, type VariantProps } from "class-variance-authority"; +import { type VariantProps, cva } from "class-variance-authority"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/command.tsx b/app/components/ui/command.tsx index d2d9402..60a6ab7 100644 --- a/app/components/ui/command.tsx +++ b/app/components/ui/command.tsx @@ -1,12 +1,12 @@ "use client"; -import * as React from "react"; -import { type DialogProps } from "@radix-ui/react-dialog"; +import type { DialogProps } from "@radix-ui/react-dialog"; import { Command as CommandPrimitive } from "cmdk"; import { Search } from "lucide-react"; +import * as React from "react"; -import { cn } from "@/lib/utils"; import { Dialog, DialogContent } from "@/components/ui/dialog"; +import { cn } from "@/lib/utils"; const Command = React.forwardRef< React.ElementRef, diff --git a/app/components/ui/dialog.tsx b/app/components/ui/dialog.tsx index d39a138..f63716e 100644 --- a/app/components/ui/dialog.tsx +++ b/app/components/ui/dialog.tsx @@ -1,6 +1,6 @@ -import * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { X } from "lucide-react"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/dropdown-menu.tsx b/app/components/ui/dropdown-menu.tsx index 8e78343..20fb146 100644 --- a/app/components/ui/dropdown-menu.tsx +++ b/app/components/ui/dropdown-menu.tsx @@ -1,6 +1,6 @@ -import * as React from "react"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import { Check, ChevronRight, Circle } from "lucide-react"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/popover.tsx b/app/components/ui/popover.tsx index 784d844..4ab7a25 100644 --- a/app/components/ui/popover.tsx +++ b/app/components/ui/popover.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import * as PopoverPrimitive from "@radix-ui/react-popover"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/select.tsx b/app/components/ui/select.tsx index 8d63f08..8b32fe7 100644 --- a/app/components/ui/select.tsx +++ b/app/components/ui/select.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import * as SelectPrimitive from "@radix-ui/react-select"; import { Check, ChevronDown, ChevronUp } from "lucide-react"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/separator.tsx b/app/components/ui/separator.tsx index e20c3f4..f90af38 100644 --- a/app/components/ui/separator.tsx +++ b/app/components/ui/separator.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/tabs.tsx b/app/components/ui/tabs.tsx index 51dc6d5..61816be 100644 --- a/app/components/ui/tabs.tsx +++ b/app/components/ui/tabs.tsx @@ -1,7 +1,7 @@ "use client"; -import * as React from "react"; import * as TabsPrimitive from "@radix-ui/react-tabs"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/components/ui/tooltip.tsx b/app/components/ui/tooltip.tsx index 2dece61..ff7d6c9 100644 --- a/app/components/ui/tooltip.tsx +++ b/app/components/ui/tooltip.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; +import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/app/entry.client.tsx b/app/entry.client.tsx index 6129132..f91c526 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -5,7 +5,7 @@ */ import { RemixBrowser } from "@remix-run/react"; -import { startTransition, StrictMode } from "react"; +import { StrictMode, startTransition } from "react"; import { hydrateRoot } from "react-dom/client"; startTransition(() => { diff --git a/app/lib/utils.ts b/app/lib/utils.ts index 7f864a7..2e28984 100644 --- a/app/lib/utils.ts +++ b/app/lib/utils.ts @@ -1,4 +1,4 @@ -import { clsx, type ClassValue } from "clsx"; +import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { diff --git a/app/root.tsx b/app/root.tsx index 636882e..f238140 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -1,5 +1,5 @@ -import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react"; import type { LinksFunction } from "@remix-run/node"; +import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react"; import "./tailwind.css"; diff --git a/app/routes/build-analysis.tsx b/app/routes/build-analysis.tsx index 95f528a..e53129a 100644 --- a/app/routes/build-analysis.tsx +++ b/app/routes/build-analysis.tsx @@ -1,7 +1,7 @@ -import { HeroSelector } from "~/components/analysis/hero-selector"; -import { BuildAnalysisForm } from "~/components/analysis/build-analysis-form"; -import { AnalysisResults } from "~/components/analysis/analysis-results"; import { useState } from "react"; +import { AnalysisResults } from "~/components/analysis/analysis-results"; +import { BuildAnalysisForm } from "~/components/analysis/build-analysis-form"; +import { HeroSelector } from "~/components/analysis/hero-selector"; import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card"; export default function BuildAnalysis() { diff --git a/app/routes/hero-comb-stats.tsx b/app/routes/hero-comb-stats.tsx index bf5b9d6..9ba04cf 100644 --- a/app/routes/hero-comb-stats.tsx +++ b/app/routes/hero-comb-stats.tsx @@ -1,5 +1,5 @@ +import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { useEffect, useState } from "react"; -import { Table, TableHeader, TableBody, TableHead, TableRow, TableCell } from "@/components/ui/table"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "~/components/ui/select"; interface HeroStats { diff --git a/app/routes/hero-stats.tsx b/app/routes/hero-stats.tsx index 930ba99..f0cce72 100644 --- a/app/routes/hero-stats.tsx +++ b/app/routes/hero-stats.tsx @@ -1,5 +1,5 @@ +import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { useEffect, useState } from "react"; -import { Table, TableHeader, TableBody, TableHead, TableRow, TableCell } from "@/components/ui/table"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "~/components/ui/select"; interface HeroStats { diff --git a/app/stores/analysis.store.ts b/app/stores/analysis.store.ts index ca7d2f6..fadcf89 100644 --- a/app/stores/analysis.store.ts +++ b/app/stores/analysis.store.ts @@ -1,8 +1,8 @@ -import { persist, StorageValue, type PersistStorage } from "zustand/middleware"; +import { decode, encode } from "@msgpack/msgpack"; +import { type PersistStorage, StorageValue, persist } from "zustand/middleware"; import { create } from "zustand/react"; -import { Item, type ItemData } from "../lib/Item"; import type { StateCreator } from "zustand/vanilla"; -import { encode, decode } from "@msgpack/msgpack"; +import { Item, type ItemData } from "../lib/Item"; export type ItemCategory = "Weapon" | "Vitality" | "Spirit";