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.
@spree/dashboard-ui
6.0.2
Patch Changes
#15029
4cfb2abThanks @damianlegawiec! - The command palette is now built on Base UI's Autocomplete instead ofcmdk, so the dashboard no longer installscmdkor any Radix packages. It looks and works the same: arrow keys move the highlight, Enter opens the highlighted row and Escape closes the palette. TheCommandcomponents in@spree/dashboard-uikeep the props the dashboard uses:shouldFilteronCommand,valueandonValueChangeonCommandInput,value,keywordsandonSelectonCommandItem, andheadingonCommandGroup. Thecmdkoptions onCommandfor the highlighted row (value,onValueChange), custom matching (filter) and wrap-around (loop) are no longer available.#15026
4e46436Thanks @damianlegawiec! -@spree/dashboard-uino longer installs the shadcn CLI and its roughly 300 dependencies in host apps. The one stylesheet it used from that package now ships inside@spree/dashboard-ui, so the dashboard looks exactly the same.#15022
8890e33Thanks @damianlegawiec! - Removed dependencies the packages no longer use, so installs are smaller.@spree/dashboardno longer listsnext-themesor its own copies of the packages@spree/dashboard-uialready brings.@spree/seller-dashboarddrops@dnd-kitandlucide-react, and@spree/dashboard-uidrops the unused TipTap bubble and floating menu extensions. Nothing changes for host apps or plugins.#15040
7416961Thanks @damianlegawiec! - The staff settings page shows each member's status (active, locked or deactivated) and when they were last active. A new "View details" action opens a sheet with when they joined, who invited them and their signed-in sessions, each with its browser, IP address and last use. The admin SDK types gainstatus,last_active_at, theinviterandsessionsexpands, and theSessionandAdminUserStatustypes;@spree/dashboard-uiaddsBrowserIcon.Updated dependencies [
7416961]:
6.0.1
Patch Changes
#15006
f227994Thanks @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
27bbcfaThanks @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
9f0550eThanks @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-uiasStepIconandStepProgressRing.AppShellgains asidebarWidgetprop for cards pinned above the account menu.#15004
6116abfThanks @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
- #14982
348c5bbThanks @damianlegawiec! -TabsTriggertakes acountto show a tally next to the tab's label.StatusBadgecolors the maintenance task run statuses, andWrenchIconis exported from@spree/dashboard-ui/icons.
Patch Changes
- #14983
e22669bThanks @damianlegawiec! - Fixed the dashboard crashing when a Save button started saving while the browser was translating the page. - Updated dependencies [
348c5bb]:
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
Patch Changes
- #14970
fb8a9ceThanks @damianlegawiec! - A webhook endpoint's subscriptions must now be*, an event name, or a name with*in place of whole segments (order.*,*.created), with at most 200 entries of up to 100 characters each; the API's 422 names the rejected entries.@spree/coreexports the rule asWEBHOOK_EVENT_PATTERN,isWebhookEventPattern,WEBHOOK_SUBSCRIPTION_MAX_LENGTHandWEBHOOK_SUBSCRIPTIONS_MAX, and the dashboard's webhook form checks it before saving, refusing an invalid custom event inline.FieldErrorno longer crashes on the sparse per-item error array react-hook-form produces. - Updated dependencies []:
1.0.0-rc.5
Minor Changes
#14911
3ca1f5eThanks @KacperMekarski! - Company members can now pick their company's addresses when choosing where an order goes. Picking a company site at checkout used to be dropped without an error, because the cart only ever looked in the buyer's own address book. A newGET /store/carts/:id/addressesreturns everything a cart may be shipped or billed to — the buyer's book plus the sites of the company set as the cart'scompany_idand the ones it inherits, limited to the countries the cart's market sells to — andclient.carts.addresses.list()reaches it. The company has to be set on the cart explicitly: a buyer who belongs to a single company is not assumed to be buying for it when it comes to addresses. EveryAddressnow carries theownerit is filed under (nullfor an address in no book, such as the copy a placed order keeps), so a picker can label the two books from one response. On the Admin API thisownerobject replaces the separateowner_idandowner_typefields. Unlike the other cart endpoints this one needs a signed-in customer: it answers with the account's address books rather than the cart's own contents. Staff get the same reach: a company's sites are selectable when creating an order, and "use default addresses" takes the company's defaults for a company order. On a division's page, addresses inherited from the companies above it are labelled with their owner and cannot be edited there.#14939
9c73a79Thanks @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 theirproduct.variant.form_fieldsandproduct.media.form_fieldsslots can save on Done throughonSave.FormActionsanduseFormSubmitShortcutacceptdirtyfor unsaved changes held outside the form.client.customFields(ownerType, ownerId)accepts each of these types.
Patch Changes
- #14944
a0e5b66Thanks @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 — plussubsetOffor 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'skind, now have names of their own;MediaType,CollectionRuleMatchPolicyandCollectionSortOrderin@spree/admin-sdk, andClaimResolutionin@spree/dashboard-ui, now come from the generated lists under the same names. A seller'stax_remittanceandpayouts_schedule_interval, a claim'sresolution, a collection'ssort_order, a shipping label'sformat, purchase order and stock transfer statuses, and tax and commission lines'taxability_reasonare now typed with their lists instead of as plain strings. - Updated dependencies [
a0e5b66]:
1.0.0-rc.4
Patch Changes
#14917
dd72579Thanks @damianlegawiec! - Apps no longer choose the versions of@tanstack/react-table,@tanstack/react-hotkeysand@hookform/resolversused 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 asDataGridColumnfrom@spree/dashboard-ui. The TipTap menu extensions are pinned to the same version as the rest of the editor.@spree/dashboardand@spree/seller-dashboardnow 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
04760bfThanks @damianlegawiec! - Search pickers keep the option you pick instead of flickering and switching to another value while results load.#14907
04760bfThanks @damianlegawiec! - Toasts now stack behind each other and fan out on hover, matching the shadcn toast.
1.0.0-rc.3
Minor Changes
#14856
05d6372Thanks @damianlegawiec! - The Admin and Seller APIs no longer returndisplay_*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.formatMoneywrites a currency's ISO 4217 decimals and takes{ unitPrice: true }for up to four.#14866
cbde8feThanks @damianlegawiec! -directUploads.create()is replaced byfiles.create()andfiles.upload(), which uploads a file and resolves to asigned_idin one call, either straight to storage or in the request itself. Thesigned_idexpires after a day. Every parameter that takes one is now namedsigned_idor<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,useDirectUploadbecomesuseFileUpload({ visibility }), andsignedIdParambuilds the three-state write for an image or document field.
Patch Changes
- #14856
f508a38Thanks @damianlegawiec! - Preferences of the newmoneytype 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.typedocuments themoneytype.
1.0.0-rc.2
Patch Changes
- #14846
dca32dbThanks @damianlegawiec! - Projects that install the dashboard packages from npm now get a single copy of the rich text editor library.@spree/dashboardno longer declares its own, looser TipTap ranges next to the exact versions in@spree/dashboard-ui, so a newer TipTap release can no longer install beside the pinned one and break type checking.
1.0.0-rc.1
Minor Changes
- #14785
4bd1741Thanks @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-uiadds aCodeEditor(deep import@spree/dashboard-ui/ui/code-editor) and auseDebouncedValuehook;@spree/dashboard-coreadds theEmailTemplatepermission subject.
Patch Changes
#14789
f52fc12Thanks @damianlegawiec! - The calculator summary on promotion action rows shows how many tiers a tiered calculator has, instead of[object Object].#14776
9335e9fThanks @mad-eel! - The New claim dialog now pre-fills each line's refund with what the customer paid for those items after discounts, instead of their list price, which the claim would refuse to refund on a discounted order. The amount follows the claimed quantity until the merchant types one of their own. Code that builds the dialog's lines itself passesdiscountedAmount(the line'sdiscounted_amount) in place ofprice, whichClaimableLineno longer accepts.#14776
9335e9fThanks @mad-eel! - A received return that is owed nothing, such as a free gift sent back, now offers "Complete return" instead of "Refund". The dialog explains that no money goes back and closes the return without asking for an amount or a refund method.#14799
c9d9a2fThanks @mad-eel! - The refund dialog says how much tax the pre-filled amount gives back, and the claim dialog pre-fills each line with the tax the customer paid on top of the price. Shipping an exchange whose replacement costs more asks first, because the difference is added to the order as a balance due, and that fee is labelled "Exchange" on the order.#14778
3a2a78bThanks @mad-eel! - Fixed pressing Escape in a multi-select picker removing every chosen item. After searching and picking a category, the Escape meant to close the search emptied the whole field, and saving the product then stored no categories. Escape no longer removes chosen items, which are removed with their own remove button or Backspace; with the list already closed, it closes the surrounding sheet or dialog instead.#14799
c9d9a2fThanks @mad-eel! - Admin returns carrydisplay_refunded_total. A refunded return's card in the dashboard and the seller panel now shows what was actually refunded instead of what the return was worth, and names both when less went back, for example "Refunded $25.00 of $30.26".
1.0.0-beta.8
1.0.0-beta.7
Patch Changes
928c1baThanks @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-uiand@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
Patch Changes
0b50f65Thanks @damianlegawiec! - Held Base UI at 1.5.0 so a scaffolded dashboard starts.@base-ui/react1.6.0 moved to@base-ui/utils0.3.x, which added auseStorehelper importinguseSyncExternalStoreby name from the CommonJSuse-sync-external-storeshim. Vite converts CommonJS while prebundling an ordinary dependency, but@spree/dashboard-uiships source: in the Spree monorepo it is a workspace link that Vite crawls as application source, while an installed copy lives innode_modulesand is not crawled. That file then reaches the browser with the named CommonJS import intact and the dashboard fails with aSyntaxErrorbefore rendering.1.5.0 pins
@base-ui/utils0.2.9, which has no such file. The previous release pinned 1.8.0 — exact, but on the wrong side of the change — so this supersedes it.3bc3e01Thanks @damianlegawiec! - Pinned every@spree/dashboard-uidependency to an exact version.The package ships source rather than a bundle, so its dependencies are compiled into each consuming app by that app's own Vite. A floating range means a scaffolded project installs whatever those packages published most recently, not what Spree built and tested against — which is how a Base UI release that had never been tested here reached users and stopped the dashboard from starting.
rechartsmoves to 3.10.1 as part of this: 3.8.1 pinnedreselect5.1.1, which published without the provenance its predecessors had, so the workspace'sno-downgradetrust policy refuses it. 3.10.1 resolvesreselect5.2.0, which carries provenance again.react-reduxis overridden to 9.3.0 for the same reason — 9.2.0 dropped the provenance 9.1.0 had, and recharts' own range accepts 9.3.0.Every other pin records the version already installed, so nothing else about the tree changes.
1.0.0-beta.5
Patch Changes
35fb9e8Thanks @damianlegawiec! - Pinned Base UI to an exact version so a scaffolded dashboard boots.@base-ui/reactwas caret-ranged, so every new project installed whatever Base UI had published most recently rather than the version Spree tested against.@base-ui/utils0.3.0 added auseStorehelper that importsuseSyncExternalStoreby name from the CommonJSuse-sync-external-storeshim. Vite converts that during prebundling for an ordinary dependency, but@spree/dashboard-uiships source, so an installed copy reached the browser with the named CommonJS import intact and the dashboard failed to start with aSyntaxError.The monorepo's committed lockfile hid this — only fresh installs floated onto the newer Base UI. It is now pinned exactly, in the packages and as a workspace override, and the monorepo runs the same version a scaffold installs.
1.0.0-beta.4
Patch Changes
#14730
6742c1aThanks @damianlegawiec! - Fixed the Edit prices grid on a market with a comma decimal saving a typed19.50as 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.#14729
61f902fThanks @damianlegawiec! - A spreadsheet cell being edited now keeps its value when you leave it by clicking somewhere else, the same as leaving it with Tab or Enter. Before, a price, compare-at price or stock count typed on the product form was dropped when you clicked into another field or pressed Save.
1.0.0-beta.3
1.0.0-beta.2
Minor Changes
Removed the address map from the design system.
The map was rendered on one card — a seller's billing and returns addresses — and could not plot anything, because Spree addresses carry no coordinates. It also cost every dashboard user around a megabyte of MapLibre in the main bundle.
Its
?worker&urlimport made the package impossible to install, too: Vite's dependency optimizer cannot resolve that specifier insidenode_modules, so any project depending on@spree/dashboard-uifailed to start its dev server. Projects on the previous release should upgrade.
1.0.0-beta.1
Minor Changes
#14410
fdd88ebThanks @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_provideron market params.#14591
8e5dc20Thanks @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
#14633
c0f6ccdThanks @damianlegawiec! - Fix the dashboard date range picker remembering "Last 30 days" after another preset is chosen.The trigger label lived in local state that reset whenever analytics refetch replaced the page. It now follows the selected dates, so Last 90 days stays selected after the figures update.
#14378
027ed08Thanks @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.#14429
226557bThanks @damianlegawiec! - Align status badge colours with the Geist colour system: each of the success, warning, destructive and info variants now pairs a tint with a matching reading colour from the same hue, in both light and dark themes, and every variant meets WCAG AA against its own fill. Fixes awarningbadge that changed colour entirely on hover, and an outline badge whose border never rendered.#14502
eb59f05Thanks @damianlegawiec! - Declare the dependencies behindstyles.cssimports:tailwindcssas a peer (plus dev) dependency andshadcnas a regular dependency. Previously both were undeclared for consumers, so@import "tailwindcss"and@import "shadcn/tailwind.css"only resolved when pnpm's on-disk layout happened to allow it, failing withCannot apply unknown utility classotherwise.#14631
38207ceThanks @damianlegawiec! - Hide the pagination footer when a list has no rows, so empty tables no longer show "0–0 of 0" or a rows-per-page control.#14637
9b8a7d5Thanks @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.#14532
be76364Thanks @damianlegawiec! - Stop the admin sidebar's Cmd/Ctrl+B shortcut from firing while typing, and restore list, quote and link styling plus live toolbar states in the rich-text editor.#14594
4156d50Thanks @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
0.13.0
Minor Changes
- #14342
202d846Thanks @damianlegawiec! - Add per-channel order routing rule management.@spree/admin-sdkgainschannels.orderRoutingRules.{list,get,create,update,delete}(nested under/channels/:channel_id/order_routing_rules) plusorderRoutingRules.types()for rule-kind discovery; the adminStoretype now exposespreferred_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.OrderRoutingRuleis available for permission checks.