feat(22-01): add UIStore modal states, AddToCollectionModal, and sonner toasts

- Extend UIStore with addToCollectionModal, addToThreadModal, catalogSessionThreadId
- Create AddToCollectionModal with category dropdown, notes, purchase price
- Install sonner and add Toaster + AddToCollectionModal to root layout
- closeCatalogSearch now resets catalogSessionThreadId

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 15:55:44 +02:00
parent 576c59a460
commit f309c73304
5 changed files with 221 additions and 1 deletions

View File

@@ -8,7 +8,9 @@ import {
useRouter,
} from "@tanstack/react-router";
import { useState } from "react";
import { Toaster } from "sonner";
import "../app.css";
import { AddToCollectionModal } from "../components/AddToCollectionModal";
import { CatalogSearchOverlay } from "../components/CatalogSearchOverlay";
import { ConfirmDialog } from "../components/ConfirmDialog";
import { ExternalLinkDialog } from "../components/ExternalLinkDialog";
@@ -204,6 +206,10 @@ function RootLayout() {
{/* Catalog Search Overlay */}
<CatalogSearchOverlay />
{/* Add to Collection Modal */}
<AddToCollectionModal />
<Toaster position="bottom-right" richColors />
{/* Onboarding Wizard */}
{showWizard && (
<OnboardingWizard onComplete={() => setWizardDismissed(true)} />