Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Dashboard: one import, a project structure, and docs to match (#14667)
Damian Legawiec53008b4a30ee
diff --git a/.changeset/create-spree-app-agent-instructions.md b/.changeset/create-spree-app-agent-instructions.mdnew file mode 100644index 0000000000..7dc92ff266--- /dev/null+++ b/.changeset/create-spree-app-agent-instructions.md@@ -0,0 +1,7 @@+---+"create-spree-app": patch+---++Point the generated agent instructions at files that exist.++The scaffolded `AGENTS.md` sent dashboard work to a README that has since gained its own `AGENTS.md`, said nothing about the seller panel every project receives, listed a documentation directory that was renamed, and demonstrated a Ransack filter on `state`, which is no longer a queryable column.diff --git a/.changeset/dashboard-single-import-facade.md b/.changeset/dashboard-single-import-facade.mdnew file mode 100644index 0000000000..5cd5a44e50--- /dev/null+++ b/.changeset/dashboard-single-import-facade.md@@ -0,0 +1,10 @@+---+"@spree/dashboard": patch+"@spree/seller-dashboard": patch+---++Re-export the framework and the design system, so an application has one import to remember.++`@spree/dashboard` and `@spree/seller-dashboard` now expose everything from `@spree/dashboard-core` and `@spree/dashboard-ui`, and a host app writing its own pages no longer has to work out which package `useStore`, `Button` or `defineTable` lives in. Both packages stay importable directly, which is what a distributed plugin still does — it extends the shell rather than shipping it.++A few names exist in both packages, where the design system ships a presentational component and the framework wraps it with data. `export *` drops such a name rather than picking one, so `ResourceCombobox`, `ResourceMultiAutocomplete`, `Slot`, `StatusCard` and `DateRange` resolved to the design system's version and the data-fetching one was unreachable through the shell. They are now re-exported explicitly, and a test fails when a new duplicate appears.diff --git a/.changeset/starter-project-structure.md b/.changeset/starter-project-structure.mdnew file mode 100644index 0000000000..d8a09d0bc4--- /dev/null+++ b/.changeset/starter-project-structure.md@@ -0,0 +1,9 @@+---+"@spree/cli": patch+---++Scaffold dashboards with the layout they grow into, and the packages their first import needs.++A new dashboard app shipped four files and no structure to follow, so the first customization had nowhere obvious to go. Both starters now carry the layout the dashboard uses internally — `pages/`, `hooks/`, `tables/`, `schemas/` and `locales/`, one file per resource — documented in the README, with an `AGENTS.md` covering the conventions a coding agent cannot infer.++They also gain `@spree/dashboard-core` and `@spree/dashboard-ui` as direct dependencies. Both were installed already but only as transitive ones, so under pnpm an import of either failed until you added it by hand.diff --git a/docs/api-reference/webhooks-events.mdx b/docs/api-reference/webhooks-events.mdxindex dc64e66411..045883861e 100644--- a/docs/api-reference/webhooks-events.mdx+++ b/docs/api-reference/webhooks-events.mdx@@ -768,7 +768,7 @@ Events: `newsletter_subscriber.created`, `newsletter_subscriber.updated`, `newslEvents: `digital_asset.created`, `digital_asset.updated`, `digital_asset.deleted`The legacy `digital.created` / `digital.updated` / `digital.deleted` names are-still emitted alongside these for one release and are removed in Spree 6.1 —+still emitted alongside these, but will stop being sent in a future release —subscribe to the `digital_asset.*` names.```jsondiff --git a/docs/developer/contributing/developing-spree.mdx b/docs/developer/contributing/developing-spree.mdxindex e425f16b99..33e5bc2ac6 100644--- a/docs/developer/contributing/developing-spree.mdx+++ b/docs/developer/contributing/developing-spree.mdx@@ -191,7 +191,7 @@ Install chromedriver on macOS:brew install chromedriver```-The 6.0 React dashboard (`packages/dashboard`) has its own end-to-end test suite running on Playwright against a real Rails backend — see [Dashboard E2E tests](#dashboard-e2e-tests) under TypeScript Development.+The React dashboard (`packages/dashboard`) has its own end-to-end test suite running on Playwright against a real Rails backend — see [Dashboard E2E tests](#dashboard-e2e-tests) under TypeScript Development.### Performance in development mode@@ -216,7 +216,7 @@ The backend setup is the same as for Ruby work — see [Setup](#setup) above. Wi| `@spree/cli` | `packages/cli` | yes | CLI for managing Spree Commerce projects || `create-spree-app` | `packages/create-spree-app` | yes | Project scaffolding (`npm create spree-app`) || `@spree/docs` | `packages/docs` | yes | Developer documentation for AI agents and local reference |-| `@spree/dashboard` | `packages/dashboard` | no | React SPA admin dashboard (Spree 6.0, replaces the legacy Rails admin) |+| `@spree/dashboard` | `packages/dashboard` | no | React SPA admin dashboard (replaces the legacy Rails admin) || `@spree/dashboard-core` | `packages/dashboard-core` | no | Framework: registries, providers, generic infra hooks for the dashboard || `@spree/dashboard-ui` | `packages/dashboard-ui` | no | Design system used by the dashboard || `@spree/sdk-core` | `packages/sdk-core` | no | Shared HTTP/retry/error layer used by both SDKs |diff --git a/docs/developer/core-concepts/metafields.mdx b/docs/developer/core-concepts/metafields.mdxindex a614c53776..c1648acdcc 100644--- a/docs/developer/core-concepts/metafields.mdx+++ b/docs/developer/core-concepts/metafields.mdx@@ -10,7 +10,7 @@ Sooner or later you need to store something Spree doesn't have a field for. A faCustom fields are how you do that without changing the database. You declare a field once — its name, its type, who can see it — and from then on it can be set on any record of that kind, edited in the dashboard, returned by the API, and searched or filtered like any built-in field.<Note>-Custom fields were called **metafields** before Spree 6.0. The API and SDK have always called them custom fields; now the rest of Spree does too.+Custom fields are also known as **metafields** in the dashboard. The API and SDK call them custom fields throughout.</Note>## Definitions and valuesdiff --git a/docs/developer/core-concepts/store-credits-gift-cards.mdx b/docs/developer/core-concepts/store-credits-gift-cards.mdxindex 9a10397ce0..2b795b7eb9 100644--- a/docs/developer/core-concepts/store-credits-gift-cards.mdx+++ b/docs/developer/core-concepts/store-credits-gift-cards.mdx@@ -76,9 +76,7 @@ erDiagram### Why a Credit Exists-Store credits carry no category and no type — both were retired in Spree 6.0-because neither answered a question anything asked. Two fields cover it-instead:+Store credits carry no category and no type. Two fields cover it instead:| Field | What it tells you ||-------|-------------------|@@ -89,8 +87,8 @@ Store credits do not expire; only gift cards carry an expiry, on their ownrecord. Which credit is spent first is decided by `Spree::StoreCredit.oldest_first`.<Note>-`Spree::StoreCreditCategory` and `Spree::StoreCreditType` survive as deprecated-shells for one release and are removed in 6.1. Nothing writes them.+`Spree::StoreCreditCategory` and `Spree::StoreCreditType` still exist as+deprecated shells for compatibility. Nothing writes them.</Note>### Store Credit Eventsdiff --git a/docs/developer/core-concepts/stores.mdx b/docs/developer/core-concepts/stores.mdxindex d603bd263e..c9ccf6091c 100644--- a/docs/developer/core-concepts/stores.mdx+++ b/docs/developer/core-concepts/stores.mdx@@ -104,7 +104,7 @@ Each store owns its own resources. Products, orders, channels, markets, and taxoIf you need one Spree backend to serve **multiple distinct merchant brands** — different domains, different catalogs — there are two patterns:-- **Multiple channels under one store** (recommended for most cases) — model each storefront as a Sales Channel. Products are scoped per-channel via publications, orders carry the channel that originated them, and routing/pricing can differ per channel. This is the supported pattern in core Spree 5.5+.+- **Multiple channels under one store** (recommended for most cases) — model each storefront as a Sales Channel. Products are scoped per-channel via publications, orders carry the channel that originated them, and routing/pricing can differ per channel. This is the supported pattern in core Spree.- **Multiple isolated stores (tenants) in one app** — full data isolation, only recommended if you're building a SaaS platform or a multi-tenant application. Each store can have different staff members, payment methods, shipping methods, and branding. This is supported by the [Spree Multi Tenant](/developer/multi-tenant/quickstart) extension, which is a separate gem from core Spree.## Related Documentationdiff --git a/docs/developer/customization/configuration.mdx b/docs/developer/customization/configuration.mdxindex e2855cb724..cf60fbd797 100644--- a/docs/developer/customization/configuration.mdx+++ b/docs/developer/customization/configuration.mdx@@ -1,6 +1,6 @@---title: Configuration-description: Every global Spree setting that is actually read by Spree 6 — grouped by area, with defaults and what each one changes.+description: Every global Spree setting that is actually read by Spree — grouped by area, with defaults and what each one changes.---Global settings live in `config/initializers/spree.rb` and apply to the whole application. Anything that varies per store — currency, markets, delivery zones, languages — is data you change in the dashboard instead.@@ -25,7 +25,7 @@ Settings that describe the deployment rather than commerce behavior can be set w| `dashboard_url` | `SPREE_DASHBOARD_URL` | Origin where the admin dashboard is hosted (e.g. `https://admin.my-shop.com`). Used for every link that sends someone into the dashboard: invitation emails, SSO redirects, and the first-run setup link printed by `db:seed`. || `seller_panel_url` | `SPREE_SELLER_PANEL_URL` | Origin where the marketplace seller panel is hosted, when you serve it somewhere other than this app's own `/sellers` mount. Used for links sent to sellers, today the invitation email. Leave it unset to use `/sellers`; with no panel deployed at all, those links open the dashboard. |-This page lists only settings Spree 6 actually reads. Settings that exist for backwards compatibility are listed under [Deprecated settings](#deprecated-settings) rather than mixed in with the rest.+This page lists only settings Spree actually reads. Settings that exist for backwards compatibility are listed under [Deprecated settings](#deprecated-settings) rather than mixed in with the rest.## Settings that belong to a store@@ -33,7 +33,7 @@ Settings that shape how a shop sells — when customers are charged, whether sto`capture_method`, `track_inventory_levels`, `stock_reservations_enabled`, `stock_reservation_ttl_minutes`, `track_price_history`, `show_products_without_price`, `disable_sku_validation`, `address_requires_phone`, `company_field_enabled`, `tax_using_ship_address`, plus `guest_checkout` and `storefront_access` — those last two are owned by the channel, and the store's value is what a channel falls back to.-They were global before Spree 6. The global versions still exist for one release but are no longer read, so setting one in the initializer changes nothing — run `bin/rake spree:store_settings:backfill_from_config` during the upgrade to copy your values onto every store.+The global versions of these settings still exist but are no longer read, so setting one in the initializer changes nothing. If you're upgrading from an installation that used them, run `bin/rake spree:store_settings:backfill_from_config` to copy your values onto every store.```rubystore = Spree::Current.store@@ -61,7 +61,7 @@ payment_method.update!(capture_method: nil) # back to inheritingpayment_method.resolved_capture_method # => "checkout"```-Before Spree 6 this was two separate booleans, `auto_capture` and `auto_capture_on_dispatch`, which could contradict each other. Two upgrade tasks carry existing installs over: `spree:store_settings:backfill_from_config` maps the old globals onto each store's `capture_method`, and `spree:migrate_capture_methods` converts the per-payment-method `auto_capture` column. A method left without a value inherits its store.+If you're upgrading from an installation that used the older `auto_capture` and `auto_capture_on_dispatch` booleans, two tasks carry it over: `spree:store_settings:backfill_from_config` maps the old globals onto each store's `capture_method`, and `spree:migrate_capture_methods` converts the per-payment-method `auto_capture` column. A method left without a value inherits its store.## Checkout and payments@@ -182,7 +182,7 @@ Assigning at runtime affects only the current process and is lost on restart. Se## Deprecated settings-These still exist so upgrades don't break, but Spree 6 either ignores them or reads them only from subsystems it has replaced. Don't use them in new code.+These still exist so upgrades don't break, but Spree either ignores them or reads them only from subsystems it has replaced. Don't use them in new code.| Setting | Use instead ||---|---|@@ -206,12 +206,12 @@ These still exist so upgrades don't break, but Spree 6 either ignores them or re| `disable_store_presence_validation` | Every store-owned record now requires a store |<Warning>-These settings have no effect at all in Spree 6, and are scheduled for removal: `allow_checkout_on_gateway_error` (completion checks whether payments cover the total, so a failed gateway call never completes an order), `products_per_page`, `alternative_shipping_phone`, `show_variant_full_price`, `reserve_stock_on`, `storefront_products_path`, `storefront_taxons_path`, `storefront_pages_path`. Setting them changes nothing.+These settings have no effect at all, and are scheduled for removal: `allow_checkout_on_gateway_error` (completion checks whether payments cover the total, so a failed gateway call never completes an order), `products_per_page`, `alternative_shipping_phone`, `show_variant_full_price`, `reserve_stock_on`, `storefront_products_path`, `storefront_taxons_path`, `storefront_pages_path`. Setting them changes nothing.</Warning>-## Settings removed in Spree 6+## Settings that have been removed-These were deprecated in Spree 5 and are gone. Assigning one in your initializer now raises `NoMethodError`, so delete the line.+These settings are gone. Assigning one in your initializer now raises `NoMethodError`, so delete the line.| Setting | What to do instead ||---|---|diff --git a/docs/developer/customization/dependencies.mdx b/docs/developer/customization/dependencies.mdxindex 39bf7f4d66..c1b7dcc2c6 100644--- a/docs/developer/customization/dependencies.mdx+++ b/docs/developer/customization/dependencies.mdx@@ -237,10 +237,10 @@ Spree::Dependencies.validate!# => true (or raises Spree::DependencyError)```-## Renamed seams in Spree 6.0+## Seams backed by a workflow-Seams backed by a [workflow](/developer/customization/workflows) were renamed-from `*_service` to `*_workflow` in 6.0:+Seams backed by a [workflow](/developer/customization/workflows) use a+`*_workflow` name, not `*_service`:| Legacy name | Current name ||---|---|@@ -254,14 +254,14 @@ from `*_service` to `*_workflow` in 6.0:| `payments_handle_webhook_service` | `payments_handle_webhook_workflow` |<Warning>-The legacy names stay readable for one release, but **assigning to one no longer-has any effect** — the override is recorded and a deprecation warning names the-seam to port to. A class written against the old service contract isn't-interchangeable with the workflow the new call sites use, so applying it-silently would break checkout in ways that are hard to trace.+The legacy names stay readable, but **assigning to one no longer has any+effect** — the override is recorded and a deprecation warning names the seam to+port to. A class written against the old service contract isn't interchangeable+with the workflow the new call sites use, so applying it silently would break+checkout in ways that are hard to trace.If you override any of these, move to the `*_workflow` name and make sure your-class subclasses the workflow. The legacy names are removed in Spree 6.1.+class subclasses the workflow.</Warning>## Backwards compatibilitydiff --git a/docs/developer/customization/metadata.mdx b/docs/developer/customization/metadata.mdxindex ecfa1961be..edb43fbcf4 100644--- a/docs/developer/customization/metadata.mdx+++ b/docs/developer/customization/metadata.mdx@@ -230,15 +230,15 @@ The Store API currently supports writing metadata on:## Deprecation: public_metadata<Warning>-`public_metadata` is deprecated and will be removed in Spree 6.0. Use `metadata` instead.+`public_metadata` is deprecated. Use `metadata` instead.</Warning>-The `public_metadata` column was never exposed in Store API responses and in practice served the same purpose as `private_metadata`. It will be removed in Spree 6.0 and calling `public_metadata=` will emit a deprecation warning.+The `public_metadata` column was never exposed in Store API responses and in practice served the same purpose as `private_metadata`. Calling `public_metadata=` emits a deprecation warning.Always use the single `metadata` accessor for all schemaless key-value storage. If you need data visible to customers on the storefront, use [Metafields](/developer/core-concepts/metafields) instead.```ruby-# Deprecated — will be removed in 6.0+# Deprecated — use `metadata` insteadorder.public_metadata = { 'gift_message' => 'Happy Birthday!' }# Use metadata for internal storagediff --git a/docs/developer/customization/quickstart.mdx b/docs/developer/customization/quickstart.mdxindex 1168c33d39..8eafd8b6ee 100644--- a/docs/developer/customization/quickstart.mdx+++ b/docs/developer/customization/quickstart.mdx@@ -1,7 +1,7 @@---title: Quickstartog:title: Spree Customization Quickstart-description: Recommended ways to customize the Spree 6 backend — configuration, workflow hooks, events, checkout steps, providers, dependencies, and decorators as a last resort.+description: Recommended ways to customize the Spree backend — configuration, workflow hooks, events, checkout steps, providers, dependencies, and decorators as a last resort.---Spree is designed to be customized without forking it. This guide presents the options **in order of recommendation** — start at the top and only move down when a simpler option doesn't fit.@@ -28,7 +28,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c| Add associations/validations to models | [Decorators](#decorators) (last resort) |<Info>-**Customizing the admin?** This page covers the backend — models, API and business logic. The Spree 6 admin is a separate React application with its own extension points. See [Dashboard Customization](/developer/dashboard/customization/quickstart).+**Customizing the admin?** This page covers the backend — models, API and business logic. The admin is a separate React application with its own extension points. See [Dashboard Customization](/developer/dashboard/customization/quickstart).</Info><AccordionGroup>@@ -52,7 +52,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c**Best for:** running your own logic *inside* a core flow — checkout completion, order cancellation, refunds, fulfillment creation.<Info>- Hooks are the **headline extension point in Spree 6**. Before them, customizing a flow meant replacing the entire class and keeping your copy in sync with core forever.+ Hooks are the **headline extension point in Spree**, so you don't have to replace an entire class and keep your copy in sync with core forever.</Info>Register a handler against a hook key — `<workflow key>.<hook name>`:@@ -106,7 +106,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c<Accordion title="Checkout steps">**Best for:** adding, removing or reordering checkout steps.- Spree 6 has no checkout state machine. A cart reports what it still needs, and you can add to that list:+ Spree has no checkout state machine. A cart reports what it still needs, and you can add to that list:```ruby config/initializers/spree.rbSpree::Checkout::Registry.register_step(@@ -137,7 +137,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c<Accordion title="Providers">**Best for:** swapping a whole area of behavior for your own implementation.- Spree 6 exposes pluggable providers for the domains that vary most between businesses:+ Spree exposes pluggable providers for the domains that vary most between businesses:| Provider | Controls ||---|---|@@ -165,7 +165,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c<Accordion title="Authentication">**Best for:** using your own user model or identity provider.- Spree 6 owns its authentication stack rather than depending on Devise, and separates the customer identity from the staff identity. Point Spree at your own classes with `Spree.customer_class` and `Spree.admin_user_class`.+ Spree owns its authentication stack rather than depending on Devise, and separates the customer identity from the staff identity. Point Spree at your own classes with `Spree.customer_class` and `Spree.admin_user_class`.See [Authentication](/developer/providers/sso).</Accordion>@@ -184,7 +184,7 @@ Business logic is extended through **workflow hooks** rather than by replacing c```<Warning>- Seam names end in `_workflow` in Spree 6. The old `*_service` names still resolve for one release with a warning, but **writes to them are ignored** — a class written against the old service contract isn't interchangeable with a workflow. Update the key when you upgrade.+ Seam names end in `_workflow`. The old `*_service` names still resolve with a warning, but **writes to them are ignored** — a class written against the old service contract isn't interchangeable with a workflow. Update the key if your code still uses the old name.</Warning>Prefer a hook when you only need to add behavior. Replace the class only when you need to change what the flow fundamentally does.diff --git a/docs/developer/customization/validations.mdx b/docs/developer/customization/validations.mdxindex 3c6742de7f..02ba29185c 100644--- a/docs/developer/customization/validations.mdx+++ b/docs/developer/customization/validations.mdx@@ -162,7 +162,7 @@ Spree::Checkout::Registry.add_requirement()```-See the [Spree 6 quickstart](/developer/customization/quickstart) for the full registry API.+See the [customization quickstart](/developer/customization/quickstart) for the full registry API.## Custom field valuesdiff --git a/docs/developer/dashboard/customization/backend.mdx b/docs/developer/dashboard/customization/backend.mdxindex 48df83876a..99a72c70b9 100644--- a/docs/developer/dashboard/customization/backend.mdx+++ b/docs/developer/dashboard/customization/backend.mdx@@ -4,6 +4,10 @@ sidebarTitle: Backend integrationdescription: Talk to your own (or Spree's) Admin API from the dashboard — typed SDK calls, custom endpoints, prefixed IDs, error handling, and React-Query hooks.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+The dashboard never reaches into Rails models or fetches HTML. All data flows through `@spree/admin-sdk` — a typed Admin API client. This page covers the patterns: calling existing endpoints, adding new ones, handling errors, and wrapping it all in React-Query hooks for caching.## The `adminClient`@@ -11,7 +15,7 @@ The dashboard never reaches into Rails models or fetches HTML. All data flows thThe SPA boots a single `adminClient` instance and exposes it from `@spree/dashboard-core`. Resource methods follow `client.<resource>.<verb>()`:```ts-import { adminClient } from '@spree/dashboard-core'+import { adminClient } from '@spree/dashboard'await adminClient.products.list({ filter: { name_cont: 'shirt' } })await adminClient.products.get('prod_86Rf07xd4z', { expand: ['variants'] })@@ -50,7 +54,7 @@ Resource methods are just `request<T>()` calls with the right path + types pre-bThe dashboard's data layer is React-Query — every `useFoo` hook is `useQuery({ queryKey, queryFn })` over an SDK call. Follow the same pattern for your own data:```ts-import { adminClient } from '@spree/dashboard-core'+import { adminClient } from '@spree/dashboard'import { useQuery } from '@tanstack/react-query'import type { AdminBrand } from './types'@@ -67,7 +71,8 @@ export function useBrands(params?: { search?: string }) {For mutations, prefer the existing `useResourceMutation` helper — it wires up the SDK's error shape, the 422 silencer, and the toast for non-validation errors:```ts-import { useResourceMutation } from '@spree/dashboard-core'+import type { AdminBrand } from '@spree/admin-sdk'+import { adminClient, useResourceMutation } from '@spree/dashboard'export function useUpdateBrand(id: string) {return useResourceMutation({@@ -100,7 +105,7 @@ try {In a React Hook Form submit handler, prefer the higher-level helper:```tsx-import { mapSpreeErrorsToForm } from '@spree/dashboard-core'+import { mapSpreeErrorsToForm } from '@spree/dashboard'async function handleSubmit(values: FormValues) {try {diff --git a/docs/developer/dashboard/customization/navigation.mdx b/docs/developer/dashboard/customization/navigation.mdxindex 4fece95409..e6cee92cbc 100644--- a/docs/developer/dashboard/customization/navigation.mdx+++ b/docs/developer/dashboard/customization/navigation.mdx@@ -4,6 +4,10 @@ sidebarTitle: Navigationdescription: Add, modify, and remove items from the dashboard's main sidebar and settings sub-nav.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+The dashboard has two navigation registries: **main sidebar** (`nav`) and **settings sub-shell** (`settingsNav`). Both are module singletons exposed from `@spree/dashboard-core` and consumed by `<AppSidebar>` and `<SettingsSidebar>` via `useSyncExternalStore`, so late registration re-renders the sidebars automatically.## Main sidebar (`nav`)@@ -11,7 +15,7 @@ The dashboard has two navigation registries: **main sidebar** (`nav`) and **sett### Add an entry```ts-import { nav } from '@spree/dashboard-core'+import { nav } from '@spree/dashboard'import { BarChartIcon } from 'lucide-react'nav.add({@@ -31,7 +35,7 @@ nav.add({The facade groups multiple registry calls:```ts-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'defineDashboardPlugin({nav: [@@ -156,7 +160,7 @@ The settings page has its own sub-shell sidebar with grouped entries (Store, Loc### Register a group```ts-import { settingsNav } from '@spree/dashboard-core'+import { settingsNav } from '@spree/dashboard'settingsNav.addGroup({key: 'integrations',diff --git a/docs/developer/dashboard/customization/permissions.mdx b/docs/developer/dashboard/customization/permissions.mdxindex ccf6e9c203..6516b92df4 100644--- a/docs/developer/dashboard/customization/permissions.mdx+++ b/docs/developer/dashboard/customization/permissions.mdx@@ -4,6 +4,10 @@ sidebarTitle: Permissionsdescription: How to hide UI behind CanCanCan permissions in your customisations — and why hiding is never the same as authorising.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+The dashboard exposes the current admin's CanCanCan abilities to every component via the `usePermissions()` hook. The registry surfaces — nav entries, settings entries, custom routes — also accept a `subject` shortcut, and nav entries take a generic `if` predicate that reads from `permissions`.## Two layers@@ -88,7 +92,7 @@ Use it for combined checks (permission + store state), feature flags, multi-actiUse the `usePermissions()` hook — it returns `{ permissions, rules, isLoading }`:```tsx-import { usePermissions } from '@spree/dashboard-core'+import { usePermissions } from '@spree/dashboard'function ReportsPage() {const { permissions } = usePermissions()diff --git a/docs/developer/dashboard/customization/quickstart.mdx b/docs/developer/dashboard/customization/quickstart.mdxindex 57f3cbfc56..7774a8f33d 100644--- a/docs/developer/dashboard/customization/quickstart.mdx+++ b/docs/developer/dashboard/customization/quickstart.mdx@@ -18,7 +18,7 @@ Add an "Analytics" item to the dashboard sidebar.**Step 1.** Open `src/plugins.ts` — the starter ships this file already wired up — and register a nav entry:```tsx-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { BarChartIcon } from 'lucide-react'defineDashboardPlugin({@@ -43,8 +43,7 @@ Clicking it lands on a "Page not found" screen — we registered the nav entry b**Step 3.** Create the page component at `src/pages/analytics.tsx`:```tsx-import { PageHeader } from '@spree/dashboard-core'-import { ResourceLayout } from '@spree/dashboard-ui'+import { PageHeader, ResourceLayout } from '@spree/dashboard'export function AnalyticsPage() {return (@@ -59,7 +58,7 @@ export function AnalyticsPage() {**Step 4.** Register the route in `src/plugins.ts`:```tsx-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { BarChartIcon } from 'lucide-react'import { AnalyticsPage } from './pages/analytics'diff --git a/docs/developer/dashboard/customization/routes.mdx b/docs/developer/dashboard/customization/routes.mdxindex 0bb2b37915..650c22d45b 100644--- a/docs/developer/dashboard/customization/routes.mdx+++ b/docs/developer/dashboard/customization/routes.mdx@@ -4,6 +4,10 @@ sidebarTitle: Routesdescription: Mount custom pages under your dashboard's `/$storeId/...` path. Supports path params, permission gating, and works alongside the dashboard's built-in routes.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+The dashboard's first-party routes (`customers/`, `orders/`, `products/`, …) are file-based via TanStack Router and live in `@spree/dashboard/src/routes/`. Custom pages have two mechanisms:1. **File routes** (packaged plugins — preferred): the plugin ships ordinary TanStack route files, and the host build compiles them into its typed route tree. Typed `<Link>`s with no casts, route-level code splitting, `validateSearch`, loaders — full router citizenship.@@ -28,7 +32,7 @@ src/```tsx// src/routes/brands.index.tsx-import { resourceSearchSchema } from '@spree/dashboard-core'+import { resourceSearchSchema } from '@spree/dashboard'import { createFileRoute } from '@tanstack/react-router'import { BrandsListPage } from '../pages/brands-list'@@ -72,7 +76,7 @@ The collision check only sees **file routes**. If a runtime-registry route (beloRegister from your host app's `plugins.ts` (or a plugin that genuinely needs runtime registration):```tsx-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { ReportsPage } from './pages/reports'defineDashboardPlugin({@@ -121,7 +125,7 @@ function ReportDetailPage({ params, storeId, searchParams }: PluginRouteProps) {`searchParams` is typed as `Record<string, unknown>` because the dispatcher can't statically know your page's shape. If you're handing it to `<ResourceTable>`, cast to `ResourceSearch`:```tsx-import type { ResourceSearch } from '@spree/dashboard-core'+import type { ResourceSearch } from '@spree/dashboard'<ResourceTable searchParams={searchParams as ResourceSearch} ... />```@@ -145,11 +149,10 @@ Always pair this with a matching `subject` on the **nav entry** so users without## Layout-Custom routes inherit the dashboard's `_authenticated` + `$storeId` layout (auth guard, sidebar, top bar, etc.) — your component renders inside the `<Outlet />`. Use `<ResourceLayout>` from `@spree/dashboard-ui` to get the same header/main/sidebar grid as core pages:+Custom routes inherit the dashboard's `_authenticated` + `$storeId` layout (auth guard, sidebar, top bar, etc.) — your component renders inside the `<Outlet />`. Use `<ResourceLayout>` to get the same header/main/sidebar grid as core pages:```tsx-import { PageHeader } from '@spree/dashboard-core'-import { ResourceLayout } from '@spree/dashboard-ui'+import { PageHeader, ResourceLayout } from '@spree/dashboard'function ReportsPage() {return (diff --git a/docs/developer/dashboard/customization/slots.mdx b/docs/developer/dashboard/customization/slots.mdxindex 89c6d01b31..a2a58ce7fd 100644--- a/docs/developer/dashboard/customization/slots.mdx+++ b/docs/developer/dashboard/customization/slots.mdx@@ -4,6 +4,10 @@ sidebarTitle: Slotsdescription: Inject your own widgets into existing dashboard pages without forking them. Slots are named injection points the dashboard exposes on built-in pages.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+A slot is a named injection point in a built-in page. Components registered against a slot render inside it, sorted by `position`, gated by an optional `if` predicate. The host page knows nothing about your widget — it just renders `<Slot name="..." context={...} />` and the slot registry handles the rest.## Quick example@@ -11,8 +15,7 @@ A slot is a named injection point in a built-in page. Components registered agaiRender a card with the current user's email in every page's actions dropdown:```tsx-import { defineDashboardPlugin } from '@spree/dashboard-core'-import { DropdownMenuItem } from '@spree/dashboard-ui'+import { DropdownMenuItem, defineDashboardPlugin } from '@spree/dashboard'function UserBadge({ user }: { user?: { email: string } }) {if (!user) return null@@ -45,7 +48,7 @@ For anything beyond the slot's own context — permissions, the current store, tIf you'd rather have full type safety, call `registerSlot` directly with the explicit type parameter:```tsx-import { registerSlot } from '@spree/dashboard-core'+import { registerSlot } from '@spree/dashboard'interface ProductSlotContext {product: { id: string; brand_id?: string | null }@@ -63,7 +66,7 @@ registerSlot<ProductSlotContext>('product.form_sidebar', {Gate inside the component with `usePermissions()` — return `null` when the user lacks access:```tsx-import { usePermissions } from '@spree/dashboard-core'+import { usePermissions } from '@spree/dashboard'function AdminOnlyMenuItem() {const { permissions } = usePermissions()@@ -79,7 +82,7 @@ The entry-level `if` predicate also exists, but it only receives the slot's ownSlots on form pages (product, category, store settings — see the [slots catalog](/developer/dashboard/slots-catalog#detail-page-form-slots) for which) render **inside the page's `<form>`** and expose its react-hook-form instance. A widget can register inputs against it with `useHostForm()` — they hydrate from the API, flip the Save button on change, and persist in the page's own save, with no save logic in the widget:```tsx-import { useHostForm } from '@spree/dashboard-core'+import { useHostForm } from '@spree/dashboard'function TechSpecsCard() {const form = useHostForm<{ tech_specs: string }>()@@ -96,7 +99,7 @@ Pair it with a `formFields` registration so the field hydrates and ships in the## Removing or updating an entry```ts-import { removeSlot, updateSlot } from '@spree/dashboard-core'+import { removeSlot, updateSlot } from '@spree/dashboard'removeSlot('product.form_sidebar', 'brand-card')updateSlot('product.form_sidebar', 'brand-card', { position: 999 })diff --git a/docs/developer/dashboard/customization/tables.mdx b/docs/developer/dashboard/customization/tables.mdxindex 19a3b52b9c..8ac79ee3f6 100644--- a/docs/developer/dashboard/customization/tables.mdx+++ b/docs/developer/dashboard/customization/tables.mdx@@ -4,6 +4,10 @@ sidebarTitle: Tablesdescription: Add, change, or remove columns on built-in list tables (products, orders, customers, …), or define a table for your own resource.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+Every list page in the dashboard renders through `<ResourceTable>`, which reads its column definitions from a **table registry** keyed by table name (`products`, `orders`, `customers`, …). That gives you two levers:1. **Extend a built-in table** — add, patch, or remove columns (including their filters) without forking the page.@@ -14,7 +18,7 @@ Every list page in the dashboard renders through `<ResourceTable>`, which readsImperatively, from `src/plugins.ts` (or a plugin entry):```tsx-import { tables } from '@spree/dashboard-core'+import { tables } from '@spree/dashboard'tables.products.addColumn({key: 'brand',@@ -119,7 +123,7 @@ Filtering and sorting are executed by the Admin API (Ransack), not in the browseFor your own list page, declare the table once — typically right next to your `defineDashboardPlugin` call:```tsx-import { defineTable } from '@spree/dashboard-core'+import { defineTable } from '@spree/dashboard'defineTable<Brand>('brands', {title: 'Brands',diff --git a/docs/developer/dashboard/customization/translations.mdx b/docs/developer/dashboard/customization/translations.mdxindex c5c6ca5631..79116aee36 100644--- a/docs/developer/dashboard/customization/translations.mdx+++ b/docs/developer/dashboard/customization/translations.mdx@@ -4,12 +4,16 @@ sidebarTitle: Translationsdescription: Add your own i18n strings to the dashboard so labels, validation messages, and notifications respect the admin's chosen locale.---+<Note>+Examples here import from `@spree/dashboard`, which re-exports the framework and the design system for host applications. A **distributed plugin** imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly instead — it extends the shell rather than shipping it. See [plugin overview](/developer/dashboard/plugins/overview).+</Note>+The dashboard uses [i18next](https://www.i18next.com/) with the `react-i18next` bindings. All strings live in i18next's default `translation` namespace, with every key under a top-level `admin.` prefix (`admin.nav.orders`, `admin.fields.<resource>.<attribute>.label`, …). You register your strings into the same namespace with the same prefix so they look and feel native.## Add translations```ts-import { i18n } from '@spree/dashboard-core'+import { i18n } from '@spree/dashboard'i18n.addResourceBundle('en', 'translation', {admin: {@@ -127,7 +131,7 @@ Register translations **before** any code that calls `i18n.t()` at module-load t```tsx// src/plugins.ts (same pattern in a plugin package's entry module)-import { defineDashboardPlugin, i18n } from '@spree/dashboard-core'+import { defineDashboardPlugin, i18n } from '@spree/dashboard'import en from './locales/en.json'i18n.addResourceBundle('en', 'translation', en, true, true) // ① translations firstdiff --git a/docs/developer/dashboard/overview.mdx b/docs/developer/dashboard/overview.mdxindex 29eeef5858..defbebfb80 100644--- a/docs/developer/dashboard/overview.mdx+++ b/docs/developer/dashboard/overview.mdx@@ -5,8 +5,7 @@ description: Learn about the Spree React Dashboard architecture and how to custo---<Info>-The React Dashboard is currently a **Developer Preview** — APIs may still change between releases.-In Spree 6 it will become the default Admin interface replacing the Spree 5 admin.+The React Dashboard is currently a **Developer Preview** — APIs may still change between releases. It is becoming the default Admin interface.</Info>The React Dashboard is a React single-page application (SPA) that talks to the [Spree Admin API](/api-reference/admin-api). It can be distributed with the Spree API or as a standalone npm package, and it can be extended with plugins. The dashboard is built with modern React libraries and patterns, including:@@ -34,7 +33,9 @@ Dashboard consinsts of 3 NPM packages, each with a different purpose. You can im| `@spree/dashboard-core` | Framework: registries (nav, route, slot, table, settings-nav), providers (auth, permission, store), admin SDK client, infra hooks, the `defineDashboardPlugin` API | Extending the admin — every customization API lives here || `@spree/dashboard` | The deployable SPA: routes, resource hooks, schemas, locale strings, app shell | Replacing or restyling specific routes (rare) |-Most customization happens via `@spree/dashboard-core`. You import its registries from your own host-app code (or from a separate plugin package) to add nav entries, routes, slot widgets, table columns, and translations.+Most customization uses the registries in `@spree/dashboard-core` to add nav entries, routes, slot widgets, table columns and translations.++**In your own dashboard app, import from `@spree/dashboard`.** It re-exports both packages, so you never have to work out which one an export lives in. A distributed plugin is the exception: it imports `@spree/dashboard-core` and `@spree/dashboard-ui` directly, because it plugs into the shell rather than shipping it.You can also built your own dashboard using `@spree/dashboard-ui` primitives and `@spree/dashboard-core` registries, if you want to replace the default dashboard entirely. This is rare — most teams just add a few pages or cards to the existing dashboard.@@ -57,7 +58,7 @@ You're building a Spree store and want a "Featured products" page or a custom ca```tsx// src/plugins.ts — already imported by the app; just add your registrations-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { MyAnalyticsPage } from './pages/analytics'defineDashboardPlugin({diff --git a/docs/developer/dashboard/public-api.mdx b/docs/developer/dashboard/public-api.mdxindex 39d57ffae8..ef23abf156 100644--- a/docs/developer/dashboard/public-api.mdx+++ b/docs/developer/dashboard/public-api.mdx@@ -195,7 +195,15 @@ import { cn } from '@spree/dashboard-ui' // clsx + tailwind-merge## `@spree/dashboard`-The app shell. **Plugins don't import from here** — a plugin extends the dashboard through `@spree/dashboard-core` and never renders the shell. The host (the `dashboard-starter` project, or a create-spree-app project) is what imports it, to mount the admin:+The app shell, and the single import a host application needs. It re-exports everything from `@spree/dashboard-core` and `@spree/dashboard-ui`, so code in your own dashboard app never has to work out which package an export lives in:++```ts+import { defineDashboardPlugin, useStore, adminClient, Button, ResourceTable } from '@spree/dashboard'+```++**Plugins don't import from here** — a plugin extends the dashboard through `@spree/dashboard-core` and never renders the shell, so importing the shell would pull the whole app into a package meant to plug into it.++The host (the `dashboard-starter` project, or a create-spree-app project) is also what mounts the admin:```tsimport { createDashboardRouter, Dashboard } from '@spree/dashboard'@@ -211,7 +219,13 @@ import { spreeDashboardPlugin } from '@spree/dashboard/vite' // Vite plugin: Taimport '@spree/dashboard/styles.css' // the app's CSS entry```-Importing from `@spree/dashboard` pins your code to the deployable app's version. Plugins and custom UI should prefer `@spree/dashboard-core` + `@spree/dashboard-ui`.+A few names exist in both re-exported packages — the design system ships a presentational component and the framework wraps it with data (`ResourceCombobox`, `StatusCard`, `Slot`, `DateRange`, `ResourceMultiAutocomplete`). The facade gives you the framework's version, which is the one an application wants. Reach past it when you want the presentational half:++```ts+import { ResourceCombobox } from '@spree/dashboard-ui' // takes its options as props+```++Importing from `@spree/dashboard` pins your code to the deployable app's version, which is what a host app wants and what a distributed plugin must avoid.## What about `@spree/admin-sdk`?diff --git a/docs/developer/dashboard/recipes/attribute-end-to-end.mdx b/docs/developer/dashboard/recipes/attribute-end-to-end.mdxindex b513230228..34707b6fed 100644--- a/docs/developer/dashboard/recipes/attribute-end-to-end.mdx+++ b/docs/developer/dashboard/recipes/attribute-end-to-end.mdx@@ -89,7 +89,7 @@ Add a Rails validation while you're here (`validates :lead_time_days, numericali```tsx// src/plugins.ts (or a plugin's entry module)-import { defineDashboardPlugin, i18n } from '@spree/dashboard-core'+import { defineDashboardPlugin, i18n } from '@spree/dashboard'import { LeadTimeCard } from './fields/lead-time-card'import en from './locales/en.json'@@ -125,8 +125,7 @@ The form widget binds to the host form — no `<form>` of its own, no save butto```tsx// src/fields/lead-time-card.tsx-import { useHostForm } from '@spree/dashboard-core'-import { Card, CardContent, CardHeader, CardTitle, Field, FieldError, FieldLabel, Input } from '@spree/dashboard-ui'+import { Card, CardContent, CardHeader, CardTitle, Field, FieldError, FieldLabel, Input, useHostForm } from '@spree/dashboard'import { useTranslation } from 'react-i18next'export function LeadTimeCard() {diff --git a/docs/developer/dashboard/recipes/custom-form-field.mdx b/docs/developer/dashboard/recipes/custom-form-field.mdxindex b96f2d6652..6859e6e1fd 100644--- a/docs/developer/dashboard/recipes/custom-form-field.mdx+++ b/docs/developer/dashboard/recipes/custom-form-field.mdx@@ -31,7 +31,7 @@ When the default widget isn't right — a color, a rating, a structured pair —```tsx// src/plugins.ts (or a plugin's entry module)-import { type CustomFieldComponentProps, defineDashboardPlugin } from '@spree/dashboard-core'+import { type CustomFieldComponentProps, defineDashboardPlugin } from '@spree/dashboard'function ColorPicker({ id, value, onChange, ariaLabel }: CustomFieldComponentProps) {return (@@ -76,7 +76,7 @@ Tell the product form about the field: where its value comes from on load. Every```tsx// src/plugins.ts (or a plugin's entry module)-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'defineDashboardPlugin({formFields: {@@ -94,11 +94,17 @@ The `product.form_sidebar` slot renders inside the product form. Bind your input```tsx// src/fields/tech-specs-card.tsx-import { useHostForm } from '@spree/dashboard-core'import {- Card, CardContent, CardHeader, CardTitle,- Field, FieldError, FieldLabel, Textarea,-} from '@spree/dashboard-ui'+ Card,+ CardContent,+ CardHeader,+ CardTitle,+ Field,+ FieldError,+ FieldLabel,+ Textarea,+ useHostForm,+} from '@spree/dashboard'import { useTranslation } from 'react-i18next'export function TechSpecsCard() {diff --git a/docs/developer/dashboard/recipes/page-action-button.mdx b/docs/developer/dashboard/recipes/page-action-button.mdxindex 36002f51cf..53fc6289b3 100644--- a/docs/developer/dashboard/recipes/page-action-button.mdx+++ b/docs/developer/dashboard/recipes/page-action-button.mdx@@ -17,8 +17,7 @@ This recipe shows both — and how to gate them by permission + resource state.```tsx// src/actions/send-invoice-button.tsx-import { adminClient, usePermissions, useResourceMutation } from '@spree/dashboard-core'-import { Button } from '@spree/dashboard-ui'+import { Button, adminClient, usePermissions, useResourceMutation } from '@spree/dashboard'import { Send } from 'lucide-react'interface Props {@@ -55,7 +54,7 @@ Register it:```ts// src/plugins.ts (in your dashboard app)-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { SendInvoiceButton } from './actions/send-invoice-button'defineDashboardPlugin({@@ -82,8 +81,7 @@ For secondary actions, use `page.actions_dropdown` and render `<DropdownMenuItem```tsx// src/actions/sync-to-erp-item.tsx-import { adminClient, usePermissions, useResourceMutation } from '@spree/dashboard-core'-import { DropdownMenuItem } from '@spree/dashboard-ui'+import { DropdownMenuItem, adminClient, usePermissions, useResourceMutation } from '@spree/dashboard'import { RefreshCw } from 'lucide-react'interface Props {@@ -135,9 +133,12 @@ For destructive or expensive actions, wrap the click in a `<Dialog>`:```tsximport { useState } from 'react'import {- Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter,- DropdownMenuItem, Button,-} from '@spree/dashboard-ui'+ adminClient,+ Button,+ Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle,+ DropdownMenuItem,+ useResourceMutation,+} from '@spree/dashboard'export function ResetCartItem({ resource }: { resource: { id: string } }) {const [open, setOpen] = useState(false)diff --git a/docs/developer/dashboard/recipes/sidebar-widget.mdx b/docs/developer/dashboard/recipes/sidebar-widget.mdxindex 22a633f1db..40764dba89 100644--- a/docs/developer/dashboard/recipes/sidebar-widget.mdx+++ b/docs/developer/dashboard/recipes/sidebar-widget.mdx@@ -13,13 +13,19 @@ This recipe builds a "Loyalty status" card for the customer detail page: read-on```tsx// src/widgets/loyalty-status-card.tsximport { useQuery } from '@tanstack/react-query'-import { adminClient, usePermissions, useStore } from '@spree/dashboard-core'import {+ adminClient,Badge,- Card, CardContent, CardHeader, CardTitle,- Empty, EmptyDescription,+ Card,+ CardContent,+ CardHeader,+ CardTitle,+ Empty,+ EmptyDescription,Skeleton,-} from '@spree/dashboard-ui'+ usePermissions,+ useStore,+} from '@spree/dashboard'import { Trophy } from 'lucide-react'interface LoyaltyRecord {@@ -94,7 +100,7 @@ Worth noting:```ts// src/plugins.ts (in your dashboard app)-import { defineDashboardPlugin } from '@spree/dashboard-core'+import { defineDashboardPlugin } from '@spree/dashboard'import { LoyaltyStatusCard } from './widgets/loyalty-status-card'defineDashboardPlugin({diff --git a/docs/developer/dashboard/slots-catalog.mdx b/docs/developer/dashboard/slots-catalog.mdxindex f3d25df926..e0b098d578 100644--- a/docs/developer/dashboard/slots-catalog.mdx+++ b/docs/developer/dashboard/slots-catalog.mdx@@ -13,7 +13,7 @@ If you need a new injection point in a built-in page, open a PR adding `<Slot naAmbient context (`permissions`, `store`, `user` merged into every slot's props) is planned but **not wired up yet** — today slot components receive only the slot-specific context listed below. Until it lands, read those values with the hooks instead:```tsx-import { usePermissions, useStore } from '@spree/dashboard-core'+import { usePermissions, useStore } from '@spree/dashboard'function MyWidget({ product }: { product: Product }) {const { permissions } = usePermissions()diff --git a/docs/developer/how-to/build-a-marketplace.mdx b/docs/developer/how-to/build-a-marketplace.mdxindex 07548a52c7..d998687eef 100644--- a/docs/developer/how-to/build-a-marketplace.mdx+++ b/docs/developer/how-to/build-a-marketplace.mdx@@ -1,13 +1,11 @@---title: Build a Multi-Vendor Marketplace-description: Marketplace capabilities are part of Spree 6 core — sellers, order splitting, commissions and payouts, without a separate extension.+description: Marketplace capabilities are part of Spree core — sellers, order splitting, commissions and payouts, without a separate extension.----<Note>-Marketplace features are a headline capability of the Spree 6.0 release and are documented here as they land. This guide covers the open-source core.-</Note>+This guide covers the open-source core.-Spree 6 brings multi-vendor marketplace support into the open-source core: sellers as first-class records, orders split per seller at completion, a commission engine, and a payout ledger with pluggable payout providers.+Spree brings multi-vendor marketplace support into the open-source core: sellers as first-class records, orders split per seller at completion, a commission engine, and a payout ledger with pluggable payout providers.## What you will builddiff --git a/docs/developer/how-to/custom-digital-asset-provider.mdx b/docs/developer/how-to/custom-digital-asset-provider.mdxindex b77bb5589c..62caf9898e 100644--- a/docs/developer/how-to/custom-digital-asset-provider.mdx+++ b/docs/developer/how-to/custom-digital-asset-provider.mdx@@ -135,6 +135,6 @@ Spree::DigitalDelivery.new(inline_value: 'ABCD-1234-EFGH', content_type: 'text/p## Related documentation-- [Digital products](/use-case/digital-products/capabilities) — what the feature does for merchants+- [Digital products](/developer/how-to/sell-digital-products) — what the feature does for merchants- [Products](/developer/core-concepts/products#digital-products) — how digital assets, links, and downloads fit together- [Build a Custom Delivery Rate Provider](/developer/how-to/custom-delivery-rate-provider) — a provider strategy that *does* use an integration, for contrastdiff --git a/docs/developer/how-to/custom-document-numbers.mdx b/docs/developer/how-to/custom-document-numbers.mdxindex 61b491ce43..2544d10239 100644--- a/docs/developer/how-to/custom-document-numbers.mdx+++ b/docs/developer/how-to/custom-document-numbers.mdx@@ -22,7 +22,7 @@ There are two ways to change it. Merchants can reshape **order numbers** from th| Suffix | Ends each order number. Empty by default. || Start numbering at | The first order number. Defaults to `1001`. |-Sequential numbering counts up: `R1001`, `R1002`, `R1003`. Random numbering produces nine unpredictable digits, which is what Spree did before 6.0. The trade-off is worth stating to merchants: sequential numbers are far easier to read back over the phone, but a customer who orders twice can see how many orders you took in between. Random numbers give that away nothing, at the cost of legibility.+Sequential numbering counts up: `R1001`, `R1002`, `R1003`. Random numbering produces nine unpredictable digits. The trade-off is worth stating to merchants: sequential numbers are far easier to read back over the phone, but a customer who orders twice can see how many orders you took in between. Random numbers reveal nothing about that, at the cost of legibility.Two rules apply to every change:@@ -141,9 +141,9 @@ This is not configurable and there is no generator to register. If you need a diTwo changes matter.-**Numbers are sequential by default.** Stores upgrading from 5.x keep every existing number untouched, but new documents get sequential numbers starting at 1001. To keep the old behavior, set the store's numbering format to **Random** in Settings → Store → Order numbers.+**Numbers are sequential by default.** Existing numbers are never rewritten, and new documents get sequential numbers starting at 1001. To keep the old behavior, set the store's numbering format to **Random** in Settings → Store → Order numbers.-**`Spree::Core::NumberGenerator` is deprecated.** Models using it still work through Spree 6.0 and log a deprecation warning. Replace it with the concern:+**`Spree::Core::NumberGenerator` is deprecated.** Models using it still work and log a deprecation warning, but will stop working in a future release. Replace it with the concern:```ruby# beforediff --git a/docs/developer/how-to/custom-promotion.mdx b/docs/developer/how-to/custom-promotion.mdxindex 3f9b444930..895f4e5d4a 100644--- a/docs/developer/how-to/custom-promotion.mdx+++ b/docs/developer/how-to/custom-promotion.mdx@@ -62,7 +62,7 @@ endThe `options` hash passed to `eligible?` can include `:user`, `:email`, and other context from the checkout flow.<Warning>-Accept **both** `Spree::Cart` and `Spree::Order` in `applicable?`. Promotions are evaluated on every cart change, long before the cart becomes an order, and in Spree 6 a cart is its own model rather than an unfinished order. A rule guarding on `Spree::Order` alone silently never applies during checkout — the promotion just appears not to work. Every built-in rule accepts both.+Accept **both** `Spree::Cart` and `Spree::Order` in `applicable?`. Promotions are evaluated on every cart change, long before the cart becomes an order, and a cart is its own model rather than an unfinished order. A rule guarding on `Spree::Order` alone silently never applies during checkout — the promotion just appears not to work. Every built-in rule accepts both.</Warning>#### Using Preferencesdiff --git a/docs/developer/how-to/sell-digital-products.mdx b/docs/developer/how-to/sell-digital-products.mdxindex 04f53c12c4..4d93520c12 100644--- a/docs/developer/how-to/sell-digital-products.mdx+++ b/docs/developer/how-to/sell-digital-products.mdx@@ -3,7 +3,7 @@ title: Sell Digital Productsdescription: Digital goods in Spree — a digital delivery profile, instant fulfillment without a shipping address, and delivering files or entitlements after payment.----Digital products skip the warehouse: no stock to reserve, no address to collect, no carrier to call. In Spree 6 that behavior comes from the product's delivery profile — assign a digital profile and checkout, fulfillment and the customer experience adapt. This guide walks through selling an uploaded file end to end.+Digital products skip the warehouse: no stock to reserve, no address to collect, no carrier to call. That behavior comes from the product's delivery profile — assign a digital profile and checkout, fulfillment and the customer experience adapt. This guide walks through selling an uploaded file end to end.For the concepts behind each piece — assets, links, allowances, providers — see [Products → Digital products](/developer/core-concepts/products#digital-products). This page is the practical walkthrough.diff --git a/docs/developer/providers/dam.mdx b/docs/developer/providers/dam.mdxindex 7d6c26c077..5601df4d4d 100644--- a/docs/developer/providers/dam.mdx+++ b/docs/developer/providers/dam.mdx@@ -3,8 +3,10 @@ title: Product Media & DAMdescription: Media hosted in your DAM stays in your DAM — Spree stores the address, not a copy of the bytes, and renders it through the same pipeline as uploaded media.---+## Coming soon+<Note>-This page documents functionality landing in an upcoming Spree 6.0 release. The interfaces described here may change before final release.+The following features are on the open-source roadmap. The interfaces described here may change before release.</Note>If your media lives in a digital asset management system or a CDN you already operate, importing copies into Spree doubles your storage and guarantees drift. Externally hosted media makes the address the record: Spree stores a URL, renders it wherever uploaded media renders, and your DAM remains the source of truth for the asset itself.diff --git a/docs/developer/providers/erp.mdx b/docs/developer/providers/erp.mdxindex 525a1327d7..7c6806321a 100644--- a/docs/developer/providers/erp.mdx+++ b/docs/developer/providers/erp.mdx@@ -3,8 +3,10 @@ title: Connect Your ERPdescription: Keep your ERP as the source of truth for stock. Spree syncs inventory in, answers availability from its own snapshot, and asks your ERP live only at the moments that matter.---+## Coming soon+<Note>-This page documents functionality landing in an upcoming Spree 6.0 release. The interfaces described here may change before final release.+The following features are on the open-source roadmap. The interfaces described here may change before release.</Note>Your ERP owns inventory truth. Spree's job is to sell against it without keeping a copy that drifts — and without making every product page wait on an ERP round trip.diff --git a/docs/developer/providers/pim.mdx b/docs/developer/providers/pim.mdxindex ef07b764ab..1ffe37a112 100644--- a/docs/developer/providers/pim.mdx+++ b/docs/developer/providers/pim.mdx@@ -3,8 +3,10 @@ title: Connect Your PIMdescription: Keep product data and pricing in your PIM. Spree syncs content in, renders from its own copy, and can price live from an external source at cart decision moments.---+## Coming soon+<Note>-This page documents functionality landing in an upcoming Spree 6.0 release. The interfaces described here may change before final release.+The following features are on the open-source roadmap. The interfaces described here may change before release.</Note>Your PIM owns product content — names, descriptions, attributes, associations, prices. Spree renders the shopper-facing copy and asks your systems live only where a stale answer would cost money.diff --git a/docs/developer/providers/sso.mdx b/docs/developer/providers/sso.mdxindex 1d56851af6..bdcb557d1b 100644--- a/docs/developer/providers/sso.mdx+++ b/docs/developer/providers/sso.mdx@@ -3,7 +3,7 @@ title: Identity & SSOdescription: Single sign-on with OpenID Connect is built into Spree — connect your existing identity provider for staff and customer authentication without custom code.----Enterprises already have an identity provider. Staff accounts live in it, security policy is enforced through it, and a commerce platform that demands its own password database is a liability. Spree 6 ships OpenID Connect support in core.+Enterprises already have an identity provider. Staff accounts live in it, security policy is enforced through it, and a commerce platform that demands its own password database is a liability. Spree ships OpenID Connect support in core.## Staff single sign-ondiff --git a/docs/developer/tutorial/admin-api.mdx b/docs/developer/tutorial/admin-api.mdxdeleted file mode 100644index 934f28a4f4..0000000000--- a/docs/developer/tutorial/admin-api.mdx+++ /dev/null@@ -1,13 +0,0 @@-----title: Admin API-description: Add a ProductFaq endpoint to the Admin API — resource controller conventions, an admin serializer, and a permission catalog entry.------Staff manage FAQs through the Admin API — the same API the dashboard, integrations and scripts use. This chapter adds the endpoint following the conventions every Spree resource follows, which is what makes the dashboard plugin in the next chapter nearly free.--## What this chapter covers--- The resource controller: full CRUD from one small controller declaring its model, serializer and permitted attributes-- The admin serializer and prefixed IDs-- Registering the resource in the permission catalog so roles and API key scopes cover it-- Exercising the endpoint with the Admin CLIdiff --git a/docs/developer/tutorial/dashboard-plugin.mdx b/docs/developer/tutorial/dashboard-plugin.mdxdeleted file mode 100644index 2036714bcd..0000000000--- a/docs/developer/tutorial/dashboard-plugin.mdx+++ /dev/null@@ -1,14 +0,0 @@-----title: Dashboard Plugin-description: Scaffold a dashboard plugin for ProductFaqs — a table, a form, and navigation, generated by the CLI and wired to the Admin API endpoint.------With the Admin API in place, the back-office UI is a dashboard plugin: a table listing FAQs, a form to create and edit them, and a navigation entry — scaffolded by the CLI and customized from there.--## What this chapter covers--- Scaffolding the plugin with the CLI-- The resource table: columns, search and pagination against the Admin API-- The form: fields, validation errors mapped from API responses-- Registering navigation and permissions-aware visibility-- Running it against your development storediff --git a/docs/developer/tutorial/dashboard.mdx b/docs/developer/tutorial/dashboard.mdxnew file mode 100644index 0000000000..92e9d84439--- /dev/null+++ b/docs/developer/tutorial/dashboard.mdx@@ -0,0 +1,325 @@+---+title: Dashboard+description: Add Brands management to the dashboard of a create-spree-app project — a list page, navigation, a typed Admin API client and a card on the product page.+---++Staff need a place to manage brands. The back office is a React app that lives in your project at `apps/dashboard/`, and you add screens to it by editing that app's own code.++The dashboard talks to the Admin API you generated in step 1. That is the only data source — it never reaches into the Server app’s models or renders server HTML.++## Where this code goes++A project created with `create-spree-app` has this shape:++```+my-store/+├── apps/+│ ├── dashboard/ # the admin SPA — you edit this+│ │ ├── src/+│ │ │ ├── main.tsx+│ │ │ ├── plugins.ts # ← your customizations start here+│ │ │ └── routeTree.gen.ts+│ │ ├── package.json+│ │ └── vite.config.ts+│ ├── seller-dashboard/+│ └── storefront/+└── server/ # the Server app from step 1+```++`apps/dashboard/src/plugins.ts` ships empty, imported once by `main.tsx` before the dashboard renders. Everything in this step goes there or in files next to it.++The file and the `defineDashboardPlugin` function are named for the registries they talk to, not for how the code ships. A distributed package and your own app call the same function with the same options — the only difference is where the file lives.++<Note>+ Everything here is an ordinary file in your dashboard app, committed and deployed with the rest of your project. Publishing a package is only worth it when you want to reuse the same screens across several stores — the registrations are identical either way, so moving one into a package later is a copy, not a rewrite. See [dashboard plugins](/developer/dashboard/plugins/overview).+</Note>++`@spree/dashboard-core` (registries, providers and hooks) and `@spree/dashboard-ui` (the design system) come installed with the dashboard, so you can import from them straight away.++## Step 1: A typed client for the endpoint++Wrap the Admin API calls in one file so pages never call `request` directly. `adminClient` carries authentication, retries and error handling for you — see [talking to the backend](/developer/dashboard/customization/backend) for custom endpoints, React-Query hooks and error handling:++```ts apps/dashboard/src/brands/client.ts+import type { PaginatedResponse } from '@spree/admin-sdk'+import { adminClient } from '@spree/dashboard'++export interface Brand {+ id: string+ name: string+ slug: string | null+ active: boolean+ created_at: string+ updated_at: string+}++export interface BrandCreateParams {+ name: string+ slug?: string+ active?: boolean+}++type ListParams = Record<string, string | number | boolean | undefined>++export const BrandsClient = {+ list: (params?: ListParams) =>+ adminClient.request<PaginatedResponse<Brand>>('GET', '/brands', { params }),++ get: (id: string) => adminClient.request<Brand>('GET', `/brands/${id}`),++ create: (body: BrandCreateParams) =>+ adminClient.request<Brand>('POST', '/brands', { body }),++ update: (id: string, body: Partial<BrandCreateParams>) =>+ adminClient.request<Brand>('PATCH', `/brands/${id}`, { body }),++ delete: (id: string) => adminClient.request<void>('DELETE', `/brands/${id}`),+}+```++Paths are relative to `/api/v3/admin`, so `'/brands'` reaches the controller from step 1. The `Brand` interface matches what your Admin serializer returns, timestamps included.++## Step 2: Describe the table++`defineTable` declares the columns, sorting, search and empty state. The dashboard renders it with the same table chrome as Products and Orders:++```tsx apps/dashboard/src/plugins.ts+import { RelativeTime, defineTable, i18n } from '@spree/dashboard'+import type { Brand } from './brands/client'++defineTable<Brand>('brands', {+ title: i18n.t('admin.brands.table.title'),+ searchParam: 'search',+ defaultSort: { field: 'name', direction: 'asc' },+ emptyMessage: i18n.t('admin.brands.table.empty'),+ columns: [+ {+ key: 'name',+ label: i18n.t('admin.brands.fields.name'),+ sortable: true,+ filterable: true,+ default: true,+ render: (record) => <span className="font-medium text-foreground">{record.name}</span>,+ },+ {+ key: 'created_at',+ label: i18n.t('admin.brands.fields.created_at'),+ sortable: true,+ default: true,+ render: (record) => <RelativeTime iso={record.created_at} />,+ },+ ],+})+```++`name` is `sortable` and `filterable` because the model allowlisted it in step 1. A column that sorts by an attribute the backend does not permit fails at request time, so the two lists have to agree.++This is the short version. [Tables](/developer/dashboard/customization/tables) documents every field of a [column definition](/developer/dashboard/customization/tables#column-definition), plus [bulk actions, row actions and drag reordering](/developer/dashboard/customization/tables#bulk-actions-row-actions-reordering) — and how to [add or remove columns on a built-in table](/developer/dashboard/customization/tables#add-a-column-to-a-built-in-table) such as products or orders.++<Warning>+ Every visible string goes through i18next — column labels, titles, buttons, empty states. Never hardcode English into a table definition or into JSX, and add each new key to every locale file your project ships. See [translations](/developer/dashboard/customization/translations) for the field-key convention and how server-side validation messages are resolved.+</Warning>++## Step 3: Build the list page++`ResourceTable` supplies filtering, sorting and pagination against the table you just declared:++```tsx apps/dashboard/src/brands/list-page.tsx+import { Button, PageHeader, ResourceLayout, ResourceTable, type ResourceSearch } from '@spree/dashboard'+import { PlusIcon } from 'lucide-react'+import { useTranslation } from 'react-i18next'+import { type Brand, BrandsClient } from './client'++export function BrandsListPage({ searchParams }: { searchParams: Record<string, unknown> }) {+ const { t } = useTranslation()++ return (+ <ResourceLayout+ header={+ <PageHeader+ title={t('admin.brands.page.title')}+ // A create form is the natural next step — see the recipes below.+ actions={+ <Button size="sm" disabled>+ <PlusIcon className="size-4" />+ {t('admin.brands.page.new_cta')}+ </Button>+ }+ />+ }+ main={+ <ResourceTable<Brand>+ tableKey="brands"+ queryKey="brands"+ queryFn={(params) => BrandsClient.list(params as Record<string, never>)}+ searchParams={searchParams as ResourceSearch}+ />+ }+ />+ )+}+```++## Step 4: Register navigation, the route and a product card++Back in `plugins.ts`, `defineDashboardPlugin` wires the page into the app:++```tsx apps/dashboard/src/plugins.ts+import { defineDashboardPlugin, i18n } from '@spree/dashboard'+import { PackageIcon } from 'lucide-react'+import { BrandsListPage } from './brands/list-page'+import { BrandCard } from './brands/product-card'++defineDashboardPlugin({+ nav: [+ {+ key: 'brands',+ label: i18n.t('admin.brands.nav'),+ path: '/brands',+ icon: PackageIcon,+ position: 50,+ },+ ],+ routes: [{ key: 'brands', path: '/brands', component: BrandsListPage }],+ slots: {+ 'product.form_sidebar': [+ { id: 'brand-card', component: BrandCard as never, position: 250 },+ ],+ },+})+```++Three extension points are doing the work, each with its own reference page:++| Option | What it does | Full documentation |+|---|---|---|+| `nav` | Adds the sidebar entry; `position` places it among the built-in items | [Navigation](/developer/dashboard/customization/navigation) — settings sub-nav, removing and patching built-in entries |+| `routes` | Mounts the page under the authenticated store layout, so it becomes `/:storeId/brands` | [Routes](/developer/dashboard/customization/routes#runtime-route-registry-in-app-dynamic) — path params, layout and permission gating |+| `slots` | Injects a component where the dashboard already renders one | [Slots](/developer/dashboard/customization/slots) and the [slots catalog](/developer/dashboard/slots-catalog) — every slot and the context it passes |++`product.form_sidebar` is what makes brands useful to the person editing a product: the product page knows nothing about brands, and the slot registry is what puts your card there.++<Tip>+ Hiding a nav entry or a column behind a permission is [one option away](/developer/dashboard/customization/permissions) — but hiding is never authorising. The Admin API still has to refuse the request, which is why step 1 left authorization to you.+</Tip>++Showing the current brand is not much use on its own — the point is to change+it. The product page is one big form with a single Save button, and+`product.form_sidebar` renders **inside** that form, so the card can own an+input without owning any save logic.++Two pieces make that work. First, tell the form the field exists and where its+value comes from on load:++```tsx apps/dashboard/src/plugins.ts+defineDashboardPlugin({+ formFields: {+ // `from` receives the fetched product, or null on the create form.+ product: [{ name: 'brand_id', from: (product) => product?.brand_id ?? null }],+ },+})+```++Then render the input, binding it to the host form with `useHostForm()`. No+`<form>` of your own, no Save button, no mutation — dirty tracking, the PATCH+payload and re-baselining after save all stay with the page:++```tsx apps/dashboard/src/brands/product-card.tsx+import {+ Card, CardContent, CardHeader, CardTitle,+ Field, FieldLabel,+ ResourceCombobox,+ useHostForm,+} from '@spree/dashboard'+import { Controller } from 'react-hook-form'+import { useTranslation } from 'react-i18next'+import { BrandsClient } from './client'++export function BrandCard() {+ const { t } = useTranslation()+ const form = useHostForm<{ brand_id: string | null }>()++ return (+ <Card>+ <CardHeader>+ <CardTitle>{t('admin.brands.product_card.title')}</CardTitle>+ </CardHeader>+ <CardContent>+ <Field>+ <FieldLabel className="sr-only" htmlFor="brand_id">+ {t('admin.brands.product_card.title')}+ </FieldLabel>+ <Controller+ control={form.control}+ name="brand_id"+ render={({ field }) => (+ <ResourceCombobox+ id="brand_id"+ queryKey="product-brand-picker"+ value={field.value ?? ''}+ onChange={(id) => field.onChange(id ?? null)}+ getOptionLabel={(brand) => brand.name}+ placeholder={t('admin.brands.product_card.placeholder')}+ emptyText={t('admin.brands.product_card.none')}+ search={(query) => BrandsClient.list({ name_cont: query })}+ hydrate={(ids) => BrandsClient.list({ id_in: ids })}+ />+ )}+ />+ </Field>+ </CardContent>+ </Card>+ )+}+```++`ResourceCombobox` searches the API as the merchant types rather than loading+every brand up front, which is what keeps the picker usable on a catalogue+with thousands of them. `hydrate` resolves the saved ID back to a name so the+trigger reads correctly on first render.++For this to persist, the Admin API has to accept `brand_id` on the product —+the `resource_permitted_attributes` half of the association you set up in+step 1.++<Note>+ A field that merchants should be able to define themselves, rather than one+ your code adds as a column, is usually better as a [custom field](/developer/core-concepts/metafields) — no code at all. See [adding a custom form field](/developer/dashboard/recipes/custom-form-field) for both paths.+</Note>++## Step 5: Run it++`spree dev` runs the Server app and the dashboard together:++```bash+spree dev+```++Open the dashboard at `http://localhost:5173`. **Brands** appears in the sidebar, the list reads your Admin API endpoint from step 1, and the product edit page shows the card.++<Tip>+ Adding a create or edit form next? Wrap `handleSubmit` in a try/catch that calls `mapSpreeErrorsToForm` so 422 responses land on the right fields, and gate any delete that fires straight from a click behind `useConfirm()` with `variant: 'destructive'`.+</Tip>++## Going further++This step used a handful of the dashboard's extension points. The reference documentation covers the rest:++<CardGroup cols={2}>+ <Card title="Customization quickstart" icon="rocket" href="/developer/dashboard/customization/quickstart">+ The same ground in five minutes, without the Brands feature around it+ </Card>+ <Card title="Public API" icon="code" href="/developer/dashboard/public-api">+ Every component, hook, registry and provider you can safely import+ </Card>+ <Card title="Concepts" icon="compass" href="/developer/dashboard/concepts">+ The mental model — what each layer does and where your code fits+ </Card>+ <Card title="Recipes" icon="book-open" href="/developer/dashboard/recipes/attribute-end-to-end">+ Worked examples: a custom form field, a page action, a sidebar widget+ </Card>+</CardGroup>++## Next step++Staff can manage brands. Now show them to customers: [Storefront](/developer/tutorial/storefront).diff --git a/docs/developer/tutorial/events.mdx b/docs/developer/tutorial/events.mdxindex 4150489433..51a0047576 100644--- a/docs/developer/tutorial/events.mdx+++ b/docs/developer/tutorial/events.mdx@@ -1,12 +1,74 @@---title: Events-description: Publish lifecycle events for FAQs and react to them — subscribers inside the app, webhooks for systems outside it.+description: Publish lifecycle events for Brands and react to them — subscribers inside your Spree app, outbound webhooks for systems you do not deploy code into.----Features rarely live alone — something usually needs to know when data changes. This chapter publishes lifecycle events for FAQs and consumes them both ways.+Features rarely live alone. A search index needs to know when a brand is renamed; a PIM wants to hear about new ones. In Spree the integration surface is the **events system**: models publish events as things happen, and you react without touching core code.-## What this chapter covers+There are two ways to consume an event, and they serve different audiences:-- Publishing lifecycle events from the model-- A subscriber reacting inside the application-- Delivering the event to an external system as a webhook+| Mechanism | Code lives | Best for |+|---|---|---|+| **Subscriber** | In your Spree app | Calling external APIs with your own client code, internal side effects, anything needing app context |+| **Webhook** | In the external system | Letting a third party receive HTTP callbacks — no backend code in your app, endpoints managed from the dashboard |++## Step 1: Publish lifecycle events++Core models publish `*.created`, `*.updated` and `*.deleted` automatically. Your models do too, with one line:++```ruby server/app/models/spree/brand.rb+publishes_lifecycle_events+```++Now `brand.created`, `brand.updated` and `brand.deleted` fire after the matching transaction commits. The payload is the record serialized with the v3 serializer you generated in step 1 — the events system resolves it by naming convention. Every consumer sees the same JSON shape your API serves, which is the point: one contract, not two.++## Step 2: React inside the app++Generate a subscriber:++```bash+spree generate subscriber BrandSync brand.created brand.updated+```++This creates the subscriber, a spec stub, and — crucially — **registers it** in `config/initializers/spree.rb`. Subscribers are not auto-discovered: one that never gets appended to `Spree.subscribers` is a silent no-op, which is why the generator owns that step. Re-runs are idempotent.++Fill in the handler:++```ruby server/app/subscribers/brand_sync_subscriber.rb+def handle(event)+ SearchIndexer.upsert_brand(id: event.payload['id'], name: event.payload['name'])+end+```++Two things worth understanding:++- **The payload is the record, already serialized.** It is the same JSON your API returns, so `event.payload['name']` is there without a database query. IDs in it are public ones (`brand_k5nR8xLq`); when you do need the full record, look it up with `Spree::Brand.find_by_prefix_id(event.payload['id'])` rather than treating the id as a row number.+- **Subscribers run asynchronously by default.** Each `handle` call is an ActiveJob, so a slow third-party API never blocks the request that triggered it. Pass `subscribes_to 'brand.created', async: false` only when you genuinely need it synchronous.++Restart the server, rename a brand in the dashboard, and watch the job run.++## Step 3: Publish a custom event++Lifecycle events cover persistence. Custom events express *domain* moments — something meaningful happened, not just a row changed:++```ruby+brand.publish_event('brand.featured')+```++The payload defaults to the serializer output; pass your own hash as a second argument when the event needs different data. Subscribers consume it exactly like any built-in event.++## Step 4: Deliver to external systems with webhooks++When the consumer is a system you do not deploy your own code into, use a webhook instead. In the dashboard go to **Settings → Webhooks**, add an endpoint URL, and select the events to deliver — `brand.created` and anything else publishing in your store.++Each delivery is an HTTP POST carrying the event name and the same serialized payload. The endpoint's **signing secret is shown once when you create it**: store it in the receiving system and verify every request against it, so the receiver can prove the call came from your store.++Deliveries are retried with exponential backoff, and the dashboard shows the attempt history per endpoint, which is where to look when a third party says they never received something.++<Tip>+ Webhooks need no code in your app at all. Reach for a subscriber only when the reaction needs application context or credentials you would rather not hand to a third party. See [events](/developer/core-concepts/events) and [webhooks](/developer/core-concepts/webhooks).+</Tip>++## Next step++The feature is complete across every layer. Now prove it works: [Testing](/developer/tutorial/testing).diff --git a/docs/developer/tutorial/introduction.mdx b/docs/developer/tutorial/introduction.mdxindex 5d7975cdb8..efedb4f85f 100644--- a/docs/developer/tutorial/introduction.mdx+++ b/docs/developer/tutorial/introduction.mdx@@ -1,24 +1,67 @@---title: "Tutorial: Build a Custom Feature"-description: Build Product FAQs end to end — a custom model, an Admin API endpoint, a dashboard plugin, a Store API endpoint, and storefront rendering through the TypeScript SDK.+description: Build a complete Brands feature in Spree — model and API from one generator, a dashboard plugin, storefront rendering, events, and tests.----This tutorial builds one complete feature — **Product FAQs**, questions and answers attached to products — through every layer of a Spree 6 application. By the end you will have a custom model, back-office management in the dashboard, and customer-facing display on the storefront.+This tutorial builds one complete feature — **Brands**, a manufacturer or label attached to products — through every layer of a Spree application. By the end you will have a custom model with its own Store and Admin API, brand management in the dashboard, brands rendered on the storefront, other systems reacting to brand changes, and tests covering all of it.-## The two tracks+It is written for **both backend and frontend developers**. The backend code you write is minimal and mostly generated — Spree's generators produce convention-correct models, controllers and serializers, and the TypeScript SDK gives you typed access from your storefront. Most of what you write by hand is TypeScript.-The tutorial is organized so you only build what your feature needs:+## What you'll build-| Track | Chapters | Build this when |-|---|---|---|-| Foundation | [Model](/developer/tutorial/model) | Always |-| **A — manage it in the dashboard** | [Admin API](/developer/tutorial/admin-api) → [Dashboard plugin](/developer/tutorial/dashboard-plugin) | The feature is operated by staff — internal tooling, back-office data |-| **B — expose it on the storefront** | [Store API](/developer/tutorial/store-api) → [Storefront](/developer/tutorial/storefront) | Customers see the feature |-| Finishing | [Events](/developer/tutorial/events) → [Testing](/developer/tutorial/testing) | Always |+- A `Spree::Brand` model with a Store API and an Admin API — one generator command+- A brands screen in the dashboard: a list page, navigation and a card on the product page+- Brands on the storefront, fetched through `@spree/sdk` with generated types+- Lifecycle events other systems subscribe to, in the app or over webhooks+- Specs for the model and both APIs, plus an end-to-end pass-An internal tool is Track A alone. A storefront feature over existing data is Track B alone. Product FAQs need both: staff write the answers, customers read them.+## The five steps++<CardGroup cols={2}>+ <Card title="1. Models & API" icon="database" href="/developer/tutorial/model-and-api">+ Generate the model, migration, Store and Admin controllers, serializers and routes in one command+ </Card>+ <Card title="2. Dashboard" icon="gauge" href="/developer/tutorial/dashboard">+ Scaffold the back-office UI with the CLI — a table, a form, navigation and a product slot+ </Card>+ <Card title="3. Storefront" icon="store" href="/developer/tutorial/storefront">+ Regenerate SDK types and render brands on the product page in the Next.js storefront+ </Card>+ <Card title="4. Events" icon="zap" href="/developer/tutorial/events">+ Publish lifecycle events and consume them with subscribers and outbound webhooks+ </Card>+ <Card title="5. Testing" icon="flask-vial" href="/developer/tutorial/testing">+ Model and request specs, dashboard plugin tests, and one end-to-end check+ </Card>+</CardGroup>++The order is deliberate. Step 1 gives every later step something real to talk to: the dashboard plugin calls the Admin API, the storefront calls the Store API, and the events in step 4 reuse the serializer the same generator produced.## Before you start-- A running Spree application — see the [quickstart](/developer/getting-started/quickstart)-- The AI tooling set up — the [agent skills and MCP server](/developer/agentic/overview) make every step of this tutorial faster+You need a running Spree application. The fastest path is [create-spree-app](/developer/create-spree-app/quickstart), a Docker-based project with the [Spree CLI](/developer/cli/quickstart) and nothing to install locally:++```bash+npx create-spree-app@latest my-store+```++**Every command in this tutorial runs from the root of that project**, through the `spree` CLI. Nothing needs installing on your machine — the CLI routes each command into the right container.++The project it creates has this shape, and the paths in every chapter are relative to its root:++```+my-store/+├── server/ # the Server app — models, API, specs+├── apps/+│ ├── dashboard/ # the admin SPA (React)+│ └── storefront/ # the Next.js storefront+└── docker-compose.yml+```++<Note>+ **create-spree-app projects:** run `spree eject` once before starting. Fresh projects use a prebuilt Docker image; ejecting switches to the development setup that mounts your app into the container, so the files the generators create land in your project and reload as you edit them.+</Note>++<Tip>+ Using an AI coding agent? Install the [Spree agent skills](/developer/agentic/agent-skills) (`npx skills add spree/agent-skills`) and connect the [docs MCP server](/developer/agentic/mcp) before starting. Your agent will know the conventions this tutorial teaches and can follow along with you. See [AI-assisted development](/developer/agentic/overview).+</Tip>diff --git a/docs/developer/tutorial/model-and-api.mdx b/docs/developer/tutorial/model-and-api.mdxnew file mode 100644index 0000000000..29583d97e5--- /dev/null+++ b/docs/developer/tutorial/model-and-api.mdx@@ -0,0 +1,193 @@+---+title: Models & API+sidebarTitle: Models & API+description: Generate the Brand model, migration, Store and Admin API controllers, serializers and routes with a single spree:api_resource command.+---++Every feature starts with a model and the API that exposes it. They arrive together: `spree:api_resource` generates the model, its migration, a customer-facing Store API, a back-office Admin API, serializers, routes, a factory and controller specs in one command.++This matters for the rest of the tutorial. The dashboard plugin in step 2 talks to the Admin API, the storefront in step 3 talks to the Store API, and the events in step 4 reuse the serializer generated here. Getting this step right makes the other four mostly configuration.++## Step 1: Generate the resource++A brand has a name, a slug for friendly URLs, and an active flag:++```bash+spree generate api_resource Brand name:string:index slug:string:uniq active:boolean+```++The generator reports what it created:++```text+ create app/models/spree/brand.rb+ create db/migrate/XXXXXXXXXXXXXX_create_spree_brands.rb+ create app/controllers/spree/api/v3/store/brands_controller.rb+ create app/controllers/spree/api/v3/admin/brands_controller.rb+ create app/serializers/spree/api/v3/brand_serializer.rb+ create app/serializers/spree/api/v3/admin/brand_serializer.rb+ create spec/factories/spree/brand_factory.rb+ create spec/controllers/spree/api/v3/store/brands_controller_spec.rb+ create spec/controllers/spree/api/v3/admin/brands_controller_spec.rb++✓ Generated Spree::Brand API resource++ Prefixed ID: brand_xxxxxxxxxx+ Store API: /api/v3/store/brands (read-only)+ Admin API: /api/v3/admin/brands (full CRUD)+```++Apply the migration:++```bash+spree migrate+```++<Info>+ Every command in this tutorial runs from the root of your [create-spree-app](/developer/create-spree-app/quickstart) project. `spree` routes each one into the right container, so generators write into `server/` and nothing needs installing on your machine.+</Info>++### The field syntax++Attributes follow the familiar `name:type:index` form, with the Spree conventions applied for you:++| You write | You get |+|---|---|+| `name:string:index` | A non-null string column with an index |+| `slug:string:uniq` | A string column with a unique index |+| `active:boolean` | A boolean column with a default |+| `user:belongs_to` | A reference with the class name resolved |++Useful flags: `--paranoid` for soft delete, `--custom-fields` for [custom fields](/developer/core-concepts/metafields) support, `--writable` to give the Store API create, update and destroy as well, and `--no-store` or `--no-admin` to generate only one side. Run the generator with `--help` for the full list.++## Step 2: What you got++You do not need to read the generated code to use it. The command produced a complete, convention-correct API, and the contract it gives you is this:++| Surface | Endpoint | Who calls it | Default access |+|---|---|---|---|+| Store API | `/api/v3/store/brands` | Storefronts, mobile apps | Read-only |+| Admin API | `/api/v3/admin/brands` | Dashboard, integrations, scripts | Full CRUD |++Three conventions are worth knowing, because every later step depends on them:++- **Public IDs, never database IDs.** Records are addressed as `brand_k5nR8xLq`. The API accepts and returns that form everywhere.+- **Two serializers, one inheriting the other.** The Store serializer carries public fields only; the Admin serializer extends it and adds `created_at` and `updated_at`. Add a public field once and both surfaces get it. This is why customers never see back-office data by accident.+- **Filtering is allowlisted.** `name`, `slug` and `active` are queryable because the generator listed them. Anything not on that list is rejected, so a caller cannot filter by a column you did not intend to expose.++The Store API is read-only by default — a shopper cannot create a brand. Pass `--writable` if a resource genuinely needs customer writes, as carts and addresses do.++**Brands belong to a store.** Every resource you generate is scoped to one, because commerce data — catalog, configuration, orders — is always per-store. A new record picks up its store automatically, and a field marked unique is unique *within* a store, so two stores can each have a brand called `wilson`. Only genuinely global reference data, like countries, opts out with `--no-store-scoped`.++<Warning>+ One decision is still yours: **authorization**. Give the resource a permission rule before exposing it, and read lookups through the store (`current_store.brands`) rather than the whole table. Scoping by association is the cheapest defence against one store reading another's records — filtering by role is not a substitute.+</Warning>++## Step 3: Try it++Create a brand through the Admin API. You need a secret key from **Settings → API keys** in the dashboard:++```bash+curl -X POST "http://localhost:3000/api/v3/admin/brands" \+ -H "X-Spree-API-Key: sk_YOUR_KEY" \+ -H "Content-Type: application/json" \+ -d '{ "name": "Wilson", "slug": "wilson", "active": true }'+```++```json+{+ "id": "brand_k5nR8xLq",+ "name": "Wilson",+ "slug": "wilson",+ "active": true,+ "created_at": "2026-01-15T10:30:00Z",+ "updated_at": "2026-01-15T10:30:00Z"+}+```++Note the flat request body. API v3 takes no `{ "brand": { ... } }` wrapper around the attributes, and the response identifies the record as `brand_k5nR8xLq` rather than by a database ID.++Now read it back from the Store API, using a publishable key from the same settings page:++```bash+curl -H "X-Spree-API-Key: pk_YOUR_KEY" \+ "http://localhost:3000/api/v3/store/brands"+```++```json+{+ "data": [+ { "id": "brand_k5nR8xLq", "name": "Wilson", "slug": "wilson", "active": true }+ ],+ "meta": { "count": 1, "page": 1, "pages": 1 }+}+```++The same record, minus the timestamps. That difference is the serializer split doing its job: customers get public fields, staff get the operational ones.++Filtering works through the allowlist:++```bash+curl -H "X-Spree-API-Key: pk_YOUR_KEY" \+ "http://localhost:3000/api/v3/store/brands?q[name_cont]=wil"+```++<Tip>+ Prefer TypeScript? The same call through the SDK is `client.request('GET', '/brands')` — step 3 covers the typed client in full.+</Tip>++## Connect brands to products++A brand on its own is a list. Adding a `brand_id` to products is what makes it useful in steps 2 and 3:++```bash+spree generate migration AddBrandToSpreeProducts brand:belongs_to+spree migrate+```++Then connect the two models. Extending a core model like `Spree::Product` is the one place this step needs backend code — a [decorator](/developer/customization/decorators) adds behavior to a core class without forking it. The generator writes the file:++```bash+spree generate model_decorator Product+```++Add one line inside the generated `prepended` block:++```ruby server/app/models/spree/product_decorator.rb+base.belongs_to :brand, class_name: 'Spree::Brand', optional: true+```++And the matching line in `app/models/spree/brand.rb`, which is your own file:++```ruby+has_many :products, class_name: 'Spree::Product', dependent: :nullify+```++`optional: true` lets a product exist without a brand. `dependent: :nullify` means deleting a brand clears the reference rather than deleting the products that carried it — almost always what you want for a label attached to a catalog.++Two more lines make the association usable from the API. The product serializer has to expose it, or the storefront cannot read a product's brand:++```ruby server/app/serializers/spree/api/v3/product_serializer_decorator.rb+attribute(:brand_id) { |product| product.brand&.prefixed_id }+has_one :brand, serializer: Spree::Api::V3::BrandSerializer+```++The model has to allow filtering by it, or `?q[brand_id_eq]=…` is rejected:++```ruby server/app/models/spree/product_decorator.rb+base.whitelisted_ransackable_attributes |= %w[brand_id]+base.whitelisted_ransackable_associations |= %w[brand]+```++The allowlist is deliberate: every entry is a query any caller can run, so add only what the storefront needs.++Finally, the Admin API has to accept `brand_id` on write, or the picker you build in step 2 will appear to work and save nothing. Extensions append to the model's list rather than replacing it:++```ruby server/config/initializers/spree.rb+Spree::Product.additional_permitted_attributes += [:brand_id]+```++Always `+=`, never `=` — assigning would drop whatever another extension added.++## Next step++The data and both APIs are live. Now give staff a way to manage brands: [Dashboard](/developer/tutorial/dashboard).diff --git a/docs/developer/tutorial/model.mdx b/docs/developer/tutorial/model.mdxdeleted file mode 100644index 2463c8c06d..0000000000--- a/docs/developer/tutorial/model.mdx+++ /dev/null@@ -1,13 +0,0 @@-----title: Model-description: Generate the ProductFaq model — migration, associations, validations and store scoping — the foundation both tracks build on.------Every feature starts with a model. This chapter generates `ProductFaq` — question, answer, position, attached to a product and scoped to the store.--## What this chapter covers--- Generating the model and migration from the command line-- Store scoping — why every store-owned record belongs to a store, and what that buys you-- The association to products, validations, and ordering-- Running the migration and creating a record in the consolediff --git a/docs/developer/tutorial/store-api.mdx b/docs/developer/tutorial/store-api.mdxdeleted file mode 100644index cd4123747c..0000000000--- a/docs/developer/tutorial/store-api.mdx+++ /dev/null@@ -1,13 +0,0 @@-----title: Store API-description: Expose FAQs to customers — a read-only Store API endpoint with a serializer that shows only what shoppers should see.------Customers read FAQs through the Store API. This chapter adds the customer-facing endpoint — read-only, scoped to the current store, with a serializer deliberately smaller than the admin one.--## What this chapter covers--- The store resource controller: read-only by default, and why-- The store serializer: public fields only — no timestamps, no internal data-- Scoping: only FAQs for purchasable products of the current store-- Nesting under the product endpointdiff --git a/docs/developer/tutorial/storefront.mdx b/docs/developer/tutorial/storefront.mdxindex 72e64af4ad..f7b5f3052d 100644--- a/docs/developer/tutorial/storefront.mdx+++ b/docs/developer/tutorial/storefront.mdx@@ -1,12 +1,137 @@---title: Storefront-description: Render FAQs on the product page — regenerate the SDK types, extend the TypeScript client, and build the component in the Next.js storefront.+description: Render brands on the Next.js storefront in apps/storefront — call the Store API through @spree/sdk and build the product and brand pages.----The Store API endpoint becomes typed TypeScript and a component on the product page. This chapter closes the loop from Rails model to customer screen.+The Store API endpoint from step 1 becomes typed TypeScript and a component on the product page. This step closes the loop from the Server app to the customer’s screen.-## What this chapter covers+## Step 1: Describe the resource to TypeScript-- The type generation pipeline: serializer to TypeScript types to runtime schemas-- Extending the SDK client with the new resource-- Fetching and rendering FAQs on the product detail page in the Next.js storefront+The storefront lives at `apps/storefront/` and talks to the Store API through `@spree/sdk`. Built-in resources like products and carts already ship typed. A resource you added is new to the SDK, so declare its shape once and reuse it:++```typescript apps/storefront/src/types/brand.ts+export interface Brand {+ id: string+ name: string+ slug: string | null+ active: boolean+}+```++These are exactly the fields your Store serializer returns — the public ones, without the timestamps the Admin API adds. Keep this file in step with the serializer: it is the contract between the two halves of your project.++<Note>+ Spree generates the built-in SDK types from its own serializers, which is why `client.products` is typed without you doing anything. That pipeline runs inside the Spree repository, not your app, so a resource you add gets a hand-written interface like the one above.+</Note>++## Step 2: Call the endpoint++`createClient` gives you a typed Store API client. Built-in resources have methods; custom ones go through `request`, which carries the same authentication, retries and locale defaults:++```typescript apps/storefront/src/lib/spree.ts+import { createClient } from '@spree/sdk'++export const client = createClient({+ baseUrl: process.env.NEXT_PUBLIC_SPREE_API_URL!,+ publishableKey: process.env.NEXT_PUBLIC_SPREE_PUBLISHABLE_KEY!,+})+```++Fetching brands then goes through `request`, with paths relative to `/api/v3/store`:++```typescript+import type { PaginatedResponse } from '@spree/sdk'+import { client } from '@/lib/spree'+import type { Brand } from '@/types/brand'++const brands = await client.request<PaginatedResponse<Brand>>('GET', '/brands')+const wilson = await client.request<Brand>('GET', '/brands/brand_k5nR8xLq')+```++Only the fields the Store serializer declared come back. Timestamps and anything admin-only are absent by design — that is the serializer split from step 1 doing its job.++<Note>+ A generated resource is addressed by its prefixed ID. Looking one up by slug needs a `find_resource` override on the controller — the products endpoint does exactly that, so `/products/{slug}` works. Until you add one for brands, route by ID and treat `slug` as display data.+</Note>++## Step 3: Expand brand on products++Because `Spree::Product` now belongs to a brand, product responses can carry it. Ask for it with `expand`:++```typescript+// Without expand — the id only+const product = await client.products.get('prod_86Rf07xd4z')++// With expand — the nested brand object+const withBrand = await client.products.get('prod_86Rf07xd4z', {+ expand: ['brand'],+})+```++Expanding avoids a second round trip per product, which matters on a product listing page.++<Info>+ For `expand: ['brand']` to work, the Product serializer must declare the association and the model must allowlist it for filtering. Add `brand` to the product's `whitelisted_ransackable_associations` if you also want `?q[brand_name_cont]=wilson`. Every allowlist entry is a query any caller can run, so add only what the storefront needs.+</Info>++## Step 4: Render it on the product page++In the Next.js storefront, fetch the product with its brand and render the name:++```tsx apps/storefront/src/app/products/[slug]/page.tsx+import { client } from '@/lib/spree'++export default async function ProductPage({ params }: { params: Promise<{ slug: string }> }) {+ const { slug } = await params+ const product = await client.products.get(slug, { expand: ['brand'] })++ return (+ <article>+ {product.brand && (+ <a href={`/brands/${product.brand.id}`} className="text-sm text-neutral-500">+ {product.brand.name}+ </a>+ )}+ <h1>{product.name}</h1>+ <p>{product.price.display}</p>+ </article>+ )+}+```++And a brand page listing everything that brand makes:++```tsx apps/storefront/src/app/brands/[id]/page.tsx+import { client } from '@/lib/spree'+import type { Brand } from '@/types/brand'++export default async function BrandPage({ params }: { params: Promise<{ id: string }> }) {+ const { id } = await params+ const brand = await client.request<Brand>('GET', `/brands/${id}`)+ const products = await client.products.list({ brand_id_eq: brand.id })++ return (+ <section>+ <h1>{brand.name}</h1>+ <p>{products.meta.count} products</p>+ <ul>+ {products.data.map((product) => (+ <li key={product.id}>+ <a href={`/products/${product.slug}`}>{product.name}</a>+ </li>+ ))}+ </ul>+ </section>+ )+}+```++`brand_id_eq` is a Ransack predicate, available because `brand_id` is on the product's ransackable allowlist. See [search and filtering](/developer/core-concepts/search-filtering) for the full predicate list.++<Note>+ The storefront runs on its own dev server. From the project root, `spree dev` starts the API and dashboard; start the storefront alongside them with `cd apps/storefront && pnpm dev`. It reads the API URL and publishable key from `apps/storefront/.env.local`.+</Note>++## Next step++Customers can see brands. Now let other systems react when they change: [Events](/developer/tutorial/events).diff --git a/docs/developer/tutorial/testing.mdx b/docs/developer/tutorial/testing.mdxindex 45a45a8f2f..0eef2c1c6e 100644--- a/docs/developer/tutorial/testing.mdx+++ b/docs/developer/tutorial/testing.mdx@@ -1,13 +1,171 @@---title: Testing-description: Test the feature at every layer — model and request specs with RSpec, dashboard plugin tests with Vitest, and an end-to-end check with Playwright.+description: Test the Brands feature at every layer — model and API specs with RSpec, dashboard tests with Vitest, and one end-to-end Playwright pass.----Each layer of the feature gets the test that suits it: fast Ruby specs for the model and both API endpoints, component tests for the plugin, and one end-to-end pass proving the whole path works.+Each layer gets the test that suits it: fast backend specs for the model and both APIs, component tests for the dashboard, and one end-to-end pass proving the whole path works.-## What this chapter covers+Your project arrives with testing already configured — RSpec, FactoryBot, and Spree's own test helpers, including every factory core ships. You can write a spec against `create(:product)` without setting anything up.-- Model and factory setup-- Request specs for the Admin and Store API endpoints-- Dashboard plugin tests with Vitest-- An end-to-end Playwright spec: create an FAQ in the dashboard, see it on the storefront+## Step 1: Run what the generator wrote++The generator in step 1 already wrote a factory and a controller spec per API side, so this step is mostly filling in rather than starting over:++```text+server/spec/factories/spree/brand_factory.rb+server/spec/controllers/spree/api/v3/store/brands_controller_spec.rb+server/spec/controllers/spree/api/v3/admin/brands_controller_spec.rb+```++Run them:++```bash+spree rspec spec/controllers/spree/api/v3/+```++The generated factory is the starting point for every other spec — always build records through factories rather than creating them directly, so a change to the model does not mean editing fifty specs.++## Step 2: Model specs++Test what you wrote, not what the framework already guarantees. A presence validation on a required column needs no spec; the association behavior you chose does:++```ruby server/spec/models/spree/brand_spec.rb+RSpec.describe Spree::Brand, type: :model do+ it 'nullifies the reference instead of deleting products' do+ brand = create(:brand)+ product = create(:product, brand: brand)++ brand.destroy++ expect(product.reload.brand_id).to be_nil+ expect(product).to be_persisted+ end+end+```++Prefer `build` over `create` when a record does not need to hit the database — it is markedly faster across a suite.++## Step 3: Controller specs++Controller specs are where edge cases belong: authorization, scoping, filtering, error shapes. Always `render_views`, so a broken serializer fails the spec rather than passing silently:++```ruby server/spec/controllers/spree/api/v3/store/brands_controller_spec.rb+RSpec.describe Spree::Api::V3::Store::BrandsController, type: :controller do+ render_views++ it 'exposes public fields only' do+ create(:brand, name: 'Wilson')++ get :index, params: { format: :json }++ record = json_response['data'].first+ expect(record['id']).to start_with('brand_')+ expect(record).not_to have_key('created_at')+ end++ it 'filters by name' do+ create(:brand, name: 'Wilson')+ create(:brand, name: 'Penn')++ get :index, params: { q: { name_cont: 'wil' }, format: :json }++ expect(json_response['data'].map { |b| b['name'] }).to eq(['Wilson'])+ end+end+```++That second example is worth keeping: it proves the Ransack allowlist from step 1 actually permits `name_cont`. Remove `name` from `whitelisted_ransackable_attributes` and this spec fails, which is exactly what you want.++<Note>+ Specs run against a store the suite sets up for you, available as `@default_store`. Use it rather than creating another store marked as the default — two of them in one run produce failures that surface far from their cause.+</Note>++## Step 4: Dashboard tests++The dashboard is a TypeScript app, so its code tests with Vitest:++```bash+cd apps/dashboard && pnpm test+```++Test the client wrappers and any logic in your pages. Mock the HTTP layer rather than the client module, so the test exercises the real request path:++```ts apps/dashboard/src/brands/client.test.ts+import { http, HttpResponse } from 'msw'+import { setupServer } from 'msw/node'+import { afterAll, afterEach, beforeAll, describe, expect, it } from 'vitest'+import { BrandsClient } from './client'++const server = setupServer(+ http.get('*/api/v3/admin/brands', () =>+ HttpResponse.json({ data: [{ id: 'brand_k5nR8xLq', name: 'Wilson' }] }),+ ),+)++beforeAll(() => server.listen())+afterEach(() => server.resetHandlers())+afterAll(() => server.close())++describe('BrandsClient', () => {+ it('lists brands from the admin endpoint', async () => {+ const result = await BrandsClient.list({ per_page: 10 })++ expect(result.data).toHaveLength(1)+ expect(result.data[0].name).toBe('Wilson')+ })+})+```++Mocking the HTTP layer rather than the client module means the test exercises the real request path — the URL, the params and the response shape — so a wrong endpoint fails here instead of in the browser.++## Step 5: One end-to-end pass++Everything above tests a layer in isolation. One Playwright spec proves the layers are actually connected — a brand created through the Admin API reaches the dashboard screen you built:++```ts apps/dashboard/e2e/brands.spec.ts+import { expect, test } from '@playwright/test'+import { createBrand } from './helpers/api'+import { login } from './helpers/login'++test('a brand appears on the brands screen', async ({ page }) => {+ const name = `Wilson ${Date.now()}`+ await createBrand({ name, slug: `wilson-${Date.now()}` })++ await login(page)+ await page.getByRole('link', { name: /brands/i }).click()++ await expect(page.getByRole('cell', { name })).toBeVisible()+})+```++Navigating from the sidebar rather than calling `page.goto('/brands')` keeps the spec honest about the real path, which is store-scoped (`/:storeId/brands`) and would otherwise have to be hardcoded.++Once you add a create form, replace the API call with the form itself — filling it and asserting the new row is the stronger test, because it covers the write path too.++Two conventions matter here:++- **Drive the UI, assert on the UI.** Fill labels, click buttons, check visible text. Avoid waiting on API responses — `expect(...).toBeVisible()` polls until the condition holds, which covers nearly every case and keeps the test from breaking when the API shape changes.+- **Suffix names with `Date.now()`.** Specs share a database, and a fixed name collides with whatever an earlier run left behind.++## What to run before you push++Run the specs for what you changed rather than the whole suite:++```bash+spree rspec spec/models/spree/brand_spec.rb+spree rspec spec/controllers/spree/api/v3/+```++Pass a file, a directory, or a single example with a line number (`spec/models/spree/brand_spec.rb:12`). Keep the full run for continuous integration, where waiting costs you nothing.++## You're done++You have built one feature through every layer of Spree:++- A model with a Store API and an Admin API, generated in one command+- A dashboard plugin giving staff a place to manage it+- Storefront pages rendering it through typed SDK calls+- Lifecycle events other systems react to+- Tests at each layer, plus one pass across all of them++From here: [customization reference](/developer/customization/quickstart) for extending core models and workflows, [dashboard customization](/developer/dashboard/customization/quickstart) for deeper plugin work, and [core concepts](/developer/core-concepts/architecture) for how the rest of the platform fits together.diff --git a/docs/docs.json b/docs/docs.jsonindex 69f4fb6fa6..b8d56304da 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -138,11 +138,11 @@},{"source": "/api-reference/introduction",- "destination": "/api-reference"+ "destination": "/api-reference/store-api/introduction"},{"source": "/developer/tutorial/rich-text",- "destination": "/developer/tutorial/model"+ "destination": "/developer/tutorial/model-and-api"},{"source": "/developer/tutorial/file-uploads",@@ -150,7 +150,7 @@},{"source": "/developer/tutorial/store-api",- "destination": "/v5/developer/tutorial/api"+ "destination": "/developer/tutorial/model-and-api"},{"source": "/developer/multi-store/quickstart",@@ -246,11 +246,11 @@},{"source": "/developer/tutorial/api",- "destination": "/v5/developer/tutorial/api"+ "destination": "/developer/tutorial/model-and-api"},{"source": "/developer/tutorial/sdk",- "destination": "/v5/developer/tutorial/sdk"+ "destination": "/developer/tutorial/storefront"},{"source": "/developer/tutorial/extending-models",@@ -390,7 +390,7 @@},{"source": "/developer/core-concepts/adjustments",- "destination": "/developer/core-concepts/taxes-discounts-fees"+ "destination": "/developer/core-concepts/fees"},{"source": "/developer/core-concepts/shipments",@@ -499,6 +499,90 @@{"source": "/user/settings/marketplace","destination": "/user/sellers/payouts"+ },+ {+ "source": "/use-case/b2b/b2b-admin-capabilities",+ "destination": "/user/how-to/selling-to-businesses"+ },+ {+ "source": "/use-case/b2b/b2b-buyer-capabilities",+ "destination": "/user/how-to/selling-to-businesses"+ },+ {+ "source": "/use-case/b2b/b2b-capabilities",+ "destination": "/user/how-to/selling-to-businesses"+ },+ {+ "source": "/use-case/b2b/b2b-commerce-model",+ "destination": "/user/how-to/selling-to-businesses"+ },+ {+ "source": "/use-case/digital-products/admin-capabilities",+ "destination": "/developer/how-to/sell-digital-products"+ },+ {+ "source": "/use-case/digital-products/capabilities",+ "destination": "/developer/how-to/sell-digital-products"+ },+ {+ "source": "/use-case/digital-products/model",+ "destination": "/developer/how-to/sell-digital-products"+ },+ {+ "source": "/use-case/marketplace/admin-dashboard",+ "destination": "/user/sellers/managing-sellers"+ },+ {+ "source": "/use-case/marketplace/capabilities",+ "destination": "/developer/how-to/build-a-marketplace"+ },+ {+ "source": "/use-case/marketplace/customer-ux",+ "destination": "/developer/how-to/build-a-marketplace"+ },+ {+ "source": "/use-case/marketplace/model",+ "destination": "/developer/how-to/build-a-marketplace"+ },+ {+ "source": "/use-case/marketplace/vendor-dashboard",+ "destination": "/user/sellers/sellers"+ },+ {+ "source": "/use-case/multi-tenant/franchises-and-reseller-networks",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/multi-brand-enterprise-model",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/multi-tenant-capabilities",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/multi-tenant-model",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/super-admin-capabilities",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/tenant-capabilities",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/multi-tenant/white-label-saas",+ "destination": "/developer/multi-tenant/quickstart"+ },+ {+ "source": "/use-case/overview",+ "destination": "/"+ },+ {+ "source": "/developer/tutorial/dashboard-plugin",+ "destination": "/developer/tutorial/dashboard"}],"contextual": {@@ -537,10 +621,8 @@"group": "Tutorial","pages": ["developer/tutorial/introduction",- "developer/tutorial/model",- "developer/tutorial/admin-api",- "developer/tutorial/dashboard-plugin",- "developer/tutorial/store-api",+ "developer/tutorial/model-and-api",+ "developer/tutorial/dashboard","developer/tutorial/storefront","developer/tutorial/events","developer/tutorial/testing"@@ -1909,56 +1991,6 @@]}]- },- {- "tab": "Solutions",- "groups": [- {- "group": "Overview",- "pages": [- "use-case/overview"- ]- },- {- "group": "B2B Commerce",- "pages": [- "use-case/b2b/b2b-commerce-model",- "use-case/b2b/b2b-capabilities",- "use-case/b2b/b2b-admin-capabilities",- "use-case/b2b/b2b-buyer-capabilities"- ]- },- {- "group": "Digital Products",- "pages": [- "use-case/digital-products/model",- "use-case/digital-products/capabilities",- "use-case/digital-products/admin-capabilities"- ]- },- {- "group": "Multi-Tenant Platform",- "pages": [- "use-case/multi-tenant/multi-tenant-model",- "use-case/multi-tenant/multi-tenant-capabilities",- "use-case/multi-tenant/super-admin-capabilities",- "use-case/multi-tenant/tenant-capabilities",- "use-case/multi-tenant/franchises-and-reseller-networks",- "use-case/multi-tenant/multi-brand-enterprise-model",- "use-case/multi-tenant/white-label-saas"- ]- },- {- "group": "Multi-Vendor Marketplace",- "pages": [- "use-case/marketplace/model",- "use-case/marketplace/capabilities",- "use-case/marketplace/admin-dashboard",- "use-case/marketplace/vendor-dashboard",- "use-case/marketplace/customer-ux"- ]- }- ]}]}@@ -2107,12 +2139,10 @@"icon": "graduation-cap","pages": ["developer/tutorial/introduction",- "developer/tutorial/model",- "developer/tutorial/admin",- "developer/tutorial/extending-models",- "developer/tutorial/api",+ "developer/tutorial/model-and-api",+ "developer/tutorial/dashboard",+ "developer/tutorial/storefront","developer/tutorial/events",- "developer/tutorial/sdk","developer/tutorial/testing"]},@@ -2814,56 +2844,6 @@]}]- },- {- "tab": "Solutions",- "groups": [- {- "group": "Overview",- "pages": [- "use-case/overview"- ]- },- {- "group": "B2B Commerce",- "pages": [- "use-case/b2b/b2b-commerce-model",- "use-case/b2b/b2b-capabilities",- "use-case/b2b/b2b-admin-capabilities",- "use-case/b2b/b2b-buyer-capabilities"- ]- },- {- "group": "Digital Products",- "pages": [- "use-case/digital-products/model",- "use-case/digital-products/capabilities",- "use-case/digital-products/admin-capabilities"- ]- },- {- "group": "Multi-Tenant Platform",- "pages": [- "use-case/multi-tenant/multi-tenant-model",- "use-case/multi-tenant/multi-tenant-capabilities",- "use-case/multi-tenant/super-admin-capabilities",- "use-case/multi-tenant/tenant-capabilities",- "use-case/multi-tenant/franchises-and-reseller-networks",- "use-case/multi-tenant/multi-brand-enterprise-model",- "use-case/multi-tenant/white-label-saas"- ]- },- {- "group": "Multi-Vendor Marketplace",- "pages": [- "use-case/marketplace/model",- "use-case/marketplace/capabilities",- "use-case/marketplace/admin-dashboard",- "use-case/marketplace/vendor-dashboard",- "use-case/marketplace/customer-ux"- ]- }- ]}]},diff --git a/docs/index.mdx b/docs/index.mdxindex 7e5a2c0e25..e1bd2a6ef6 100644--- a/docs/index.mdx+++ b/docs/index.mdx@@ -91,22 +91,34 @@ export const SearchBox = () => (</button>);-{/* Compact concept link — Saleor-style topic + one-line descriptor. */}-export const ConceptLink = ({ href, title, children }) => (+{/* Compact concept link — icon, topic and a one-line descriptor. */}+export const ConceptLink = ({ href, title, icon, children }) => (<a href={href}- className="group block rounded-xl px-4 py-3.5 no-underline transition-colors hover:bg-[#f7f5f2] dark:hover:bg-[#32302e]/60">- <span className="inline-flex items-center gap-1.5 text-[15px] font-semibold text-[#061932] dark:text-zinc-50">- {title}- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"- strokeLinecap="round" strokeLinejoin="round"- className="opacity-0 -translate-x-1 transition-all group-hover:opacity-100 group-hover:translate-x-0">- <path d="M5 12h14" /><path d="m12 5 7 7-7 7" />- </svg>+ className="group flex gap-3.5 rounded-xl px-4 py-3.5 no-underline transition-colors hover:bg-[#f7f5f2] dark:hover:bg-[#32302e]/60">+ <span className="mt-0.5 flex items-center justify-center w-8 h-8 shrink-0 rounded-lg bg-[#f2efea] dark:bg-[#3f3e3c] text-[#4d4d4d] dark:text-zinc-300 transition-colors group-hover:bg-white dark:group-hover:bg-[#4a4846]">+ <Icon className="w-[18px] h-[18px]">{icon}</Icon>+ </span>+ <span className="block min-w-0">+ <span className="inline-flex items-center gap-1.5 text-[15px] font-semibold text-[#061932] dark:text-zinc-50">+ {title}+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"+ strokeLinecap="round" strokeLinejoin="round"+ className="opacity-0 -translate-x-1 transition-all group-hover:opacity-100 group-hover:translate-x-0">+ <path d="M5 12h14" /><path d="m12 5 7 7-7 7" />+ </svg>+ </span>+ <span className="block mt-1 text-sm text-[#666666] dark:text-zinc-400 leading-relaxed">{children}</span></span>- <span className="block mt-1 text-sm text-[#666666] dark:text-zinc-400 leading-relaxed">{children}</span></a>);+{/* Group heading inside the concept grid — spans the full grid width. */}+export const ConceptGroup = ({ children }) => (+ <div className="col-span-full mt-10 first:mt-0 mb-1 px-4">+ <h3 className="font-mono text-xs uppercase tracking-[0.14em] text-[#999999] dark:text-zinc-500 m-0">{children}</h3>+ </div>+);+export const CopyBox = ({ label, command }) => {const [copied, setCopied] = useState(false);return (@@ -135,11 +147,10 @@ export const CopyBox = ({ label, command }) => {<div className="max-w-7xl mx-auto px-6 sm:px-10 pt-20 pb-16 sm:pt-28 sm:pb-20"><div className="max-w-3xl"><h1 className="text-4xl sm:text-6xl font-semibold tracking-tight text-[#061932] dark:text-zinc-50 m-0 leading-[1.05]">- Build commerce that fits your stack+ Build commerce the way you want it</h1><p className="mt-6 text-lg sm:text-xl text-[#666666] dark:text-zinc-400 leading-relaxed m-0">- Spree is an open-source commerce platform with a REST API, TypeScript SDKs and a React- dashboard. Self-hosted, extensible, and built to connect the systems you already run.+ From Omnichannel and cross-border DTC, to complex B2B commerce workflows, to marketplaces and subscription services. Spree gives you battle-tested commerce primitives and unlimited flexibility to build the commerce experience your business needs.</p><div className="mt-8"><SearchBox />@@ -150,13 +161,15 @@ export const CopyBox = ({ label, command }) => {Get started<Icon className="w-4 h-4"><path d="M5 12h14" /><path d="m12 5 7 7-7 7" /></Icon></a>+ {/*<a href="https://console.spree.sh"className="inline-flex items-center gap-2 rounded-xl border border-[#d5d5d5] dark:border-[#4a4846] px-6 py-3.5 text-base font-medium text-[#1a1a1a] dark:text-zinc-200 no-underline transition-colors hover:border-[#b3b3b3] dark:hover:border-[#5f5c59]">Launch a free sandbox</a>+ */}</div><div className="mt-8 max-w-xl">- <CopyBox label="Or run it locally" command="npx create-spree-app@latest my-store" />+ <CopyBox label="Quick Install" command="npx create-spree-app@latest my-store" /></div></div></div>@@ -191,34 +204,164 @@ export const CopyBox = ({ label, command }) => {{/* CORE CONCEPTS */}<Section><Eyebrow>Core concepts</Eyebrow>- <SectionTitle>Understand the platform</SectionTitle>+ <SectionTitle>Commerce Primitives</SectionTitle>+ <Lede>+ Every piece of the platform, in the order you meet it — from the store that holds your data to+ the extension points you build on.+ </Lede><div className="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-1 -mx-4">- <ConceptLink href="/developer/core-concepts/products" title="Products">- Catalog, variants, options and categories.+ <ConceptGroup>Platform</ConceptGroup>+ <ConceptLink href="/developer/core-concepts/stores" title="Stores"+ icon={<><path d="m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7" /><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" /><path d="M2 7h20v5H2z" /></>}>+ The top-level container for all commerce data, including products, orders and customers.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/channels" title="Channels"+ icon={<><rect width="20" height="14" x="2" y="3" rx="2" /><path d="M8 21h8" /><path d="M12 17v4" /></>}>+ Omnichannel selling — web, mobile, point of sale, marketplace and wholesale.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/markets" title="Markets"+ icon={<><circle cx="12" cy="12" r="10" /><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /><path d="M2 12h20" /></>}>+ Sell across regions, each with its own currency, locale and tax treatment.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/customers" title="Customers"+ icon={<><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /><circle cx="12" cy="7" r="4" /></>}>+ Accounts, authentication, addresses, order history and guest checkout.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/data-privacy" title="Data privacy"+ icon={<><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /><path d="m9 12 2 2 4-4" /></>}>+ GDPR subject requests, consent records, EU Omnibus price history and the right of withdrawal.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/companies" title="Companies"+ icon={<><path d="M3 21h18" /><path d="M5 21V7l8-4v18" /><path d="M19 21V11l-6-4" /><path d="M9 9h.01" /><path d="M9 13h.01" /><path d="M9 17h.01" /></>}>+ B2B buyers as organizations — divisions, employees, shared addresses and VAT compliance.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/sellers" title="Sellers"+ icon={<><path d="M2 9h20l-1.5-4.5A2 2 0 0 0 18.6 3H5.4a2 2 0 0 0-1.9 1.5z" /><path d="M4 9v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9" /><path d="M9 13h6" /></>}>+ Running a marketplace — vendors with their own catalog and panel, and orders split per seller.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/staff-roles" title="Staff & roles"+ icon={<><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /><circle cx="9" cy="7" r="4" /><path d="M22 21v-2a4 4 0 0 0-3-3.87" /><path d="M16 3.13a4 4 0 0 1 0 7.75" /></>}>+ Admin users, invitations and role-based permissions scoped per store.+ </ConceptLink>++ <ConceptGroup>Catalog</ConceptGroup>+ <ConceptLink href="/developer/core-concepts/products" title="Products"+ icon={<><path d="m7.5 4.27 9 5.15" /><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" /><path d="m3.3 7 8.7 5 8.7-5" /><path d="M12 22V12" /></>}>+ Variants, option types, categories, collections and product types.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/pricing" title="Pricing"+ icon={<><path d="M12 2v20" /><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" /></>}>+ Price lists, price rules and the pricing context behind regional, wholesale and volume pricing.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/catalogs" title="Catalogs"+ icon={<><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" /></>}>+ Show different products and prices to different audiences — a wholesale range or one company's terms.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/inventory" title="Inventory"+ icon={<><path d="M3 21V8l9-5 9 5v13" /><path d="M3 21h18" /><rect width="6" height="6" x="9" y="15" /><path d="M9 12h6" /></>}>+ Stock across locations — what is on hand, what is spoken for, and what a shopper can buy.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/media" title="Media"+ icon={<><rect width="18" height="18" x="3" y="3" rx="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21" /></>}>+ The store-wide library — upload once and reuse everywhere, with focal points and automatic resizing.</ConceptLink>- <ConceptLink href="/developer/core-concepts/pricing" title="Pricing">- Price lists, multi-currency and customer-group pricing.+ <ConceptLink href="/developer/core-concepts/search-filtering" title="Search & filtering"+ icon={<><circle cx="11" cy="11" r="8" /><path d="m21 21-4.3-4.3" /></>}>+ Query parameters to search, filter, sort and paginate any resource through the API.</ConceptLink>- <ConceptLink href="/developer/core-concepts/carts" title="Carts & checkout">- The cart lifecycle from first item to completed order.++ <ConceptGroup>Cart & checkout</ConceptGroup>+ <ConceptLink href="/developer/core-concepts/carts" title="Carts"+ icon={<><circle cx="8" cy="21" r="1" /><circle cx="19" cy="21" r="1" /><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12" /></>}>+ The shopping and checkout phase — a cart collects items and details, then becomes an order.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/orders" title="Orders"+ icon={<><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z" /><path d="M14 2v5h5" /><path d="M9 13h6" /><path d="M9 17h4" /></>}>+ The permanent record of a completed cart, with separate payment and delivery statuses.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/order-totals" title="Order totals"+ icon={<><path d="M4 2v20l2-1.5L8 22l2-1.5L12 22l2-1.5L16 22l2-1.5L20 22V2l-2 1.5L16 2l-2 1.5L12 2l-2 1.5L8 2 6 3.5z" /><path d="M8 7h8" /><path d="M8 11h8" /><path d="M8 16h8" /></>}>+ How a total is built from items, tax, discounts, delivery and fees — and how to render a summary that adds up.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/payments" title="Payments"+ icon={<><rect width="20" height="14" x="2" y="5" rx="2" /><path d="M2 10h20" /></>}>+ Payment methods, sessions, saved cards and refunds that finish reliably even when a tab closes.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/taxes" title="Taxes"+ icon={<><path d="M9 14 4 9l5-5" /><path d="M4 9h11a5 5 0 0 1 5 5v6" /><path d="m15 9 5 5" /></>}>+ Tax categories and rates, inclusive versus added-on pricing, and connecting an external tax service.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/discounts" title="Discounts"+ icon={<><path d="m15 9-6 6" /><path d="M9 9h.01" /><path d="M15 15h.01" /><circle cx="12" cy="12" r="10" /></>}>+ The record of money taken off an order, and why it is spread across the items it applied to.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/fees" title="Fees"+ icon={<><circle cx="12" cy="12" r="10" /><path d="M12 8v8" /><path d="M8 12h8" /></>}>+ Surcharges added to an order — handling, gift wrap, cash on delivery — and cross-border customs duties.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/commissions" title="Commissions"+ icon={<><path d="M3 3v16a2 2 0 0 0 2 2h16" /><path d="m19 9-5 5-4-4-3 3" /></>}>+ What a marketplace charges its sellers — rates, the rules that target them, and the settlement record.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/promotions" title="Promotions"+ icon={<><path d="M20.59 13.41 13.42 20.6a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82" /><path d="M7 7h.01" /></>}>+ Percentage and fixed discounts, free shipping, BOGO offers and coupon codes built from rules and actions.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/store-credits-gift-cards" title="Store credits & gift cards"+ icon={<><rect width="20" height="14" x="2" y="7" rx="2" /><path d="M12 7v14" /><path d="M2 12h20" /><path d="M12 7a3 3 0 1 0-3-3c0 1.7 1.3 3 3 3" /><path d="M12 7a3 3 0 1 1 3-3c0 1.7-1.3 3-3 3" /></>}>+ Stored-value balances and redeemable codes for refunds, loyalty and gifting.+ </ConceptLink>++ <ConceptGroup>Fulfillment</ConceptGroup>+ <ConceptLink href="/developer/core-concepts/fulfillments" title="Fulfillments"+ icon={<><path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2" /><path d="M14 9h4l4 4v4a1 1 0 0 1-1 1h-2" /><circle cx="7" cy="18" r="2" /><circle cx="17" cy="18" r="2" /></>}>+ Getting items to the customer — shipping, digital delivery and in-store pickup.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/delivery-setup" title="Delivery setup"+ icon={<><path d="M12 2a8 8 0 0 0-8 8c0 5.4 8 12 8 12s8-6.6 8-12a8 8 0 0 0-8-8" /><circle cx="12" cy="10" r="3" /></>}>+ Profiles that decide how a product ships, zones that decide where, and where rates come from.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/returns-exchanges-claims" title="Returns, exchanges & claims"+ icon={<><path d="M3 7v6h6" /><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6.3 2.6L3 13" /><path d="M21 21v-4h-4" /></>}>+ What happens after delivery — separate records for money back, different items, and something gone wrong.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/addresses" title="Addresses"+ icon={<><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m2 7 10 6 10-6" /></>}>+ Country and state data, and address forms that adapt to the country a customer picks.+ </ConceptLink>+ <ConceptLink href="/developer/core-concepts/calculators" title="Calculators"+ icon={<><rect width="16" height="20" x="4" y="2" rx="2" /><path d="M8 6h8" /><path d="M8 11h.01" /><path d="M12 11h.01" /><path d="M16 11h.01" /><path d="M8 15h.01" /><path d="M12 15h.01" /><path d="M16 15h.01" /></>}>+ The arithmetic behind delivery charges and promotion discounts, and how to choose between them.+ </ConceptLink>++ <ConceptGroup>Extensibility</ConceptGroup>+ <ConceptLink href="/developer/core-concepts/events" title="Events"+ icon={<><path d="M13 2 3 14h9l-1 8 10-12h-9z" /></>}>+ React to an order placed, a payment taken or stock running out, without modifying core code.</ConceptLink>- <ConceptLink href="/developer/core-concepts/orders" title="Orders">- Statuses, editing, cancellation and refunds.+ <ConceptLink href="/developer/core-concepts/webhooks" title="Webhooks"+ icon={<><path d="M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2" /><path d="m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06" /><path d="m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8" /></>}>+ Real-time HTTP notifications to external services when something happens in your store.</ConceptLink>- <ConceptLink href="/developer/core-concepts/payments" title="Payments">- Gateways, authorization, capture and payment sessions.+ <ConceptLink href="/developer/core-concepts/translations" title="Translations"+ icon={<><path d="m5 8 6 6" /><path d="m4 14 6-6 2-3" /><path d="M2 5h12" /><path d="M7 2h1" /><path d="m22 22-5-10-5 10" /><path d="M14 18h6" /></>}>+ Selling in more than one language — product content and the interface around it.</ConceptLink>- <ConceptLink href="/developer/core-concepts/fulfillments" title="Fulfillments">- Delivery methods, labels, tracking and pickup.+ <ConceptLink href="/developer/core-concepts/slugs" title="Slugs"+ icon={<><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></>}>+ SEO-friendly URLs for products, categories and stores, and looking records up by slug or ID.</ConceptLink>- <ConceptLink href="/developer/core-concepts/markets" title="Markets">- Sell across regions with their own currency, locale and tax.+ <ConceptLink href="/developer/core-concepts/metafields" title="Custom fields"+ icon={<><path d="M4 7V4h16v3" /><path d="M9 20h6" /><path d="M12 4v16" /></>}>+ Add your own structured, typed data to any record — searchable, filterable and editable in the dashboard.</ConceptLink>- <ConceptLink href="/developer/core-concepts/promotions" title="Promotions">- Rules, actions, coupon codes and gift cards.+ <ConceptLink href="/developer/core-concepts/imports-exports" title="Imports & exports"+ icon={<><path d="M12 3v12" /><path d="m8 11 4 4 4-4" /><path d="M8 5H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4" /></>}>+ Move data in and out as CSV — bulk catalog updates, customer lists and order extracts.</ConceptLink>- <ConceptLink href="/developer/core-concepts/events" title="Events & webhooks">- React to what happens in the store, inside and outside the app.+ <ConceptLink href="/developer/core-concepts/reporting" title="Reporting"+ icon={<><path d="M3 3v16a2 2 0 0 0 2 2h16" /><rect width="4" height="7" x="7" y="10" rx="1" /><rect width="4" height="12" x="15" y="5" rx="1" /></>}>+ The metrics and dimensions behind the dashboard home screen, the Reports page and saved reports.</ConceptLink></div></Section>diff --git a/docs/plans/6.0-telemetry-and-update-check.md b/docs/plans/6.0-telemetry-and-update-check.mdindex 57c9e95597..a9b6a77ddc 100644--- a/docs/plans/6.0-telemetry-and-update-check.md+++ b/docs/plans/6.0-telemetry-and-update-check.md@@ -89,6 +89,14 @@ install can hit the same endpoint.the telemetry module is copied into `create-spree-app`, which deliberatelyhas no dependency on `@spree/cli`; the two copies must stay identical anda Vitest fixture shared through the workspace asserts it.+- **Only lifecycle commands send CLI events, and only from a terminal+ (2026-09-16).** Per-command reporting is the Next.js model, but `spree+ api` and `spree exec` are called from scripts in loops, and `spree+ completion` runs on every tab press; each would send an event per+ invocation. The allowlist is `create`, `init`, `add`, `dev`, `update`,+ `upgrade`, `eject`, `build`, `plugin`, `generate`, plus a standard-output+ terminal check. Accepted trade-off: no data on API and scripting usage,+ which is by design — that is machine use, not the funnel.- **Mobile-app and headless installs count.** The heartbeat runs from Railswhether or not a dashboard is mounted, so an installation with no admin UIstill reports and still gets the release list (readable through the API).@@ -241,6 +249,19 @@ records that it was shown, the way Next.js does. `spree telemetry status`,and `DO_NOT_TRACK=1` win over the file. No CLI event is sent under `CI=true`either — those runs are not people.+Only lifecycle commands report: `create` (from `create-spree-app`), `init`,+`add`, `dev`, `update`, `upgrade`, `eject`, `build`, `plugin`, `generate`.+The scripted surfaces — `api`, `exec`, `rails`, `rake`, `task`, `rspec`,+`completion` and the rest — never do, and no command reports when its+standard output is not a terminal, the cheapest test for "a script, not a+person". The gate sits in the CLI, before anything else happens: a command+outside the list, or one running without a terminal, never builds a payload,+never resolves the machine id and never opens a connection — there is no+HTTP call to swallow. A developer working by hand sends a few events a day,+never one per loop iteration. The command list lives in one exported+constant in `telemetry.ts`; the receiver keeps a copy only as a backstop+against a forked client.+### spreecloud.io (outside this repository)- `GET /updates.json` keeps its contract: the four 5.x keys, the samediff --git a/docs/use-case/b2b/b2b-admin-capabilities.mdx b/docs/use-case/b2b/b2b-admin-capabilities.mdxdeleted file mode 100644index 15b018fe3c..0000000000--- a/docs/use-case/b2b/b2b-admin-capabilities.mdx+++ /dev/null@@ -1,76 +0,0 @@-----title: "B2B Admin Capabilities"-description: "Learn how Spree empowers merchants to manage B2B buyers, pricing, and workflows."------As the operator of a B2B storefront, you have control over how business buyers access your platform, interact with your catalog, and complete their purchases. Spree provides core B2B admin tools in its free Community Edition, with buyer organizations and catalogs coming in Spree 6.0, and enterprise-grade approval and integration workflows available in Enterprise Edition.--## Community Edition--The following admin capabilities are available out of the box.--### Customer Segmentation--- Create [<u>**Customer Groups**</u>](https://spreecommerce.org/docs/user/customers/customer-groups) to classify buyers into wholesale tiers, trade accounts, distributor categories, or any custom segment-- Add customers to groups directly from the admin, and apply pricing automatically when they log in-- Use Customer Groups as rule conditions in promotions and price lists to restrict offers to specific buyer types--### Pricing--- Assign a [<u>**Catalog**</u>](https://spreecommerce.org/docs/user/catalogs/catalogs) to each customer group or company, so every segment always sees their correct contracted pricing-- Combine Customer Group and Market rules on a single price list to deliver region-specific wholesale pricing in the correct currency-- Set volume pricing rules that activate based on order quantity-- Schedule price lists for a defined period or leave them open-ended-- Activate, deactivate, or schedule price lists directly from the admin dashboard--### Market Configuration--- Create [<u>**Markets**</u>](https://spreecommerce.org/docs/user/settings/markets) for different regions, each with its own currency, language, and tax settings-- Use Markets as a rule condition in Price Lists to apply region-specific pricing without duplicating products-- Configure VAT-inclusive pricing per market for EU compliance--### Gated Storefronts--- Require buyers to log in before they can browse products or see prices-- Keep catalog and pricing information confidential from anonymous visitors-- Restrict your storefront to approved trade accounts only--## Coming in Spree 6.0--<Note>The following features are on the open-source roadmap and will be available in Spree 6.0.</Note>--### Buyer Organizations--- Associate buyers with a parent company account, including locations and contacts-- Manage multiple users operating under the same business account--### B2B Catalogs--- Create curated product assortments for specific buyer segments-- Show different subsets of your catalog to different customer groups--## Enterprise Edition--<Warning>The following capabilities are available in Spree Enterprise Edition.</Warning>--### Approval Workflows & ERP Integrations--- Configure role-based approval chains for order sign-off before fulfillment-- Connect to procurement and ERP systems using pre-built integrations-- Automate order routing and fulfillment workflows across back-office systems--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>B2B Commerce Model</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-commerce-model)-- [<u>B2B Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-capabilities)-- [<u>B2B Buyer Experience</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-buyer-capabilities)diff --git a/docs/use-case/b2b/b2b-buyer-capabilities.mdx b/docs/use-case/b2b/b2b-buyer-capabilities.mdxdeleted file mode 100644index 9e496b40a6..0000000000--- a/docs/use-case/b2b/b2b-buyer-capabilities.mdx+++ /dev/null@@ -1,63 +0,0 @@-----title: "B2B Buyer Experience"-description: "Learn how Spree delivers a purchasing experience tailored to B2B buyers."------Business buyers expect to see their contracted prices, access the right products for their account, and place orders without friction. Spree supports this across Community Edition today, with richer account management features arriving in Spree 6.0.--## Community Edition--### Personalized Pricing--Logged-in wholesale or trade buyers automatically see their contracted prices — no manual intervention required. Retail visitors browsing the same storefront see standard prices. The right pricing is applied based on the buyer's [<u>Customer Group</u>](https://spreecommerce.org/docs/user/customers/customer-groups) membership automatically.--### Regional Pricing--Buyers shopping in different markets see prices in their local currency, with region-specific wholesale rates applied automatically based on where they're shopping. Switching markets updates pricing accordingly.--### Gated Access--Where a storefront is configured as trade-only, buyers must log in before they can browse products or see pricing. This keeps catalog and price information private from anonymous visitors and ensures only approved accounts can place orders.--<Note>For step-by-step setup, see [<u>Set Up Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/wholesale-pricing) and [<u>Set Up Regional Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/regional-wholesale).</Note>--## Coming in Spree 6.0--<Note>The following features are on the open-source roadmap and will be available in Spree 6.0.</Note>--### Buyer Organizations--- Register and operate under a company account, alongside other buyers from the same business-- Access shared order history across the organization-- Manage locations and contacts within the company account--### B2B Catalogs--- See curated product assortments specific to your account or segment-- Browse only the products relevant to your business, rather than the full catalog--## Enterprise Edition--<Warning>The following capabilities are available in Spree Enterprise Edition.</Warning>--### Approval Workflows--- Submit orders into a role-based approval chain before they are confirmed-- Receive notifications at each stage of the approval process-- Finance and management roles can review, approve, or reject orders before fulfillment--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>B2B Commerce Model</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-commerce-model)-- [<u>B2B Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-capabilities)-- [<u>B2B Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-admin-capabilities)diff --git a/docs/use-case/b2b/b2b-capabilities.mdx b/docs/use-case/b2b/b2b-capabilities.mdxdeleted file mode 100644index 3e5e15a997..0000000000--- a/docs/use-case/b2b/b2b-capabilities.mdx+++ /dev/null@@ -1,93 +0,0 @@-----title: "B2B Capabilities"-description: "Learn how Spree Commerce supports B2B commerce operations, from open-source features to enterprise-grade workflows."------Spree Commerce provides a practical foundation for B2B ecommerce — with core B2B features available in the free Community Edition, more advanced capabilities arriving in Spree 6.0, and enterprise-grade workflows available in Spree Enterprise Edition.--Whether you're running wholesale pricing for trade accounts, managing multi-region B2B operations, or building a fully custom procurement portal, Spree gives you the tools to match your business model without being locked into a fixed SaaS product.--## B2B Features in Community Edition--The following B2B capabilities are available in Spree's free Community Edition and can be configured directly in the admin dashboard — no development required.--### Price Lists--Price Lists let you create and manage custom pricing for specific customer segments. You can:--- Offer different prices to different buyer groups (e.g., retail vs. wholesale vs. distributor tiers)-- Give a market its own catalog, and assign catalogs to customer groups and companies, to apply regional wholesale pricing automatically-- Apply volume pricing rules that activate based on order quantity-- Schedule time-limited pricing or leave it open-ended-- Manage everything without duplicating product records or writing any code--See [<u>Products → Price Lists</u>](https://spreecommerce.org/docs/user/pricing/price-lists) for the full reference.--### Customer Groups--Customer Groups let you segment buyers into defined lists, which become the foundation for targeted pricing and promotions:--- Create groups for wholesale accounts, trade partners, VIP buyers, or any custom segment-- Use groups as a rule condition in Price Lists to ensure each buyer type always sees their correct pricing-- Restrict promotions to specific segments using Promotion Rules--See [<u>Customers → Customer Groups</u>](https://spreecommerce.org/docs/user/customers/customer-groups) for the full reference.--### Markets--Markets define distinct shopping experiences for different regions — each with its own currency, language, and tax settings. For B2B, Markets work alongside Price Lists to deliver regional wholesale pricing:--- Serve US wholesale buyers USD prices and EU wholesale buyers EUR prices, all from one storefront-- Apply VAT-inclusive pricing in EU markets automatically-- Support multi-region B2B expansion without building separate stores--See [<u>Settings → Markets</u>](https://spreecommerce.org/docs/user/settings/markets) for the full reference.--### Gated Storefronts--Spree supports gated storefront configurations that require buyers to log in before they can browse products or see prices — a common requirement for wholesale and trade portals. This means you can restrict your storefront to approved accounts only, keeping catalog and pricing confidential from anonymous visitors.--### What You Can Build with Community Edition--With [<u>Price Lists</u>](https://spreecommerce.org/docs/user/pricing/price-lists), [<u>Customer Groups</u>](https://spreecommerce.org/docs/user/customers/customer-groups), [<u>Markets</u>](https://spreecommerce.org/docs/user/settings/markets), and gated storefronts, you can build real B2B scenarios today:--- **Wholesale pricing** — retail and wholesale customers on the same storefront, each seeing their own contracted prices-- **Multi-tier distributor pricing** — independent price lists for different distributor tiers or named accounts-- **Regional wholesale pricing** — different wholesale prices per market, in the correct currency, applied automatically based on where the buyer shops-- **B2B2C hybrid store** — standard retail prices for public visitors, custom pricing for logged-in trade accounts — no separate store required-- **Trade-only portals** — gated storefronts where unapproved visitors cannot see products or prices--See [<u>Set Up Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/wholesale-pricing) and [<u>Set Up Regional Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/regional-wholesale) for step-by-step guides.--## Coming in Spree 6.0--<Note>The following features are on the open-source roadmap and will be available in Spree 6.0.</Note>--- **B2B Buyer Organizations** — Multi-level company accounts: an organization tree of companies and divisions, each with its own address book and members whose buying rights cover their branch of the tree. Buyers can manage their own organization from the storefront — no other open-source platform ships organization hierarchy for free.-- **B2B Catalogs** — Curated product assortments with optional price lists, assignable to a sales channel, a customer group, a market, or a company. A catalog assigned to a company applies to its whole subtree, so a group-wide range is set up once.--## Enterprise Edition--<Warning>The following capabilities are available in Spree Enterprise Edition.</Warning>--- **B2B Approval Workflows & ERP Integrations** — Role-based approval chains for order sign-off, and pre-built connectors for procurement and ERP systems.--For a full overview of Enterprise Edition capabilities across security, support, and multi-tenant architecture, see the [<u>feature comparison</u>](https://spreecommerce.org/docs/user/what-is-spree-commerce).--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>B2B Commerce Model</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-commerce-model)-- [<u>B2B Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-admin-capabilities)-- [<u>B2B Buyer Experience</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-buyer-capabilities)-- [<u>Set Up Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/wholesale-pricing)-- [<u>Set Up Regional Wholesale Pricing</u>](https://spreecommerce.org/docs/user/how-to/regional-wholesale)diff --git a/docs/use-case/b2b/b2b-commerce-model.mdx b/docs/use-case/b2b/b2b-commerce-model.mdxdeleted file mode 100644index 9be3de1c99..0000000000--- a/docs/use-case/b2b/b2b-commerce-model.mdx+++ /dev/null@@ -1,88 +0,0 @@-----title: "B2B Commerce Model"-description: "Learn about the B2B commerce model and how Spree Commerce supports it."------B2B ecommerce (business-to-business) refers to commercial transactions between companies, rather than between a business and individual consumers. These storefronts serve business accounts — with structured pricing, account management, and ordering workflows designed for professional buyers, not casual shoppers.--Spree supports B2B commerce at multiple levels: core B2B pricing, segmentation, and gated access are available in the free Community Edition; buyer organizations and B2B catalogs are on the open-source roadmap for Spree 6.0; and approval workflows and ERP integrations are available in Spree Enterprise Edition.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## What is B2B Ecommerce?--B2B platforms typically feature:--- Account-based pricing and customer-specific rates-- Volume pricing and order quantity tiers-- Role-based access and buyer teams-- Bulk ordering and repeat order functionality-- Restricted or gated storefront access-- ERP or procurement integrations--## Why Choose the B2B Ecommerce Model?--- **Streamlined Sales Operations** — Digitizing your B2B sales process reduces manual effort, minimizes errors, and allows for faster order turnaround — especially for high-volume, repeat purchases.-- **24/7 Self-Service for Buyers** — Business buyers increasingly expect ecommerce-like convenience. A B2B storefront lets them browse, check their prices, and place orders on their own schedule.-- **Account-Based Customization** — B2B ecommerce enables personalized pricing, product availability, and tax rules based on account, segment, or market.-- **Scalable Growth** — An ecommerce-driven sales channel can complement or replace traditional sales teams — scaling to more accounts or regions without adding headcount.-- **Integration with Back-Office Systems** — B2B platforms often connect to ERPs, CRMs, and procurement systems to streamline fulfillment, invoicing, and customer management.--## Common B2B Use Cases--- **Wholesale Ordering** — Trade customers log in and see their contracted wholesale prices, with standard retail prices shown to all other visitors.-- **Multi-Tier Distributor Pricing** — Different distributor tiers or named accounts each have independent price lists with their own negotiated rates.-- **Regional Wholesale Expansion** — A single storefront serves wholesale buyers in multiple markets, each seeing wholesale prices in their local currency.-- **B2B2C Hybrid Stores** — Retail and trade customers shop side-by-side on one storefront, with pricing automatically applied based on account type.-- **Trade-Only Portals** — Gated storefronts where unapproved visitors cannot see products or prices until their account has been verified.-- **Buyer Organizations** — Multiple buyers operate under one company account, with its sub-units, address book and shared order history.--## How Spree Supports B2B Commerce--### Community Edition--With [<u>Price Lists</u>](https://spreecommerce.org/docs/user/pricing/price-lists), [<u>Customer Groups</u>](https://spreecommerce.org/docs/user/customers/customer-groups), [<u>Markets</u>](https://spreecommerce.org/docs/user/settings/markets), and gated storefronts, you can configure working B2B scenarios directly in the Spree admin — no development required:--- Offer wholesale pricing to registered trade accounts while retail visitors see standard prices-- Create independent price lists for different wholesalers or distributor tiers-- Assign a catalog to a customer group or a company to deliver that buyer their own assortment and prices, in their own currency-- Gate your storefront so only approved, logged-in buyers can browse products and prices-- Run combined B2C and B2B from a single storefront, with no separate portal or login system needed--Buyer organizations and catalogs are part of this — [<u>companies</u>](https://spreecommerce.org/docs/user/customers/companies) model a business buyer and its sub-units, and a [<u>catalog</u>](https://spreecommerce.org/docs/user/catalogs/catalogs) is the agreement that says what they see and what they pay.--### Enterprise Edition--For complex procurement requirements, Spree Enterprise Edition adds role-based order approval workflows and pre-built ERP and procurement system integrations.--## Challenges in B2B Ecommerce--- **Custom Pricing Logic** — B2B pricing often includes tiers, discounts, and customer-specific contracts. Spree's Price Lists engine handles this natively in the admin, no development required.-- **Multi-Region Complexity** — Serving wholesale buyers across multiple markets, currencies, and tax regimes requires flexible pricing infrastructure. Spree's Markets and Price List rules handle this without custom code.-- **Gated Access** — Restricting catalog and pricing visibility to approved accounts is a standard requirement for trade portals. This is supported out of the box in Community Edition.-- **Multi-User Organizations** — A company account with several buyers, its own address book and shared order history is supported in Community Edition. Role-based approval chains are Enterprise Edition.-- **ERP & Fulfillment Integration** — Role-based approval chains and pre-built ERP connectors are available in Enterprise Edition.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>B2B Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-capabilities)-- [<u>B2B Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-admin-capabilities)-- [<u>B2B Buyer Experience</u>](https://spreecommerce.org/docs/use-case/b2b/b2b-buyer-capabilities)diff --git a/docs/use-case/digital-products/admin-capabilities.mdx b/docs/use-case/digital-products/admin-capabilities.mdxdeleted file mode 100644index b511d78e37..0000000000--- a/docs/use-case/digital-products/admin-capabilities.mdx+++ /dev/null@@ -1,67 +0,0 @@-----title: "Digital Products Admin Capabilities"-description: "Learn about the digital product features available in the Spree admin dashboard."------Spree Commerce provides tools for managing digital products, offering flexibility and control over how files are configured, delivered, and accessed. Whether you're selling standalone digital goods or bundling them with physical items, Spree helps you streamline digital product operations while maintaining security and customer satisfaction.--Below is a breakdown of the key capabilities available to store administrators.--## Flexible Product Configuration--- Configure any product to be digital-only, physical, or a hybrid (e.g., physical textbook with downloadable companion PDF).-- Attach digital files (PDFs, ZIPs, etc.) to any product variant — including variants of physical products, so a manual or warranty document ships alongside the goods.-- Upload, replace and remove files from the **Digital files** card on the product page. Replacing a file updates it for everyone who already bought it; nobody loses access.--## Download Access Management--- Limit how long a download link stays valid and how many times it can be used, from **Settings → Store**.-- Override either limit on an individual file, so an evergreen download and a time-limited course can live in the same catalog. Leave a file's limits blank and the store settings apply.-- Restore a customer's access from the order page when they run out of attempts or a download failed.--## Delivery Step Bypass--- Digital products are delivered by the built-in Digital delivery method, which needs no shipping address.-- If a cart only contains digital items, the delivery step is skipped entirely for faster checkout.--## Automated Digital Delivery--- Digital items are fulfilled automatically when the order is placed — download links are ready immediately, with no manual step.-- Customers are emailed their download links as soon as the order is placed, and you can re-send that email from the order page at any time.-- Signed-in customers can also retrieve everything they have bought from your storefront or app, across all their orders.--## Download Visibility--- The order page shows each file a buyer received: how many downloads they have used, when access lapses, and whether it has run out.-- A `digital_link.downloaded` event fires on each successful download, so you can feed downloads into your own auditing, analytics, or fraud tooling via webhooks.--## Security and Permissions--- Files are stored privately and served through protected, time-limited download URLs.-- Each link is unique to a single purchased unit, and non-public file storage prevents direct linking or unauthorized downloads.--## Bundling & Promotions--- Bundle digital products with physical items or offer them as free gifts with purchase.-- Create promotions or discounts specific to digital goods.--## Custom Rules & Logic (Optional)--- Use Spree's flexible architecture to create custom workflows, such as:- - Sending your own download emails by subscribing to order and download events- - Generating personalized files (e.g., license keys or certificates)- - Integrating with external file storage or DRM systems--## Get Started-<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [Digital Products Model](https://spreecommerce.org/docs/use-case/digital-products/model)-- [Digital Products Capabilities](https://spreecommerce.org/docs/use-case/digital-products/capabilities)diff --git a/docs/use-case/digital-products/capabilities.mdx b/docs/use-case/digital-products/capabilities.mdxdeleted file mode 100644index 669c51f86b..0000000000--- a/docs/use-case/digital-products/capabilities.mdx+++ /dev/null@@ -1,69 +0,0 @@-----title: "Digital Products Capabilities"-description: "Sell digital products in Spree with download access limits, expiring links, digital-only checkout, multiple delivery channels, and metafield support."------Spree Commerce gives merchants complete control over the sale and delivery of digital products. Whether you're selling fully digital goods or offering downloadable add-ons, Spree provides a flexible and secure framework for instant delivery, gated access, and hybrid product configurations.--## Admin Capabilities--Spree provides merchants with robust tools to manage digital products alongside physical inventory. Whether you're distributing eBooks, music files, software licenses, or digital assets, Spree allows you to configure flexible delivery rules, streamline access, and maintain full control over the digital fulfillment lifecycle.--- **Flexible Product Configuration** - Create fully digital products or attach digital files to physical products.-- **Download Access Management** - Define limits for how many times a file can be downloaded and for how long download links remain active.-- **Multiple Delivery Channels** - Offer download access directly on the confirmation page, in order emails, or via the customer's account area.-- **Digital-Only Checkout** - Assign digital SKUs to a “Digital” shipping category. When only digital items are in the cart, the delivery step is skipped to streamline the checkout flow.-- **Link Control & Expiry** - Set download permissions and expiry windows. Revoke access manually if needed to prevent abuse or for license changes.-- **Segmentation & Analytics** - Track digital product performance using Spree’s reporting tools. Segment buyers based on purchase behavior or file download activity.-- **Metafield Support** - Use metafields to attach structured metadata to digital products (e.g., license type, access level, product version). These can be queried for automation or integrations.--## Customer Experience--Spree makes buying and receiving digital products fast, intuitive, and secure. Customers enjoy instant access to downloads after purchase, without unnecessary friction or waiting. With options to retrieve files via email or their account dashboard, the experience is smooth and dependable - building trust and satisfaction with every order.--- **Instant Access Post-Purchase** - Download links can appear immediately after checkout and are also delivered via email or available in the user dashboard.-- **Frictionless Checkout Flow** - When purchasing only digital products, users skip shipping steps entirely, making checkout faster and more intuitive.-- **Secure & Transparent Downloads** - Customers see how many downloads remain and how long links are active. Links are secure and uniquely generated per order.-- **Ongoing Access via My Account** - Digital purchases remain available in the customer’s account (if enabled), allowing repeat access without needing to contact support.--## Flexible, Customizable Architecture--While many digital products features are available out-of-the-box in Spree Community Edition, the open-source foundation means you can extend and tailor the platform to your exact business model - whether that means custom commission logic, ERP integrations, or unique checkout flows.--Spree offers flexibility across all layers of the platform, from code-level customization to no-code configuration.--## Full Ownership And Control--With Spree, you’re not locked into a black-box SaaS model. You retain complete control over your infrastructure, data, and roadmap, enabling long-term flexibility, scalability, and compliance.--- **API-Driven Extensibility**- - **Full API Coverage** - extend the platform via REST or GraphQL APIs for storefronts, checkout, vendor dashboards, or 3rd-party integrations. See:[<u>API Reference</u>](https://spreecommerce.org/docs/api-reference/introduction)- - **Custom Integrations** - seamlessly connect with ERPs, CRMs, payment providers, POS systems, or headless frontends.-- **Deployment Flexibility**- - **Self-Hosting Options** - deploy Spree anywhere; your cloud provider, on-premise, or in specific geographic regions. See:[<u>Deployment Guide</u>](https://spreecommerce.org/docs/developer/deployment/render)- - **Provider Agnostic** - run on AWS, GCP, Azure, or Render. Tailor infrastructure to budget, compliance, and performance needs.-- **Scalability & Performance**- - **Built for Scale** - Spree supports advanced architectures using load balancers, Redis caching, CDN layers (e.g., Cloudflare or Fastly).- - **High Availability** - avoid downtime during peak sales periods or global rollouts with scalable infrastructure.-- **Security Under Your Control, included in the Enterprise Edition**- - **Data Encryption** - Protect sensitive data in transit and at rest using standard encryption protocols.- - **Anti-DDoS & Rate Limiting** - configure your own network protections using preferred security services.- - **Vulnerability Management** - patch quickly, audit dependencies, and apply security policies with no vendor bottlenecks.-- **Compliance Ownership**- - **Full Compliance Control** - build to meet your exact regulatory requirements, whether WCAG, GDPR, HIPAA, or SOC2.- - **Data Sovereignty** - keep data within borders required by your industry or region.--## Get Started-<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>---## Further Reading-- [Digital Products Model](https://spreecommerce.org/docs/use-case/digital-products/model)-- [Digital Products Admin Capabilities](https://spreecommerce.org/docs/use-case/digital-products/admin-capabilities)diff --git a/docs/use-case/digital-products/model.mdx b/docs/use-case/digital-products/model.mdxdeleted file mode 100644index 409e0cdc4f..0000000000--- a/docs/use-case/digital-products/model.mdx+++ /dev/null@@ -1,78 +0,0 @@-----title: "Digital Products Model"-description: "Learn about the digital product ecommerce model with Spree Commerce."------Spree Commerce provides support for businesses selling digital goods whether you're offering downloadable files, access codes, subscriptions, or mixed-format products with both physical and digital components.--With Spree, you can streamline the delivery of digital content, enforce access rules, and provide a seamless experience from purchase to download, all while retaining full ownership and control over the customer journey.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## What is Digital Product Commerce?--Digital product commerce refers to the sale and delivery of intangible goods online, i.e., items that don't require physical shipping. These can include:--- Ebooks, PDFs, music files, videos, or artwork-- Software licenses or activation keys-- Educational materials or course access-- Downloadable templates or design assets-- Digital components of a physical product (e.g., user manuals, bonus media)--Unlike traditional ecommerce, there’s no inventory to manage or shipping to coordinate, but there are unique considerations around access, licensing, delivery, and customer experience.--## Why Choose a Digital Product Model?--- **Instant Delivery & Global Reach** - Digital products are available immediately after purchase, enabling frictionless fulfillment and zero logistics overhead.-- **Operational Efficiency** - No warehousing, shipping, or returns processing, just secure file hosting and access management.-- **Flexible Product Structures** - Bundle digital goods with physical items, sell standalone files, or combine multiple digital assets in a single SKU.-- **Controlled Access** - Use built-in rules to limit downloads per customer, expire links after a period, and ensure compliance with usage restrictions.--## Common Digital Product Use Cases--- **Digital Downloads Only** - audio files, software, or ebooks sold directly through an online store.-- **Digital + Physical Bundles** - e.g., selling a hardcover book that includes a free digital PDF version.-- **Membership or Subscription Access** - gated digital content tied to recurring billing or customer groups.-- **Instructional Materials** - downloadable manuals, training resources, or product guides.-- **License-Based Sales** - activation codes, keys, or serial numbers delivered post-purchase.--## Challenges in Digital Product Ecommerce--- **Secure Delivery** - Preventing unauthorized sharing or reuse of download links.-- **Access Control** - Offering flexible but enforceable download limits (time-based or usage-based).-- **Mixed Cart Handling** - Managing checkout experiences when carts contain both digital and physical items.-- **Content Updates** - Ensuring buyers get access to the latest versions of digital products post-purchase.--## How Spree Supports Digital Products--Spree’s digital product system is designed to offer flexibility for a wide range of use cases while providing a smooth customer experience:--- **Fully Digital or Hybrid SKUs** - Attach digital files to any product—whether sold standalone or alongside physical goods.-- **Download Access Management** - Automatically provide access upon purchase via email, user dashboard, or both. Configure:- - Link expiry (by time)- - Download limits (by count)- - Manual revocation or reactivation-- **Digital Shipping Category** - If a product is marked as “digital only,” the checkout flow automatically skips the shipping step, reducing friction and improving speed to delivery.-- **My Account Access** - Customers can retrieve purchased files anytime from their “My Account” dashboard, based on the access settings you configure.-- **Flexible Delivery Methods** - Whether you want to show the download link on the success page, in an email, or via account login only, Spree gives you control over how digital content is distributed.--## Get Started-<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [Digital Products Capabilities](https://spreecommerce.org/docs/use-case/digital-products/capabilities)-- [Digital Products Admin Capabilities](https://spreecommerce.org/docs/use-case/digital-products/admin-capabilities)diff --git a/docs/use-case/marketplace/admin-dashboard.mdx b/docs/use-case/marketplace/admin-dashboard.mdxdeleted file mode 100644index 2168f37202..0000000000--- a/docs/use-case/marketplace/admin-dashboard.mdx+++ /dev/null@@ -1,129 +0,0 @@-----title: "Marketplace Admin Panel"-description: "Learn about the Spree multi-vendor marketplace admin UX."--------Spree Commerce Enterprise Edition provides comprehensive [<u>multi-vendor marketplace</u>](https://spreecommerce.org/marketplace-ecommerce/) management tools designed specifically with a robust Admin dashboard.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--With robust vendor onboarding, intuitive integration options (Shopify and WooCommerce), and granular merchandising capabilities, Spree enables admins to streamline vendor relationships and marketplace operations, making it easy to scale efficiently, manage vendor permissions precisely, and ensure consistent customer experiences across the entire marketplace.--### Marketplace Management--Spree Enterprise allows full oversight of vendor relationships. Admins can invite vendors, approve or reject vendor signups, suspend accounts, and monitor vendor performance metrics.--- **Vendor Invites and Approval**: Initiate onboarding via direct invites or self-service applications with approval workflows.-- **Permission Controls**: Temporarily reject or suspend vendors to restrict access without deleting their data.-- **Commission Management**: Set percentage-based commissions on a globally, per vendor, or per product--### Shopify Vendor Integration--Admins can streamline operations for Shopify vendors using a white-labelled Shopify sales channel app:--- **Product Sync**: Automatically import product data from the vendor's Shopify store for moderation or direct publishing.-- **Order Sync & Performance Monitoring**: Orders placed on the marketplace are routed to vendors' Shopify dashboards, allowing full visibility.-- **Shipment Sync & Notifications**: Customer shipment status updates flow automatically based on Shopify fulfillment.-- **Cancellations, Refunds & Notifications**: Full/partial cancellations and refunds sync from Shopify and notify the customer automatically.--### WooCommerce Vendor Integration--Admins can also streamline onboarding for WooCommerce vendors using a direct API integration:--- **Product Sync**: Automatically import product data from the vendor's WooCommerce store for moderation or direct publishing.-- **Order Sync & Performance Monitoring**: Orders placed on the marketplace are routed to vendors' WooCommerce dashboards.-- **Shipment Sync & Notifications**: Customer shipment status updates flow automatically based on WooCommerce fulfillment.-- **Cancellations, Refunds & Notifications**: Full/partial cancellations and refunds sync from WooCommerce and notify the customer automatically.--### Manual or CSV Vendor Onboarding--Admins can manually onboard vendors without an online store or using unsupported platforms via direct account setup in the vendor dashboard:--- **Product Upload**: Add products manually or CSV import-- **Order Management**: Can review and process orders in the vendor dashboard-- **Cancellations & Refunds**: Access tools to manage returns and exceptions.--### Marketplace Merchandising--Ensure product consistency and branding integrity across all vendors.--- **Approval Flow**: Moderate product listings before publishing.-- **Editing & Curation**: Update vendor-provided listings as needed.-- **Product Categorization, Collections, Tags**: Organize products automatically or manually for storefront clarity.-- **Product Properties**: Define and filter by reusable attributes.--### Promotions & Marketing Automations--Built-in campaign tools for engagement and retention:--- **Discount Engine**: Create rules and coupon codes.-- **Gift Cards**: Issue and redeem digital gift balances.-- **Email Automations**: Abandoned cart and upsell flows triggered based on user activity.--### Storefront & Content Management--- **Drag & Drop Builder**: Customize homepage and category layouts with blocks.-- **Modular Pages**: Create landing pages without dev effort.-- **Blog CMS & Newsletter Subscriptions**: Enhance SEO and brand engagement.--### Checkout & Payments--- **Multi-Vendor Checkout**: Spree intelligently splits orders by vendor.-- **Quick Checkout Options**: Apple Pay, Google Pay, and BNPL methods.-- **Tax Calculation**: Real-time tax logic per shipping region.-- **Stripe Connect Integration**: Handles vendor onboarding, order-level payment splits, and payout automation.--### Order Management--- **Filtering & Monitoring**: Admins can view orders by vendor, status, or tag.-- **Order Detail Actions**: Cancel, refund, or return items with notifications.-- **Fulfillment Statuses**: Track per-vendor fulfillment updates.--### Vendor Payouts--- **Automatic & Manual Options**: Spree handles payouts via Stripe Connect or manual exports.-- **KYC Flow & Analytics**: Vendors onboard themselves through Stripe and access dashboards with reports.--### Analytics & Reporting--- **KPIs Dashboard**: Track sales, AOV, top selling products, and more in the dashboard-- **Native Google Analytics Integration**: Unified view of traffic and conversions.-- **Data Exports**: Download product or order data in CSV format.--### Customer Service--- **Chat & AI Bots**: Optional integrations for 24/7 help.-- **Ticketing & Store Credits**: Manage support cases and compensation.--### APIs--- **Storefront, Platform, and Checkout APIs**: Extend functionality or build custom UIs.--### Further Reading--- [Multi-Vendor Marketplace Model](https://spreecommerce.org/docs/use-case/marketplace/model)-- [Multi-vendor Marketplace Capabilities](https://spreecommerce.org/docs/use-case/marketplace/capabilities)-- [<u>Developer Docs</u>](https://spreecommerce.org/docs/developer/getting-started/quickstart)-- [<u>User Docs</u>](https://spreecommerce.org/docs/user/what-is-spree-commerce)-- [<u>Ecommerce API docs</u>](https://spreecommerce.org/docs/api-reference/introduction)-- [<u>Integrations</u>](https://spreecommerce.org/docs/integrations/integrations)--### Get Started--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>\ No newline at end of filediff --git a/docs/use-case/marketplace/capabilities.mdx b/docs/use-case/marketplace/capabilities.mdxdeleted file mode 100644index 27738c5ca6..0000000000--- a/docs/use-case/marketplace/capabilities.mdx+++ /dev/null@@ -1,115 +0,0 @@-----title: "Marketplace Capabilities"-description: "Build a multi-vendor marketplace with Spree Enterprise: vendor onboarding, Shopify and WooCommerce integrations, Stripe Connect payouts, and order splitting."------Spree Commerce Enterprise Edition provides a robust out-of-the-box foundation for building a [<u>multi-vendor marketplace</u>](https://spreecommerce.org/marketplace-ecommerce/), while remaining flexible enough to support advanced customization.--Here’s an overview of each user perspective:--### Admin Capabilities----- **Marketplace Management** - invite vendors, approve or reject vendor signups, suspend accounts, and monitor vendor performance metrics.-- **Shopify Vendor Integration** - automate onboarding and operations for Shopify vendors using a white-labelled Shopify sales channel app-- **WooCommerce Vendor Integration** - automate onboarding and operations for WooCommerce vendors using a direct API integration-- **Manual or CSV Vendor Onboarding** - manually onboard vendors without an online store or using unsupported platforms via direct account setup in the vendor dashboard-- **Marketplace Merchandising** - ensure product consistency and branding integrity across all vendors-- **Promotions & Marketing Automations** - leverage marketing campaign tools for engagement and retention-- **Storefront & Content Management** - drag-and-drop layouts, modular pages, blog CMS, and newsletter tools.-- **Checkout & Payments** - support multi-vendor order splitting, quick checkout methods, tax calculation, and automated payouts via Stripe Connect.-- **Order Management** - order filtering, actions like cancellations or refunds, and tracking fulfillment per vendor.-- **Vendor Payouts** - automated or manual payouts with Stripe Connect, including KYC onboarding and vendor-accessible analytics.-- **Analytics & Reporting** - built-in KPIs, Google Analytics integration, and CSV exports for products and orders.-- **Customer Service** - optional chat and AI bots, ticketing, and store credits for efficient customer support.-- **APIs for headless projects and programmatic operations** - full coverage for storefront, platform, and checkout to enable custom functionality and integrations.--See [Marketplace Admin Panel](https://spreecommerce.org/docs/use-case/marketplace/admin-dashboard) for a more detailed breakdown.--### Vendor Capabilities----- **Vendor Dashboard** - onboard and manage products, orders, analytics, settings, and support from a dedicated dashboard.-- **Vendor Profile & Settings** - configure shipping, localization, and holiday mode to control store operations.-- **Manual or CSV-based Vendor Onboarding & Operations** - vendors can upload products, manage orders and shipments, and handle cancellations or refunds directly from their dashboard.-- **Automated Shopify Onboarding & Operations** - syncs products, orders, shipments, cancellations, and refunds automatically between Shopify and the marketplace.-- **Automated WooCommerce Onboarding & Operations** - syncs products, orders, shipments, cancellations, and refunds automatically between WooCommerce and the marketplace.-- **Vendor Payouts & Reporting** - automated or manual payouts, Stripe KYC onboarding, financial dashboards, and optional accounting integrations.--See [Marketplace Vendor Panel](https://spreecommerce.org/docs/use-case/marketplace/vendor-dashboard) for a more detailed breakdown.--### Customer Experience----- **Multi-Vendor Shopping Experience** - multi-vendor cart and checkout, vendor-specific shipping, and a consistent storefront for products from multiple vendors.-- **Mobile-first UX** - responsive storefront design optimized for mobile, tablet, and desktop experiences.-- **Country-specific UX** - language and currency selectors with currency conversion at catalog and checkout level.-- **Marketplace Product Discovery** - shoppers can browse by brand or vendor and explore curated collections and categories.-- **Express Checkout & Payment Options** - including Apple Pay, Google Pay, installment plans-- **Notifications & Shipment Tracking** - send per-vendor email updates and provides a unified order view in the customer dashboard.--See [Marketplace Customer Experience](https://spreecommerce.org/docs/use-case/marketplace/customer-ux) for a more detailed breakdown.--## Marketplace Scenarios--Spree’s modular architecture supports a variety of advanced marketplace models beyond the standard vendor-customer setup, enabling tailored experiences for specific business needs:--- **B2B Marketplaces** - layer on custom pricing tiers, MOQs, tax exemptions, and quote workflows.-- **Subscription Marketplace Hybrid** - vendors offer recurring purchases, managed through Spree’s subscriptions engine.-- **Multi-region/Localized Marketplaces** - vendors can be grouped by country or region with localized catalogs, taxes, and shipping zones.-- **Headless Marketplace Frontend** - use Spree’s API to deliver a marketplace within a mobile app or a custom storefront built in Next.js, Vue, while leveraging the Spree marketplace backend functionality.--## Marketplaces Running on Spree--- [**<u>Maisonette</u>**](https://www.maisonette.com/) - a curated marketplace for premium children’s clothing, toys, and home goods, featuring independent brands and boutiques.-- [**<u>Goop</u>**](https://goop.com/) - lifestyle brand and wellness marketplace founded by Gwyneth Paltrow, combining content with commerce across beauty, fashion, and supplements.-- [**<u>Artemest</u>**](https://artemest.com/): a luxury marketplace showcasing handcrafted furniture, lighting, and decor by Italian artisans, blending editorial storytelling with ecommerce.--## Flexible, Customizable Architecture--While many marketplace features are available out-of-the-box in Spree Enterprise, the open-source foundation means you can extend and tailor the platform to your exact business model - whether that means custom commission logic, ERP integrations, or unique checkout flows.--Spree Enterprise offers flexibility across all layers of the platform, from code-level customization to no-code configuration.--## Full Ownership And Control--With Spree Enterprise, you’re not locked into a black-box SaaS model. You retain complete control over your infrastructure, data, and roadmap, enabling long-term flexibility, scalability, and compliance.--- **API-Driven Extensibility**- - **Full API Coverage** - extend the platform via REST or GraphQL APIs for storefronts, checkout, vendor dashboards, or 3rd-party integrations. See: [<u>API Reference</u>](https://spreecommerce.org/docs/api-reference/introduction)- - **Custom Integrations** - seamlessly connect with ERPs, CRMs, payment providers, POS systems, or headless frontends.-- **Deployment Flexibility**- - **Self-Hosting Options** - deploy Spree anywhere; your cloud provider, on-premise, or in specific geographic regions. See: [<u>Deployment Guide</u>](https://spreecommerce.org/docs/developer/deployment/render)- - **Provider Agnostic** - run on AWS, GCP, Azure, or Render. Tailor infrastructure to budget, compliance, and performance needs.-- **Scalability & Performance**- - **Built for Scale** - Spree supports advanced architectures using load balancers, Redis caching, CDN layers (e.g., Cloudflare or Fastly).- - **High Availability** - avoid downtime during peak sales periods or global rollouts with scalable infrastructure.-- **Security Under Your Control**- - **Data Encryption** - Protect sensitive data in transit and at rest using standard encryption protocols.- - **Anti-DDoS & Rate Limiting** - configure your own network protections using preferred security services.- - **Vulnerability Management** - patch quickly, audit dependencies, and apply security policies with no vendor bottlenecks.-- **Compliance Ownership**- - **Full Compliance Control** - build to meet your exact regulatory requirements, whether WCAG, GDPR, HIPAA, or SOC2.- - **Data Sovereignty** - keep data within borders required by your industry or region.--## Further Reading--- [Multi-Vendor Marketplace Model](https://spreecommerce.org/docs/use-case/marketplace/model)-- [<u>Developer Docs</u>](https://spreecommerce.org/docs/developer/getting-started/quickstart)-- [<u>User Docs</u>](https://spreecommerce.org/docs/user/what-is-spree-commerce)-- [<u>Ecommerce API docs</u>](https://spreecommerce.org/docs/api-reference/introduction)-- [<u>Integrations</u>](https://spreecommerce.org/docs/integrations/integrations)--## Get Started--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>diff --git a/docs/use-case/marketplace/customer-ux.mdx b/docs/use-case/marketplace/customer-ux.mdxdeleted file mode 100644index 2885def04e..0000000000--- a/docs/use-case/marketplace/customer-ux.mdx+++ /dev/null@@ -1,69 +0,0 @@-----title: "Marketplace Customer Experience"-description: "Learn about the Spree multi-vendor marketplace customer UX."--------Spree Commerce Enterprise Edition ensures an exceptional end-customer experience in [<u>multi-vendor marketplaces</u>](https://spreecommerce.org/marketplace-ecommerce/), providing seamless shopping journeys across diverse vendors and products.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--Customers enjoy the convenience of a unified cart, transparent shipping details, intuitive product discovery, and smooth checkout experiences optimized for all devices. By simplifying the complexities traditionally associated with multi-vendor shopping, Spree helps marketplaces deliver satisfaction, trust, and loyalty at every step of the customer journey.--### Seamless Multi-Vendor Experience--- Unified shopping cart across vendors.-- Transparent shipping per vendor at checkout.-- All vendor products appear under a consistent storefront design.--### Localization--- Language and currency selector.-- Currency conversion at catalog and checkout level.--### Product Discovery--- Browse by brand or vendor.-- Discover admin-curated collections and categories.--### Express Checkout Options--- Apple Pay, Google Pay, and saved card options.-- Installment plans with Klarna, Afterpay, Affirm.--### Notifications & Tracking--- Confirmation, shipping, and delivery emails per vendor.-- Unified view of all orders in customer dashboard.--### Storefront Responsive UX--- Optimized storefront for mobile, tablet, and desktop.--### Further Reading--- [Multi-Vendor Marketplace Model](https://spreecommerce.org/docs/use-case/marketplace/model)-- [Multi-vendor Marketplace Capabilities](https://spreecommerce.org/docs/use-case/marketplace/capabilities)-- [<u>Developer Docs</u>](https://spreecommerce.org/docs/developer/getting-started/quickstart)-- [<u>User Docs</u>](https://spreecommerce.org/docs/user/what-is-spree-commerce)-- [<u>Ecommerce API docs</u>](https://spreecommerce.org/docs/api-reference/introduction)-- [<u>Integrations</u>](https://spreecommerce.org/docs/integrations/integrations)--### Get Started--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>diff --git a/docs/use-case/marketplace/model.mdx b/docs/use-case/marketplace/model.mdxdeleted file mode 100644index 0f912624a8..0000000000--- a/docs/use-case/marketplace/model.mdx+++ /dev/null@@ -1,61 +0,0 @@-----title: "Marketplace Model"-description: "Learn about the multi-vendor marketplace ecommerce model."------Spree Commerce Enterprise Edition provides a powerful and scalable solution tailored specifically for [<u>multi-vendor marketplace</u>](https://spreecommerce.org/marketplace-ecommerce/) projects.--By enabling seamless onboarding, automated operations, and flexible vendor management, Spree helps marketplaces quickly expand their product offerings and enhance customer experience.--Whether you're launching a highly curated niche marketplace or operating at a larger scale across various categories, Spree Commerce simplifies the complexities, ensuring smooth operations, satisfied vendors, and confident shoppers.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## What is a Multi-Vendor Marketplace?--A multi-vendor marketplace is a platform that allows multiple third-party vendors to sell products through a single storefront that you operate earning a sales commission. Conversely, a marketplace customer may purchase goods from multiple vendors in a single order with a single payment.--Unlike traditional B2C ecommerce sites that are managed by a single merchant, marketplaces aggregate offerings from many vendors, providing customers with unmatched choice and convenience as well as greater shopping confidence and trust in the post-purchase process.--## Why Choose a Marketplace Model?--This model is well-suited for businesses that:--- Want to scale product offerings without investing in their own inventory.-- Operate as platforms or aggregators (e.g., Etsy, Farfetch, or Faire) serving a specific niche or industry-- Offer highly curated or regional marketplaces that serve a specific community of suppliers and customers.-- Provide tools and infrastructure to empower vendors, such as storefront management, analytics, and fulfillment integrations.-- Provide Customers with greater shopping convenience, choice, and confidence.--## Challenges and Considerations--Launching a successful marketplace requires careful attention to:--- **Vendor onboarding & management** - ensuring a smooth and consistent process.-- **Product data quality** - harmonizing product listings across vendors.-- **Order splitting & payouts** - managing vendors’ orders fulfillment and financial flows to multiple parties.-- **Vendor permissions** - ensuring appropriate access levels across the platform.-- **Trust and quality control** - managing fulfillment, reviews, and customer service.--## Get Started-<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [Multi-vendor Marketplace Capabilities](https://spreecommerce.org/docs/use-case/marketplace/capabilities)-- [Admin UX](https://spreecommerce.org/docs/use-case/marketplace/admin-dashboard)-- [Vendor UX](https://spreecommerce.org/docs/use-case/marketplace/vendor-dashboard)-- [Customer UX](https://spreecommerce.org/docs/use-case/marketplace/customer-ux)\ No newline at end of filediff --git a/docs/use-case/marketplace/vendor-dashboard.mdx b/docs/use-case/marketplace/vendor-dashboard.mdxdeleted file mode 100644index 557d629813..0000000000--- a/docs/use-case/marketplace/vendor-dashboard.mdx+++ /dev/null@@ -1,86 +0,0 @@-----title: "Marketplace Vendor Panel"-description: "Learn about the Spree multi-vendor marketplace vendor UX."--------Spree Commerce Enterprise Edition offers vendors a streamlined and intuitive dashboard designed specifically for [<u>multi-vendor marketplace</u>](https://spreecommerce.org/marketplace-ecommerce/) operations.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--With automated integrations with popular platforms like Shopify and WooCommerce, Spree empowers vendors to effortlessly manage their marketplace offerings, improve sales performance, and deliver exceptional customer service, all within a user-friendly and familiar environment of their own dashboard.--### Vendor Dashboard UX--1. **Products**: Upload and manage inventory, categories, and pricing.-2. **Orders**: Process new orders, add shipment tracking, view status.-3. **Analytics**: Review sales, refunds, and fulfillment metrics.-4. **Settings**: Configure shipping methods, policies, billing info.--### Vendor Onboarding Options--- **Shopify**: Sales channel app that syncs products, orders, and shipments.-- **WooCommerce**: Direct API integratio that sync products, orders, and shipments.-- **Manual or CSV Import**: For vendors not using ecommerce platforms.--### Vendor Profile & Settings--- **Shipping Setup**: Define rates and methods per location.-- **Multi-Language & Currency Support**: Vendors can localize their store presence.-- **Holiday Mode**: Pause shop temporarily.--### Shopify Vendor Operations--- **Product Sync**: Vendors manage inventory in Shopify; marketplace reflects changes.-- **Order Handling**: Orders appear in Shopify admin for normal fulfillment.-- **Fulfillment & Shipment Sync**: Auto-updates customer notifications.-- **Cancellation & Refund Sync**: Fully automated sync of status updates.--### WooCommerce Vendor Operations--- **Product Sync**: Vendors manage inventory in WooCommerce; marketplace reflects changes.-- **Order Handling**: Orders appear in WooCommerce admin for normal fulfillment.-- **Fulfillment & Shipment Sync**: Auto-updates customer notifications.-- **Cancellation & Refund Sync**: Fully automated sync of status updates.--### Manual/CSV Vendor Operations--- **Product Upload**: Add items manually or via CSV import.-- **Order Management**: Review and process orders within the vendor dashboard.-- **Shipment Management**: Add tracking codes, split shipments, mark as fulfilled-- **Cancellations & Refunds**: Access tools to manage returns and exceptions.--### Vendor Financials--- **Automatic or Manual Payouts**: Payout frequency controlled by admin policy.-- **Stripe KYC Flow**: Vendors complete verification during onboarding.-- **Stripe Dashboard Access**: View transactions, disputes, and payout history.-- **Accounting Tools**: Optional integrations with QuickBooks, Xero, etc.--### Further Reading--- [Multi-Vendor Marketplace Model](https://spreecommerce.org/docs/use-case/marketplace/model)-- [Multi-vendor Marketplace Capabilities](https://spreecommerce.org/docs/use-case/marketplace/capabilities)-- [<u>Developer Docs</u>](https://spreecommerce.org/docs/developer/getting-started/quickstart)-- [<u>User Docs</u>](https://spreecommerce.org/docs/user/what-is-spree-commerce)-- [<u>Ecommerce API docs</u>](https://spreecommerce.org/docs/api-reference/introduction)-- [<u>Integrations</u>](https://spreecommerce.org/docs/integrations/integrations)--### Get Started--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>\ No newline at end of filediff --git a/docs/use-case/multi-tenant/franchises-and-reseller-networks.mdx b/docs/use-case/multi-tenant/franchises-and-reseller-networks.mdxdeleted file mode 100644index 25b6b26657..0000000000--- a/docs/use-case/multi-tenant/franchises-and-reseller-networks.mdx+++ /dev/null@@ -1,95 +0,0 @@-----title: "Franchises & Reseller Networks"-description: "Run franchise and reseller networks on Spree Enterprise with a shared product catalog, centralized fulfillment, and consistent branding across stores."------Spree Commerce Enterprise provides a robust and centralized multi-tenant architecture for franchise and reseller networks. This model empowers platform owners to manage multiple storefronts under one umbrella while maintaining strict operational control and consistency across all stores.--By combining a shared product catalog, centralized order fulfillment, and controlled customization options, Spree enables franchisors and parent companies to scale efficiently while ensuring brand integrity and operational compliance across their entire network.--## What is a Franchise or Reseller Network Platform?--A franchise/reseller network platform allows a parent business to provide branded storefronts for franchisees or resellers, all running on a shared backend system. Unlike independent ecommerce platforms, these stores are centrally governed to ensure a consistent customer experience and streamlined operations.--This model is ideal for:--- Franchisors managing multiple franchisee storefronts.-- Manufacturers or distributors enabling resellers to operate branded online stores.-- Parent businesses requiring end-to-end control over fulfillment, payments, and customer service.--## Why Choose a Centralized Model?--**Streamlined Operations**--- Parent company manages all core operations: catalog updates, pricing, order fulfillment, and customer support.-- Franchisees/resellers focus on merchandising, local promotions, and customer engagement within predefined limits.--**Full Operational Control**--- Enforce consistent branding, policies, and integrations across all stores.-- Centralized governance over payments, tax configurations, and compliance.--**Scalability and Efficiency**--- Unified technical stack simplifies updates and integration with ERPs, CRMs, or POS systems.-- Seamless onboarding of new franchisees or resellers without technical complexity.--## Common Franchise & Reseller Scenarios--**Franchise Retail Networks**--Franchisors control all aspects of the online storefronts while giving franchisees visibility into sales and local performance metrics.--**Reseller & Dealer Platforms**--Manufacturers provide resellers with pre-configured online stores featuring curated product catalogs and marketing assets.--## Franchise & Reseller Capabilities with Spree--### Super Admin Capabilities--- **Master Catalog Management** - Centralized product catalog maintained by the parent business. Tenants cannot add or modify products.-- **Centralized Payments** - Parent business acts as merchant of record; all transactions flow through centralized payment gateways.-- **Commission Management** - Calculate and distribute reseller commissions on a monthly or periodic basis.-- **ERP Integration** - Sync catalog, inventory, and orders with enterprise resource planning systems for streamlined fulfillment.-- **Policy Enforcement** - Set global privacy policies, terms, and return policies applied uniformly across all stores.-- **Customer Service Control** - Parent company manages customer inquiries, returns, and refunds centrally.--### Reseller/Franchisee Capabilities--- **Merchandising Tools** - Curate collections and recommend products from the master catalog.-- **Local Promotions** - Create localized promotions and discounts within limits set by the super admin.-- **Analytics Dashboard** - View sales performance, customer trends, and commission earnings.--### Customer Experience--- **Consistent Branding** - Customers experience uniform storefronts and service levels across all franchise/reseller sites.-- **Centralized Fulfillment** - Orders are processed and shipped by the parent business, ensuring reliability and quality control.-- **Unified Customer Support** - All customer interactions are handled centrally for a seamless experience.--## Ownership, Control, and Scalability--Spree gives the parent business full control over the platform:--- Centralized management of products, payments, and operations.-- Full control of customer data and compliance with global regulations.-- Scalable architecture to support growth across hundreds of stores and regions.-- Ability to tailor platform features to the needs of specific franchises or reseller groups.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)diff --git a/docs/use-case/multi-tenant/multi-brand-enterprise-model.mdx b/docs/use-case/multi-tenant/multi-brand-enterprise-model.mdxdeleted file mode 100644index 019f04480a..0000000000--- a/docs/use-case/multi-tenant/multi-brand-enterprise-model.mdx+++ /dev/null@@ -1,111 +0,0 @@-----title: "Multi-Brand Enterprises"-description: "Learn how multi-brand enterprises can leverage a multi-tenant architecture."------Spree Commerce Enterprise Edition provides a powerful multi-tenant architecture perfectly suited for multi-brand enterprises operating multiple ecommerce storefronts under one organizational umbrella.--By enabling data isolation, unified infrastructure, and tailored configurations for each brand or region, Spree helps large organizations reduce technical debt, maintain consistent user experiences, and empower their teams to operate efficiently across multiple stores.--This model prioritizes total ownership and control, offering the flexibility to adapt the platform to evolving business strategies without being constrained by third-party SaaS limitations.--## What is a Multi-Brand Enterprise Platform?--A multi-brand enterprise platform allows an organization to run several independent storefronts - each representing a distinct brand, region, or division - on a shared backend.--Unlike marketplaces or SaaS commerce platforms:--- Stores are **not technically tenant-operated**; they are fully owned and managed by the enterprise.-- There’s no need for self-service onboarding or automated billing since all stores are internal.-- The focus is on **operational efficiency, consistency, and scalability** across all brands.--This model is ideal for:--- Global brands with **region-specific stores** (e.g., us.brand.com, uk.brand.com, au.brand.com) where each region needs full autonomy.-- Multi-brand groups managing **entirely distinct businesses** under one parent company (e.g., a fashion house owning separate luxury and lifestyle brands).--## Why Choose a Multi-Brand Architecture?--**Consistent yet autonomous**--- Maintain a unified technical stack and design system while allowing each brand to operate independently with unique catalogs, teams, and workflows.--**Operational efficiency**--- Reduce duplicated efforts by sharing infrastructure, integrations, and updates across all brands.-- Centralized governance for compliance, security, and performance monitoring.--**Full control & ownership**--- No reliance on external platforms or SaaS providers.-- Complete flexibility to customize every layer of the platform as business needs evolve.--## Common Multi-Brand Scenarios--**Multi-Brand Retail Groups**--Each store represents a separate brand with its own catalog, payment gateways, and operational teams:--- All stores are managed centrally by a corporate team for consistency in operations, branding, and customer experience.-- Each brand team independently manages their storefront, product strategy, and marketing while benefiting from a shared technical foundation.--**Regional Brand Stores**--Same brand across multiple countries, with:--- Independent product catalogs, tax rules, and payment methods per region.-- Isolated customer data for compliance with privacy regulations.-- Localized storefronts tailored to language, currency, and cultural preferences.-- The corporate team can oversee all regional stores, enforcing consistent policies and pricing strategies globally.-- Regional teams handle their own catalogs, promotions, and customer service while adhering to core brand guidelines.--## Multi-Brand Capabilities with Spree--### Super Admin Capabilities--- Provision and manage brand stores from a centralized dashboard.-- Enforce global policies for branding, compliance, and security.-- Monitor performance metrics across all brands from a single admin panel.-- Control deployment schedules for updates and new features.--### Brand Store Capabilities--- Independent dashboards for each brand team to manage products, orders, and promotions.-- Unique theming and storefront branding for each brand.-- Separate payment processors and shipping configurations per brand or region.-- Ability to tailor workflows and integrations specific to each business unit.--### Customer Experience--- Consistent UX across all stores for brand recognition.-- Localized shopping experiences per region or brand identity.-- Shared loyalty programs or cross-store promotions (if desired).-- Unified account systems for customers across multiple brands (optional).--## Ownership, Control, and Scalability--With Spree, enterprises maintain complete ownership over their platform:--- Centralized infrastructure, policies, and operations management.-- Allow brand teams or regional divisions to configure and operate their stores independently within a shared technical framework.-- Self-host on the cloud provider of your choice.-- Scale infrastructure as traffic and transaction volumes grow.-- Customize every aspect of the stack to align with corporate governance and strategy.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)\ No newline at end of filediff --git a/docs/use-case/multi-tenant/multi-tenant-capabilities.mdx b/docs/use-case/multi-tenant/multi-tenant-capabilities.mdxdeleted file mode 100644index 3f9795a2ab..0000000000--- a/docs/use-case/multi-tenant/multi-tenant-capabilities.mdx+++ /dev/null@@ -1,119 +0,0 @@-----title: "Multi-Tenant Capabilities"-description: "Build multi-tenant ecommerce platforms with Spree Enterprise: tenant provisioning, master catalogs, billing models, centralized payments, and white-labeling."--------Spree Commerce Enterprise Edition provides a robust, API-first foundation for building multi-tenant platforms.--While core features like tenant isolation and centralized management are universally useful and inherent to the architecture, Spree’s flexibility allows businesses to develop advanced multi-tenant capabilities unique to their own use case.--Whether you’re envisioning a tightly controlled network where the platform owner manages the branding, storefront look & feel, product catalog, payments, shipping, and customer service, or a hands-off model where tenants operate with full autonomy, Spree empowers you to tailor the experience.--Some of the use-case-specific features described below would require some development effort on top of the existing multi-tenant platform.--## Super Admin Capabilities--As the central operator of a multi-tenant platform, the super admin has ultimate oversight and control. Spree’s architecture enables platform owners to provision tenant stores, enforce global policies, and configure the level of autonomy each tenant enjoys.--Whether you prefer a tightly managed network, (e.g., controlling the tenant storefronts, products, payments, fulfillment, and customer service) or a fully decentralized model where tenants operate independently, Spree gives you the flexibility to design the governance structure that fits your business vision:--- **Tenant Management** - Create, configure, and manage tenant stores, with global settings and tenant-specific overrides.-- **Tenant Store Management Options** - Manage tenant stores individually by logging into each admin dashboard or through a centralized multi-admin interface for global actions.-- **Tenant Onboarding** - Build self-service signup flows or invitation-only store provisioning.-- **Master Catalog Options** - Offer a centralized product catalog for tenants or allow independent tenant catalogs.-- **Billing & Subscription Models** - Implement per-tenant billing via subscription plans, commission-based fees, or hybrids.-- **Centralized Payments vs. Tenant-Specific Payments** - Act as the merchant of record for all transactions or enable tenants to integrate their own payment gateways.-- **Shipping & Fulfillment Models** - Centralize fulfillment operations (e.g., from your warehouse) or allow tenants to manage their own shipping and logistics.-- **Global Analytics & Reporting** - Monitor tenant activity, revenue, and KPIs across all stores.-- **Branding & White-Label Tools** - Customize admin UI, emails, and storefronts for a fully white-labeled SaaS experience.-- **API Management** - Issue API keys for tenant-level integrations and control access scopes.--See [Super Admin Capabilities](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities) for a more detailed breakdown.--## Tenant Capabilities--Tenants on a multi-tenant platform benefit from an intuitive and fully isolated environment to run their businesses. With Spree, each tenant can manage their own storefront, products, orders, customers, and configurations - all without affecting other tenants.--Whether operating with complete autonomy or within limits defined by the super admin, tenants have access to the tools they need to deliver a localized and branded ecommerce experience, supported by a robust dashboard and flexible APIs:--- **Tenant Dashboard** - Manage products, orders, customers, promotions, and reports from a tenant dashboard.-- **Storefront Theming** - Customize branding, logos, colors, and layouts for each storefront.-- **Catalog & Inventory Management** - Maintain independent catalogs or pull from a shared master catalog.-- **Payment & Tax Configuration** - Tenants can connect their own payment gateways and set tax rules for their regions.-- **Shipping Configuration** - Define tenant-specific shipping zones, rates, carriers, and fulfillment policies.-- **Policies & Legal Pages** - Tenants can manage their own privacy policies, terms and conditions, and return policies.-- **Analytics & Reporting** - Access tenant-scoped dashboards for sales, orders, and fulfillment insights.-- **Third-Party Integrations** - Connect marketing tools, CRMs, Payment processing or POS systems using tenant-specific API credentials.-- **Customer Management** - Handle customer accounts, returns & refunds, and marketing communications independently.-- **Promotions & Discounts** - Create tenant-specific campaigns, coupon codes, and loyalty offers.--See [Tenant Capabilities](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities) for a more detailed breakdown.--## Customer Experience--For customers, a multi-tenant platform built on Spree delivers a seamless and familiar shopping journey, whether they’re exploring a single store or moving between multiple storefronts.--This consistency is especially vital for multi-brand enterprises looking to cross-promote their brands and drive loyalty across their portfolio. With support for localized content, flexible payment methods, and responsive design, Spree ensures customers enjoy a smooth, trustworthy experience in every tenant store:--- **Responsive Design** - Mobile-first storefronts for seamless shopping on any device.-- **Localized Storefronts** - Each tenant can operate under its own domain or subdomain with localized branding and user experience.-- **Flexible Checkout** - Customers experience tenant-specific payment options, shipping methods, and policies.-- **Express Checkout & Payment Options** - including Apple Pay, Google Pay, installment plans-- **Notifications & Shipment Tracking** - send per-vendor email updates and provides a unified order view in the customer dashboard.--## Multi-Tenant Scenarios--No two multi-tenant platforms are alike, but they may share similar features and characteristics. Here are a few examples of general multi-tenant use cases:--- [**White-Label SaaS Commerce**](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas) - Offer merchants the tools to launch fully independent stores on your platform.-- [**Franchise & Reseller Networks**](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks) - Centralize brand control while allowing franchisees partial autonomy.-- [**Multi-Brand Enterprises**](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model) - Operate multiple brand storefronts under a unified backend.-- **Pop-Up & Event Commerce** - Support temporary tenant stores for events and seasonal campaigns.--## Flexible, Customizable Architecture--While Spree Enterprise comes with a wide range of features out-of-the-box, the open-source foundation means you can extend and tailor the platform to your exact business model - whether that means custom business logic, ERP integrations, or unique checkout flows.--Spree Enterprise offers flexibility across all layers of the platform, from code-level customization to no-code configuration.--## Full Ownership And Control--With Spree Enterprise, you’re not locked into a black-box SaaS model. You retain complete control over your infrastructure, data, and roadmap, enabling long-term flexibility, scalability, and compliance.--- **API-Driven Extensibility**- - **Full API Coverage** - extend the platform via REST APIs for storefronts, checkout, vendor dashboards, or 3rd-party integrations. See: [<u>API Reference</u>](https://spreecommerce.org/docs/api-reference/introduction)- - **Custom Integrations** - seamlessly connect with ERPs, CRMs, payment providers, POS systems, or headless frontends.-- **Deployment Flexibility**- - **Self-Hosting Options** - deploy Spree anywhere; your cloud provider, on-premise, or in specific geographic regions. See: [<u>Deployment Guide</u>](https://spreecommerce.org/docs/developer/deployment/render)- - **Provider Agnostic** - run on AWS, GCP, Azure, or Render.com. Tailor infrastructure to budget, compliance, and performance needs.-- **Scalability & Performance**- - **Built for Scale** - Spree supports advanced architectures using load balancers, Redis caching, CDN layers (e.g., Cloudflare or Fastly).- - **High Availability** - avoid downtime during peak sales periods or global rollouts with scalable infrastructure.-- **Security Under Your Control**- - **Data Encryption** - Protect sensitive data in transit and at rest using standard encryption protocols.- - **Anti-DDoS & Rate Limiting** - configure your own network protections using preferred security services.- - **Vulnerability Management** - patch quickly, audit dependencies, and apply security policies with no vendor bottlenecks.-- **Compliance Ownership**- - **Full Compliance Control** - build to meet your exact regulatory requirements, whether WCAG, GDPR, HIPAA, or SOC2.- - **Data Sovereignty** - keep data within borders required by your industry or region.--## Get Started-<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)diff --git a/docs/use-case/multi-tenant/multi-tenant-model.mdx b/docs/use-case/multi-tenant/multi-tenant-model.mdxdeleted file mode 100644index 353f0bdd7c..0000000000--- a/docs/use-case/multi-tenant/multi-tenant-model.mdx+++ /dev/null@@ -1,81 +0,0 @@-----title: "Multi-Tenant Model"-description: "How the Spree Enterprise multi-tenant model works: isolated tenant stores, shared infrastructure, and centralized management for SaaS and franchise platforms."------Spree Commerce Enterprise Edition provides a robust and flexible foundation for building multi-tenant commerce platforms at any scale.--By offering centralized management, isolated tenant environments, and complete customization, Spree empowers platform owners to deliver tailored experiences to multiple businesses on a shared infrastructure.--Whether you’re launching a white-label SaaS solution, managing a network of franchise or reseller stores, or operating multiple brands under one umbrella, Spree Commerce simplifies the complexities of multi-tenancy - ensuring operational efficiency, tenant autonomy, and future-proof scalability.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## What is a Multi-Tenant Commerce Platform?--A multi-tenant platform enables multiple independent businesses (tenants) to operate their own customized and on-brand storefronts or commerce instances from a shared backend infrastructure owned and operated by a single provider.--Each tenant is logically isolated - managing their own products, orders, customers, and configurations - while benefiting from the central platform’s scalability, security, and updates.--## Why Choose a Multi-Tenant Architecture?--- **Centralized Efficiency**:- - Single codebase and infrastructure powering multiple storefronts.- - Simplified maintenance, upgrades, and security patching.-- **Flexibility and Convenience for Tenants**:- - Per-tenant branding, theming, and configuration options with no or very little technical knowledge or effort.- - Isolated data models ensure one tenant’s operations don’t impact others.-- **Economies of Scale**:- - Reduced hosting and DevOps overhead.- - Shared infrastructure costs across all tenants.-- **Enhanced Control**:- - Platform owner retains full visibility and governance over tenant activity.- - Ability to enforce global settings or policies (e.g., compliance, payment gateways).--## Common Multi-Tenant Use Cases--- **SaaS Commerce Platforms**: Enable independent merchants to launch their own stores under a white-label SaaS offering.-- **Franchise & Dealer Networks**: Empower franchisees or dealers with localized sites, while maintaining brand consistency and centralized operations.-- **Multi-Brand or Multi-Country Enterprises**: Manage separate storefronts for different brands or regional divisions (countries) under a single administrative layer.--## Challenges in Multi-Tenant Commerce--- **Data Isolation**: Ensuring tenants cannot access each other’s products, orders, customers, or analytics.-- **Scalability**: Handling growing traffic and transaction volumes across multiple tenants.-- **Security & Compliance**: Meeting strict requirements for data privacy (GDPR, HIPAA) and accessibility (WCAG).--## How Spree Enables Multi-Tenant Platforms--Spree provides a solid foundation for multi-tenant commerce:--- **Customizable Multi-tenant Features**: Build use-case-specific features and flows with ease.-- **API-First Design**: Power storefronts, apps, and third-party integrations with REST APIs.-- **Deployment Flexibility**: Self-host on any cloud provider or region of choice.-- **Scalable Infrastructure**: Add caching, load balancing, and CDNs to handle multi-tenant traffic.-- **Full Ownership**: Customize, extend, and govern every aspect of your platform.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)diff --git a/docs/use-case/multi-tenant/super-admin-capabilities.mdx b/docs/use-case/multi-tenant/super-admin-capabilities.mdxdeleted file mode 100644index 77fa080111..0000000000--- a/docs/use-case/multi-tenant/super-admin-capabilities.mdx+++ /dev/null@@ -1,115 +0,0 @@-----title: "Super Admin Capabilities"-description: "Super admin controls for Spree multi-tenant platforms: tenant onboarding, master catalogs, payments, fulfillment, billing, and white-label storefront tools."--------Spree Commerce Enterprise Edition gives super admins complete flexibility in managing a multi-tenant platform. When operating such a platform, there are a range of models possible that sit along a “control spectrum” from full centralization (where the super admin manages everything) to full tenant autonomy (where tenants have complete operational control). This flexibility allows you to tailor the platform to your business model and tenant needs.--The features described below highlight examples from both ends of the “control spectrum.” Please note that some use-case-specific features may require additional development on top of the existing multi-tenant platform.--## Tenant Management--Super admins can provision, configure, and monitor tenant stores from a centralized dashboard, ensuring platform-wide consistency or granting tenant-level autonomy:--- **Full Control** - Provision tenant stores manually with centralized settings and limited tenant customization.-- **Full Freedom** - Enable self-service tenant sign-up and allow full configuration autonomy.-- **Hybrid** - Offer invitation-only onboarding for some tenants and self-service for others with selective configuration permissions.--## Tenant Onboarding--Manage how tenants join and set up their stores on your platform:--- **Full Control** - Super admin approves applications and provisions stores manually.-- **Full Freedom** - Tenants register and configure stores independently using an onboarding wizard.-- **Hybrid** - Automate store setup but require approval for advanced configurations or premium features.--## Master Catalog Options--Define product catalog management across tenants.--- **Full Control** - Curate a master catalog for all tenants to use.-- **Full Freedom** - Tenants create and manage independent product catalogs.-- **Hybrid** - Combine a master catalog for core items with tenant-managed supplementary catalogs.--## Payments & Merchant of Record--Determine how payments are processed and who holds financial responsibility.--- **Full Control** - Super admin is the merchant of record, handling all transactions, chargebacks, and refunds.-- **Full Freedom** - Tenants integrate their own payment gateways and assume financial responsibilities.-- **Hybrid** - Provide options for tenants to use their own gateways or opt into platform-managed payments with revenue-sharing models.--## Shipping & Fulfillment--Control how fulfillment operations are structured across the platform.--- **Full Control** - Centralized fulfillment from platform warehouses, standard shipping methods, and unified rates.-- **Full Freedom** - Tenants manage their own shipping carriers, zones, and fulfillment workflows.-- **Hybrid** - Centralized fulfillment for select tenants or product categories while others fulfill independently.--## Global Analytics & Reporting--Gain insights into tenant performance and platform-wide KPIs.--- **Full Control** - Central dashboard showing detailed analytics for all tenant stores.-- **Full Freedom** - Tenants access their own isolated analytics, while super admin sees aggregated metrics only.-- **Hybrid** - Super admin views tenant performance metrics with optional tenant-specific dashboards.--## Branding & White-Label Tools--Customize the platform’s appearance for a seamless white-label experience.--- **Full Control** - Unified branding across all tenant stores for a consistent look and feel.-- **Hybrid** - Allow tenant branding within predefined global guidelines.--## API Management--Enable secure integrations and programmatic operations.--- **Full Control** - Super admin issues API keys and limits scopes for tenant integrations.-- **Full Freedom** - Tenants generate and manage their own API credentials.-- **Hybrid** - Provide tenant APIs but maintain centralized monitoring and access control.--## Tenant Store Management Options--Choose how you manage tenant stores.--- **Full Control** - Admins access each tenant dashboard individually for detailed management.-- **Full Freedom** - Tenants operate their stores autonomously without super admin intervention.-- **Hybrid** - Utilize a centralized multi-admin interface for global actions while permitting tenants to manage daily operations.--## Billing & Subscription Models--Decide how tenants are billed for platform usage.--- **Full Control** - Centralized billing with subscription fees, tiered plans, or revenue sharing.-- **Full Freedom** - Tenants manage their own billing and payment systems independently.-- **Hybrid** - Offer flexible billing options, combining platform fees with tenant-managed subscriptions.--## Security & Compliance--Maintain platform-wide security and regulatory standards.--- **Full Control** - Enforce global security protocols, GDPR/HIPAA compliance, and vulnerability management.-- **Full Freedom** - Tenants are responsible for their own security and compliance measures.-- **Hybrid** - Provide shared security infrastructure with tenant-specific compliance configurations.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)diff --git a/docs/use-case/multi-tenant/tenant-capabilities.mdx b/docs/use-case/multi-tenant/tenant-capabilities.mdxdeleted file mode 100644index a57b3d1d62..0000000000--- a/docs/use-case/multi-tenant/tenant-capabilities.mdx+++ /dev/null@@ -1,95 +0,0 @@-----title: "Tenant Capabilities"-description: "Learn how tenants can manage their stores in Spree Enterprise Edition."--------Spree Commerce Enterprise Edition provides tenants with a robust set of tools to manage every aspect of their stores. From catalog management and order fulfillment to branding and analytics, tenants enjoy full control over their ecommerce operations - subject to super admin policies and platform configurations.--## Tenant Dashboard--Tenants interact with an intuitive dashboard designed for day-to-day operations:--- **Products** – Add, edit, and categorize products, manage inventory, upload images, and define product attributes.-- **Orders** – View, process, and update orders with real-time status tracking.-- **Customers** – Manage customer accounts, view histories, and offer loyalty programs (if enabled).-- **Analytics** – Access sales, traffic, and performance reports scoped to their store.-- **Settings** – Configure store profile, policies, and operational preferences.--## Storefront Theming & Branding--Tenants can create unique storefronts that reflect their brand identity:--- **Theme Editor** – Customize layouts with drag-and-drop modules.-- **Brand Assets** – Upload logos, banners, and product imagery.-- **Color & Typography Settings** – Adjust styling to align with brand guidelines.-- **Localized Content** – Manage language and currency options for a global customer base.-- **Custom Domains** – Assign tenant-specific URLs (subject to super admin configuration).--## Catalog & Inventory Management--Full-featured tools to manage a tenant’s product offerings:--- **Product Catalog** – Build and maintain independent catalogs or pull from a shared master catalog (if enabled).-- **Inventory Management** – Track stock levels, set backorder policies, and manage SKUs.-- **Collections & Tags** – Organize products into categories, collections, and tag groups.-- **Product Properties** – Define reusable attributes like material, size, or allergens.--## Payment, Tax, & Shipping Configuration--Tenants can tailor operational workflows:--- **Payment Gateways** – Configure own payment processors or use platform-provided options.-- **Tax Settings** – Set tax rules per region, integrate with tax APIs (subject to super admin settings).-- **Shipping Rules** – Define zones, carriers, and rates, or leverage centralized fulfillment services.--## Promotions & Marketing--Drive customer engagement with robust marketing tools:--- **Discounts & Coupons** – Create and manage promo campaigns.-- **Gift Cards** – Issue and redeem digital gift cards.-- **Email Marketing** – Integrate with email automation tools for abandoned cart recovery, upsells, and newsletters.-- **SEO Tools** – Optimize meta tags, sitemaps, and URLs for search visibility.--## Customer Service & Policies--Empower tenants to manage their own customers and store policies:--- **Helpdesk Tools** – Optional chatbots or live chat integrations.-- **Policies** – Configure privacy policies, T&Cs, and returns/refunds guidelines.-- **Customer Credits** – Issue store credits for returns or loyalty programs.--## Analytics & Reporting--Data-driven insights to monitor and grow their businesses:--- **Sales Dashboards** – Track revenue, AOV, conversion rates, and top-selling products.-- **Google Analytics Integration** – Connect their store for detailed customer insights.-- **Export Tools** – Download product and order data for offline analysis.--## Integrations & Extensions--Tenants can access a library of pre-configured integrations and features provided by the super admin:--- **Built-In Integrations** – Tools like Stripe, PayPal, Google Analytics, and Klaviyo are available out of the box.-- **Custom Extensions** – Additional marketing, payment, or operational tools made available by the platform owner.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>-- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading-- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)-- [<u>White-Label SaaS</u>](https://spreecommerce.org/docs/use-case/multi-tenant/white-label-saas)\ No newline at end of filediff --git a/docs/use-case/multi-tenant/white-label-saas.mdx b/docs/use-case/multi-tenant/white-label-saas.mdxdeleted file mode 100644index 1c988bea5b..0000000000--- a/docs/use-case/multi-tenant/white-label-saas.mdx+++ /dev/null@@ -1,97 +0,0 @@-----title: "White-Label SaaS Platforms"-description: "Learn how to build white-label SaaS platforms with Spree Enterprise Edition."------Spree Commerce Enterprise enables businesses to build scalable, [white-label SaaS ecommerce platforms](https://spreecommerce.org/multi-tenant-white-label-ecommerce/) where merchants (tenants) can independently launch, configure, and manage their online stores.--This model empowers SaaS providers to deliver a turnkey ecommerce experience for their clients, offering full autonomy over store operations while maintaining a centralized backend for platform oversight, billing, and scaling.--Whether targeting niche industries or building a large-scale commerce platform, Spree’s flexible architecture supports a variety of subscription models, integration options, and tenant use cases.--## What is a White-Label SaaS Commerce Platform?--A white-label SaaS commerce platform allows a provider to offer ecommerce as a service, enabling merchants to set up and operate their stores independently. The SaaS provider supplies the infrastructure, technical support, and feature set while tenants manage their day-to-day operations.--This model is ideal for:--- Agencies and software providers offering ecommerce as part of a broader SaaS suite.-- Niche SaaS commerce solutions targeting specific industries or verticals.-- Startups seeking to launch Shopify-style platforms with tailored feature sets and pricing models.--## Why Choose a White-Label SaaS Model?--**Tenant Autonomy at Scale**--- Merchants have complete control over products, branding, payments, and integrations.-- Self-service onboarding allows tenants to sign up and launch stores with minimal friction.--**Subscription Flexibility**--- Create tiered plans (e.g., Basic, Pro, Enterprise) with variable usage limits and feature access.-- Monetize via flat monthly fees, revenue-sharing, or hybrid models.--**Platform Growth & Scalability**--- Spree’s architecture enables rapid onboarding of thousands of stores.-- Centralized monitoring and management tools for the SaaS provider ensure smooth scaling.--## Common White-Label SaaS Scenarios--**Niche SaaS eCommerce Platforms**--Focus on a specific industry (e.g., wellness, food delivery, B2B marketplaces) with tailored features and prebuilt integrations.--**Regional SaaS Platforms**--Enable merchants in specific geographies to set up localized stores with region-specific payment providers and compliance.--## White-Label SaaS Capabilities with Spree--### Super Admin Capabilities--- **Tenant Onboarding** – Self-service signup with automated provisioning and setup wizards.-- **Subscription Plans** – Define usage-based plans (e.g., number of products, orders, bandwidth) with optional revenue-sharing.-- **Billing & Payments** – Integrate with payment processors like Stripe or Paddle for tenant billing and invoicing.-- **Tenant Oversight** – Monitor tenant usage, store health, and KPIs from a centralized dashboard.-- **User Impersonation** – Access tenant dashboards for support without needing dedicated credentials.-- **Plan Management** – Enable feature toggles and tiered permissions based on subscription level.--### Tenant Capabilities--- **Full Store Autonomy** – Merchants manage products, customers, orders, shipping, and fulfillment without restrictions.-- **Integrations Marketplace** – Tenants can choose and configure payment providers, shipping carriers, marketing tools, etc.-- **Branding Control** – Full access to theme customization, domain management, and storefront branding.-- **Analytics & Reports** – Monitor performance with built-in dashboards or connect external analytics tools.-- **APIs** – Use API keys for custom frontend experiences or integrations with third-party systems.--### Customer Experience--- Merchants create unique shopping experiences per tenant store.-- End customers interact directly with merchant storefronts without SaaS branding.--## Ownership, Autonomy, and Scalability--Spree enables SaaS providers to focus on scaling their business while delivering full independence to tenants:--- Self-host or deploy to any cloud provider for global reach.-- Scale infrastructure horizontally to support thousands of merchants.-- Maintain full control over the codebase and feature roadmap for competitive differentiation.--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- See Enterprise pricing for your use case- </Card>-</Columns>--## Further Reading--- [<u>Multi-Tenant Model</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model)-- [<u>Multi-Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-capabilities)-- [<u>Super Admin Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/super-admin-capabilities)-- [<u>Tenant Capabilities</u>](https://spreecommerce.org/docs/use-case/multi-tenant/tenant-capabilities)-- [<u>Franchises & Reseller Networks</u>](https://spreecommerce.org/docs/use-case/multi-tenant/franchises-and-reseller-networks)-- [<u>Multi-Brand Enterprises</u>](https://spreecommerce.org/docs/use-case/multi-tenant/multi-brand-enterprise-model)\ No newline at end of filediff --git a/docs/use-case/overview.mdx b/docs/use-case/overview.mdxdeleted file mode 100644index f5ff3a652d..0000000000--- a/docs/use-case/overview.mdx+++ /dev/null@@ -1,110 +0,0 @@-----title: "Spree Commerce Use Cases"-description: "Explore Spree Commerce use cases: multi-vendor marketplaces, multi-tenant SaaS, B2B ecommerce, digital products, and Agentic Commerce integration."------<Card title="Multi-Vendor Marketplace" icon="cart-plus" href="/use-case/marketplace/capabilities" cta="Learn more">- A multi-vendor marketplace platform enables multiple third-party vendors to sell products via your storefront, allowing customers to buy from various vendors in one transaction.-</Card>--<Card title="Multi-Tenant eCommerce" icon="people-roof" href="/use-case/multi-tenant/multi-tenant-capabilities" cta="Learn more">- Efficiently host and manage thousands of tenant stores, either as a stand-alone SaaS or within a composable micro-service architecture.-</Card>--<Card title="B2B eCommerce" icon="building" href="/use-case/b2b/b2b-capabilities" cta="Learn more">- Streamline and automate your B2B ecommerce operations, enhancing customer relationships and sales efficiency.-</Card>--<Card title="ChatGPT Integration" icon="people-roof" href="/use-case/chatgpt-integration/chatgpt-instant-checkout" cta="Learn more">- Convert product discovery into instant sales by enabling checkout directly within ChatGPT conversations using the Agentic Commerce Protocol.-</Card>--<Card title="Digital Products" icon="people-roof" href="/use-case/digital-products/capabilities" cta="Learn more">- Sell and deliver digital goods with flexible configuration, automated download management, and access control.-</Card>--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- Ask for Enterprise Edition pricing for the Use Case of your choice.- </Card>-</Columns>--### What is Spree Commerce?--Spree Commerce is a flexible, scalable, [open-source ecommerce platform](https://spreecommerce.org/) designed to simplify complex ecommerce scenarios.--Spree Commerce [Enterprise Edition](/user/what-is-spree-commerce#community-edition-vs-enterprise-edition) enhances the core Spree functionality, providing businesses with advanced features, premium support, robust hosting options, and accelerated development and launch capabilities.--### Why Choose Enterprise Edition?--Spree Commerce [Enterprise Edition](/user/what-is-spree-commerce#community-edition-vs-enterprise-edition) offers:--- Faster time-to-market through robust, ready-to-use features-- Lower total cost of ownership compared to custom-built or fragmented solutions-- Premium support, hosting flexibility, and comprehensive documentation--### Use Cases--Some of the Use Cases supported by the Enterprise Edition:--#### [Multi-Vendor Marketplace](/use-case/marketplace/capabilities)--- Aggregate product offerings for greater customer choice and convenience-- Facilitate single-order, multi-vendor transactions seamlessly-- Build customer confidence with unified post-purchase support and communication--Learn more about the full list of [multi-vendor marketplace capabilities](/use-case/marketplace/capabilities).--#### [Multi-Tenant eCommerce](/use-case/multi-tenant/multi-tenant-capabilities)--- Rapid deployment and customization to your exact use case-- Comprehensive superadmin tools for central management-- Individual tenant dashboards for independent reseller operations--#### [B2B eCommerce](/use-case/b2b/b2b-capabilities)--- Customizable access controls and visibility tailored for business buyers-- Seamless integrations with ERP, CRM, and inventory management systems-- Flexible business model expansion through dropshipping and multiple warehouses--#### [ChatGPT Integration](/use-case/chatgpt-integration/chatgpt-instant-checkout)--- Reach intent-driven buyers directly through ChatGPT product recommendations-- Enable seamless purchases with Stripe-powered Instant Checkout in the conversation-- Maintain full control over fulfillment, returns, and customer relationships--#### [Digital Products](/use-case/digital-products/capabilities)--- Sell digital goods alongside physical products or standalone-- Automate delivery through email, “My Account”, or instant download-- Control access with expiration dates, download limits, and digital-only checkout flows--### Looking for User Docs?--Feel free to use detailed Spree Commerce [User Documentation](/user/what-is-spree-commerce), including getting started guides, feature explainers, and step-by-step how-to instructions for daily eCommerce operations.--### Looking for Developer Documentation?--If you are a Spree developer, you may find the [**Developer Docs**](/docs/developer) to be of benefit to you, though we strongly urge you to read through both sets of guides.--BTW Give Spree a [GitHub Star](https://github.com/spree/spree)<Icon icon="star" iconType="solid" color="#FFD43B" />, why don't ya?--Thank you for supporting Spree open-source! <Icon icon="heart" iconType="solid" color="#FF0000" />--## Join Spree Discord--To join the Spree Community and over 6000+ Spree users and developers, please join our [Discord](https://discord.spreecommerce.org/)--## Get Started--<Columns cols={2}>- <Card title="Book a Demo" icon="eye" href="https://getvendo.com/book-a-demo/" cta="Click here">- Schedule a demo to explore the platform and get your questions answered- </Card>- <Card title="Ask for Pricing" icon="dollar-sign" href="https://spreecommerce.org/get-started/" cta="Click here">- Ask for Enterprise Edition pricing for the Use Case of your choice.- </Card>-</Columns>diff --git a/docs/user/how-to/selling-to-businesses.mdx b/docs/user/how-to/selling-to-businesses.mdxindex d0f8a68d58..7189d243c9 100644--- a/docs/user/how-to/selling-to-businesses.mdx+++ b/docs/user/how-to/selling-to-businesses.mdx@@ -11,7 +11,7 @@ Selling to a business is different from selling to a person. The buyer acts forThis guide walks through setting up one trade customer from scratch. Once it is in place, every buyer at that company logs in to the same storefront as everyone else and simply sees their own deal.<Note>-This is the Spree 6 way to give a customer segment its own pricing. Earlier versions did it with a **Customer Group** rule on a price list; that rule keeps working on lists that already have it, but is not offered for new lists. A catalog does the same job and more — it can also restrict the range and set order minimums.+A **Customer Group** rule on a price list can still give a segment its own pricing on lists that already use it, but it is not offered for new price lists. A catalog does the same job and more — it can also restrict the range and set order minimums.</Note>## Prerequisitesdiff --git a/docs/user/products/creating-products.mdx b/docs/user/products/creating-products.mdxindex a685a0d4e4..2510cde67a 100644--- a/docs/user/products/creating-products.mdx+++ b/docs/user/products/creating-products.mdx@@ -235,7 +235,7 @@ After an order is placed, customers can access their files in three ways:Internally, each download is served via `GET /api/v3/store/digitals/{token}`. The token alone authorizes the download — no API key or login is required — which is why download limits and expiry exist.-For more on the digital product model, see the [Digital Products](/use-case/digital-products/admin-capabilities) overview.+For more on selling digital products, see the [Digital Products](/developer/how-to/sell-digital-products) guide.## Save Changesdiff --git a/docs/user/user-quickstart-guide.mdx b/docs/user/user-quickstart-guide.mdxindex fdf171a357..c8d7da4028 100644--- a/docs/user/user-quickstart-guide.mdx+++ b/docs/user/user-quickstart-guide.mdx@@ -116,7 +116,7 @@ Once you’ve completed the basic setup, you’re ready to explore more advanced- [**<u>Learn how to manage orders</u>**](https://spreecommerce.org/docs/user/orders/processing-orders) - process payments, fulfill shipments, create and edit orders- [**<u>Learn how to process returns</u>**](https://spreecommerce.org/docs/user/orders/returns) - configure returns flow, authorize returns, reimburse customers-- [**<u>Launch a B2B storefront</u>**](https://spreecommerce.org/docs/use-case/b2b/b2b-commerce-model) - offer net terms, tiered pricing, company accounts, and purchase flows optimized for wholesale-- [**<u>Build a multi-vendor marketplace</u>**](https://spreecommerce.org/docs/use-case/marketplace/model) - invite third-party vendors to sell through your platform-- [**<u>Create a multi-tenant platform</u>**](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model) power multiple stores or clients from a single backend-- [**<u>Sell digital products</u>**](https://spreecommerce.org/docs/use-case/digital-products/model) - deliver files automatically, skip shipping steps, and disable inventory tracking+- [**<u>Launch a B2B storefront</u>**](https://spreecommerce.org/docs/user/how-to/selling-to-businesses) - offer net terms, tiered pricing, company accounts, and purchase flows optimized for wholesale+- [**<u>Build a multi-vendor marketplace</u>**](https://spreecommerce.org/docs/user/sellers/sellers) - invite third-party vendors to sell through your platform+- [**<u>Create a multi-tenant platform</u>**](https://spreecommerce.org/docs/developer/multi-tenant/quickstart) power multiple stores or clients from a single backend+- [**<u>Sell digital products</u>**](https://spreecommerce.org/docs/developer/how-to/sell-digital-products) - deliver files automatically, skip shipping steps, and disable inventory trackingdiff --git a/docs/v5/user/products/creating-products.mdx b/docs/v5/user/products/creating-products.mdxindex 039c7dbc74..0245262164 100644--- a/docs/v5/user/products/creating-products.mdx+++ b/docs/v5/user/products/creating-products.mdx@@ -236,7 +236,7 @@ After an order is placed, customers can access their files in three ways:Internally, each download is served via `GET /api/v3/store/digitals/{token}`. The token alone authorizes the download — no API key or login is required — which is why download limits and expiry exist.-For more on the digital product model, see the [Digital Products](/use-case/digital-products/admin-capabilities) overview.+For more on selling digital products, see the [Digital Products](/developer/how-to/sell-digital-products) guide.## Save Changesdiff --git a/docs/v5/user/user-quickstart-guide.mdx b/docs/v5/user/user-quickstart-guide.mdxindex ac52e4095a..5dbf6b9a67 100644--- a/docs/v5/user/user-quickstart-guide.mdx+++ b/docs/v5/user/user-quickstart-guide.mdx@@ -117,7 +117,7 @@ Once you’ve completed the basic setup, you’re ready to explore more advanced- [**<u>Learn how to manage orders</u>**](https://spreecommerce.org/docs/user/orders/processing-orders) - process payments, fulfill shipments, create and edit orders- [**<u>Learn how to process returns</u>**](https://spreecommerce.org/docs/user/returns/returns-processing) - configure returns flow, authorize returns, reimburse customers-- [**<u>Launch a B2B storefront</u>**](https://spreecommerce.org/docs/use-case/b2b/b2b-commerce-model) - offer net terms, tiered pricing, company accounts, and purchase flows optimized for wholesale-- [**<u>Build a multi-vendor marketplace</u>**](https://spreecommerce.org/docs/use-case/marketplace/model) - invite third-party vendors to sell through your platform-- [**<u>Create a multi-tenant platform</u>**](https://spreecommerce.org/docs/use-case/multi-tenant/multi-tenant-model) power multiple stores or clients from a single backend-- [**<u>Sell digital products</u>**](https://spreecommerce.org/docs/use-case/digital-products/model) - deliver files automatically, skip shipping steps, and disable inventory tracking+- [**<u>Launch a B2B storefront</u>**](https://spreecommerce.org/docs/user/how-to/selling-to-businesses) - offer net terms, tiered pricing, company accounts, and purchase flows optimized for wholesale+- [**<u>Build a multi-vendor marketplace</u>**](https://spreecommerce.org/docs/user/sellers/sellers) - invite third-party vendors to sell through your platform+- [**<u>Create a multi-tenant platform</u>**](https://spreecommerce.org/docs/developer/multi-tenant/quickstart) power multiple stores or clients from a single backend+- [**<u>Sell digital products</u>**](https://spreecommerce.org/docs/developer/how-to/sell-digital-products) - deliver files automatically, skip shipping steps, and disable inventory trackingdiff --git a/packages/create-spree-app/src/prompts.ts b/packages/create-spree-app/src/prompts.tsindex 2b46bbc687..e1a89ccac4 100644--- a/packages/create-spree-app/src/prompts.ts+++ b/packages/create-spree-app/src/prompts.ts@@ -56,7 +56,7 @@ export async function runPrompts(start = !flags.noStart} else {const startResult = await p.confirm({- message: 'Start services now? (requires Docker)',+ message: 'Start services now? Requires Docker - will start Spree server and PostgreSQL',initialValue: true,})diff --git a/packages/create-spree-app/src/templates/claude-md.ts b/packages/create-spree-app/src/templates/claude-md.tsindex 4f5e001064..40506f8d2b 100644--- a/packages/create-spree-app/src/templates/claude-md.ts+++ b/packages/create-spree-app/src/templates/claude-md.ts@@ -4,12 +4,14 @@ import { runCommand } from '../utils.js'export function agentsMdContent(): string {return `# Agent Instructions-See [CLAUDE.md](./CLAUDE.md) for full project instructions and conventions.+See [CLAUDE.md](./CLAUDE.md) for the project layout and where each part is+documented. Each application carries its own instructions — read the one for+the directory you are working in before changing anything there.## Spree-specific agent skillsFor deeper Spree-specific guidance (API conventions, the data model, event system,-testing patterns, security, deployment, the 6.0 React dashboard, the Next.js+testing patterns, security, deployment, the React dashboard, the Next.jsstorefront, etc.), install the official skill set:\`\`\`bash@@ -66,8 +68,8 @@ export function rootClaudeMdContent(if (hasDashboard) {lines.push(- '- **React Dashboard work** (admin SPA, React, TypeScript): See `apps/dashboard/README.md`',- ' and https://spreecommerce.org/docs/developer/dashboard/overview',+ '- **Dashboard work** (admin SPA, React, TypeScript): See `apps/dashboard/AGENTS.md`',+ '- **Seller Panel work** (marketplace seller SPA): See `apps/seller-dashboard/AGENTS.md`',)}@@ -82,7 +84,7 @@ export function rootClaudeMdContent('├── developer/','│ ├── core-concepts/ # Products, orders, payments, inventory, etc.','│ ├── customization/ # Decorators, extensions, configuration, dependencies',- '│ ├── admin/ # Admin panel customization',+ '│ ├── dashboard/ # React dashboard: customization, recipes, plugins','│ ├── storefront/ # Storefront building guides','│ ├── sdk/ # TypeScript SDK documentation','│ └── tutorial/ # Step-by-step tutorials',@@ -104,7 +106,7 @@ export function rootClaudeMdContent('','```bash',`${run} spree api get products # list products`,- `${run} spree api get "orders?q[state_eq]=complete" # Ransack filters`,+ `${run} spree api get "orders?q[status_eq]=complete" # Ransack filters`,`${run} spree api endpoints # every endpoint + its required scope`,`${run} spree api schema "POST /products" # request/response schema for an operation`,'```',diff --git a/packages/create-spree-app/src/templates/readme.ts b/packages/create-spree-app/src/templates/readme.tsindex 003687b512..332a64199b 100644--- a/packages/create-spree-app/src/templates/readme.ts+++ b/packages/create-spree-app/src/templates/readme.ts@@ -152,7 +152,7 @@ Project setup mints a read-only secret key into \`.spree/credentials.json\` (git\`\`\`bash${run} spree api get products-${run} spree api get "orders?q[state_eq]=complete"+${run} spree api get "orders?q[status_eq]=complete"${run} spree api endpoints # list endpoints + required scopes${run} spree api status # show resolved credentials + server reachability\`\`\`diff --git a/packages/create-spree-app/tests/templates.test.ts b/packages/create-spree-app/tests/templates.test.tsindex 3c7a1ea34c..1c1e2e2012 100644--- a/packages/create-spree-app/tests/templates.test.ts+++ b/packages/create-spree-app/tests/templates.test.ts@@ -209,7 +209,9 @@ describe('rootClaudeMdContent', () => {it('lists apps/dashboard when the dashboard is included', () => {const content = rootClaudeMdContent(true, true)expect(content).toContain('`apps/dashboard/`')- expect(content).toContain('docs/developer/dashboard')+ // Each app carries its own instructions; the root file points at them.+ expect(content).toContain('apps/dashboard/AGENTS.md')+ expect(content).toContain('apps/seller-dashboard/AGENTS.md')})it('renders commands for the chosen package manager', () => {diff --git a/packages/dashboard-starter/AGENTS.md b/packages/dashboard-starter/AGENTS.mdnew file mode 100644index 0000000000..ebef571468--- /dev/null+++ b/packages/dashboard-starter/AGENTS.md@@ -0,0 +1,67 @@+# Agent Instructions++This is the Spree admin dashboard for this project — a Vite + React app. The+shell (routes, chrome, resource pages) ships in `@spree/dashboard`; this+project holds your customizations.++Full docs: https://spreecommerce.org/docs/developer/dashboard/overview++## Imports++Import from `@spree/dashboard` — it re-exports the framework and the design+system, so there is no need to work out which package an export lives in.++```ts+import { defineDashboardPlugin, useStore, Button, ResourceTable } from '@spree/dashboard'+```++`@spree/dashboard-core` and `@spree/dashboard-ui` stay importable for the few+components that exist in both: the design system's takes data as props, the+framework's fetches its own. The facade gives you the framework's.++## Where code goes++Organized by kind, one file per resource — the same layout `@spree/dashboard`+uses internally.++| Directory | Holds | Naming |+|---|---|---|+| `src/plugins.ts` | Registrations only: nav, routes, slots, tables | one file |+| `src/pages/` | One screen each | `brands.tsx` |+| `src/hooks/` | Admin API wrappers | `use-brands.ts` |+| `src/tables/` | `defineTable` calls | `brands.tsx` |+| `src/schemas/` | Zod schema + `FormValues` | `brand.ts` |+| `src/locales/` | Your `admin.*` translation keys | `en.json` |++Adding a resource touches one file in each directory. Keep `plugins.ts` a map+of what exists, not an implementation.++## Rules++- **The Admin API is the only data source.** Never reach into the Rails app or+ import server-rendered HTML. A missing endpoint is added to the API first.+- **Wrap API calls in a hook.** Components never call `adminClient` directly.+- **Query keys are store-scoped.** Build them with `useResourceKey`; a bare+ `['brands']` key leaks one store's data into another after a store switch.+- **Writes go through `useResourceMutation`**, which maps 422 responses onto+ form fields instead of firing a toast.+- **Every visible string goes through i18next** — page titles, column labels,+ buttons, empty states, toasts. Never hardcode English in JSX or in a table+ definition. Add each new key to every locale file the project ships.+- **Schemas hold canonical values, never labels.** Build `{ value, label }`+ pairs at render time so labels stay translatable.+- **Never embed an SDK entity type in a form-values type.** React Hook Form+ walks every nested key and the SDK's object graph overflows the TypeScript+ compiler.+- **A sortable or filterable column must be allowlisted for Ransack** on the+ model, or the request fails at runtime.+- **Destructive actions that fire straight from a click need a confirm** —+ `useConfirm()` with `variant: 'destructive'`.++## Checks++```bash+pnpm typecheck+pnpm lint+pnpm build+```diff --git a/packages/dashboard-starter/README.md b/packages/dashboard-starter/README.mdindex c1741a2964..24cba918bf 100644--- a/packages/dashboard-starter/README.md+++ b/packages/dashboard-starter/README.md@@ -12,7 +12,7 @@ cp .env.example .env.local # optional — VITE_API_PROXY_TARGET if your API ispnpm dev # http://localhost:5173```-The dev server proxies `/api` to your Rails backend so the SPA stays same-origin — don't set `VITE_SPREE_API_URL` in dev (it switches the SDK to absolute cross-origin URLs, which breaks on CORS and the auth cookie).+The dev server proxies `/api` to your server API so the SPA stays same-origin — don't set `VITE_SPREE_API_URL` in dev (it switches the SDK to absolute cross-origin URLs, which breaks on CORS and the auth cookie).Sign in with an admin account — authentication is interactive (JWT + refresh cookie). No API keys belong in `.env.local`: every `VITE_`-prefixed value is compiled into the client bundle.@@ -29,8 +29,95 @@ That's the whole install. `spreeDashboardPlugin()` (see `vite.config.ts`) discov`src/plugins.ts` is yours — register nav entries, routes, slot widgets, and table columns with `defineDashboardPlugin` from `@spree/dashboard-core`. Same API the distributed plugins use; see the [customization quickstart](https://spreecommerce.org/docs/developer/dashboard/customization/quickstart).+**Import everything from `@spree/dashboard`.** It re-exports the framework+(registries, providers, hooks, the Admin API client) and the design system, so+you never have to remember which package a given export lives in:++```ts+import { defineDashboardPlugin, useStore, Button, ResourceTable } from '@spree/dashboard'+```++`@spree/dashboard-core` and `@spree/dashboard-ui` remain installed and+importable when you want them directly — a handful of components exist in+both, where the design system's version takes its data as props and the+framework's fetches its own. The facade gives you the framework's.++Brands will not be your only customization, so this starter ships the same layout `@spree/dashboard` uses internally: organized by kind, one file per resource.++```+src/+├── plugins.ts registrations only — the map of what you added+├── pages/ one file per screen brands.tsx, brand-detail.tsx+├── hooks/ one file per resource use-brands.ts+├── tables/ one file per resource brands.tsx+├── schemas/ one file per resource brand.ts+└── locales/ your translations en.json+```++Adding a resource touches one file in each directory, which is why the split+is by kind rather than by feature — you always know where a thing lives.++**`pages/`** — a screen composes `ResourceLayout` with a `PageHeader` and+renders a `ResourceTable` or a form. It does not fetch data itself. Register+it as a route in `plugins.ts`:++```tsx+import { BrandsPage } from './pages/brands'++defineDashboardPlugin({+ routes: [{ key: 'brands', path: '/brands', component: BrandsPage }],+})+```++**`hooks/`** — named `use-<resource>.ts`, each wrapping the Admin API so+components never call `adminClient` directly. Build query keys with+`useResourceKey`, which scopes them to the current store; a bare `['brands']`+key leaks one store's data into another after a store switch. Use+`useResourceMutation` for writes — it maps 422 responses onto form fields+instead of firing a toast.++```ts+import { adminClient, useResourceKey } from '@spree/dashboard-core'+import { useQuery } from '@tanstack/react-query'++export function useBrands() {+ return useQuery({+ queryKey: useResourceKey('brands'),+ queryFn: () => adminClient.request('GET', '/brands'),+ })+}+```++**`tables/`** — one `defineTable` call per resource, at module load, imported+from `plugins.ts` so it registers before the router mounts. Column changes to+built-in tables (products, orders, customers) live here too. A column marked+`sortable` or `filterable` must be allowlisted for Ransack on the model, or+the request fails.++**`schemas/`** — the Zod schema, its inferred `FormValues` type and defaults.+Hold canonical values only, never label strings: build `{ value, label }`+pairs at render time so labels stay translatable. Never embed an SDK entity+type (`Product`, `Order`) in a form-values type — React Hook Form walks every+nested key and the SDK's object graph overflows the TypeScript compiler.+Inline a short single-file schema instead.++**`locales/`** — every visible string goes through i18next, including column+labels and button text. Keys live under a top-level `admin` object. Load the+bundle once at the top of `plugins.ts`:++```ts+import { i18n } from '@spree/dashboard-core'+import en from './locales/en.json'++i18n.addResourceBundle('en', 'translation', en, true, true)+```+## Build & deploy+The app root `Dockerfile` already builds this package and bakes it into the production image, available at `https://yourstore.com/dashboard` URL.++If you want to host it elsewhere, eg. on CDN you can build it manually.+```bashpnpm build # static assets in dist/```diff --git a/packages/dashboard-starter/package.json b/packages/dashboard-starter/package.jsonindex 0915e7abe6..ae77edfd12 100644--- a/packages/dashboard-starter/package.json+++ b/packages/dashboard-starter/package.json@@ -15,6 +15,8 @@"dependencies": {"@spree/admin-sdk": "workspace:^","@spree/dashboard": "workspace:^",+ "@spree/dashboard-core": "workspace:^",+ "@spree/dashboard-ui": "workspace:^","@tanstack/react-query": "^5.100.9","@tanstack/react-router": "^1.169.2","react": "^19.2.6",diff --git a/packages/dashboard-starter/src/hooks/.gitkeep b/packages/dashboard-starter/src/hooks/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/dashboard-starter/src/locales/en.json b/packages/dashboard-starter/src/locales/en.jsonnew file mode 100644index 0000000000..c47c6a2a55--- /dev/null+++ b/packages/dashboard-starter/src/locales/en.json@@ -0,0 +1,3 @@+{+ "admin": {}+}diff --git a/packages/dashboard-starter/src/pages/.gitkeep b/packages/dashboard-starter/src/pages/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/dashboard-starter/src/plugins.ts b/packages/dashboard-starter/src/plugins.tsindex cf5508adaa..ae0e7d25fa 100644--- a/packages/dashboard-starter/src/plugins.ts+++ b/packages/dashboard-starter/src/plugins.ts@@ -4,20 +4,30 @@// shared registries — the same API distributed plugins use. Imported once// from main.tsx, before the dashboard renders.//+// Keep this file a map of what you added: the registrations live here, the+// implementations live in pages/, hooks/, tables/ and schemas/. See the+// README for what belongs where.+//// Example://// import { defineDashboardPlugin } from '@spree/dashboard'// import { AnalyticsPage } from './pages/analytics'//// defineDashboardPlugin({-// nav: [{ key: 'analytics', label: 'Analytics', path: '/analytics', position: 60 }],+// nav: [{+// key: 'analytics',+// label: i18n.t('admin.analytics.nav'),+// path: '/analytics',+// position: 650,+// }],// routes: [{ key: 'analytics', path: '/analytics', component: AnalyticsPage }],// })//-// Building custom pages? Add the framework and design-system packages first —-// `pnpm add @spree/dashboard-core @spree/dashboard-ui` — then import hooks,-// providers, and UI primitives from those.-//// Docs: https://spreecommerce.org/docs/developer/dashboard/customization/quickstart-export {}+import { i18n } from '@spree/dashboard'+import en from './locales/en.json'++// Merges your `admin.*` keys into the dashboard's namespace without dropping+// its own. Add a bundle per locale you ship.+i18n.addResourceBundle('en', 'translation', en, true, true)diff --git a/packages/dashboard-starter/src/schemas/.gitkeep b/packages/dashboard-starter/src/schemas/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/dashboard-starter/src/tables/.gitkeep b/packages/dashboard-starter/src/tables/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/dashboard-starter/tsconfig.json b/packages/dashboard-starter/tsconfig.jsonindex 56631abbfd..49e2f01bcd 100644--- a/packages/dashboard-starter/tsconfig.json+++ b/packages/dashboard-starter/tsconfig.json@@ -8,6 +8,7 @@"types": ["vite/client"],"skipLibCheck": true,"moduleResolution": "bundler",+ "resolveJsonModule": true,"verbatimModuleSyntax": true,"moduleDetection": "force","noEmit": true,diff --git a/packages/dashboard/src/facade.test.ts b/packages/dashboard/src/facade.test.tsnew file mode 100644index 0000000000..14d3189477--- /dev/null+++ b/packages/dashboard/src/facade.test.ts@@ -0,0 +1,83 @@+import path from 'node:path'+import ts from 'typescript'+import { describe, expect, it } from 'vitest'++// `@spree/dashboard` re-exports the framework and the design system so an+// application has one import to remember. TypeScript drops a name declared by+// both rather than picking one, which would silently remove it from the public+// API — so every duplicate must be re-exported explicitly in src/index.ts.+//+// This test fails when a new name appears in both packages. The fix is to add+// it to that explicit list, choosing the version an application should get+// (almost always the framework's: it fetches its own data).+function exportsOf(entry: string) {+ const file = require.resolve(entry, { paths: [__dirname] })+ const program = ts.createProgram([file], {+ moduleResolution: ts.ModuleResolutionKind.Bundler,+ module: ts.ModuleKind.ESNext,+ target: ts.ScriptTarget.ES2022,+ jsx: ts.JsxEmit.ReactJSX,+ skipLibCheck: true,+ noEmit: true,+ })+ const checker = program.getTypeChecker()+ const source = program.getSourceFile(file)+ if (!source) throw new Error(`could not load ${entry}`)+ const symbol = checker.getSymbolAtLocation(source)+ if (!symbol) throw new Error(`no module symbol for ${entry}`)+ return { checker, exports: checker.getExportsOfModule(symbol) }+}++function resolve(checker: ts.TypeChecker, symbol?: ts.Symbol) {+ if (!symbol) return ''+ let current = symbol+ while (current.flags & ts.SymbolFlags.Alias) current = checker.getAliasedSymbol(current)+ return current.declarations?.[0]?.getSourceFile().fileName ?? ''+}++describe('@spree/dashboard facade', () => {+ const core = exportsOf('@spree/dashboard-core')+ const ui = exportsOf('@spree/dashboard-ui')+ const duplicates = core.exports+ .map((s) => s.getName())+ .filter((name) => ui.exports.some((s) => s.getName() === name))++ it('re-exports every duplicate explicitly, resolved to the framework', () => {+ const { checker, exports } = exportsOf(path.join(__dirname, 'index.ts'))++ for (const name of duplicates) {+ const symbol = exports.find((s) => s.getName() === name)+ expect(+ symbol,+ `${name} is declared by both packages and was dropped from the facade`,+ ).toBeDefined()++ // A name one package merely forwards from the other is the same symbol,+ // so either resolution is correct. Only genuinely distinct pairs — the+ // design system's presentational component and the framework's+ // data-fetching wrapper — need the framework's version to win.+ const viaCore = resolve(+ core.checker,+ core.exports.find((s) => s.getName() === name),+ )+ const viaUi = resolve(+ ui.checker,+ ui.exports.find((s) => s.getName() === name),+ )+ if (viaCore === viaUi) continue++ const from = resolve(checker, symbol)+ expect(from, `${name} resolves to the design system, not the framework`).toContain(+ 'dashboard-core',+ )+ }+ })++ it('exposes the shell alongside the re-exports', () => {+ const { exports } = exportsOf(path.join(__dirname, 'index.ts'))+ const names = exports.map((s) => s.getName())+ expect(names).toContain('Dashboard')+ expect(names).toContain('createDashboardRouter')+ expect(names).toContain('defineDashboardPlugin')+ })+})diff --git a/packages/dashboard/src/index.ts b/packages/dashboard/src/index.tsindex 3127d48ce3..504a9faa7a 100644--- a/packages/dashboard/src/index.ts+++ b/packages/dashboard/src/index.ts@@ -4,11 +4,44 @@// generated route tree (see `@spree/dashboard/vite` for the generation)://// import { createDashboardRouter, Dashboard } from '@spree/dashboard'+//+// This module is also the single import an application needs. It re-exports+// the framework (`@spree/dashboard-core`) and the design system+// (`@spree/dashboard-ui`), so a host writing its own pages imports hooks,+// providers, registries and UI primitives from here without having to know+// which package each lives in. Both remain importable directly — plugin+// authors and anyone assembling a bespoke dashboard keep using them, and the+// subpath exports (`@spree/dashboard-ui/icons`, `@spree/dashboard-core/vite`)+// are unaffected.+//+// Order matters. A handful of names exist in both packages: the design system+// ships a presentational component and the framework wraps it with data. The+// framework is exported last so its version wins, which is the one an+// application wants — `ResourceCombobox` that loads its own options rather+// than the pure one that takes them as props. Reach past the facade when you+// want the presentational half:+//+// import { ResourceCombobox } from '@spree/dashboard-ui'+//+// `pnpm --filter @spree/dashboard test` fails when a new duplicate appears,+// so this list cannot drift silently.++export * from '@spree/dashboard-core'+// `export *` drops a name declared by both modules rather than picking one,+// so the duplicates below are re-exported explicitly. The framework's version+// wins because it is the one an application wants: it fetches its own data,+// where the design system's takes everything as props. Import from+// `@spree/dashboard-ui` directly for the presentational half.+export {+ type DateRange,+ ResourceCombobox,+ type ResourceComboboxProps,+ ResourceMultiAutocomplete,+ type ResourceMultiAutocompleteProps,+ Slot,+ StatusCard,+} from '@spree/dashboard-core'+export * from '@spree/dashboard-ui'-// Plugin facade re-export — lets a host register in-app customizations-// (nav entries, routes, slot widgets) without declaring @spree/dashboard-core-// as a direct dependency. Distributed plugins keep importing from-// `@spree/dashboard-core/plugin`.-export * from '@spree/dashboard-core/plugin'export { createDashboardRouter } from './create-router'export { Dashboard } from './dashboard'diff --git a/packages/seller-dashboard-starter/AGENTS.md b/packages/seller-dashboard-starter/AGENTS.mdnew file mode 100644index 0000000000..22a707169b--- /dev/null+++ b/packages/seller-dashboard-starter/AGENTS.md@@ -0,0 +1,71 @@+# Agent Instructions++This is the Spree seller panel for this marketplace — a Vite + React app. The+shell ships in `@spree/seller-dashboard`; this project holds your+customizations. Sellers manage their own catalog and orders here.++Full docs: https://spreecommerce.org/docs/developer/dashboard/overview++The admin dashboard is the reference implementation: when a component is+useful to both, extract it rather than copying it.++## Imports++Import from `@spree/seller-dashboard` — it re-exports the framework and the design+system, so there is no need to work out which package an export lives in.++```ts+import { defineDashboardPlugin, useStore, Button, ResourceTable } from '@spree/seller-dashboard'+```++`@spree/dashboard-core` and `@spree/dashboard-ui` stay importable for the few+components that exist in both: the design system's takes data as props, the+framework's fetches its own. The facade gives you the framework's.++## Where code goes++Organized by kind, one file per resource — the same layout the panel+uses internally.++| Directory | Holds | Naming |+|---|---|---|+| `src/plugins.ts` | Registrations only: nav, slots, tables | one file |+| `src/pages/` | One screen each | `brands.tsx` |+| `src/hooks/` | Admin API wrappers | `use-brands.ts` |+| `src/tables/` | `defineTable` calls | `brands.tsx` |+| `src/schemas/` | Zod schema + `FormValues` | `brand.ts` |+| `src/locales/` | Your `admin.*` translation keys | `en.json` |++Adding a resource touches one file in each directory. Keep `plugins.ts` a map+of what exists, not an implementation.++## Rules++- **The Admin API is the only data source.** Never reach into the Rails app or+ import server-rendered HTML. Seller endpoints are scoped to the signed-in+ seller by the server, never by the client. A missing endpoint is added to the API first.+- **Wrap API calls in a hook.** Components never call `adminClient` directly.+- **Query keys are store-scoped.** Build them with `useResourceKey`; a bare+ `['brands']` key leaks one store's data into another after a store switch.+- **Writes go through `useResourceMutation`**, which maps 422 responses onto+ form fields instead of firing a toast.+- **Every visible string goes through i18next** — page titles, column labels,+ buttons, empty states, toasts. Never hardcode English in JSX or in a table+ definition. Add each new key to every locale file the project ships.+- **Schemas hold canonical values, never labels.** Build `{ value, label }`+ pairs at render time so labels stay translatable.+- **Never embed an SDK entity type in a form-values type.** React Hook Form+ walks every nested key and the SDK's object graph overflows the TypeScript+ compiler.+- **A sortable or filterable column must be allowlisted for Ransack** on the+ model, or the request fails at runtime.+- **Destructive actions that fire straight from a click need a confirm** —+ `useConfirm()` with `variant: 'destructive'`.++## Checks++```bash+pnpm typecheck+pnpm lint+pnpm build+```diff --git a/packages/seller-dashboard-starter/package.json b/packages/seller-dashboard-starter/package.jsonindex 008421376f..f4308746e6 100644--- a/packages/seller-dashboard-starter/package.json+++ b/packages/seller-dashboard-starter/package.json@@ -14,6 +14,8 @@},"dependencies": {"@spree/seller-dashboard": "workspace:^",+ "@spree/dashboard-core": "workspace:^",+ "@spree/dashboard-ui": "workspace:^","@spree/seller-sdk": "workspace:^","@tanstack/react-query": "^5.100.9","@tanstack/react-router": "^1.169.2",diff --git a/packages/seller-dashboard-starter/src/hooks/.gitkeep b/packages/seller-dashboard-starter/src/hooks/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/seller-dashboard-starter/src/locales/en.json b/packages/seller-dashboard-starter/src/locales/en.jsonnew file mode 100644index 0000000000..c47c6a2a55--- /dev/null+++ b/packages/seller-dashboard-starter/src/locales/en.json@@ -0,0 +1,3 @@+{+ "admin": {}+}diff --git a/packages/seller-dashboard-starter/src/pages/.gitkeep b/packages/seller-dashboard-starter/src/pages/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/seller-dashboard-starter/src/plugins.ts b/packages/seller-dashboard-starter/src/plugins.tsindex c70c126796..aff8ed4254 100644--- a/packages/seller-dashboard-starter/src/plugins.ts+++ b/packages/seller-dashboard-starter/src/plugins.ts@@ -6,6 +6,11 @@// here, the same API distributed plugins use. Imported once from main.tsx,// before the panel renders.//+// Keep this file a map of what you added: the registrations live here, the+// implementations live in pages/, hooks/, tables/ and schemas/ — one file per+// resource, the same layout the seller panel uses internally. Translations go+// in locales/ and merge in with `i18n.addResourceBundle`.+//// Example — add a payouts page and drop the built-in team screen://// import { defineDashboardPlugin } from '@spree/seller-dashboard'@@ -23,8 +28,7 @@//// Slots the built-in screens expose: `seller.team.actions`, `seller.team.after`.//-// Building custom pages? Add the framework and design-system packages first —-// `pnpm add @spree/dashboard-core @spree/dashboard-ui` — then import hooks,-// providers, and UI primitives from those.+// `@spree/dashboard-core` and `@spree/dashboard-ui` are already installed —+// import hooks, providers and UI primitives straight from them.export {}diff --git a/packages/seller-dashboard-starter/src/schemas/.gitkeep b/packages/seller-dashboard-starter/src/schemas/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/seller-dashboard-starter/src/tables/.gitkeep b/packages/seller-dashboard-starter/src/tables/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/packages/seller-dashboard-starter/tsconfig.json b/packages/seller-dashboard-starter/tsconfig.jsonindex f0d6247d64..4017f20e92 100644--- a/packages/seller-dashboard-starter/tsconfig.json+++ b/packages/seller-dashboard-starter/tsconfig.json@@ -8,6 +8,7 @@"types": ["vite/client"],"skipLibCheck": true,"moduleResolution": "bundler",+ "resolveJsonModule": true,"allowImportingTsExtensions": true,"verbatimModuleSyntax": true,"moduleDetection": "force",diff --git a/packages/seller-dashboard/src/index.ts b/packages/seller-dashboard/src/index.tsindex 985716970c..8659c02862 100644--- a/packages/seller-dashboard/src/index.ts+++ b/packages/seller-dashboard/src/index.ts@@ -9,11 +9,26 @@ import './i18n'import './nav/default'import './nav/settings'-// Plugin facade re-export — lets a marketplace register in-app customisations-// (nav entries, slot widgets, table columns) without declaring-// @spree/dashboard-core as a direct dependency. Same facade the operator's-// dashboard exposes: one API for extending either panel.-export * from '@spree/dashboard-core/plugin'+export * from '@spree/dashboard-core'+export {+ type DateRange,+ ResourceCombobox,+ type ResourceComboboxProps,+ ResourceMultiAutocomplete,+ type ResourceMultiAutocompleteProps,+ Slot,+ StatusCard,+} from '@spree/dashboard-core'+// The single import a marketplace needs: the framework+// (`@spree/dashboard-core`) and the design system (`@spree/dashboard-ui`),+// re-exported so a host writing its own pages never has to work out which+// package an export lives in. Both stay importable directly.+//+// `export *` drops a name declared by both rather than picking one, so the+// duplicates are re-exported explicitly below, resolving to the framework's+// version — the one that fetches its own data. Import from+// `@spree/dashboard-ui` for the presentational half.+export * from '@spree/dashboard-ui'export {createSellerApiClient,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ab0a0285da..1694bfdd0f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -471,6 +471,12 @@ importers:'@spree/dashboard':specifier: workspace:^version: link:../dashboard+ '@spree/dashboard-core':+ specifier: workspace:^+ version: link:../dashboard-core+ '@spree/dashboard-ui':+ specifier: workspace:^+ version: link:../dashboard-ui'@tanstack/react-query':specifier: ^5.100.9version: 5.100.9([email protected])@@ -753,6 +759,12 @@ importers:packages/seller-dashboard-starter:dependencies:+ '@spree/dashboard-core':+ specifier: workspace:^+ version: link:../dashboard-core+ '@spree/dashboard-ui':+ specifier: workspace:^+ version: link:../dashboard-ui'@spree/seller-dashboard':specifier: workspace:^version: link:../seller-dashboard