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.

Added Spree Enterprise feature previews to the dashboard (#14935)

Damian Legawiecab4f2b055e75
diff --git a/.changeset/enterprise-previews.md b/.changeset/enterprise-previews.md
new file mode 100644
index 0000000000..a625a4e331
--- /dev/null
+++ b/.changeset/enterprise-previews.md
@@ -0,0 +1,6 @@
+---
+"@spree/dashboard": minor
+"@spree/dashboard-core": minor
+---
+
+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.
diff --git a/docs/developer/dashboard/customization/navigation.mdx b/docs/developer/dashboard/customization/navigation.mdx
index a1704fdad5..9ef3218059 100644
--- a/docs/developer/dashboard/customization/navigation.mdx
+++ b/docs/developer/dashboard/customization/navigation.mdx
@@ -28,7 +28,7 @@ nav.add({
})
```
-`position` controls ordering — built-ins run 50–600 (Getting Started 50 when shown, Home 100, Orders 200, Products 300, Inventory 350, Customers 400, Sellers 450, Loyalty 475, Promotions 500, Reports 600), leaving gaps to slot into. The default is 100. Keys must be unique, including against the built-in keys (`getting-started`, `home`, `orders`, `products`, `inventory`, `customers`, `sellers`, `loyalty`, `promotions`, `reports`, `settings`) — duplicates throw at boot.
+`position` controls ordering — built-ins run 50–600 (Getting Started 50 when shown, Home 100, Orders 200, Products 300, Inventory 350, Customers 400, Companies 425, Sellers 450, Loyalty 475, Promotions 500, Reports 600), leaving gaps to slot into. The default is 100. Keys must be unique, including against the built-in keys (`getting-started`, `home`, `orders`, `products`, `inventory`, `customers`, `companies`, `sellers`, `loyalty`, `promotions`, `reports`, `settings`) — duplicates throw at boot.
### Add via `defineDashboardPlugin`
@@ -197,6 +197,50 @@ settingsNav.add({
})
```
+### Badges
+
+A settings entry can render a component after its label, in the settings sidebar and on the settings landing page — the same contract as `badge` on a main sidebar entry:
+
+```ts
+settingsNav.add({
+ key: 'stripe-tax',
+ label: 'Stripe Tax',
+ path: '/integrations/stripe-tax',
+ group: 'integrations',
+ badge: StripeTaxStatusBadge,
+})
+```
+
+A plugin page whose route path starts with `/settings` is wrapped in the same container as the built-in settings pages, so it starts at `<div className="flex flex-col gap-6">` without its own padding.
+
+## Spree Enterprise previews
+
+The dashboard lists a few [Spree Enterprise](https://spreecommerce.org/enterprise/) features where they would appear once installed, marked with a small Enterprise sign:
+
+| Entry | Where | Path |
+| --- | --- | --- |
+| Quotes | Orders | `/orders/quotes` |
+| Onboarding | Companies | `/companies/onboarding` |
+| Shopify | Sellers | `/sellers/shopify` |
+| Lots | Inventory | `/inventory/lots` |
+| Audit log | Settings → Users & permissions | `/settings/audit-log` |
+
+Each opens a page explaining the feature. Draft orders and seller pages also show a short note about the matching feature. The previews make no requests and collect nothing; the "Get Spree Enterprise" link is tagged with the feature it came from.
+
+To build a dashboard without them — for example one you hand over to a client — set the variable when building:
+
+```bash
+VITE_SPREE_ENTERPRISE_PREVIEWS=false pnpm build
+```
+
+Each preview sits at the path its Enterprise page uses, so links and bookmarks keep working after an upgrade. Spree Enterprise ships the real page as a [file route](/developer/dashboard/customization/routes#file-routes-packaged-plugins) at that path, which takes over from the preview page on its own, and removes the preview's sidebar entry and in-context notes:
+
+```ts
+import { enterprisePreviews } from '@spree/dashboard'
+
+enterprisePreviews.remove('orders.quotes')
+```
+
## Permission gating
`subject` on a nav entry checks `permissions.can('read', subject)` — when it fails, the sidebar item is hidden. **This is UX, not authorization.** The backend still enforces permissions on every API call. Hiding the link is a hint, not a security boundary.
diff --git a/docs/developer/dashboard/customization/routes.mdx b/docs/developer/dashboard/customization/routes.mdx
index a009ec9744..34dfe57e5d 100644
--- a/docs/developer/dashboard/customization/routes.mdx
+++ b/docs/developer/dashboard/customization/routes.mdx
@@ -90,6 +90,8 @@ defineDashboardPlugin({
`path` is **relative** to `/$storeId` — the dispatcher prepends the prefix at match time. So `/reports` matches the URL `/store_xyz/reports`. The leading `/` is required.
+A registry route can sit under a built-in section, next to its record pages: `/sellers/shopify` renders your page, not a seller whose ID is `shopify`. A registry route wins only where it is more specific than the built-in page — fixed segments beat `$params` — so it can never replace a built-in page at the same path, or claim every record with a pattern such as `/sellers/$id`.
+
## Pages outside a store
Most pages live inside a store, under `/$storeId`. Some don't belong to one: an onboarding flow, a sign-up page, an account page, terms of service. Both mechanisms can mount pages at the root instead, in one of two scopes:
diff --git a/packages/dashboard-core/src/components/nav-main.tsx b/packages/dashboard-core/src/components/nav-main.tsx
index b56cc37cea..b18693cfc9 100644
--- a/packages/dashboard-core/src/components/nav-main.tsx
+++ b/packages/dashboard-core/src/components/nav-main.tsx
@@ -183,6 +183,11 @@ function CollapsedDropdown({
<DropdownMenuItem key={subItem.title} asChild>
<Link to={subItem.url} className="no-underline">
{subItem.title}
+ {subItem.badge && (
+ <span className="ms-auto shrink-0 ps-3">
+ <subItem.badge />
+ </span>
+ )}
</Link>
</DropdownMenuItem>
))}
@@ -261,9 +266,9 @@ function NavItemContent({
<SidebarMenuSubItem key={subItem.title}>
<SidebarMenuSubButton asChild isActive={subActive}>
<Link to={subItem.url}>
- <span>{subItem.title}</span>
+ <span className="truncate">{subItem.title}</span>
{subItem.badge && (
- <span className="ml-auto">
+ <span className="ml-auto shrink-0">
<subItem.badge />
</span>
)}
diff --git a/packages/dashboard-core/src/components/settings-sidebar.tsx b/packages/dashboard-core/src/components/settings-sidebar.tsx
index 76b33314db..f1e77fae55 100644
--- a/packages/dashboard-core/src/components/settings-sidebar.tsx
+++ b/packages/dashboard-core/src/components/settings-sidebar.tsx
@@ -358,8 +358,15 @@ function SettingsItem({
<SidebarMenuButton asChild isActive={isActive}>
<Link to={url} tabIndex={tabIndex}>
<NavIcon icon={Icon} isActive={isActive} />
- <span>{label}</span>
+ {/* `truncate` so a long translated label gives way to the badge
+ rather than pushing it out of the sidebar. */}
+ <span className="truncate">{label}</span>
{entry.comingSoon && <SidebarMenuBadge className="ms-auto">Soon</SidebarMenuBadge>}
+ {entry.badge && (
+ <span className="ms-auto shrink-0">
+ <entry.badge />
+ </span>
+ )}
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
diff --git a/packages/dashboard-core/src/lib/route-registry.ts b/packages/dashboard-core/src/lib/route-registry.ts
index 5992ed8851..79bc44a1a1 100644
--- a/packages/dashboard-core/src/lib/route-registry.ts
+++ b/packages/dashboard-core/src/lib/route-registry.ts
@@ -183,6 +183,35 @@ export function matchPluginRoute(
return null
}
+/**
+ * Whether a registry route outranks the file route the router matched for the
+ * same URL, so it renders in that route's place. The router sends
+ * `/sellers/shopify` to `/sellers/$sellerId`, never to the catch-all, which
+ * would leave a plugin page under a first-party section unreachable.
+ *
+ * Uses the router's own ranking: segment by segment, a fixed segment beats a
+ * `$param`. A registry route therefore takes over only an address where it is
+ * more specific, never a first-party page at its own path or through a
+ * pattern like `/sellers/$id`.
+ *
+ * @param pluginPath the registry route's path, relative to `/$storeId`
+ * @param routerPath the matched file route's path, relative to `/$storeId`
+ */
+export function outranksRouterMatch(pluginPath: string, routerPath: string): boolean {
+ const pluginSegments = pathSegments(pluginPath)
+ const routerSegments = pathSegments(routerPath)
+ for (const [index, pluginSegment] of pluginSegments.entries()) {
+ const pluginFixed = !pluginSegment.startsWith('$')
+ const routerFixed = !(routerSegments[index] ?? '$').startsWith('$')
+ if (pluginFixed !== routerFixed) return pluginFixed
+ }
+ return false
+}
+
+function pathSegments(path: string): string[] {
+ return path.split('/').filter(Boolean)
+}
+
function isStoreRoute(entry: RouteEntry): entry is StoreRouteEntry {
return entry.scope === undefined || entry.scope === 'store'
}
diff --git a/packages/dashboard-core/src/lib/settings-nav-registry.ts b/packages/dashboard-core/src/lib/settings-nav-registry.ts
index 82b71d7c4d..449d462772 100644
--- a/packages/dashboard-core/src/lib/settings-nav-registry.ts
+++ b/packages/dashboard-core/src/lib/settings-nav-registry.ts
@@ -1,5 +1,5 @@
import type { LucideIcon } from 'lucide-react'
-import { useSyncExternalStore } from 'react'
+import { type ComponentType, useSyncExternalStore } from 'react'
import { ensureLabelled, resolveNavDescription, resolveNavLabel } from './nav-registry'
import type { ActionName, SubjectName } from './permissions'
@@ -75,6 +75,11 @@ export interface SettingsNavEntry {
action?: ActionName
/** When true, the page is disabled in the sidebar with a "Soon" badge. */
comingSoon?: boolean
+ /**
+ * Rendered after the label in the sidebar and on the settings landing page.
+ * A component — not an element — so it can call hooks and return null.
+ */
+ badge?: ComponentType
}
export interface SettingsNavGroup {
diff --git a/packages/dashboard-core/src/pages/settings-index.tsx b/packages/dashboard-core/src/pages/settings-index.tsx
index 557ffe4428..912b381bdf 100644
--- a/packages/dashboard-core/src/pages/settings-index.tsx
+++ b/packages/dashboard-core/src/pages/settings-index.tsx
@@ -103,7 +103,10 @@ function SettingsCard({ entry, tenantId }: { entry: SettingsNavEntry; tenantId:
>
<Icon className="mt-0.5 size-6 shrink-0 text-muted-foreground opacity-80 hover:opacity-100" />
<span className="flex min-w-0 flex-col gap-1">
- <span className="text-sm font-medium leading-none">{label}</span>
+ <span className="flex items-center gap-1.5 text-sm font-medium leading-none">
+ {label}
+ {entry.badge && <entry.badge />}
+ </span>
{description && <span className="text-sm text-muted-foreground">{description}</span>}
</span>
</Link>
diff --git a/packages/dashboard-core/tests/route-registry.test.ts b/packages/dashboard-core/tests/route-registry.test.ts
index f3e7215822..f831e7fd28 100644
--- a/packages/dashboard-core/tests/route-registry.test.ts
+++ b/packages/dashboard-core/tests/route-registry.test.ts
@@ -3,6 +3,7 @@ import {
__resetPluginRoutes,
getPluginRoutes,
matchPluginRoute,
+ outranksRouterMatch,
pluginRoutes,
type RouteEntry,
} from '../src/lib/route-registry'
@@ -48,6 +49,22 @@ describe('matchPluginRoute', () => {
})
})
+describe('outranksRouterMatch', () => {
+ it('takes an address the router gave to a record page', () => {
+ expect(outranksRouterMatch('/sellers/shopify', '/sellers/$sellerId')).toBe(true)
+ expect(outranksRouterMatch('/orders/quotes', '/orders/$orderId/')).toBe(true)
+ expect(outranksRouterMatch('/orders/quotes/$quoteId', '/orders/$orderId/edit')).toBe(true)
+ })
+
+ it('never takes over a first-party page', () => {
+ expect(outranksRouterMatch('/sellers/commission-rates', '/sellers/commission-rates')).toBe(
+ false,
+ )
+ expect(outranksRouterMatch('/sellers/$id', '/sellers/$sellerId')).toBe(false)
+ expect(outranksRouterMatch('/orders/$id/history', '/orders/drafts/$draftId')).toBe(false)
+ })
+})
+
describe('pluginRoutes.add', () => {
afterEach(() => __resetPluginRoutes())
diff --git a/packages/dashboard/e2e/enterprise-previews.spec.ts b/packages/dashboard/e2e/enterprise-previews.spec.ts
new file mode 100644
index 0000000000..710e67a471
--- /dev/null
+++ b/packages/dashboard/e2e/enterprise-previews.spec.ts
@@ -0,0 +1,47 @@
+import { expect, test } from '@playwright/test'
+import { login } from './helpers'
+
+test.describe('Enterprise previews', () => {
+ test('opens the quotes preview from the Orders section', async ({ page }) => {
+ const creds = await login(page)
+ await page.goto(`/${creds.store_id}/orders`)
+
+ await page.getByRole('link', { name: /^quotes/i }).click()
+
+ await expect(page.getByRole('heading', { name: /^quotes$/i })).toBeVisible({ timeout: 15_000 })
+ // Not an order numbered "quotes": the preview takes the address from the order page.
+ await expect(page).toHaveURL(new RegExp(`/${creds.store_id}/orders/quotes$`))
+ await expect(page.getByText(/^how it works$/i)).toBeVisible()
+ await expect(page.getByRole('link', { name: /^enterprise$/i })).toHaveAttribute(
+ 'href',
+ /^https:\/\/spreecommerce\.org\/enterprise\//,
+ )
+ await expect(page.getByRole('link', { name: /get spree enterprise/i }).first()).toHaveAttribute(
+ 'href',
+ /utm_campaign=quotes/,
+ )
+ })
+
+ test('lists Companies as its own section, with company onboarding under it', async ({ page }) => {
+ const creds = await login(page)
+ await page.goto(`/${creds.store_id}/companies`)
+
+ await page.getByRole('link', { name: /^onboarding/i }).click()
+
+ await expect(page.getByRole('heading', { name: /^company onboarding$/i })).toBeVisible({
+ timeout: 15_000,
+ })
+ await expect(page).toHaveURL(new RegExp(`/${creds.store_id}/companies/onboarding$`))
+ })
+
+ test('opens the audit log preview from Users & permissions settings', async ({ page }) => {
+ const creds = await login(page)
+ await page.goto(`/${creds.store_id}/settings/staff`)
+
+ await page.getByRole('link', { name: /^audit log/i }).click()
+
+ await expect(page.getByRole('heading', { name: /^audit log$/i })).toBeVisible({
+ timeout: 15_000,
+ })
+ })
+})
diff --git a/packages/dashboard/src/components/spree/enterprise-nav-badge.tsx b/packages/dashboard/src/components/spree/enterprise-nav-badge.tsx
new file mode 100644
index 0000000000..fa93a308a1
--- /dev/null
+++ b/packages/dashboard/src/components/spree/enterprise-nav-badge.tsx
@@ -0,0 +1,31 @@
+import { Badge, Tooltip, TooltipContent, TooltipTrigger } from '@spree/dashboard-ui'
+import { useTranslation } from 'react-i18next'
+
+/**
+ * The info alert's softer blue rather than the info badge: an Enterprise mark
+ * reads as a label beside its entry or title, not a status. Applied over the
+ * outline variant.
+ */
+export const ENTERPRISE_BADGE_CLASS =
+ 'border-blue-500/20 bg-blue-500/10 text-blue-800 dark:text-blue-300 [a]:hover:bg-blue-500/20 [a]:hover:text-blue-800 dark:[a]:hover:text-blue-300'
+
+/** Marks a sidebar entry that previews a Spree Enterprise feature. */
+export function EnterpriseNavBadge() {
+ const { t } = useTranslation()
+
+ return (
+ <Tooltip>
+ {/* A span, not a button: the badge sits inside the entry's link, which
+ already takes focus. */}
+ <TooltipTrigger asChild>
+ <Badge
+ variant="outline"
+ className={`${ENTERPRISE_BADGE_CLASS} h-4 px-1.5 text-[10px] tracking-wide uppercase`}
+ >
+ {t('admin.enterprise.badge')}
+ </Badge>
+ </TooltipTrigger>
+ <TooltipContent side="right">{t('admin.enterprise.available_in')}</TooltipContent>
+ </Tooltip>
+ )
+}
diff --git a/packages/dashboard/src/components/spree/enterprise-preview-page.tsx b/packages/dashboard/src/components/spree/enterprise-preview-page.tsx
new file mode 100644
index 0000000000..fe3ab8d616
--- /dev/null
+++ b/packages/dashboard/src/components/spree/enterprise-preview-page.tsx
@@ -0,0 +1,105 @@
+import { PageHeader } from '@spree/dashboard-core'
+import {
+ Badge,
+ Button,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+} from '@spree/dashboard-ui'
+import { SparklesIcon } from '@spree/dashboard-ui/icons'
+import { useTranslation } from 'react-i18next'
+import { type EnterprisePreview, enterpriseUrl } from '../../lib/enterprise-previews'
+import { ENTERPRISE_BADGE_CLASS } from './enterprise-nav-badge'
+
+/**
+ * Introduces a Spree Enterprise feature where its real page will be: what it
+ * does, how it works, and where to get it.
+ */
+export function EnterprisePreviewPage({ preview }: { preview: EnterprisePreview }) {
+ const { t } = useTranslation()
+ const base = `admin.enterprise.previews.${preview.id}`
+ const Icon = preview.icon
+ const cta = (
+ <Button asChild>
+ <a href={enterpriseUrl(preview.id)} target="_blank" rel="noopener noreferrer">
+ {t('admin.enterprise.cta')}
+ </a>
+ </Button>
+ )
+
+ return (
+ <div className="flex flex-col gap-6">
+ <PageHeader
+ title={t(`${base}.title`)}
+ subtitle={t(`${base}.subtitle`)}
+ badges={
+ <Badge variant="outline" className={ENTERPRISE_BADGE_CLASS} asChild>
+ <a href={enterpriseUrl(preview.id)} target="_blank" rel="noopener noreferrer">
+ <SparklesIcon />
+ {t('admin.enterprise.badge')}
+ </a>
+ </Badge>
+ }
+ // The footer repeats the button, so a phone drops this one and gives
+ // the title the full width.
+ actions={<div className="hidden sm:block">{cta}</div>}
+ />
+
+ <Card>
+ <CardContent className="flex items-start gap-4">
+ <span className="flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
+ <Icon className="size-5" aria-hidden />
+ </span>
+ <p className="max-w-prose text-sm text-muted-foreground">{t(`${base}.intro`)}</p>
+ </CardContent>
+ </Card>
+
+ <div className="grid gap-4 md:grid-cols-3">
+ {preview.benefits.map((benefit) => (
+ <Card key={benefit}>
+ {/* Content rather than a header: a header draws a divider, and these
+ cards have nothing below it. */}
+ <CardContent className="flex flex-col gap-1">
+ <CardTitle>{t(`${base}.benefits.${benefit}.title`)}</CardTitle>
+ <CardDescription>{t(`${base}.benefits.${benefit}.description`)}</CardDescription>
+ </CardContent>
+ </Card>
+ ))}
+ </div>
+
+ <Card>
+ <CardHeader>
+ <CardTitle>{t('admin.enterprise.how_it_works')}</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <ol className="grid gap-4 md:grid-flow-col md:auto-cols-fr">
+ {preview.steps.map((step, index) => (
+ <li key={step} className="flex items-start gap-3">
+ <span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-muted text-xs font-medium tabular-nums">
+ {index + 1}
+ </span>
+ <span className="flex flex-col gap-1">
+ <span className="text-sm font-medium">{t(`${base}.steps.${step}.title`)}</span>
+ <span className="text-sm text-muted-foreground">
+ {t(`${base}.steps.${step}.description`)}
+ </span>
+ </span>
+ </li>
+ ))}
+ </ol>
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardContent className="flex flex-col items-start gap-3 sm:flex-row sm:items-center sm:justify-between">
+ <p className="max-w-prose text-sm text-muted-foreground">
+ {t('admin.enterprise.footer')}
+ </p>
+ {cta}
+ </CardContent>
+ </Card>
+ </div>
+ )
+}
diff --git a/packages/dashboard/src/components/spree/enterprise-upsell.tsx b/packages/dashboard/src/components/spree/enterprise-upsell.tsx
index 51e6515abb..fb12f93664 100644
--- a/packages/dashboard/src/components/spree/enterprise-upsell.tsx
+++ b/packages/dashboard/src/components/spree/enterprise-upsell.tsx
@@ -1,8 +1,18 @@
+import { useStore } from '@spree/dashboard-core'
import { Alert, AlertDescription, AlertTitle, ExternalLink } from '@spree/dashboard-ui'
import { SparklesIcon } from '@spree/dashboard-ui/icons'
+import { Link } from '@tanstack/react-router'
+import type { ReactNode } from 'react'
import { useTranslation } from 'react-i18next'
+import {
+ enterprisePreviewPath,
+ enterpriseUrl,
+ useEnterprisePreview,
+} from '../../lib/enterprise-previews'
-export const SPREE_ENTERPRISE_URL = 'https://spreecommerce.org/enterprise/'
+// Inside an Alert the links take the alert's own tone rather than the link
+// blue, which would fight it.
+const ALERT_LINK_CLASS = 'font-medium text-current underline underline-offset-3'
/**
* Marks a capability that open-source Spree deliberately stops short of, and
@@ -12,10 +22,16 @@ export const SPREE_ENTERPRISE_URL = 'https://spreecommerce.org/enterprise/'
export function EnterpriseUpsell({
title,
description,
+ previewId,
+ children,
className,
}: {
title: string
description: string
+ /** Preview `id` the link is tagged with. */
+ previewId?: string
+ /** Extra links shown before the learn-more link. */
+ children?: ReactNode
className?: string
}) {
const { t } = useTranslation()
@@ -26,15 +42,49 @@ export function EnterpriseUpsell({
<AlertTitle>{title}</AlertTitle>
<AlertDescription className="flex flex-col items-start gap-1.5">
{description}
- {/* `text-current`: inside an Alert the link inherits the alert's own
- tone rather than the link blue, which would fight it. */}
- <ExternalLink
- href={SPREE_ENTERPRISE_URL}
- className="font-medium text-current underline underline-offset-3"
- >
- {t('admin.enterprise.learn_more')}
- </ExternalLink>
+ <span className="flex flex-wrap gap-x-4 gap-y-1.5">
+ {children}
+ <ExternalLink href={enterpriseUrl(previewId)} className={ALERT_LINK_CLASS}>
+ {t('admin.enterprise.learn_more')}
+ </ExternalLink>
+ </span>
</AlertDescription>
</Alert>
)
}
+
+/**
+ * The in-context note for an Enterprise preview, linking to its preview page.
+ * Renders nothing once Spree Enterprise has replaced the preview, or when
+ * previews are switched off.
+ */
+export function EnterprisePreviewNote({
+ previewKey,
+ className,
+}: {
+ /** Preview key, e.g. `orders.quotes`. */
+ previewKey: string
+ className?: string
+}) {
+ const { t } = useTranslation()
+ const { storeId } = useStore()
+ const preview = useEnterprisePreview(previewKey)
+ if (!preview) return null
+
+ const base = `admin.enterprise.previews.${preview.id}.note`
+
+ return (
+ <EnterpriseUpsell
+ title={t(`${base}.title`)}
+ description={t(`${base}.description`)}
+ previewId={preview.id}
+ className={className}
+ >
+ {/* Paths come from a runtime registry, so they can't be checked against
+ the generated route tree. */}
+ <Link to={enterprisePreviewPath(preview, storeId) as never} className={ALERT_LINK_CLASS}>
+ {t('admin.enterprise.see_how_it_works')}
+ </Link>
+ </EnterpriseUpsell>
+ )
+}
diff --git a/packages/dashboard/src/components/spree/plugin-route-page.tsx b/packages/dashboard/src/components/spree/plugin-route-page.tsx
new file mode 100644
index 0000000000..bf01d0a4ef
--- /dev/null
+++ b/packages/dashboard/src/components/spree/plugin-route-page.tsx
@@ -0,0 +1,102 @@
+import {
+ matchPluginRoute,
+ outranksRouterMatch,
+ usePermissions,
+ usePluginRoutes,
+} from '@spree/dashboard-core'
+import { ErrorState } from '@spree/dashboard-ui'
+import { CatchBoundary, type ErrorComponentProps, useRouterState } from '@tanstack/react-router'
+import { useTranslation } from 'react-i18next'
+import { SettingsContainer } from './settings-container'
+
+const CATCH_ALL_ROUTE_ID = '/_authenticated/$storeId/$'
+
+/**
+ * Renders the registry route matching `path` (the URL after `/$storeId/`), or
+ * a not-found or not-authorized state. Render errors stay inside the page — a
+ * broken third-party page shouldn't take down the dashboard shell.
+ */
+export function PluginRoutePage({ storeId, path }: { storeId: string; path: string }) {
+ return (
+ <CatchBoundary getResetKey={() => path} errorComponent={PluginRouteError}>
+ <MatchedPluginRoute storeId={storeId} path={path} />
+ </CatchBoundary>
+ )
+}
+
+function PluginRouteError({ error }: ErrorComponentProps) {
+ const { t } = useTranslation()
+ return (
+ <ErrorState
+ title={t('admin.errors.plugin_route_title', { defaultValue: 'This page failed to render' })}
+ error={error}
+ />
+ )
+}
+
+function MatchedPluginRoute({ storeId, path }: { storeId: string; path: string }) {
+ const routes = usePluginRoutes()
+ const searchParams = useRouterState({ select: (s) => s.location.search }) as Record<
+ string,
+ unknown
+ >
+ const { t } = useTranslation()
+ const { permissions } = usePermissions()
+
+ const match = matchPluginRoute(path, routes)
+
+ if (!match) {
+ return (
+ <ErrorState
+ title={t('admin.errors.not_found_title', { defaultValue: 'Page not found' })}
+ description={t('admin.errors.not_found_description', {
+ defaultValue: 'The page you’re looking for doesn’t exist.',
+ })}
+ />
+ )
+ }
+
+ if (match.entry.subject && !permissions.can('read', match.entry.subject)) {
+ return (
+ <ErrorState
+ title={t('admin.errors.forbidden_title', { defaultValue: 'Not authorized' })}
+ description={t('admin.errors.forbidden_description', {
+ defaultValue: 'You don’t have permission to view this page.',
+ })}
+ />
+ )
+ }
+
+ const Component = match.entry.component
+ const page = <Component params={match.params} storeId={storeId} searchParams={searchParams} />
+ // A plugin page under `/settings` renders outside the settings layout, and
+ // the shell leaves settings pages to pad themselves.
+ return isSettingsPath(path) ? <SettingsContainer>{page}</SettingsContainer> : page
+}
+
+/**
+ * The URL (after `/$storeId/`) when a registry route outranks the file route
+ * the router matched — `/sellers/shopify` over `/sellers/$sellerId` — and so
+ * must render in its place; otherwise `null`.
+ */
+export function usePluginRouteClaim(storeId: string): string | null {
+ const routes = usePluginRoutes()
+ // The match's own pathname rather than the location's: during a navigation
+ // the location already points at the next page while the matches are still
+ // the current one's.
+ const routeId = useRouterState({ select: (s) => s.matches.at(-1)?.routeId })
+ const pathname = useRouterState({ select: (s) => s.matches.at(-1)?.pathname })
+
+ if (!routeId || !pathname || routeId === CATCH_ALL_ROUTE_ID) return null
+ const prefix = `/${storeId}/`
+ if (!pathname.startsWith(prefix)) return null
+
+ const path = pathname.slice(prefix.length)
+ const match = matchPluginRoute(path, routes)
+ const routerPath = routeId.split('/$storeId')[1] ?? ''
+ return match && outranksRouterMatch(match.entry.path, routerPath) ? path : null
+}
+
+function isSettingsPath(path: string) {
+ return path === 'settings' || path.startsWith('settings/')
+}
diff --git a/packages/dashboard/src/components/spree/settings-container.tsx b/packages/dashboard/src/components/spree/settings-container.tsx
new file mode 100644
index 0000000000..50cd30cf4a
--- /dev/null
+++ b/packages/dashboard/src/components/spree/settings-container.tsx
@@ -0,0 +1,14 @@
+import type { ReactNode } from 'react'
+
+/**
+ * Settings content padding. The secondary sidebar lives one level up, in the
+ * shared app shell, so it can extend the full height of the content sheet.
+ * This container owns only the right-side content padding.
+ *
+ * Every settings page inherits it — a page must NOT add its own
+ * `p-4`/`container`/`mx-auto`, or it double-pads and drifts from the rest of
+ * the area. Start a settings page at `<div className="flex flex-col gap-6">`.
+ */
+export function SettingsContainer({ children }: { children: ReactNode }) {
+ return <div className="container mx-auto flex flex-1 flex-col gap-4 p-4 lg:p-6">{children}</div>
+}
diff --git a/packages/dashboard/src/dashboard.tsx b/packages/dashboard/src/dashboard.tsx
index bdc132c6a1..1eecd31af0 100644
--- a/packages/dashboard/src/dashboard.tsx
+++ b/packages/dashboard/src/dashboard.tsx
@@ -11,6 +11,7 @@ import './api-client-setup'
import './i18n-setup'
import './nav/default'
import './nav/settings'
+import './nav/enterprise-previews'
import './search/create-actions'
import './search/default'
diff --git a/packages/dashboard/src/index.ts b/packages/dashboard/src/index.ts
index ee7f26a2c7..98b82679e1 100644
--- a/packages/dashboard/src/index.ts
+++ b/packages/dashboard/src/index.ts
@@ -43,3 +43,9 @@ export * from '@spree/dashboard-ui'
export { createDashboardRouter } from './create-router'
export { Dashboard } from './dashboard'
+export {
+ type EnterprisePreview,
+ type EnterprisePreviewPlacement,
+ enterprisePreviews,
+ useEnterprisePreview,
+} from './lib/enterprise-previews'
diff --git a/packages/dashboard/src/lib/enterprise-previews.ts b/packages/dashboard/src/lib/enterprise-previews.ts
new file mode 100644
index 0000000000..d0cec773f6
--- /dev/null
+++ b/packages/dashboard/src/lib/enterprise-previews.ts
@@ -0,0 +1,130 @@
+import type { SubjectName } from '@spree/dashboard-core'
+import type { LucideIcon } from 'lucide-react'
+import { useSyncExternalStore } from 'react'
+
+export const SPREE_ENTERPRISE_URL = 'https://spreecommerce.org/enterprise/'
+
+/**
+ * Previews are on unless the host turns them off at build time with
+ * `VITE_SPREE_ENTERPRISE_PREVIEWS=false` — an agency handing a dashboard to a
+ * client may not want Spree's paid tier advertised in it.
+ */
+export const ENTERPRISE_PREVIEWS_ENABLED =
+ import.meta.env.VITE_SPREE_ENTERPRISE_PREVIEWS !== 'false'
+
+/**
+ * Where a preview's entry sits: under a main sidebar section, or in a
+ * settings group.
+ */
+export type EnterprisePreviewPlacement =
+ | { nav: string; position: number }
+ | { settingsGroup: string; position: number }
+
+/**
+ * A Spree Enterprise feature that open-source Spree shows as a preview page,
+ * at the place in the dashboard where the real page appears once Enterprise
+ * is installed.
+ */
+export interface EnterprisePreview {
+ /**
+ * Nav and route key. Spree Enterprise registers its real page under the
+ * same key once it has removed the preview.
+ */
+ key: string
+ /** Translation segment under `admin.enterprise.previews`. */
+ id: string
+ /** Path relative to `/$storeId` — or to `/$storeId/settings` for a settings entry. */
+ path: string
+ placement: EnterprisePreviewPlacement
+ /** Staff who can't read this subject don't see the entry or the page. */
+ subject: SubjectName
+ icon: LucideIcon
+ /** Translation keys under `admin.enterprise.previews.<id>.benefits`. */
+ benefits: string[]
+ /** Translation keys under `admin.enterprise.previews.<id>.steps`, in order. */
+ steps: string[]
+}
+
+const active = new Map<string, EnterprisePreview>()
+const listeners = new Set<() => void>()
+let snapshot: ReadonlyMap<string, EnterprisePreview> = new Map()
+const removers = new Map<string, () => void>()
+
+function subscribe(listener: () => void) {
+ listeners.add(listener)
+ return () => {
+ listeners.delete(listener)
+ }
+}
+
+function getSnapshot() {
+ return snapshot
+}
+
+function notify() {
+ snapshot = new Map(active)
+ for (const listener of listeners) listener()
+}
+
+/**
+ * The registered previews. Spree Enterprise removes each one it ships, which
+ * takes down the sidebar entry, the page, and every in-context note pointing
+ * at it:
+ *
+ * enterprisePreviews.remove('orders.quotes')
+ */
+export const enterprisePreviews = {
+ /** @internal Used by the dashboard's own registration. */
+ add(preview: EnterprisePreview, remove: () => void) {
+ active.set(preview.key, preview)
+ removers.set(preview.key, remove)
+ notify()
+ },
+ remove(key: string) {
+ if (!active.has(key)) return
+ removers.get(key)?.()
+ removers.delete(key)
+ active.delete(key)
+ notify()
+ },
+}
+
+/**
+ * The preview registered under `key`, or `undefined` once Spree Enterprise
+ * has replaced it (or previews are switched off).
+ *
+ * @param key Preview key, e.g. `orders.quotes`.
+ * @returns The preview, or `undefined`.
+ */
+export function useEnterprisePreview(key: string): EnterprisePreview | undefined {
+ return useSyncExternalStore(subscribe, getSnapshot).get(key)
+}
+
+/**
+ * The preview page's URL in a store.
+ *
+ * @param preview The preview.
+ * @param storeId Store prefixed ID.
+ * @returns Path starting with `/<storeId>`.
+ */
+export function enterprisePreviewPath(preview: EnterprisePreview, storeId: string): string {
+ const prefix = 'settingsGroup' in preview.placement ? '/settings' : ''
+ return `/${storeId}${prefix}${preview.path}`
+}
+
+/**
+ * The Spree Enterprise page, tagged with the feature the link came from so
+ * interest can be told apart without the dashboard tracking anyone.
+ *
+ * @param previewId Preview `id`, e.g. `quotes`.
+ * @returns Absolute URL.
+ */
+export function enterpriseUrl(previewId?: string): string {
+ if (!previewId) return SPREE_ENTERPRISE_URL
+ const params = new URLSearchParams({
+ utm_source: 'dashboard',
+ utm_medium: 'preview',
+ utm_campaign: previewId,
+ })
+ return `${SPREE_ENTERPRISE_URL}?${params}`
+}
diff --git a/packages/dashboard/src/locales/ar.json b/packages/dashboard/src/locales/ar.json
index 8afae69983..7a0e37fb37 100644
--- a/packages/dashboard/src/locales/ar.json
+++ b/packages/dashboard/src/locales/ar.json
@@ -1007,7 +1007,209 @@
"title": "التنزيلات"
},
"enterprise": {
- "learn_more": "تعرّف على Spree Enterprise"
+ "available_in": "متاح في Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "احصل على Spree Enterprise",
+ "footer": "يضيف Spree Enterprise هذه الميزة إلى Spree مفتوح المصدر الذي تستخدمه بالفعل. تبقى بياناتك ومتجرك وتكاملاتك كما هي.",
+ "how_it_works": "كيف يعمل",
+ "learn_more": "تعرّف على Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "يعرض كل إدخال القيمة القديمة والجديدة، فترى بالضبط ما الذي تغيّر.",
+ "title": "قبل وبعد"
+ },
+ "coverage": {
+ "description": "المنتجات والمتغيرات والأسعار والمخزون والفئات والعروض الترويجية والمدفوعات والشحنات ورصيد المتجر ونسب الضريبة وإعدادات المتجر.",
+ "title": "كل ما يهم"
+ },
+ "search": {
+ "description": "صفِّ حسب الشخص أو نوع السجل أو التاريخ، وافتح السجل الذي تغيّر.",
+ "title": "بحث سهل"
+ }
+ },
+ "intro": "عندما يدير عدة أشخاص المتجر، تحتاج إلى معرفة من غيّر سعرًا أو مستوى مخزون أو إعدادًا. يسجّل Spree Enterprise كل تغيير مهم مع الشخص الذي أجراه ووقته والقيم قبل التغيير وبعده.",
+ "nav": "سجل التدقيق",
+ "steps": {
+ "change": {
+ "description": "يعدّل أحد أعضاء فريقك سجلًا.",
+ "title": "التغيير"
+ },
+ "record": {
+ "description": "يحفظ Spree من أجرى التغيير ومتى وما الذي تغيّر.",
+ "title": "التسجيل"
+ },
+ "review": {
+ "description": "اعثر على التغيير في سجل التدقيق متى احتجت إليه.",
+ "title": "المراجعة"
+ }
+ },
+ "subtitle": "اعرف من غيّر ماذا في متجرك ومتى.",
+ "title": "سجل التدقيق"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "عند اعتماد الشركة تحصل على الكتالوج والأسعار الخاصة بها. يمكنك تعليق الحساب لاحقًا ثم استعادته.",
+ "title": "اعتماد بشروطك"
+ },
+ "checklist": {
+ "description": "اطلب رقمًا ضريبيًا أو مستندات أو إقرارات، وراجع كل إجابة.",
+ "title": "قائمة متطلبات خاصة بك"
+ },
+ "dialogue": {
+ "description": "أعد الطلب مع ملاحظة بدلًا من رفضه. ترد الشركة من متجرك.",
+ "title": "اطلب مزيدًا من المعلومات"
+ }
+ },
+ "intro": "عندما تسجّل شركة في متجرك، يوقف Spree Enterprise حسابها للمراجعة. يمكن للشركة تصفح الكتالوج مع إخفاء الأسعار، بينما يتحقق فريقك من بياناتها ويطلب أي معلومات ناقصة ثم يعتمدها.",
+ "nav": "تسجيل الشركات",
+ "steps": {
+ "approve": {
+ "description": "ترى الشركة أسعارها ويمكنها تقديم الطلبات.",
+ "title": "الاعتماد"
+ },
+ "register": {
+ "description": "تسجّل شركة في متجرك.",
+ "title": "التسجيل"
+ },
+ "review": {
+ "description": "يراجع فريقك الطلب أو يطلب مزيدًا من المعلومات.",
+ "title": "المراجعة"
+ },
+ "verify": {
+ "description": "تستكمل الشركة قائمة المتطلبات بينما تبقى الأسعار مخفية.",
+ "title": "التحقق"
+ }
+ },
+ "subtitle": "راجع تسجيلات الشركات قبل أن تتمكن من الشراء.",
+ "title": "تسجيل الشركات"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "اشحن الدفعة الأقدم أو الأقرب إلى انتهاء الصلاحية تلقائيًا، أو اترك الاختيار لمستودعك. يمكن أن تُسحب الشحنة الواحدة من عدة دفعات.",
+ "title": "الدفعة الصحيحة أولًا"
+ },
+ "recall": {
+ "description": "اعثر على كل طلب وعميل وصلت إليه دفعة ما، واعرف الدفعات التي ستنتهي صلاحيتها قريبًا.",
+ "title": "استدعاء سريع"
+ },
+ "stock": {
+ "description": "الكميات وتواريخ الانتهاء والتصنيع وأرقام دفعات المورّد لكل دفعة في كل موقع.",
+ "title": "المخزون حسب الدفعة"
+ }
+ },
+ "intro": "يحتاج بائعو الأغذية ومستحضرات التجميل والمنتجات الصحية وغيرها من السلع الخاضعة للتنظيم إلى معرفة مكان وصول كل دفعة. يحتفظ Spree Enterprise بالمخزون حسب الدفعة مع الكميات وتواريخ انتهاء الصلاحية، ويختار الدفعة الصحيحة لكل شحنة.",
+ "nav": "الدفعات",
+ "steps": {
+ "allocate": {
+ "description": "يختار Spree الدفعات لكل شحنة وفق قاعدتك.",
+ "title": "التخصيص"
+ },
+ "receive": {
+ "description": "سجّل الدفعات عند وصول أمر شراء أو تحويل.",
+ "title": "الاستلام"
+ },
+ "ship": {
+ "description": "تسجّل كل شحنة الدفعات التي احتوتها.",
+ "title": "الشحن"
+ },
+ "trace": {
+ "description": "ابحث عن دفعة لتعثر على طلباتها وعملائها.",
+ "title": "التتبع"
+ }
+ },
+ "subtitle": "تتبّع المخزون حسب الدفعة، واشحن الدفعة الصحيحة أولًا، واعرف كل طلب دخلت فيه الدفعة.",
+ "title": "الدفعات وتواريخ انتهاء الصلاحية"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "عندما يقبل المشتري، يتحول عرض السعر إلى طلب بشروط الدفع ورقم أمر الشراء الخاصين به.",
+ "title": "مباشرة إلى طلب"
+ },
+ "negotiate": {
+ "description": "غيّر أسعار الوحدات والكميات والشحن والرسوم في عرض سعر واحد، دون المساس بقائمة أسعار المشتري.",
+ "title": "أسعار لصفقة واحدة"
+ },
+ "validity": {
+ "description": "لكل عرض سعر تاريخ انتهاء. يمكن للمشتري طلب تعديلات، فترسل له عرضًا معدّلًا.",
+ "title": "صلاحية واضحة"
+ }
+ },
+ "intro": "غالبًا ما يحتاج المشترون من الشركات إلى معرفة السعر قبل الالتزام. مع عروض الأسعار، يطلب المشتري عرضًا من سلة التسوق، ويحدد فريقك السعر، ثم يقبله المشتري عبر الإنترنت. يتحول العرض المقبول إلى طلب عادي بالأسعار المتفق عليها.",
+ "nav": "عروض الأسعار",
+ "note": {
+ "description": "مع Spree Enterprise، يمكن للمشترين مراجعة المسودة وطلب تعديلات وقبولها عبر الإنترنت قبل انتهاء صلاحيتها.",
+ "title": "أرسل هذه المسودة كعرض سعر"
+ },
+ "steps": {
+ "accept": {
+ "description": "يقبل المشتري ويتحول عرض السعر إلى طلب.",
+ "title": "القبول"
+ },
+ "price": {
+ "description": "يعدّل فريقك الأسعار والكميات والشحن.",
+ "title": "التسعير"
+ },
+ "request": {
+ "description": "يطلب المشتري عرض سعر من سلة التسوق.",
+ "title": "الطلب"
+ },
+ "send": {
+ "description": "يتلقى المشتري رابطًا لعرض السعر مع تاريخ انتهائه.",
+ "title": "الإرسال"
+ }
+ },
+ "subtitle": "تفاوض على الأسعار مع المشترين من الشركات وحوّل عروض الأسعار المقبولة إلى طلبات.",
+ "title": "عروض الأسعار"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "تأتي المنتجات والمتغيرات والصور والترجمات والأسعار والمخزون من متجر البائع. تمر المنتجات الجديدة بالمراجعة المعتادة لديك.",
+ "title": "كتالوج متزامن"
+ },
+ "control": {
+ "description": "يتوقف تزامن أي حقل يعدّله فريقك في Spree حتى تختار استئنافه. ويتم تنبيهك إلى أي طلب يتعذر إرساله.",
+ "title": "التحكم بيدك"
+ },
+ "orders": {
+ "description": "تُنشأ طلبات السوق في Shopify الخاص بالبائع مدفوعة مسبقًا. وتعود الشحنات وأرقام التتبع والإلغاءات والمبالغ المستردة تلقائيًا.",
+ "title": "الطلبات في مكان واحد"
+ }
+ },
+ "intro": "كثير من البائعين يبيعون بالفعل على Shopify. اربط متجرهم بسوقك ليبقى الكتالوج والمخزون متزامنين تلقائيًا. تظهر طلباتك في Shopify الخاص بهم، فينفّذون كل شيء من مكان واحد.",
+ "nav": "Shopify",
+ "note": {
+ "description": "مع Spree Enterprise، تبقى منتجات هذا البائع ومخزونه وطلباته متزامنة مع متجره على Shopify.",
+ "title": "اربط متجر Shopify الخاص بهذا البائع"
+ },
+ "steps": {
+ "connect": {
+ "description": "تُعدّ اتصالًا للبائع.",
+ "title": "الربط"
+ },
+ "install": {
+ "description": "يثبّت البائع التطبيق في متجره على Shopify.",
+ "title": "التثبيت"
+ },
+ "sell": {
+ "description": "تصل الطلبات إلى متجره وتعود الشحنات إليك.",
+ "title": "البيع"
+ },
+ "sync": {
+ "description": "ينتقل الكتالوج والمواقع والمخزون إلى سوقك.",
+ "title": "المزامنة"
+ }
+ },
+ "subtitle": "دع البائعين يواصلون إدارة أعمالهم من متجرهم على Shopify.",
+ "title": "Shopify للبائعين"
+ }
+ },
+ "see_how_it_works": "شاهد كيف يعمل"
},
"errors": {
"forbidden_description": "ليس لديك إذن لعرض هذه الصفحة.",
diff --git a/packages/dashboard/src/locales/de.json b/packages/dashboard/src/locales/de.json
index bcb1d8720b..cb1bd8b0f9 100644
--- a/packages/dashboard/src/locales/de.json
+++ b/packages/dashboard/src/locales/de.json
@@ -989,7 +989,209 @@
"title": "Downloads"
},
"enterprise": {
- "learn_more": "Mehr über Spree Enterprise erfahren"
+ "available_in": "Verfügbar in Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "Spree Enterprise holen",
+ "footer": "Spree Enterprise ergänzt das Open-Source-Spree, das Sie bereits nutzen. Ihre Daten, Ihr Onlineshop und Ihre Integrationen bleiben unverändert.",
+ "how_it_works": "So funktioniert es",
+ "learn_more": "Mehr über Spree Enterprise erfahren",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "Jeder Eintrag zeigt den alten und den neuen Wert, sodass Sie genau sehen, was sich geändert hat.",
+ "title": "Vorher und nachher"
+ },
+ "coverage": {
+ "description": "Produkte, Varianten, Preise, Bestand, Kategorien, Aktionen, Zahlungen, Sendungen, Guthaben, Steuersätze und Shop-Einstellungen.",
+ "title": "Alles, was zählt"
+ },
+ "search": {
+ "description": "Filtern Sie nach Person, Datensatztyp oder Datum und öffnen Sie den geänderten Datensatz.",
+ "title": "Einfach zu durchsuchen"
+ }
+ },
+ "intro": "Wenn mehrere Personen einen Shop betreiben, müssen Sie wissen, wer einen Preis, einen Bestand oder eine Einstellung geändert hat. Spree Enterprise erfasst jede wichtige Änderung mit der Person, dem Zeitpunkt sowie den Werten davor und danach.",
+ "nav": "Audit-Log",
+ "steps": {
+ "change": {
+ "description": "Jemand aus Ihrem Team bearbeitet einen Datensatz.",
+ "title": "Ändern"
+ },
+ "record": {
+ "description": "Spree speichert, wer die Änderung vorgenommen hat, wann und was sich geändert hat.",
+ "title": "Erfassen"
+ },
+ "review": {
+ "description": "Finden Sie die Änderung jederzeit im Änderungsprotokoll.",
+ "title": "Nachsehen"
+ }
+ },
+ "subtitle": "Sehen Sie, wer was in Ihrem Shop geändert hat und wann.",
+ "title": "Änderungsprotokoll"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "Mit der Freigabe erhält die Firma ihren Katalog und ihre Preise. Sie können ein Konto später sperren und wiederherstellen.",
+ "title": "Mit Konditionen freigeben"
+ },
+ "checklist": {
+ "description": "Fordern Sie Steuernummer, Dokumente oder Bestätigungen an und prüfen Sie jede Antwort.",
+ "title": "Ihre eigene Checkliste"
+ },
+ "dialogue": {
+ "description": "Senden Sie einen Antrag mit einer Notiz zurück, statt ihn abzulehnen. Die Firma antwortet über Ihren Onlineshop.",
+ "title": "Weitere Angaben anfordern"
+ }
+ },
+ "intro": "Wenn sich eine Firma in Ihrem Onlineshop registriert, hält Spree Enterprise ihr Konto zur Prüfung zurück. Die Firma kann Ihren Katalog ohne Preise durchsuchen, während Ihr Team ihre Angaben prüft, Fehlendes anfordert und sie freigibt.",
+ "nav": "Onboarding",
+ "steps": {
+ "approve": {
+ "description": "Die Firma sieht ihre Preise und kann bestellen.",
+ "title": "Freigeben"
+ },
+ "register": {
+ "description": "Eine Firma registriert sich in Ihrem Onlineshop.",
+ "title": "Registrieren"
+ },
+ "review": {
+ "description": "Ihr Team prüft den Antrag oder fordert weitere Angaben an.",
+ "title": "Prüfen"
+ },
+ "verify": {
+ "description": "Sie arbeitet Ihre Checkliste ab, während die Preise verborgen bleiben.",
+ "title": "Angaben machen"
+ }
+ },
+ "subtitle": "Prüfen Sie Registrierungen von Firmen, bevor sie bestellen können.",
+ "title": "Prüfung neuer Firmen"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "Versenden Sie automatisch die älteste oder die zuerst ablaufende Charge, oder lassen Sie Ihr Lager entscheiden. Eine Sendung kann aus mehreren Chargen bestehen.",
+ "title": "Richtige Charge zuerst"
+ },
+ "recall": {
+ "description": "Finden Sie alle Bestellungen und Kunden, an die eine Charge ging, und sehen Sie, welche Chargen bald ablaufen.",
+ "title": "Schnelle Rückrufe"
+ },
+ "stock": {
+ "description": "Mengen, Verfalls- und Herstellungsdaten sowie Chargennummern des Lieferanten für jede Charge an jedem Lagerort.",
+ "title": "Bestand nach Charge"
+ }
+ },
+ "intro": "Wer Lebensmittel, Kosmetik, Gesundheitsprodukte oder andere regulierte Waren verkauft, muss wissen, welche Charge wohin ging. Spree Enterprise führt den Bestand nach Charge, mit Mengen und Verfallsdaten, und wählt für jede Sendung die richtige Charge.",
+ "nav": "Chargen",
+ "steps": {
+ "allocate": {
+ "description": "Spree wählt nach Ihrer Regel die Chargen für jede Sendung.",
+ "title": "Zuordnen"
+ },
+ "receive": {
+ "description": "Erfassen Sie Chargen, wenn eine Bestellung oder Umlagerung eintrifft.",
+ "title": "Wareneingang"
+ },
+ "ship": {
+ "description": "Jede Sendung speichert, welche Chargen sie enthielt.",
+ "title": "Versenden"
+ },
+ "trace": {
+ "description": "Suchen Sie eine Charge, um ihre Bestellungen und Kunden zu finden.",
+ "title": "Zurückverfolgen"
+ }
+ },
+ "subtitle": "Bestand nach Charge führen, die richtige Charge zuerst versenden und jede Bestellung einer Charge zurückverfolgen.",
+ "title": "Chargen und Verfallsdaten"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "Nimmt der Käufer an, wird das Angebot zu einer Bestellung mit Zahlungsbedingungen und Bestellnummer des Kunden.",
+ "title": "Direkt zur Bestellung"
+ },
+ "negotiate": {
+ "description": "Ändern Sie Stückpreise, Mengen, Versand und Gebühren in einem einzelnen Angebot, ohne die Preisliste des Käufers anzutasten.",
+ "title": "Preise für ein einzelnes Geschäft"
+ },
+ "validity": {
+ "description": "Jedes Angebot hat ein Ablaufdatum. Käufer können Änderungen anfragen, und Sie senden ein überarbeitetes Angebot.",
+ "title": "Klare Gültigkeit"
+ }
+ },
+ "intro": "Geschäftskunden brauchen oft einen Preis, bevor sie sich festlegen. Mit Angeboten fordert ein Käufer aus seinem Warenkorb ein Angebot an, Ihr Team legt die Preise fest und der Käufer nimmt es online an. Das angenommene Angebot wird zu einer normalen Bestellung zu den vereinbarten Preisen.",
+ "nav": "Angebote",
+ "note": {
+ "description": "Mit Spree Enterprise können Käufer einen Entwurf prüfen, Änderungen anfragen und ihn vor Ablauf online annehmen.",
+ "title": "Diesen Entwurf als Angebot senden"
+ },
+ "steps": {
+ "accept": {
+ "description": "Der Käufer nimmt an und das Angebot wird zur Bestellung.",
+ "title": "Annehmen"
+ },
+ "price": {
+ "description": "Ihr Team passt Preise, Mengen und Versand an.",
+ "title": "Kalkulieren"
+ },
+ "request": {
+ "description": "Der Käufer fordert aus seinem Warenkorb ein Angebot an.",
+ "title": "Anfragen"
+ },
+ "send": {
+ "description": "Der Käufer erhält einen Link zum Angebot mit Ablaufdatum.",
+ "title": "Senden"
+ }
+ },
+ "subtitle": "Verhandeln Sie Preise mit Geschäftskunden und machen Sie aus angenommenen Angeboten Bestellungen.",
+ "title": "Angebote"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "Produkte, Varianten, Bilder, Übersetzungen, Preise und Bestand kommen aus dem Shop des Verkäufers. Neue Produkte durchlaufen Ihre übliche Prüfung.",
+ "title": "Katalog synchron"
+ },
+ "control": {
+ "description": "Ein Feld, das Ihr Team in Spree bearbeitet, wird nicht mehr synchronisiert, bis Sie es wieder aktivieren. Eine Bestellung, die nicht übertragen werden kann, wird für Sie markiert.",
+ "title": "Sie behalten die Kontrolle"
+ },
+ "orders": {
+ "description": "Marktplatzbestellungen werden bereits bezahlt im Shopify des Verkäufers angelegt. Sendungen, Sendungsverfolgung, Stornierungen und Erstattungen kommen automatisch zurück.",
+ "title": "Bestellungen an einem Ort"
+ }
+ },
+ "intro": "Viele Verkäufer verkaufen bereits über Shopify. Verbinden Sie ihren Shop mit Ihrem Marktplatz, und Katalog und Bestand bleiben automatisch synchron. Ihre Bestellungen erscheinen in deren Shopify, sodass sie alles an einem Ort abwickeln.",
+ "nav": "Shopify",
+ "note": {
+ "description": "Mit Spree Enterprise bleiben Produkte, Bestand und Bestellungen dieses Verkäufers mit seinem eigenen Shopify-Shop synchron.",
+ "title": "Shopify-Shop dieses Verkäufers verbinden"
+ },
+ "steps": {
+ "connect": {
+ "description": "Sie richten eine Verbindung für den Verkäufer ein.",
+ "title": "Verbinden"
+ },
+ "install": {
+ "description": "Der Verkäufer installiert die App in seinem Shopify-Shop.",
+ "title": "Installieren"
+ },
+ "sell": {
+ "description": "Bestellungen gehen an seinen Shop, Sendungen kommen zurück.",
+ "title": "Verkaufen"
+ },
+ "sync": {
+ "description": "Katalog, Standorte und Bestand gelangen in Ihren Marktplatz.",
+ "title": "Synchronisieren"
+ }
+ },
+ "subtitle": "Verkäufer führen ihr Geschäft weiter aus ihrem eigenen Shopify-Shop.",
+ "title": "Shopify für Verkäufer"
+ }
+ },
+ "see_how_it_works": "Funktionsweise ansehen"
},
"errors": {
"forbidden_description": "Sie haben keine Berechtigung, diese Seite anzuzeigen.",
diff --git a/packages/dashboard/src/locales/en.json b/packages/dashboard/src/locales/en.json
index 985b962293..bd30ee7b66 100644
--- a/packages/dashboard/src/locales/en.json
+++ b/packages/dashboard/src/locales/en.json
@@ -989,7 +989,209 @@
"title": "Downloads"
},
"enterprise": {
- "learn_more": "Learn about Spree Enterprise"
+ "available_in": "Available in Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "Get Spree Enterprise",
+ "footer": "Spree Enterprise adds this to the open-source Spree you already run. Your data, storefront and integrations stay as they are.",
+ "how_it_works": "How it works",
+ "learn_more": "Learn about Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "Each entry shows the old and new values, so you can see exactly what changed.",
+ "title": "Before and after"
+ },
+ "coverage": {
+ "description": "Products, variants, prices, stock, categories, promotions, payments, shipments, store credit, tax rates and store settings.",
+ "title": "Everything that matters"
+ },
+ "search": {
+ "description": "Filter by person, type of record or date, and open the record that changed.",
+ "title": "Easy to search"
+ }
+ },
+ "intro": "When several people run a store, you need to know who changed a price, a stock level or a setting. Spree Enterprise records every important change with the person who made it, the time, and the values before and after.",
+ "nav": "Audit log",
+ "steps": {
+ "change": {
+ "description": "Someone on your team edits a record.",
+ "title": "Change"
+ },
+ "record": {
+ "description": "Spree saves who made the change, when, and what changed.",
+ "title": "Record"
+ },
+ "review": {
+ "description": "Find the change in the audit log whenever you need it.",
+ "title": "Review"
+ }
+ },
+ "subtitle": "See who changed what in your store, and when.",
+ "title": "Audit log"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "Approving a company gives it its catalog and prices. You can suspend an account later and restore it.",
+ "title": "Approve with terms"
+ },
+ "checklist": {
+ "description": "Ask for a tax number, documents or confirmations, and review each answer.",
+ "title": "Your own checklist"
+ },
+ "dialogue": {
+ "description": "Send an application back with a note instead of rejecting it. The business answers from your storefront.",
+ "title": "Ask for more information"
+ }
+ },
+ "intro": "When a business signs up on your storefront, Spree Enterprise holds its account for review. The business can browse your catalog with prices hidden while your team checks its details, asks for anything missing and approves it.",
+ "nav": "Onboarding",
+ "steps": {
+ "approve": {
+ "description": "The company sees its prices and can place orders.",
+ "title": "Approve"
+ },
+ "register": {
+ "description": "A business registers on your storefront.",
+ "title": "Sign up"
+ },
+ "review": {
+ "description": "Your team reviews the application or asks for more.",
+ "title": "Review"
+ },
+ "verify": {
+ "description": "It completes your checklist while prices stay hidden.",
+ "title": "Check"
+ }
+ },
+ "subtitle": "Review business sign-ups before they can buy.",
+ "title": "Company onboarding"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "Ship the oldest lot or the one that expires first automatically, or let your warehouse choose. A shipment can draw on several lots.",
+ "title": "Right lot first"
+ },
+ "recall": {
+ "description": "Find every order and customer a lot went to, and see which lots expire soon.",
+ "title": "Fast recalls"
+ },
+ "stock": {
+ "description": "Quantities, expiry and manufacturing dates, and supplier batch numbers for each lot at each location.",
+ "title": "Stock by lot"
+ }
+ },
+ "intro": "Sellers of food, cosmetics, health products and other regulated goods need to know which lot went where. Spree Enterprise keeps stock by lot, with quantities and expiry dates, and picks the right lot for every shipment.",
+ "nav": "Lots",
+ "steps": {
+ "allocate": {
+ "description": "Spree picks lots for each shipment by your rule.",
+ "title": "Allocate"
+ },
+ "receive": {
+ "description": "Record lots when a purchase order or transfer arrives.",
+ "title": "Receive"
+ },
+ "ship": {
+ "description": "Each shipment records which lots it contained.",
+ "title": "Ship"
+ },
+ "trace": {
+ "description": "Search a lot to find its orders and customers.",
+ "title": "Trace"
+ }
+ },
+ "subtitle": "Track stock by lot, ship the right lot first, and trace every order a lot went into.",
+ "title": "Lots and expiry dates"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "When the buyer accepts, the quote becomes an order with its payment terms and purchase order number.",
+ "title": "Straight to an order"
+ },
+ "negotiate": {
+ "description": "Change unit prices, quantities, shipping and fees on a single quote, without touching the buyer's price list.",
+ "title": "Prices for one deal"
+ },
+ "validity": {
+ "description": "Each quote has an expiry date. Buyers can ask for changes, and you send a revised quote.",
+ "title": "Clear validity"
+ }
+ },
+ "intro": "Business buyers often need a price before they commit. With quotes, a buyer asks for one from their cart, your team prices it, and the buyer accepts it online. The accepted quote becomes a normal order at the prices you agreed.",
+ "nav": "Quotes",
+ "note": {
+ "description": "With Spree Enterprise, buyers can review a draft, ask for changes and accept it online before it expires.",
+ "title": "Send this draft as a quote"
+ },
+ "steps": {
+ "accept": {
+ "description": "The buyer accepts and the quote becomes an order.",
+ "title": "Accept"
+ },
+ "price": {
+ "description": "Your team adjusts prices, quantities and shipping.",
+ "title": "Price"
+ },
+ "request": {
+ "description": "The buyer asks for a quote from their cart.",
+ "title": "Request"
+ },
+ "send": {
+ "description": "The buyer gets a link to the quote and its expiry date.",
+ "title": "Send"
+ }
+ },
+ "subtitle": "Negotiate prices with business buyers and turn accepted quotes into orders.",
+ "title": "Quotes"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "Products, variants, images, translations, prices and stock come from the seller's shop. New products go through your normal review.",
+ "title": "Catalog in sync"
+ },
+ "control": {
+ "description": "A field your team edits in Spree stops syncing until you choose to resume it. An order that cannot be sent is flagged for you.",
+ "title": "You stay in control"
+ },
+ "orders": {
+ "description": "Marketplace orders are created in the seller's Shopify, already paid. Shipments, tracking, cancellations and refunds come back automatically.",
+ "title": "Orders in one place"
+ }
+ },
+ "intro": "Many sellers already sell on Shopify. Connect their shop to your marketplace and their catalog and stock stay in sync on their own. Your orders appear in their Shopify, so they fulfil everything in one place.",
+ "nav": "Shopify",
+ "note": {
+ "description": "With Spree Enterprise, this seller's products, stock and orders stay in sync with their own Shopify shop.",
+ "title": "Connect this seller's Shopify shop"
+ },
+ "steps": {
+ "connect": {
+ "description": "You set up a connection for the seller.",
+ "title": "Connect"
+ },
+ "install": {
+ "description": "The seller installs the app in their Shopify shop.",
+ "title": "Install"
+ },
+ "sell": {
+ "description": "Orders go to their shop and shipments come back.",
+ "title": "Sell"
+ },
+ "sync": {
+ "description": "Their catalog, locations and stock come into your marketplace.",
+ "title": "Sync"
+ }
+ },
+ "subtitle": "Let sellers keep running their business from their own Shopify shop.",
+ "title": "Shopify for sellers"
+ }
+ },
+ "see_how_it_works": "See how it works"
},
"errors": {
"forbidden_description": "You don’t have permission to view this page.",
diff --git a/packages/dashboard/src/locales/es.json b/packages/dashboard/src/locales/es.json
index e6411bcbd5..3a666877b1 100644
--- a/packages/dashboard/src/locales/es.json
+++ b/packages/dashboard/src/locales/es.json
@@ -6196,7 +6196,209 @@
}
},
"enterprise": {
- "learn_more": "Conocé Spree Enterprise"
+ "available_in": "Disponible en Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "Obtener Spree Enterprise",
+ "footer": "Spree Enterprise suma esto al Spree de código abierto que ya usás. Tus datos, tu tienda online y tus integraciones quedan como están.",
+ "how_it_works": "Cómo funciona",
+ "learn_more": "Conocé Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "Cada entrada muestra el valor anterior y el nuevo, para que veas exactamente qué cambió.",
+ "title": "Antes y después"
+ },
+ "coverage": {
+ "description": "Productos, variantes, precios, stock, categorías, promociones, pagos, envíos, créditos de tienda, tasas de impuestos y configuración de la tienda.",
+ "title": "Todo lo importante"
+ },
+ "search": {
+ "description": "Filtrá por persona, tipo de registro o fecha, y abrí el registro que cambió.",
+ "title": "Fácil de buscar"
+ }
+ },
+ "intro": "Cuando varias personas gestionan una tienda, necesitás saber quién cambió un precio, un nivel de stock o un ajuste. Spree Enterprise registra cada cambio importante con la persona que lo hizo, la hora y los valores antes y después.",
+ "nav": "Auditoría",
+ "steps": {
+ "change": {
+ "description": "Alguien de tu equipo edita un registro.",
+ "title": "Cambio"
+ },
+ "record": {
+ "description": "Spree guarda quién hizo el cambio, cuándo y qué cambió.",
+ "title": "Registro"
+ },
+ "review": {
+ "description": "Encontrá el cambio en el registro de auditoría cuando lo necesites.",
+ "title": "Revisión"
+ }
+ },
+ "subtitle": "Mirá quién cambió qué en tu tienda, y cuándo.",
+ "title": "Registro de auditoría"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "Al aprobar una empresa, recibe su catálogo y sus precios. Podés suspender una cuenta más adelante y restablecerla.",
+ "title": "Aprobar con condiciones"
+ },
+ "checklist": {
+ "description": "Pedí un número fiscal, documentos o confirmaciones, y revisá cada respuesta.",
+ "title": "Tu propia lista de verificación"
+ },
+ "dialogue": {
+ "description": "Devolvé una solicitud con una nota en lugar de rechazarla. La empresa responde desde tu tienda online.",
+ "title": "Pedir más información"
+ }
+ },
+ "intro": "Cuando una empresa se registra en tu tienda online, Spree Enterprise deja su cuenta pendiente de revisión. La empresa puede recorrer tu catálogo sin ver precios mientras tu equipo revisa sus datos, pide lo que falta y la aprueba.",
+ "nav": "Onboarding",
+ "steps": {
+ "approve": {
+ "description": "La empresa ve sus precios y puede hacer pedidos.",
+ "title": "Aprobación"
+ },
+ "register": {
+ "description": "Una empresa se registra en tu tienda online.",
+ "title": "Registro"
+ },
+ "review": {
+ "description": "Tu equipo revisa la solicitud o pide más información.",
+ "title": "Revisión"
+ },
+ "verify": {
+ "description": "Completa tu lista de verificación mientras los precios siguen ocultos.",
+ "title": "Verificación"
+ }
+ },
+ "subtitle": "Revisá los registros de empresas antes de que puedan comprar.",
+ "title": "Onboarding de empresas"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "Enviá automáticamente el lote más antiguo o el que vence primero, o dejá que elija tu depósito. Un envío puede tomar de varios lotes.",
+ "title": "Primero el lote correcto"
+ },
+ "recall": {
+ "description": "Encontrá cada pedido y cliente al que fue un lote, y mirá qué lotes vencen pronto.",
+ "title": "Retiros rápidos"
+ },
+ "stock": {
+ "description": "Cantidades, fechas de vencimiento y de fabricación, y números de lote del proveedor para cada lote en cada ubicación.",
+ "title": "Stock por lote"
+ }
+ },
+ "intro": "Quienes venden alimentos, cosméticos, productos de salud y otros bienes regulados necesitan saber qué lote fue a dónde. Spree Enterprise lleva el stock por lote, con cantidades y fechas de vencimiento, y elige el lote correcto para cada envío.",
+ "nav": "Lotes",
+ "steps": {
+ "allocate": {
+ "description": "Spree elige los lotes de cada envío según tu regla.",
+ "title": "Asignar"
+ },
+ "receive": {
+ "description": "Registrá los lotes cuando llega una orden de compra o una transferencia.",
+ "title": "Recibir"
+ },
+ "ship": {
+ "description": "Cada envío registra qué lotes contenía.",
+ "title": "Enviar"
+ },
+ "trace": {
+ "description": "Buscá un lote para encontrar sus pedidos y clientes.",
+ "title": "Rastrear"
+ }
+ },
+ "subtitle": "Controlá el stock por lote, enviá primero el lote correcto y rastreá cada pedido al que fue un lote.",
+ "title": "Lotes y fechas de vencimiento"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "Cuando el comprador acepta, la cotización se convierte en un pedido con sus condiciones de pago y su número de orden de compra.",
+ "title": "Directo a un pedido"
+ },
+ "negotiate": {
+ "description": "Cambiá precios unitarios, cantidades, envío y cargos en una sola cotización, sin tocar la lista de precios del comprador.",
+ "title": "Precios para una operación"
+ },
+ "validity": {
+ "description": "Cada cotización tiene fecha de vencimiento. Los compradores pueden pedir cambios y vos enviás una cotización revisada.",
+ "title": "Vigencia clara"
+ }
+ },
+ "intro": "Los compradores empresariales suelen necesitar un precio antes de comprometerse. Con las cotizaciones, el comprador pide una desde su carrito, tu equipo le pone precio y el comprador la acepta en línea. La cotización aceptada se convierte en un pedido normal con los precios acordados.",
+ "nav": "Cotizaciones",
+ "note": {
+ "description": "Con Spree Enterprise, los compradores pueden revisar un borrador, pedir cambios y aceptarlo en línea antes de que venza.",
+ "title": "Enviar este borrador como cotización"
+ },
+ "steps": {
+ "accept": {
+ "description": "El comprador acepta y la cotización se convierte en pedido.",
+ "title": "Aceptar"
+ },
+ "price": {
+ "description": "Tu equipo ajusta precios, cantidades y envío.",
+ "title": "Cotizar"
+ },
+ "request": {
+ "description": "El comprador pide una cotización desde su carrito.",
+ "title": "Solicitar"
+ },
+ "send": {
+ "description": "El comprador recibe un enlace a la cotización y su fecha de vencimiento.",
+ "title": "Enviar"
+ }
+ },
+ "subtitle": "Negociá precios con compradores empresariales y convertí las cotizaciones aceptadas en pedidos.",
+ "title": "Cotizaciones"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "Productos, variantes, imágenes, traducciones, precios y stock vienen de la tienda del vendedor. Los productos nuevos pasan por tu revisión habitual.",
+ "title": "Catálogo sincronizado"
+ },
+ "control": {
+ "description": "Un campo que tu equipo edita en Spree deja de sincronizarse hasta que decidas reanudarlo. Un pedido que no se puede enviar queda marcado para vos.",
+ "title": "Vos tenés el control"
+ },
+ "orders": {
+ "description": "Los pedidos del marketplace se crean en el Shopify del vendedor, ya pagados. Envíos, seguimiento, cancelaciones y reembolsos vuelven automáticamente.",
+ "title": "Pedidos en un solo lugar"
+ }
+ },
+ "intro": "Muchos vendedores ya venden en Shopify. Conectá su tienda a tu marketplace y su catálogo y stock se mantienen sincronizados solos. Tus pedidos aparecen en su Shopify, así preparan todo en un solo lugar.",
+ "nav": "Shopify",
+ "note": {
+ "description": "Con Spree Enterprise, los productos, el stock y los pedidos de este vendedor se mantienen sincronizados con su propia tienda Shopify.",
+ "title": "Conectar la tienda Shopify de este vendedor"
+ },
+ "steps": {
+ "connect": {
+ "description": "Configurás una conexión para el vendedor.",
+ "title": "Conectar"
+ },
+ "install": {
+ "description": "El vendedor instala la app en su tienda Shopify.",
+ "title": "Instalar"
+ },
+ "sell": {
+ "description": "Los pedidos van a su tienda y los envíos vuelven.",
+ "title": "Vender"
+ },
+ "sync": {
+ "description": "Su catálogo, ubicaciones y stock llegan a tu marketplace.",
+ "title": "Sincronizar"
+ }
+ },
+ "subtitle": "Permití que los vendedores sigan gestionando su negocio desde su propia tienda Shopify.",
+ "title": "Shopify para vendedores"
+ }
+ },
+ "see_how_it_works": "Ver cómo funciona"
},
"jurisdiction": {
"everywhere": "En todos lados"
diff --git a/packages/dashboard/src/locales/fr.json b/packages/dashboard/src/locales/fr.json
index 985fe05e64..b11bc0edc2 100644
--- a/packages/dashboard/src/locales/fr.json
+++ b/packages/dashboard/src/locales/fr.json
@@ -989,7 +989,209 @@
"title": "Téléchargements"
},
"enterprise": {
- "learn_more": "En savoir plus sur Spree Enterprise"
+ "available_in": "Disponible avec Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "Passer à Spree Enterprise",
+ "footer": "Spree Enterprise ajoute cette fonctionnalité au Spree open source que vous utilisez déjà. Vos données, votre boutique et vos intégrations restent inchangées.",
+ "how_it_works": "Comment ça marche",
+ "learn_more": "En savoir plus sur Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "Chaque entrée affiche l'ancienne et la nouvelle valeur, pour voir exactement ce qui a changé.",
+ "title": "Avant et après"
+ },
+ "coverage": {
+ "description": "Produits, variantes, prix, stock, catégories, promotions, paiements, expéditions, avoirs, taux de taxe et paramètres de la boutique.",
+ "title": "Tout ce qui compte"
+ },
+ "search": {
+ "description": "Filtrez par personne, type d'enregistrement ou date, et ouvrez l'enregistrement modifié.",
+ "title": "Recherche facile"
+ }
+ },
+ "intro": "Quand plusieurs personnes gèrent une boutique, vous devez savoir qui a modifié un prix, un niveau de stock ou un paramètre. Spree Enterprise enregistre chaque modification importante avec son auteur, l'heure et les valeurs avant et après.",
+ "nav": "Journal d'audit",
+ "steps": {
+ "change": {
+ "description": "Un membre de votre équipe modifie un enregistrement.",
+ "title": "Modification"
+ },
+ "record": {
+ "description": "Spree enregistre l'auteur de la modification, la date et ce qui a changé.",
+ "title": "Enregistrement"
+ },
+ "review": {
+ "description": "Retrouvez la modification dans le journal d'audit à tout moment.",
+ "title": "Consultation"
+ }
+ },
+ "subtitle": "Voyez qui a modifié quoi dans votre boutique, et quand.",
+ "title": "Journal d'audit"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "L'approbation donne à l'entreprise son catalogue et ses prix. Vous pouvez suspendre un compte plus tard, puis le rétablir.",
+ "title": "Approuver avec des conditions"
+ },
+ "checklist": {
+ "description": "Demandez un numéro fiscal, des documents ou des confirmations, et examinez chaque réponse.",
+ "title": "Votre propre liste de contrôle"
+ },
+ "dialogue": {
+ "description": "Renvoyez une demande avec une note au lieu de la refuser. L'entreprise répond depuis votre boutique.",
+ "title": "Demander plus d'informations"
+ }
+ },
+ "intro": "Lorsqu'une entreprise s'inscrit sur votre boutique, Spree Enterprise met son compte en attente de validation. Elle peut parcourir votre catalogue sans voir les prix pendant que votre équipe vérifie ses informations, demande les éléments manquants et l'approuve.",
+ "nav": "Validation",
+ "steps": {
+ "approve": {
+ "description": "L'entreprise voit ses prix et peut passer commande.",
+ "title": "Approbation"
+ },
+ "register": {
+ "description": "Une entreprise s'inscrit sur votre boutique.",
+ "title": "Inscription"
+ },
+ "review": {
+ "description": "Votre équipe examine la demande ou demande plus d'informations.",
+ "title": "Examen"
+ },
+ "verify": {
+ "description": "Elle remplit votre liste de contrôle, sans voir les prix.",
+ "title": "Vérification"
+ }
+ },
+ "subtitle": "Examinez les inscriptions d'entreprises avant qu'elles puissent acheter.",
+ "title": "Validation des entreprises"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "Expédiez automatiquement le lot le plus ancien ou celui qui expire en premier, ou laissez votre entrepôt choisir. Une expédition peut puiser dans plusieurs lots.",
+ "title": "Le bon lot en premier"
+ },
+ "recall": {
+ "description": "Retrouvez chaque commande et chaque client ayant reçu un lot, et voyez quels lots expirent bientôt.",
+ "title": "Rappels rapides"
+ },
+ "stock": {
+ "description": "Quantités, dates de péremption et de fabrication, et numéros de lot fournisseur pour chaque lot dans chaque emplacement.",
+ "title": "Stock par lot"
+ }
+ },
+ "intro": "Les vendeurs d'aliments, de cosmétiques, de produits de santé et d'autres produits réglementés doivent savoir quel lot est parti où. Spree Enterprise gère le stock par lot, avec les quantités et les dates de péremption, et choisit le bon lot pour chaque expédition.",
+ "nav": "Lots",
+ "steps": {
+ "allocate": {
+ "description": "Spree choisit les lots de chaque expédition selon votre règle.",
+ "title": "Affectation"
+ },
+ "receive": {
+ "description": "Enregistrez les lots à l'arrivée d'un bon de commande ou d'un transfert.",
+ "title": "Réception"
+ },
+ "ship": {
+ "description": "Chaque expédition enregistre les lots qu’elle contenait.",
+ "title": "Expédition"
+ },
+ "trace": {
+ "description": "Recherchez un lot pour retrouver ses commandes et ses clients.",
+ "title": "Traçabilité"
+ }
+ },
+ "subtitle": "Suivez le stock par lot, expédiez le bon lot en premier et retrouvez chaque commande liée à un lot.",
+ "title": "Lots et dates de péremption"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "Dès que l'acheteur accepte, le devis devient une commande avec ses conditions de paiement et son numéro de bon de commande.",
+ "title": "Directement en commande"
+ },
+ "negotiate": {
+ "description": "Modifiez les prix unitaires, les quantités, la livraison et les frais sur un seul devis, sans toucher à la liste de prix de l'acheteur.",
+ "title": "Des prix pour une affaire"
+ },
+ "validity": {
+ "description": "Chaque devis a une date d'expiration. L'acheteur peut demander des modifications et vous lui envoyez un devis révisé.",
+ "title": "Une validité claire"
+ }
+ },
+ "intro": "Les clients professionnels ont souvent besoin d'un prix avant de s'engager. Avec les devis, l'acheteur en demande un depuis son panier, votre équipe fixe les prix et l'acheteur l'accepte en ligne. Le devis accepté devient une commande classique aux prix convenus.",
+ "nav": "Devis",
+ "note": {
+ "description": "Avec Spree Enterprise, l'acheteur peut consulter un brouillon, demander des modifications et l'accepter en ligne avant son expiration.",
+ "title": "Envoyer ce brouillon comme devis"
+ },
+ "steps": {
+ "accept": {
+ "description": "L'acheteur accepte et le devis devient une commande.",
+ "title": "Acceptation"
+ },
+ "price": {
+ "description": "Votre équipe ajuste les prix, les quantités et la livraison.",
+ "title": "Chiffrage"
+ },
+ "request": {
+ "description": "L'acheteur demande un devis depuis son panier.",
+ "title": "Demande"
+ },
+ "send": {
+ "description": "L'acheteur reçoit un lien vers le devis et sa date d'expiration.",
+ "title": "Envoi"
+ }
+ },
+ "subtitle": "Négociez les prix avec vos clients professionnels et transformez les devis acceptés en commandes.",
+ "title": "Devis"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "Produits, variantes, images, traductions, prix et stock proviennent de la boutique du vendeur. Les nouveaux produits passent par votre validation habituelle.",
+ "title": "Catalogue synchronisé"
+ },
+ "control": {
+ "description": "Un champ modifié par votre équipe dans Spree n'est plus synchronisé jusqu'à ce que vous le réactiviez. Une commande qui ne peut pas être transmise vous est signalée.",
+ "title": "Vous gardez le contrôle"
+ },
+ "orders": {
+ "description": "Les commandes de la place de marché sont créées dans le Shopify du vendeur, déjà payées. Expéditions, suivi, annulations et remboursements remontent automatiquement.",
+ "title": "Les commandes au même endroit"
+ }
+ },
+ "intro": "Beaucoup de vendeurs vendent déjà sur Shopify. Connectez leur boutique à votre place de marché : leur catalogue et leur stock se synchronisent d'eux-mêmes. Vos commandes apparaissent dans leur Shopify, pour qu'ils traitent tout au même endroit.",
+ "nav": "Shopify",
+ "note": {
+ "description": "Avec Spree Enterprise, les produits, le stock et les commandes de ce vendeur restent synchronisés avec sa propre boutique Shopify.",
+ "title": "Connecter la boutique Shopify de ce vendeur"
+ },
+ "steps": {
+ "connect": {
+ "description": "Vous configurez une connexion pour le vendeur.",
+ "title": "Connexion"
+ },
+ "install": {
+ "description": "Le vendeur installe l'application dans sa boutique Shopify.",
+ "title": "Installation"
+ },
+ "sell": {
+ "description": "Les commandes partent vers sa boutique et les expéditions reviennent.",
+ "title": "Vente"
+ },
+ "sync": {
+ "description": "Son catalogue, ses emplacements et son stock arrivent dans votre place de marché.",
+ "title": "Synchronisation"
+ }
+ },
+ "subtitle": "Vos vendeurs continuent de gérer leur activité depuis leur propre boutique Shopify.",
+ "title": "Shopify pour les vendeurs"
+ }
+ },
+ "see_how_it_works": "Voir comment ça marche"
},
"errors": {
"forbidden_description": "Vous n’avez pas la permission de voir cette page.",
diff --git a/packages/dashboard/src/locales/pl.json b/packages/dashboard/src/locales/pl.json
index aca53c7d17..0cda59afb0 100644
--- a/packages/dashboard/src/locales/pl.json
+++ b/packages/dashboard/src/locales/pl.json
@@ -1007,7 +1007,209 @@
"title": "Pobrania"
},
"enterprise": {
- "learn_more": "Dowiedz się więcej o Spree Enterprise"
+ "available_in": "Dostępne w Spree Enterprise",
+ "badge": "Enterprise",
+ "cta": "Wybierz Spree Enterprise",
+ "footer": "Spree Enterprise dodaje tę funkcję do Spree w wersji open source, którego już używasz. Twoje dane, sklep i integracje pozostają bez zmian.",
+ "how_it_works": "Jak to działa",
+ "learn_more": "Dowiedz się więcej o Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "Każdy wpis pokazuje starą i nową wartość, więc widzisz dokładnie, co się zmieniło.",
+ "title": "Przed i po"
+ },
+ "coverage": {
+ "description": "Produkty, warianty, ceny, stany magazynowe, kategorie, promocje, płatności, przesyłki, kredyt sklepowy, stawki podatku i ustawienia sklepu.",
+ "title": "Wszystko, co ważne"
+ },
+ "search": {
+ "description": "Filtruj według osoby, typu rekordu lub daty i otwieraj zmieniony rekord.",
+ "title": "Łatwe wyszukiwanie"
+ }
+ },
+ "intro": "Gdy sklep prowadzi kilka osób, musisz wiedzieć, kto zmienił cenę, stan magazynowy lub ustawienie. Spree Enterprise zapisuje każdą ważną zmianę wraz z jej autorem, czasem oraz wartościami przed zmianą i po niej.",
+ "nav": "Dziennik zmian",
+ "steps": {
+ "change": {
+ "description": "Ktoś z Twojego zespołu edytuje rekord.",
+ "title": "Zmiana"
+ },
+ "record": {
+ "description": "Spree zapisuje, kto, kiedy i co zmienił.",
+ "title": "Zapis"
+ },
+ "review": {
+ "description": "Znajdź zmianę w dzienniku, kiedy tylko jej potrzebujesz.",
+ "title": "Przegląd"
+ }
+ },
+ "subtitle": "Sprawdzaj, kto, co i kiedy zmienił w Twoim sklepie.",
+ "title": "Dziennik zmian"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "Zatwierdzona firma otrzymuje swój katalog i ceny. Konto możesz później zawiesić i przywrócić.",
+ "title": "Zatwierdzenie na Twoich warunkach"
+ },
+ "checklist": {
+ "description": "Poproś o NIP, dokumenty lub potwierdzenia i zweryfikuj każdą odpowiedź.",
+ "title": "Własna lista wymagań"
+ },
+ "dialogue": {
+ "description": "Zamiast odrzucać zgłoszenie, odeślij je z notatką. Firma odpowiada bezpośrednio w Twoim sklepie.",
+ "title": "Prośba o dodatkowe informacje"
+ }
+ },
+ "intro": "Gdy firma zarejestruje się w Twoim sklepie, Spree Enterprise wstrzymuje jej konto do weryfikacji. Firma może przeglądać katalog bez widocznych cen, a Twój zespół w tym czasie sprawdza jej dane, prosi o brakujące informacje i zatwierdza konto.",
+ "nav": "Onboarding",
+ "steps": {
+ "approve": {
+ "description": "Firma widzi swoje ceny i może składać zamówienia.",
+ "title": "Zatwierdzenie"
+ },
+ "register": {
+ "description": "Firma rejestruje się w Twoim sklepie.",
+ "title": "Rejestracja"
+ },
+ "review": {
+ "description": "Twój zespół weryfikuje zgłoszenie lub prosi o więcej informacji.",
+ "title": "Weryfikacja"
+ },
+ "verify": {
+ "description": "Firma uzupełnia listę wymagań, a ceny pozostają ukryte.",
+ "title": "Wymagania"
+ }
+ },
+ "subtitle": "Weryfikuj rejestracje firm, zanim będą mogły kupować.",
+ "title": "Rejestracja firm"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "Automatycznie wysyłaj najstarszą partię lub tę, która najwcześniej traci ważność, albo pozwól wybrać magazynowi. Jedna przesyłka może pochodzić z kilku partii.",
+ "title": "Właściwa partia najpierw"
+ },
+ "recall": {
+ "description": "Znajdź wszystkie zamówienia i klientów, do których trafiła partia, i sprawdź, którym partiom wkrótce kończy się ważność.",
+ "title": "Szybkie wycofania"
+ },
+ "stock": {
+ "description": "Ilości, daty ważności i produkcji oraz numery partii dostawcy dla każdej partii w każdej lokalizacji.",
+ "title": "Stany według partii"
+ }
+ },
+ "intro": "Sprzedawcy żywności, kosmetyków, produktów zdrowotnych i innych towarów regulowanych muszą wiedzieć, która partia trafiła do kogo. Spree Enterprise prowadzi stany magazynowe według partii, z ilościami i datami ważności, i dobiera właściwą partię do każdej przesyłki.",
+ "nav": "Partie",
+ "steps": {
+ "allocate": {
+ "description": "Spree dobiera partie do każdej przesyłki według Twojej reguły.",
+ "title": "Przydział"
+ },
+ "receive": {
+ "description": "Rejestruj partie przy przyjęciu zamówienia zakupu lub transferu.",
+ "title": "Przyjęcie"
+ },
+ "ship": {
+ "description": "Każda przesyłka zapisuje, z jakich partii się składała.",
+ "title": "Wysyłka"
+ },
+ "trace": {
+ "description": "Wyszukaj partię, aby znaleźć jej zamówienia i klientów.",
+ "title": "Śledzenie"
+ }
+ },
+ "subtitle": "Śledź stany magazynowe według partii, wysyłaj najpierw właściwą partię i sprawdzaj, do jakich zamówień trafiła.",
+ "title": "Partie i daty ważności"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "Gdy kupujący zaakceptuje ofertę, staje się ona zamówieniem z warunkami płatności i numerem zamówienia klienta.",
+ "title": "Prosto do zamówienia"
+ },
+ "negotiate": {
+ "description": "Zmieniaj ceny jednostkowe, ilości, wysyłkę i opłaty w jednej ofercie, bez zmiany cennika kupującego.",
+ "title": "Ceny dla jednej transakcji"
+ },
+ "validity": {
+ "description": "Każda oferta ma datę wygaśnięcia. Kupujący może poprosić o zmiany, a Ty wysyłasz poprawioną ofertę.",
+ "title": "Jasny termin ważności"
+ }
+ },
+ "intro": "Klienci biznesowi często potrzebują ceny, zanim podejmą decyzję. Dzięki ofertom kupujący prosi o wycenę prosto z koszyka, Twój zespół ją przygotowuje, a kupujący akceptuje ją online. Zaakceptowana oferta staje się zwykłym zamówieniem po uzgodnionych cenach.",
+ "nav": "Oferty",
+ "note": {
+ "description": "Ze Spree Enterprise kupujący mogą przejrzeć zamówienie robocze, poprosić o zmiany i zaakceptować je online przed upływem terminu ważności.",
+ "title": "Wyślij to zamówienie robocze jako ofertę"
+ },
+ "steps": {
+ "accept": {
+ "description": "Kupujący akceptuje ofertę, a ta staje się zamówieniem.",
+ "title": "Akceptacja"
+ },
+ "price": {
+ "description": "Twój zespół dostosowuje ceny, ilości i wysyłkę.",
+ "title": "Wycena"
+ },
+ "request": {
+ "description": "Kupujący prosi o ofertę z poziomu koszyka.",
+ "title": "Prośba"
+ },
+ "send": {
+ "description": "Kupujący otrzymuje link do oferty z datą jej wygaśnięcia.",
+ "title": "Wysyłka"
+ }
+ },
+ "subtitle": "Negocjuj ceny z klientami biznesowymi i zamieniaj zaakceptowane oferty w zamówienia.",
+ "title": "Oferty"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "Produkty, warianty, zdjęcia, tłumaczenia, ceny i stany magazynowe pochodzą ze sklepu sprzedawcy. Nowe produkty przechodzą Twoją standardową weryfikację.",
+ "title": "Zsynchronizowany katalog"
+ },
+ "control": {
+ "description": "Pole edytowane przez Twój zespół w Spree przestaje się synchronizować, dopóki nie wznowisz synchronizacji. Zamówienie, którego nie da się przesłać, zostaje oznaczone.",
+ "title": "Kontrola po Twojej stronie"
+ },
+ "orders": {
+ "description": "Zamówienia z marketplace są tworzone w Shopify sprzedawcy jako już opłacone. Przesyłki, numery śledzenia, anulowania i zwroty pieniędzy wracają automatycznie.",
+ "title": "Zamówienia w jednym miejscu"
+ }
+ },
+ "intro": "Wielu sprzedawców już sprzedaje na Shopify. Połącz ich sklep ze swoim marketplace, a ich katalog i stany magazynowe będą synchronizować się automatycznie. Twoje zamówienia trafiają do ich Shopify, więc realizują wszystko w jednym miejscu.",
+ "nav": "Shopify",
+ "note": {
+ "description": "Ze Spree Enterprise produkty, stany magazynowe i zamówienia tego sprzedawcy są zsynchronizowane z jego własnym sklepem Shopify.",
+ "title": "Połącz sklep Shopify tego sprzedawcy"
+ },
+ "steps": {
+ "connect": {
+ "description": "Konfigurujesz połączenie dla sprzedawcy.",
+ "title": "Połączenie"
+ },
+ "install": {
+ "description": "Sprzedawca instaluje aplikację w swoim sklepie Shopify.",
+ "title": "Instalacja"
+ },
+ "sell": {
+ "description": "Zamówienia trafiają do jego sklepu, a przesyłki wracają do Ciebie.",
+ "title": "Sprzedaż"
+ },
+ "sync": {
+ "description": "Jego katalog, lokalizacje i stany magazynowe trafiają do Twojego marketplace.",
+ "title": "Synchronizacja"
+ }
+ },
+ "subtitle": "Pozwól sprzedawcom prowadzić biznes z ich własnego sklepu Shopify.",
+ "title": "Shopify dla sprzedawców"
+ }
+ },
+ "see_how_it_works": "Zobacz, jak to działa"
},
"errors": {
"forbidden_description": "Nie masz uprawnień do wyświetlenia tej strony.",
diff --git a/packages/dashboard/src/locales/zh-CN.json b/packages/dashboard/src/locales/zh-CN.json
index 67444c8251..6d926f9dfa 100644
--- a/packages/dashboard/src/locales/zh-CN.json
+++ b/packages/dashboard/src/locales/zh-CN.json
@@ -984,7 +984,209 @@
"title": "下载"
},
"enterprise": {
- "learn_more": "了解 Spree Enterprise"
+ "available_in": "Spree Enterprise 提供此功能",
+ "badge": "Enterprise",
+ "cta": "获取 Spree Enterprise",
+ "footer": "Spree Enterprise 在您已在使用的开源 Spree 基础上增加此功能。您的数据、网店和集成均保持不变。",
+ "how_it_works": "运作方式",
+ "learn_more": "了解 Spree Enterprise",
+ "previews": {
+ "audit_log": {
+ "benefits": {
+ "changes": {
+ "description": "每条记录都显示旧值和新值,让您准确了解更改内容。",
+ "title": "更改前后对比"
+ },
+ "coverage": {
+ "description": "产品、变体、价格、库存、分类、促销、支付、货件、商店积分、税率和店铺设置。",
+ "title": "覆盖所有关键内容"
+ },
+ "search": {
+ "description": "按操作人、记录类型或日期筛选,并打开被更改的记录。",
+ "title": "便捷搜索"
+ }
+ },
+ "intro": "多人共同管理店铺时,您需要知道是谁更改了价格、库存或设置。Spree Enterprise 会记录每一项重要更改,包括操作人、时间以及更改前后的值。",
+ "nav": "审计日志",
+ "steps": {
+ "change": {
+ "description": "团队成员编辑一条记录。",
+ "title": "更改"
+ },
+ "record": {
+ "description": "Spree 保存操作人、时间及更改内容。",
+ "title": "记录"
+ },
+ "review": {
+ "description": "随时在审计日志中找到这项更改。",
+ "title": "查看"
+ }
+ },
+ "subtitle": "查看谁在何时更改了店铺中的哪些内容。",
+ "title": "审计日志"
+ },
+ "company_onboarding": {
+ "benefits": {
+ "agreement": {
+ "description": "企业获批后即可使用其专属目录和价格。您之后可以暂停账户,也可以恢复。",
+ "title": "按您的条款批准"
+ },
+ "checklist": {
+ "description": "要求提供税号、文件或确认事项,并逐项审核。",
+ "title": "自定义审核清单"
+ },
+ "dialogue": {
+ "description": "无需直接拒绝,可附上说明将申请退回。企业在您的网店中作答。",
+ "title": "补充信息"
+ }
+ },
+ "intro": "当企业在您的网店注册时,Spree Enterprise 会将其账户置于待审核状态。企业可以浏览商品目录,但看不到价格;与此同时,您的团队核实其资料、索取缺少的信息并批准申请。",
+ "nav": "企业入驻",
+ "steps": {
+ "approve": {
+ "description": "企业可以看到其价格并下单。",
+ "title": "批准"
+ },
+ "register": {
+ "description": "企业在您的网店注册。",
+ "title": "注册"
+ },
+ "review": {
+ "description": "您的团队审核申请或要求补充信息。",
+ "title": "审核"
+ },
+ "verify": {
+ "description": "企业填写审核清单,期间价格保持隐藏。",
+ "title": "核实"
+ }
+ },
+ "subtitle": "在企业可以购买前审核其注册申请。",
+ "title": "企业入驻"
+ },
+ "lots": {
+ "benefits": {
+ "allocation": {
+ "description": "自动发出最早入库或最先到期的批次,也可由仓库自行选择。一个货件可以从多个批次出货。",
+ "title": "正确批次优先"
+ },
+ "recall": {
+ "description": "查找某个批次去往的所有订单和客户,并查看即将到期的批次。",
+ "title": "快速召回"
+ },
+ "stock": {
+ "description": "记录每个库存地点中每个批次的数量、到期日期、生产日期和供应商批号。",
+ "title": "按批次管理库存"
+ }
+ },
+ "intro": "食品、化妆品、健康产品及其他受监管商品的卖家需要知道每个批次的去向。Spree Enterprise 按批次管理库存,记录数量和到期日期,并为每个货件选出正确的批次。",
+ "nav": "批次",
+ "steps": {
+ "allocate": {
+ "description": "Spree 按您的规则为每个货件分配批次。",
+ "title": "分配"
+ },
+ "receive": {
+ "description": "采购订单或调拨到货时登记批次。",
+ "title": "收货"
+ },
+ "ship": {
+ "description": "每个货件都会记录其包含的批次。",
+ "title": "发货"
+ },
+ "trace": {
+ "description": "搜索批次,查找相关订单和客户。",
+ "title": "追溯"
+ }
+ },
+ "subtitle": "按批次跟踪库存,优先发出正确的批次,并追溯每个批次去往的订单。",
+ "title": "批次与到期日期"
+ },
+ "quotes": {
+ "benefits": {
+ "convert": {
+ "description": "买家接受后,报价单会转为订单,并保留其付款条款和采购订单号。",
+ "title": "直接生成订单"
+ },
+ "negotiate": {
+ "description": "在单张报价单中调整单价、数量、运费和费用,不影响买家的价格表。",
+ "title": "单笔交易专属价格"
+ },
+ "validity": {
+ "description": "每张报价单都有到期日期。买家可以要求修改,您再发送修订后的报价单。",
+ "title": "有效期清晰"
+ }
+ },
+ "intro": "企业买家通常需要先确认价格再下单。使用报价单,买家可从购物车发起询价,您的团队进行报价,买家在线接受。已接受的报价单会按约定价格转为普通订单。",
+ "nav": "报价单",
+ "note": {
+ "description": "使用 Spree Enterprise,买家可在到期前在线查看草稿、要求修改并接受。",
+ "title": "将此草稿作为报价单发送"
+ },
+ "steps": {
+ "accept": {
+ "description": "买家接受后,报价单即转为订单。",
+ "title": "接受"
+ },
+ "price": {
+ "description": "您的团队调整价格、数量和运费。",
+ "title": "报价"
+ },
+ "request": {
+ "description": "买家从购物车发起报价请求。",
+ "title": "询价"
+ },
+ "send": {
+ "description": "买家收到报价单链接及其到期日期。",
+ "title": "发送"
+ }
+ },
+ "subtitle": "与企业买家协商价格,并将已接受的报价单转为订单。",
+ "title": "报价单"
+ },
+ "shopify": {
+ "benefits": {
+ "catalog": {
+ "description": "产品、变体、图片、翻译、价格和库存均来自卖家的店铺。新产品照常经过您的审核。",
+ "title": "商品目录同步"
+ },
+ "control": {
+ "description": "您的团队在 Spree 中编辑过的字段会暂停同步,直到您选择恢复。无法发送的订单会标记出来提醒您。",
+ "title": "掌控权在您手中"
+ },
+ "orders": {
+ "description": "平台订单以已付款状态在卖家的 Shopify 中创建。货件、物流单号、取消和退款都会自动同步回来。",
+ "title": "订单集中处理"
+ }
+ },
+ "intro": "许多卖家已经在 Shopify 上销售。将他们的店铺连接到您的平台后,其商品目录和库存会自动保持同步。平台订单会出现在卖家的 Shopify 中,方便他们在一个地方完成所有履约。",
+ "nav": "Shopify",
+ "note": {
+ "description": "使用 Spree Enterprise,此卖家的产品、库存和订单将与其 Shopify 店铺保持同步。",
+ "title": "连接此卖家的 Shopify 店铺"
+ },
+ "steps": {
+ "connect": {
+ "description": "您为卖家创建连接。",
+ "title": "连接"
+ },
+ "install": {
+ "description": "卖家在其 Shopify 店铺中安装应用。",
+ "title": "安装"
+ },
+ "sell": {
+ "description": "订单发送到卖家店铺,货件信息同步回来。",
+ "title": "销售"
+ },
+ "sync": {
+ "description": "其商品目录、库存地点和库存同步到您的平台。",
+ "title": "同步"
+ }
+ },
+ "subtitle": "让卖家继续在自己的 Shopify 店铺中经营业务。",
+ "title": "卖家 Shopify 对接"
+ }
+ },
+ "see_how_it_works": "了解运作方式"
},
"errors": {
"forbidden_description": "您没有权限查看此页面。",
diff --git a/packages/dashboard/src/nav/default.ts b/packages/dashboard/src/nav/default.ts
index 93d2b88ea2..0dcbdf9fd5 100644
--- a/packages/dashboard/src/nav/default.ts
+++ b/packages/dashboard/src/nav/default.ts
@@ -4,6 +4,7 @@ import type { Store } from '@spree/admin-sdk'
import { hasVisibleSettingsEntries, nav, Subject } from '@spree/dashboard-core'
import {
AnalyticsIcon,
+ Building2Icon,
GiftIcon,
HomeIcon,
InboxIcon,
@@ -201,16 +202,21 @@ nav.add({
subject: Subject.CustomerGroup,
position: 100,
},
- {
- key: 'customers.companies',
- labelKey: 'admin.nav.companies',
- path: '/companies',
- subject: Subject.Company,
- position: 200,
- },
],
})
+// Business buyers get their own section rather than sitting under Customers:
+// a company is an organisation tree with its own catalogs, members and
+// onboarding, not a kind of customer.
+nav.add({
+ key: 'companies',
+ labelKey: 'admin.nav.companies',
+ path: '/companies',
+ icon: Building2Icon,
+ subject: Subject.Company,
+ position: 425,
+})
+
// Only a marketplace has sellers, so the entry hides itself on a store whose
// staff hold no seller permission at all.
nav.add({
diff --git a/packages/dashboard/src/nav/enterprise-previews.test.ts b/packages/dashboard/src/nav/enterprise-previews.test.ts
new file mode 100644
index 0000000000..de858dac5f
--- /dev/null
+++ b/packages/dashboard/src/nav/enterprise-previews.test.ts
@@ -0,0 +1,32 @@
+import { __getNavEntries, getPluginRoutes, matchPluginRoute } from '@spree/dashboard-core'
+import { describe, expect, it } from 'vitest'
+import { ENTERPRISE_PREVIEWS_ENABLED, enterprisePreviews } from '../lib/enterprise-previews'
+import './default'
+import './settings'
+import './enterprise-previews'
+
+const childKeys = (parentKey: string) =>
+ __getNavEntries()
+ .find((entry) => entry.key === parentKey)
+ ?.children?.map((child) => child.key) ?? []
+
+// An installation that turns the previews off registers none of them.
+describe.skipIf(!ENTERPRISE_PREVIEWS_ENABLED)('Enterprise previews', () => {
+ it('places each preview where its Enterprise page will be', () => {
+ expect(childKeys('orders')).toContain('orders.quotes')
+ expect(childKeys('companies')).toContain('companies.onboarding')
+ expect(childKeys('sellers')).toContain('sellers.shopify')
+ expect(childKeys('inventory')).toContain('inventory.lots')
+ expect(matchPluginRoute('settings/audit-log', getPluginRoutes())?.entry.key).toBe(
+ 'settings.audit-log',
+ )
+ })
+
+ it('takes down the entry and the page when Enterprise replaces a preview', () => {
+ enterprisePreviews.remove('orders.quotes')
+
+ expect(childKeys('orders')).not.toContain('orders.quotes')
+ expect(matchPluginRoute('orders/quotes', getPluginRoutes())).toBeNull()
+ expect(childKeys('sellers')).toContain('sellers.shopify')
+ })
+})
diff --git a/packages/dashboard/src/nav/enterprise-previews.tsx b/packages/dashboard/src/nav/enterprise-previews.tsx
new file mode 100644
index 0000000000..78c5f0594e
--- /dev/null
+++ b/packages/dashboard/src/nav/enterprise-previews.tsx
@@ -0,0 +1,117 @@
+// Spree Enterprise features, shown as preview pages where the real page will
+// be once Enterprise is installed. Spree Enterprise calls
+// `enterprisePreviews.remove(key)` and registers its own page under the key.
+import { nav, pluginRoutes, Subject, settingsNav } from '@spree/dashboard-core'
+import {
+ Building2Icon,
+ FileTextIcon,
+ HistoryIcon,
+ LayersIcon,
+ StoreIcon,
+} from '@spree/dashboard-ui/icons'
+import { EnterpriseNavBadge } from '../components/spree/enterprise-nav-badge'
+import { EnterprisePreviewPage } from '../components/spree/enterprise-preview-page'
+import {
+ ENTERPRISE_PREVIEWS_ENABLED,
+ type EnterprisePreview,
+ enterprisePreviews,
+} from '../lib/enterprise-previews'
+
+// Each path is where the Enterprise page will live, so links and bookmarks
+// keep working after an upgrade: Enterprise's file route at the same path
+// replaces the preview page.
+const PREVIEWS: EnterprisePreview[] = [
+ {
+ key: 'orders.quotes',
+ id: 'quotes',
+ path: '/orders/quotes',
+ placement: { nav: 'orders', position: 150 },
+ subject: Subject.Order,
+ icon: FileTextIcon,
+ benefits: ['negotiate', 'validity', 'convert'],
+ steps: ['request', 'price', 'send', 'accept'],
+ },
+ {
+ key: 'companies.onboarding',
+ id: 'company_onboarding',
+ path: '/companies/onboarding',
+ placement: { nav: 'companies', position: 100 },
+ subject: Subject.Company,
+ icon: Building2Icon,
+ benefits: ['checklist', 'dialogue', 'agreement'],
+ steps: ['register', 'verify', 'review', 'approve'],
+ },
+ {
+ key: 'sellers.shopify',
+ id: 'shopify',
+ path: '/sellers/shopify',
+ placement: { nav: 'sellers', position: 300 },
+ subject: Subject.Seller,
+ icon: StoreIcon,
+ benefits: ['catalog', 'orders', 'control'],
+ steps: ['connect', 'install', 'sync', 'sell'],
+ },
+ {
+ key: 'inventory.lots',
+ id: 'lots',
+ path: '/inventory/lots',
+ placement: { nav: 'inventory', position: 400 },
+ subject: Subject.StockLevel,
+ icon: LayersIcon,
+ benefits: ['stock', 'allocation', 'recall'],
+ steps: ['receive', 'allocate', 'ship', 'trace'],
+ },
+ {
+ key: 'settings.audit-log',
+ id: 'audit_log',
+ path: '/audit-log',
+ placement: { settingsGroup: 'team', position: 300 },
+ subject: Subject.AdminUser,
+ icon: HistoryIcon,
+ benefits: ['coverage', 'changes', 'search'],
+ steps: ['change', 'record', 'review'],
+ },
+]
+
+function register(preview: EnterprisePreview) {
+ const { placement } = preview
+ const labelKey = `admin.enterprise.previews.${preview.id}.nav`
+
+ if ('nav' in placement) {
+ nav.addChild(placement.nav, {
+ key: preview.key,
+ labelKey,
+ path: preview.path,
+ subject: preview.subject,
+ position: placement.position,
+ badge: EnterpriseNavBadge,
+ })
+ } else {
+ settingsNav.add({
+ key: preview.key,
+ labelKey,
+ descriptionKey: `admin.enterprise.previews.${preview.id}.subtitle`,
+ path: preview.path,
+ icon: preview.icon,
+ group: placement.settingsGroup,
+ position: placement.position,
+ subject: preview.subject,
+ badge: EnterpriseNavBadge,
+ })
+ }
+
+ pluginRoutes.add({
+ key: preview.key,
+ path: 'nav' in placement ? preview.path : `/settings${preview.path}`,
+ subject: preview.subject,
+ component: () => <EnterprisePreviewPage preview={preview} />,
+ })
+
+ enterprisePreviews.add(preview, () => {
+ if ('nav' in placement) nav.removeChild(placement.nav, preview.key)
+ else settingsNav.remove(preview.key)
+ pluginRoutes.remove(preview.key)
+ })
+}
+
+if (ENTERPRISE_PREVIEWS_ENABLED) PREVIEWS.forEach(register)
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId.tsx b/packages/dashboard/src/routes/_authenticated/$storeId.tsx
index 08bc2c10c1..97caa708b6 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId.tsx
@@ -9,6 +9,7 @@ import { createFileRoute, Outlet, useRouterState } from '@tanstack/react-router'
import { useState } from 'react'
import { CommandPalette } from '../../components/spree/command-palette/command-palette'
import { Notifications } from '../../components/spree/notifications'
+import { PluginRoutePage, usePluginRouteClaim } from '../../components/spree/plugin-route-page'
import { ProfileDialog } from '../../components/spree/profile-dialog'
import { useDashboardCounters } from '../../hooks/use-dashboard-counters'
import { getAvailableUiLocales } from '../../i18n-setup'
@@ -40,7 +41,7 @@ function StoreLayout() {
<StoreProvider storeId={storeId}>
<CommandPaletteProvider>
<AppShellProvider>
- <StoreShell inSettings={inSettings} />
+ <StoreShell storeId={storeId} inSettings={inSettings} />
</AppShellProvider>
<CommandPalette />
</CommandPaletteProvider>
@@ -48,7 +49,7 @@ function StoreLayout() {
)
}
-function StoreShell({ inSettings }: { inSettings: boolean }) {
+function StoreShell({ storeId, inSettings }: { storeId: string; inSettings: boolean }) {
// Loaded by the shell rather than by whichever badge happens to be on screen:
// the sidebar only mounts the children of the section you are in, so leaving
// the request to a badge means no counts at all on every other page. One
@@ -58,6 +59,7 @@ function StoreShell({ inSettings }: { inSettings: boolean }) {
// open state — the trigger sits in the sidebar's account menu, which is
// mounted here and stays put across route changes.
const [profileOpen, setProfileOpen] = useState(false)
+ const claimedPath = usePluginRouteClaim(storeId)
return (
<AppShell
@@ -67,7 +69,10 @@ function StoreShell({ inSettings }: { inSettings: boolean }) {
notifications={<Notifications />}
>
<ProfileDialog open={profileOpen} onOpenChange={setProfileOpen} />
- <Outlet />
+ {/* A plugin page more specific than the matched route (`/sellers/shopify`
+ over `/sellers/$sellerId`) renders here, since the router never
+ reaches the catch-all for it. */}
+ {claimedPath ? <PluginRoutePage storeId={storeId} path={claimedPath} /> : <Outlet />}
</AppShell>
)
}
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/$.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/$.tsx
index f4e2b395b8..e509f8c579 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/$.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/$.tsx
@@ -10,59 +10,14 @@
* full 404 page; once the dashboard grows a proper 404 view, this can render
* that instead.
*/
-import { matchPluginRoute, usePermissions, usePluginRoutes } from '@spree/dashboard-core'
-import { ErrorState } from '@spree/dashboard-ui'
-import { createFileRoute, type ErrorComponentProps } from '@tanstack/react-router'
-import { useTranslation } from 'react-i18next'
+import { createFileRoute } from '@tanstack/react-router'
+import { PluginRoutePage } from '../../../components/spree/plugin-route-page'
export const Route = createFileRoute('/_authenticated/$storeId/$')({
component: PluginRouteDispatcher,
- // Contain plugin render errors to this route — a broken third-party page
- // shouldn't take down the dashboard shell.
- errorComponent: PluginRouteError,
})
-function PluginRouteError({ error }: ErrorComponentProps) {
- const { t } = useTranslation()
- return (
- <ErrorState
- title={t('admin.errors.plugin_route_title', { defaultValue: 'This page failed to render' })}
- error={error}
- />
- )
-}
-
function PluginRouteDispatcher() {
const { storeId, _splat } = Route.useParams() as { storeId: string; _splat?: string }
- const searchParams = Route.useSearch() as Record<string, unknown>
- const routes = usePluginRoutes()
- const { t } = useTranslation()
- const { permissions } = usePermissions()
-
- const match = matchPluginRoute(_splat ?? '', routes)
-
- if (!match) {
- return (
- <ErrorState
- title={t('admin.errors.not_found_title', { defaultValue: 'Page not found' })}
- description={t('admin.errors.not_found_description', {
- defaultValue: 'The page you’re looking for doesn’t exist.',
- })}
- />
- )
- }
-
- if (match.entry.subject && !permissions.can('read', match.entry.subject)) {
- return (
- <ErrorState
- title={t('admin.errors.forbidden_title', { defaultValue: 'Not authorized' })}
- description={t('admin.errors.forbidden_description', {
- defaultValue: 'You don’t have permission to view this page.',
- })}
- />
- )
- }
-
- const Component = match.entry.component
- return <Component params={match.params} storeId={storeId} searchParams={searchParams} />
+ return <PluginRoutePage storeId={storeId} path={_splat ?? ''} />
}
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/orders/$orderId/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/orders/$orderId/index.tsx
index a39bab0961..31949c1d3e 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/orders/$orderId/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/orders/$orderId/index.tsx
@@ -6,6 +6,7 @@ import {
CustomFieldsInlineCard,
EditableApiCustomFieldsProvider,
} from '../../../../../components/spree/custom-fields/custom-fields-inline'
+import { EnterprisePreviewNote } from '../../../../../components/spree/enterprise-upsell'
import { OrderDigitalLinksCard } from '../../../../../components/spree/order-digital-links-card'
import {
OrderClaimsCard,
@@ -107,6 +108,8 @@ function OrderDetailPage() {
<OrderPurchaseOrderCard order={order} />
<SpecialInstructionsCard order={order} />
<InternalNoteCard order={order} />
+ {/* A draft is where a negotiated price starts. */}
+ {!order.completed_at && <EnterprisePreviewNote previewKey="orders.quotes" />}
<Slot name="order.form_sidebar" context={{ order }} />
</>
}
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/sellers/$sellerId.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/sellers/$sellerId.tsx
index b9f24b409a..a40344359f 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/sellers/$sellerId.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/sellers/$sellerId.tsx
@@ -13,6 +13,7 @@ import { BanIcon, MailIcon, PauseIcon, UndoIcon } from '@spree/dashboard-ui/icon
import { createFileRoute, useNavigate } from '@tanstack/react-router'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
+import { EnterprisePreviewNote } from '../../../../components/spree/enterprise-upsell'
import { ResourceDetailSkeleton } from '../../../../components/spree/route-pending'
import { SellerAddressCard } from '../../../../components/spree/sellers/seller-address-card'
import { SellerAtAGlanceCard } from '../../../../components/spree/sellers/seller-at-a-glance-card'
@@ -289,6 +290,7 @@ function SellerBody({ seller }: { seller: Seller }) {
canEdit={canEdit}
onEdit={() => setEditingSettlement(true)}
/>
+ <EnterprisePreviewNote previewKey="sellers.shopify" />
<Slot name="seller.form_sidebar" context={{ seller, canEdit }} />
</>
}
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/settings.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/settings.tsx
index c328aa6c9f..ac80524105 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/settings.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/settings.tsx
@@ -1,23 +1,14 @@
import { createFileRoute, Outlet } from '@tanstack/react-router'
+import { SettingsContainer } from '../../../components/spree/settings-container'
export const Route = createFileRoute('/_authenticated/$storeId/settings')({
component: SettingsLayout,
})
-/**
- * Settings content padding. The secondary sidebar lives one level up, in the
- * shared app shell, so it can extend the full height of the content sheet.
- * This layout owns only the right-side content padding.
- *
- * Every settings page inherits the container from here — a page must NOT add
- * its own `p-4`/`container`/`mx-auto`, or it double-pads and drifts from the
- * rest of the area. Start a settings page at `<div className="flex flex-col
- * gap-6">`.
- */
function SettingsLayout() {
return (
- <div className="container mx-auto flex flex-1 flex-col gap-4 p-4 lg:p-6">
+ <SettingsContainer>
<Outlet />
- </div>
+ </SettingsContainer>
)
}