diff --git a/docs/PHASES.md b/docs/PHASES.md index ffa1ce0..03413a6 100644 --- a/docs/PHASES.md +++ b/docs/PHASES.md @@ -56,4 +56,6 @@ Customer and administration screens are implemented, with recovery, pricing, sto - Quotation UAT should verify minimum quantities, expiry, immutable snapshots after archiving a price list, and exact retries for issuance and responses. - B2B credit policies support immutable proposals, independent approval or rejection, and suspension with decision history. - Credit policy UAT should verify that unverified accounts and self-review are rejected, a second active policy in the same currency cannot be approved, and suspension permits a replacement. -- Samples, artwork, partner orders and payments, custom requests and reporting remain open. +- B2B samples support requests for published variants, independent approval or rejection, and manual dispatch records with staff and reference history. +- Sample UAT should verify ineligible accounts and variants, self-review, dispatch only after approval, and replay with the original payload and key. +- Artwork, partner orders and payments, custom requests and reporting remain open. diff --git a/src/App.tsx b/src/App.tsx index 397719e..c125874 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -33,6 +33,7 @@ const BusinessAccountsPage = lazy(() => import("@/pages/BusinessAccountsPage")); const PriceListsPage = lazy(() => import("@/pages/PriceListsPage")); const QuotesPage = lazy(() => import("@/pages/QuotesPage")); const CreditPoliciesPage = lazy(() => import("@/pages/CreditPoliciesPage")); +const SamplesPage = lazy(() => import("@/pages/SamplesPage")); const MaterialCostRatesPage = lazy(() => import("@/pages/MaterialCostRatesPage")); const ProcurementPage = lazy(() => import("@/pages/ProcurementPage")); const BomPage = lazy(() => import("@/pages/BomPage")); @@ -105,6 +106,17 @@ function Router() { {(params) => } + {() => } + {() => } + + {(params) => } + + + {(params) => } + + + {(params) => } + {() => } {(params) => } diff --git a/src/components/WorkspaceShell.tsx b/src/components/WorkspaceShell.tsx index 80d2bc4..0e8d703 100644 --- a/src/components/WorkspaceShell.tsx +++ b/src/components/WorkspaceShell.tsx @@ -74,6 +74,7 @@ export function WorkspaceNavigation() { { label: "B2B price lists", path: "/admin/b2b-price-lists", permission: "b2b.price.read" }, { label: "B2B quotations", path: "/admin/b2b-quotes", permission: "b2b.quote.read" }, { label: "B2B credit policies", path: "/admin/b2b-credit-policies", permission: "b2b.credit.read" }, + { label: "B2B samples", path: "/admin/b2b-samples", permission: "b2b.sample.read" }, ]; return (