Skip to content

armgit / spree

Public Imported from GitHub
0

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.

42.5 KB
Raw Blame

@spree/dashboard-core

6.0.2

Patch Changes

  • #15029 4cfb2ab Thanks @damianlegawiec! - The command palette is now built on Base UI's Autocomplete instead of cmdk, so the dashboard no longer installs cmdk or any Radix packages. It looks and works the same: arrow keys move the highlight, Enter opens the highlighted row and Escape closes the palette. The Command components in @spree/dashboard-ui keep the props the dashboard uses: shouldFilter on Command, value and onValueChange on CommandInput, value, keywords and onSelect on CommandItem, and heading on CommandGroup. The cmdk options on Command for the highlighted row (value, onValueChange), custom matching (filter) and wrap-around (loop) are no longer available.
  • Updated dependencies [7416961]:

6.0.1

Patch Changes

  • #15015 29d95e3 Thanks @damianlegawiec! - Fixed the invitation link redirecting anyone already signed in to the dashboard instead of letting them accept. Someone signed in as the invited account now accepts with one click, and someone signed in as another account is asked to sign out first. The seller panel's acceptance page shares these screens: an existing account confirms its password instead of being asked to set a new one, and the seller invitation lookup now says whether the invitee has an account.

  • #15006 f227994 Thanks @damianlegawiec! - The admin dashboard now shows external references (the keys an ERP, PIM or CRM knows a record by) in the Metadata card, each with a copy button. They appear on product, order, category, company and seller pages, in the metadata sheet of returns and fulfillments, and in the stock location edit panel. The Admin API now returns external references for sellers too.

  • #15007 27bbcfa Thanks @damianlegawiec! - List filters in the admin dashboard are quicker to narrow. Dropdown menus show checkboxes instead of trailing checkmarks, and every multi-select row offers "Only" on hover to keep just that value, or "Select all" to widen back. Quick filters show the colours of the statuses they let through and a count when narrowed. The Add filter panel lists values as checkboxes under an "Any …" row that clears the field, statuses can be picked several at once, and clicking a filter chip reopens the panel on that field. The Add filter button is now an icon with a tooltip.

  • #15010 9f0550e Thanks @damianlegawiec! - Store setup moved from a Getting Started nav entry to a checklist card above the account menu in the admin dashboard. It shows overall progress and every step, marks the next one to take, and each step goes straight to where it is done: a settings page, or the address and storefront dialogs opened in place. The card can be minimized to its header, and stays that way until expanded again. Like the old entry, it disappears once setup is done or for staff who cannot change the store. The Getting Started page and the seller panel's onboarding page use the same step icons, now exported from @spree/dashboard-ui as StepIcon and StepProgressRing. AppShell gains a sidebarWidget prop for cards pinned above the account menu.

  • #15004 6116abf Thanks @damianlegawiec! - The admin dashboard now shows metadata on every record that has it. Detail pages end their main column with Custom fields and Metadata, both folded to a header that counts what they hold, so the page leads with the record itself. Records listed inside another page (payments, fulfillments, returns, claims, exchanges, store credits, shipping labels, discounts, fees and seller requirement submissions) get a "View metadata" item in their row menu, and settings records edited in a side panel show it in a collapsed section; both appear only when the record has metadata.

  • Updated dependencies [21dc28f]:

6.0.0

Minor Changes

Patch Changes

6.0.0-rc.7

Released with Spree 6.0.0.rc7, with no changes of its own. From this release the version matches the version of the Spree gems.

1.0.0-rc.6

Minor Changes

  • #14971 98a79ca Thanks @damianlegawiec! - Sellers can manage the downloadable files on their own digital products. The Seller SDK adds products.digitalAssets (list, get, create, update, delete), and the seller panel's product page shows the same Digital files card as the dashboard: upload, replace and delete files, and set per-file download limits. A file the marketplace delivers through its own provider is listed but cannot be replaced by the seller. The card now lives in @spree/dashboard-core as DigitalAssetsCard, and a panel enables it by registering digitalAssets on its API client; readOnly shows the files without any way to change them and accept narrows the file picker.

    Seller uploads are a marketplace decision: three store settings, edited on the dashboard's Marketplace settings page, say whether sellers may upload at all (off by default), which content types their files may have, and whether a file added to or replaced on an approved product sends it back to review. The seller /me response carries them under store, and the Admin SDK's Store type gains the three fields.

Patch Changes

  • #14947 aebf883 Thanks @mad-eel! - A delivery method's amount for the store's default currency is now saved with its other currencies, so leaving it blank means the method isn't offered in that currency, as the form says. Before, a blank default currency was saved as free. The admin dashboard and the seller panel share one per-currency amount editor, CurrencyAmountsField in @spree/dashboard-core, so sellers can price a method in every currency the marketplace sells in. Both forms ask for an amount in at least one currency.

  • #14967 6a1b118 Thanks @damianlegawiec! - The login page explains a refused sign-in when a staff account has been deactivated, instead of reporting a generic sign-in failure.

  • Updated dependencies []:

1.0.0-rc.5

Minor Changes

  • #14939 9c73a79 Thanks @damianlegawiec! - Added custom field editing to variants, option types, sellers, promotions, gift cards, store credits, stock transfers, purchase orders, companies, payment methods, delivery methods, tax rates, product types, media and store settings. Sheets show the custom fields card only once the store defines a field for that type. On the product page, variant and media custom fields save with the sheet's Done, and widgets in their product.variant.form_fields and product.media.form_fields slots can save on Done through onSave. FormActions and useFormSubmitShortcut accept dirty for unsaved changes held outside the form. client.customFields(ownerType, ownerId) accepts each of these types.

  • #14935 ab4f2b0 Thanks @damianlegawiec! - Added previews of Spree Enterprise features where they appear once installed: Quotes under Orders, Onboarding under Companies, Shopify under Sellers, Lots under Inventory, and Audit log in Users & permissions settings. Companies is now its own section in the sidebar rather than sitting under Customers. Set VITE_SPREE_ENTERPRISE_PREVIEWS=false at build time to leave the previews out. Settings entries accept a badge, and plugin pages under /settings get the settings page padding. Registry routes can sit under a built-in section (/sellers/shopify) instead of being taken by its record page.

  • #14932 af9df9f Thanks @damianlegawiec! - The orders and draft orders lists can be filtered by market and locale, and show both as optional columns. Table definitions gain a locale filter type that lists the store's languages by name.

  • #14940 44b1933 Thanks @damianlegawiec! - Added product page slots for plugins: product.form_main at the end of the main column, product.media.form_fields in the media editor, product.media.actions in the Media card, and product.variant.form_fields in the variant editor, with seller.product.* counterparts in the seller panel. product.form_sidebar now also renders on the new product page, and both column slots receive mode. Fields on a media or variant row register under the product.media and product.variant form keys and save with the product.

  • #14940 44b1933 Thanks @damianlegawiec! - Added <resource>.form_fields slots to the create and edit sheets for markets, stock locations, tax rates, tax categories, sales channels, policies, package types, product types, delivery zones, delivery methods, option types and customer groups. Fields a widget binds there save with the sheet. The seller panel's stock location and package type sheets use seller.stock_location.form_fields and seller.package_type.form_fields. HostFormSlot renders a slot that exposes a form which isn't wrapped in FormProvider.

Patch Changes

  • #14938 7c295c4 Thanks @damianlegawiec! - Moved the money, percentage, typed-amount, display-name and code-shape helpers and the list of currencies still in use into @spree/core, which the dashboard packages and the seller panel now depend on. @spree/dashboard-core still exports them under the same names.

    • A customer's average order value is now worked out exactly.
    • Calculator summaries show money with each currency's own number of decimals.
    • The bulk variant editor now reads 1,500 as fifteen hundred and 1,234.5 correctly when you type or paste a weight or dimension.
  • #14944 a0e5b66 Thanks @damianlegawiec! - Added every status, kind and other value list the Spree API returns to @spree/core, each as a list of its values (PRODUCT_STATUSES, MEDIA_TYPES, …) and a type (ProductStatus, MediaType, …) — open where extensions may add values, closed otherwise — plus subsetOf for picking the values an action accepts with each one checked at compile time. The SDKs re-export these types instead of each carrying its own copy, so their names and values are unchanged. The dashboards and the seller panel build their status filters and action checks from these lists, so a status added on the server shows up without a dashboard change. Value lists the SDKs used to spell out inline, such as a seller transfer's kind, now have names of their own; MediaType, CollectionRuleMatchPolicy and CollectionSortOrder in @spree/admin-sdk, and ClaimResolution in @spree/dashboard-ui, now come from the generated lists under the same names. A seller's tax_remittance and payouts_schedule_interval, a claim's resolution, a collection's sort_order, a shipping label's format, purchase order and stock transfer statuses, and tax and commission lines' taxability_reason are now typed with their lists instead of as plain strings.

  • Updated dependencies [a0e5b66]:

1.0.0-rc.4

Patch Changes

  • #14917 dd72579 Thanks @damianlegawiec! - Apps no longer choose the versions of @tanstack/react-table, @tanstack/react-hotkeys and @hookform/resolvers used inside the dashboard packages: they are now regular dependencies, so upgrading them in an app (for example to React Table 9) no longer breaks type checking or the dashboard itself. Table column definitions are available as DataGridColumn from @spree/dashboard-ui. The TipTap menu extensions are pinned to the same version as the rest of the editor.

    @spree/dashboard and @spree/seller-dashboard now list the libraries they share with the app (React, TanStack Router and Query, React Hook Form, i18next, react-i18next and the Spree dashboard packages) as peer dependencies, so the app's copy is the only one. Before, an app on a different version got a second copy, which crashes React or makes plugins disappear. Apps must list these packages as their own dependencies; the starter templates now include React Hook Form, i18next and react-i18next.

  • #14907 04760bf Thanks @damianlegawiec! - Ticking or unticking a value in the "Add filter" panel no longer reorders the list. Values selected when the panel opens are still shown first.

  • #14907 04760bf Thanks @damianlegawiec! - Search pickers keep the option you pick instead of flickering and switching to another value while results load.

1.0.0-rc.3

Minor Changes

  • #14856 05d6372 Thanks @damianlegawiec! - The Admin and Seller APIs no longer return display_* money fields, so their types drop them; format the amount with its currency instead. The dashboard and seller panel format every amount in the admin's own language. formatMoney writes a currency's ISO 4217 decimals and takes { unitPrice: true } for up to four.

  • #14859 9728851 Thanks @damianlegawiec! - Plugins and host apps can now add pages outside a store, such as onboarding, sign-up and account pages. File routes go in the new authenticatedRoutes (signed-in users) or publicRoutes (anyone) directories of a plugin's spree.dashboard marker; registry routes take scope: 'authenticated' or scope: 'public' with a full URL path. Both mount at the root, outside the store layout, and a page that takes the path of a built-in page fails with an error naming it.

    The signed-in landing page at / can be replaced through the new store_selection slot, for example with a list of stores and a way to create one, and the login page renders extra content, such as a sign-up link, from the new login.after slot.

  • #14866 cbde8fe Thanks @damianlegawiec! - directUploads.create() is replaced by files.create() and files.upload(), which uploads a file and resolves to a signed_id in one call, either straight to storage or in the request itself. The signed_id expires after a day. Every parameter that takes one is now named signed_id or <slot>_signed_id (avatar_signed_id, logo_signed_id, attachment_signed_id, document_signed_id, file_signed_id, po_document_signed_id, …). In @spree/dashboard-core, useDirectUpload becomes useFileUpload({ visibility }), and signedIdParam builds the three-state write for an image or document field.

Patch Changes

  • #14852 3525c00 Thanks @damianlegawiec! - Money fields are now shown and read in the number format of the person using the dashboard, whatever the currency or market: an admin whose dashboard is in German types 1.234,56 for dollars and euros alike. Previously the format followed the currency's market, which was ambiguous when two markets shared a currency. useFormCurrencyLocale and the panel client's markets entry are removed; use useMoneyLocale().

  • #14856 f508a38 Thanks @damianlegawiec! - Preferences of the new money type are shown with their currency's symbol in settings forms and as money in calculator summaries, instead of being guessed from the preference's name. PreferenceField.type documents the money type.

  • #14854 90af080 Thanks @damianlegawiec! - List methods of documented endpoints now accept typed filter and sort parameters, generated from the filters each endpoint actually accepts; methods of endpoints the API reference does not document yet keep loose parameters. A misspelled filter, a filter the endpoint does not support, or an unknown sort field is now a type error instead of a request that silently returns the unfiltered list. ProductListParams, CategoryListParams, CollectionListParams and OrderListParams keep their names and are now generated; they no longer accept arbitrary keys. Filters an app adds through its own extensions can be sent unchecked inside q (list({ q: { erp_id_eq: 'ERP-1' } })), generated as declarations with spree filters types, or declared by hand by extending <Resource>FilterExtensions and <Resource>SortExtensions. The filter building blocks (TextFilters, SortKey, …) are exported for those declarations.

    The dashboard's allowed-origins search, delivery zones by profile, and several filters and sorts on payment methods, sellers, option types, markets, custom field definitions and gift cards now take effect; the API used to ignore them.

1.0.0-rc.2

Patch Changes

  • #14845 9a0a293 Thanks @damianlegawiec! - Fixed type checking in projects that install the dashboard or seller panel with pnpm. The generated route file imported the routes through the package's node_modules link, where TypeScript cannot find the dashboard's own dependencies, so tsc reported hundreds of "Cannot find module" errors. It now imports them from the installed location again. Under pnpm that location includes the package version, so an upgrade rewrites the import paths in routeTree.gen.ts.

1.0.0-rc.1

Minor Changes

  • #14785 4bd1741 Thanks @damianlegawiec! - Added an email template editor under Settings → Emails → Templates. Merchants edit the emails customers receive, the email layout and shared blocks with a code editor that suggests variables and marks problems by line, next to a live preview (desktop and mobile, email and plain text). Edits save as drafts and go live when published; drafts can be discarded, templates reverted to Spree's default, test emails sent to yourself, and earlier versions restored from the history. A banner shows when a Spree upgrade changed a default the store customized, with a side-by-side comparison. The email settings page gains a Branding card for the colors and font of customer emails, with a preview. @spree/dashboard-ui adds a CodeEditor (deep import @spree/dashboard-ui/ui/code-editor) and a useDebouncedValue hook; @spree/dashboard-core adds the EmailTemplate permission subject.

Patch Changes

  • #14818 7fa7a64 Thanks @damianlegawiec! - Search pickers (customers, products, sellers and others) now search again each time they open, so a record created elsewhere in the dashboard shows up without reloading the page.

  • #14764 291238d Thanks @damianlegawiec! - Fixed the seller panel opening with an empty sidebar when a seller returned with a live session but no remembered seller, for example after the browser cleared site storage. The panel now loads the seller's permissions once it knows which seller is active.

  • #14747 a0151c1 Thanks @damianlegawiec! - Fixed the setup screen of a new project reloading while the merchant was filling it in. The generated route file now refers to installed packages by their stable location, and spree add generates it right after installing, so the first dev start has nothing to rewrite. Upgrades also no longer rewrite every line of that file, so its diff shows only the pages an upgrade added.

  • #14789 f52fc12 Thanks @damianlegawiec! - Tier threshold and discount inputs now carry accessible names, so screen readers announce what each field is.

  • #14789 f52fc12 Thanks @damianlegawiec! - The tiers editor for the tiered percent and tiered flat rate calculators now reads and writes tiers as a list of { threshold, value } entries, the shape Spree 6.0 stores them in. It still reads the old hash keyed by threshold, so a calculator the upgrade has not converted yet opens correctly.

1.0.0-beta.8

1.0.0-beta.7

Patch Changes

  • 928c1ba Thanks @damianlegawiec! - Fixed the dashboard failing to start in newly created projects.

    Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with SyntaxError: ... does not provide an export named 'useSyncExternalStore'. The store setup form had switched to deep imports into @spree/dashboard-ui and @spree/dashboard-core, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.

1.0.0-beta.6

1.0.0-beta.5

1.0.0-beta.4

Minor Changes

  • #14716 9cd3d42 Thanks @damianlegawiec! - Host apps that build their own screens on the dashboard packages can now import the sign-in building blocks directly: @spree/dashboard/components/spree/auth-shell (AuthShell), @spree/dashboard/hooks/use-auth-providers (useAuthProviders, plus authCallbackErrorKey for the errors the SSO callback redirects back with) and @spree/dashboard/schemas/auth (the auth form schemas). The admin.fields.setup.* translations moved to @spree/dashboard-core, so StoreSetupFields renders translated outside the full dashboard too.

Patch Changes

  • #14730 6742c1a Thanks @damianlegawiec! - Fixed the Edit prices grid on a market with a comma decimal saving a typed 19.50 as 1950. A period followed by anything other than three digits is now read as a decimal point, and the grid shows exactly the amount it will save.

  • #14717 c2d6f40 Thanks @damianlegawiec! - @spree/dashboard-core now exposes @spree/dashboard-core/client (adminClient) and @spree/dashboard-core/api-client (setApiClient), so a small app that only needs the Admin API client and sign-in no longer bundles the whole framework through the package entry point. StoreSetupFields imports only the modules it uses, cutting a minimal app that mounts it from about 2.2 MB to 0.9 MB of JavaScript.

  • #14714 741345d Thanks @damianlegawiec! - @types/spark-md5 is now a regular dependency. The package ships TypeScript source, so its consumers type-check use-direct-upload, and tsc failed with "Could not find a declaration file for module 'spark-md5'" unless each app installed the types itself.

  • #14727 a862b80 Thanks @damianlegawiec! - The dashboard now refers to customers by their 6.0 class name, Spree::Customer, instead of the pre-6.0 Spree::User. This fixes the Customers list's Tags filter, which always showed "No results", along with customer permission checks and customer custom fields. client.customFields('Spree::Customer', id) is now supported; 'Spree::User' keeps working until 6.1.

  • #14721 5f2b412 Thanks @damianlegawiec! - An exchange's replacement fulfillment, its packing slip and the Exchanges card now name the replacement product instead of the original one.

  • #14691 86d4b93 Thanks @damianlegawiec! - Added a "no store access" screen for admins who sign in without a role on any store, replacing the sign-in redirect loop they hit before. Hosts can replace the screen by registering on the new no_store_access slot (NO_STORE_ACCESS_SLOT and NoStoreAccessSlotContext from @spree/dashboard-core).

  • #14676 854ebfe Thanks @RomanMaluf-Vaypol! - Added a complete Spanish (mostly Rioplatense/voseo) translation bundle for the admin dashboard. The language picker now lists "Español" with every framework and page string covered — the dashboard and dashboard-core ships matching es.json files with full key parity against en.json.

1.0.0-beta.3

1.0.0-beta.2

1.0.0-beta.1

Major Changes

  • #14458 da49f27 Thanks @mad-eel! - Renamed stock items to stock levels.

    Spree 6.0 renames Spree::StockItem to Spree::StockLevel, and the admin API and SDK follow. There is no compatibility shim on the client side, so update your code before upgrading:

    • client.stockItems is now client.stockLevels, and it calls /stock_levels instead of /stock_items.
    • The StockItem type is now StockLevel, and StockItemUpdateParams is now StockLevelUpdateParams.
    • StockLevelUpdateParams also gains reason, which labels a count correction in the stock history.
    • client.stockMovements is new, and reads the typed stock history behind those levels.
    • A variant's stock_items array is now stock_levels, on both reads and writes.
    • Subject.StockItem is now Subject.StockLevel in @spree/dashboard-core. The old name stays as a deprecated alias for one release.
    • Prefixed ids change from si_… to sl_…. Ids you stored earlier no longer resolve.

    Webhook endpoints keep working: Spree publishes both stock_level.* and the older stock_item.* events for one release, so existing subscriptions keep firing. The dashboard's event picker now offers the stock_level names, and shows any stock_item subscription you already have under its Custom section. Move your subscriptions over before Spree 6.1, when the old names stop being published.

Minor Changes

  • #14410 fdd88eb Thanks @mad-eel! - Add dashboard pages for business customers and tax configuration.

    Companies get a list and a detail page with their branches, tax registration and exemption certificates; a branch has its own page listing the buyers authorised to purchase for it. Customers gain the same tax registration panel on their profile. Tax rates get a settings page, and a market can now name the tax engine that prices it — showing what that engine cannot handle, so a merchant learns about a gap while configuring rather than from a tax bill.

    The admin SDK gains the customer tax-identifier endpoints and tax_provider on market params.

  • #14591 8e5dc20 Thanks @damianlegawiec! - Volume pricing: quantity breaks, percentage tiers and a price-list CSV.

    A price list can now carry a ladder per variant — a unit price from each quantity up — edited as tier rows in the price spreadsheet, and a catalog's percentage adjustment can step by quantity too. The catalog's price column shows how many tiers a variant carries, with the ladder on hover and a note that fixed tiers set the price regardless of the percentage.

    A price list's prices can be exported and imported as CSV, one rung per row keyed by SKU, from the list's own page and from the catalog that owns it. The import merges: rows in the file are written, a blank price removes that rung, and rungs the file does not mention are left alone. The admin SDK's price, price list and import types carry the new fields, and the import create call accepts the price list to merge into.

Patch Changes

  • #14521 9cee487 Thanks @damianlegawiec! - New address forms pre-select the store's default country.

    The Admin store payload now includes default_country_code (the same country the default market already answers). The shared address dialog uses it for new records and leaves an existing address's country alone.

  • #14632 67594a5 Thanks @damianlegawiec! - Country pickers load the country list once per page and reuse it.

    The list is reference data and does not change at runtime, so later address fields and country selects no longer call the API again.

  • #14413 99573b0 Thanks @damianlegawiec! - Edit the admin profile in a dialog opened from the user menu instead of a settings page. The /settings/profile route is removed; TopBar takes an onEditProfile handler and hides the menu item when none is supplied.

  • #14456 3a1ac28 Thanks @damianlegawiec! - Fix an endless reload when a store sets a non-English admin language.

    i18next was initialized with the stored language but only the English bundle, so it resolved the language to the fallback and reported English no matter what was stored. The store-default reconciler compares those two values to decide whether the page needs reloading, saw a permanent mismatch, and reloaded on every boot — each reload rotating a refresh token until the API's rate limit stopped it.

    Every bundle is now registered when i18next starts, so the stored language resolves to itself and the reconciler reloads only when the language genuinely changes.

  • #14378 027ed08 Thanks @damianlegawiec! - Redesign the user dropdown's theme and language controls into a compact "Preferences" section: theme is now a segmented control (System / Light / Dark) and language is a select-style pill.

  • #14637 9b8a7d5 Thanks @damianlegawiec! - Keep list and quote toolbar buttons working after the TipTap 3.31 pin. Two copies of prosemirror-model made wrap throw; pinning one version (and deduping it in the Vite plugin) restores the stock TipTap commands. Enter still persists as its own paragraph.

  • #14635 496431d Thanks @damianlegawiec! - Added a settings overview page to the seller panel, matching the operator dashboard's card grid of reachable settings areas.

  • #14514 3473696 Thanks @damianlegawiec! - Fix the filter panel crashing in the seller panel. TableToolbar, ResourceCombobox and MediaPickerSheet required a StoreProvider to scope their query keys, so opening a filter panel in a panel that has no store — the seller panel, whose tenant is a seller — threw "useStore must be used within a StoreProvider". They now scope by tenant, which is the store in the operator's dashboard and the seller in the seller panel, so cached results can no longer be shared between two sellers of the same store either.

  • #14594 4156d50 Thanks @damianlegawiec! - Stop the translations editor marking itself dirty on open, and refresh the translations page after a save or a catalog edit.

    The rich-text cell was treating TipTap's mount-time paragraph wrap as an unsaved change against descriptions stored as plain text. Translation queries now share one cache prefix so saving a translation, editing the source record, or importing a translations CSV invalidates the coverage grid instead of leaving it stale.

0.13.1

Patch Changes

  • #14353 8bf0dd0 Thanks @ifizza! - Searchable and sortable custom fields now appear as first-class product table columns. Definitions can be marked searchable/sortable from the definition form, and the new metafieldColumns prop on ResourceTable merges them into the column selector, the Sort dropdown, and the filter panel — with operators matching each field type. ColumnDef gains an expand field so a visible column can declare the association the list request must expand.

  • #14363 705e515 Thanks @damianlegawiec! - Breaking (Admin API): type on imports and exports is now the API shorthand ("products", "customers", "product_translations", "orders", "gift_cards", "coupon_codes", "newsletter_subscribers") instead of the Ruby class name ("Spree::Imports::Products"). ImportType and ExportType are typed accordingly.

    Creating an import or export accepts either form, so a type read back from the API round-trips. Ransack filters (type_eq) are unaffected — they match the database column and still take the class name.

    Polymorphic type fields follow the same convention: owner_type on imports and item_type on import rows now return "store" / "product" rather than "Spree::Store" / "Spree::Product".

  • #14363 705e515 Thanks @damianlegawiec! - The CSV import sheet now offers a downloadable example file alongside the existing (headers-only) template, so you can see a populated CSV before preparing your own — or import it as-is. The examples are Spree's own sample data, the same files rake spree:load_sample_data uses, served through GET /api/v3/admin/imports/example and pinned to the installed Spree version so they always match your import schema. Import types with no example file simply omit the link.

  • #14357 f811d1e Thanks @damianlegawiec! - The top-bar "View store" link is now only shown when the store has a storefront URL configured (preferred_storefront_url), and the sidebar store switcher is a real switcher: it lists every store the signed-in admin can access and navigates between store dashboards, rendering a plain header (no dropdown) for single-store admins. The switcher trigger also gains a localized accessible name.

0.13.0

Minor Changes

  • #14342 202d846 Thanks @damianlegawiec! - Add per-channel order routing rule management. @spree/admin-sdk gains channels.orderRoutingRules.{list,get,create,update,delete} (nested under /channels/:channel_id/order_routing_rules) plus orderRoutingRules.types() for rule-kind discovery; the admin Store type now exposes preferred_order_routing_strategy. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. Subject.OrderRoutingRule is available for permission checks.

  • #14341 dc33237 Thanks @damianlegawiec! - Improve editing of quantity-bounded price rules. A blank upper-bound preference (max_quantity, max_uses, maximum_amount, …) now shows "Unlimited" instead of an empty required-looking field across every preferences form. The Volume price rule gains a dedicated editor that renders minimum quantity before maximum, so a case-pack minimum reads in a natural order.

0.12.0

0.10.2

Patch Changes

  • Fix the collapsed icon sidebar leaking a nav item's label when the item carries a badge. The collapse rule hid only the last span of the menu button, and a trailing badge took that slot — the label stayed visible and wrapped, breaking the collapsed layout. Both the label and badge are now hidden explicitly in collapsed icon mode.