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.

Rewrite @/ aliases to relative imports in files new on main

Damian Legawieca433ade2b614
diff --git a/packages/dashboard/src/components/spree/imports/import-wizard-dialog.tsx b/packages/dashboard/src/components/spree/imports/import-wizard-dialog.tsx
index dcafe60196..e8909e6f51 100644
--- a/packages/dashboard/src/components/spree/imports/import-wizard-dialog.tsx
+++ b/packages/dashboard/src/components/spree/imports/import-wizard-dialog.tsx
@@ -46,8 +46,8 @@ import {
useImport,
useImportRows,
useRetryFailedRows,
-} from '@/hooks/use-imports'
-import { importTypeIndexPath, importTypeLabel, isImportActive } from '@/lib/import-types'
+} from '../../../hooks/use-imports'
+import { importTypeIndexPath, importTypeLabel, isImportActive } from '../../../lib/import-types'
const NOT_MAPPED = '__not_mapped__'
diff --git a/packages/dashboard/src/components/spree/setup-tasks/storefront-connect-task.tsx b/packages/dashboard/src/components/spree/setup-tasks/storefront-connect-task.tsx
index eddb749ff1..ad4c23846c 100644
--- a/packages/dashboard/src/components/spree/setup-tasks/storefront-connect-task.tsx
+++ b/packages/dashboard/src/components/spree/setup-tasks/storefront-connect-task.tsx
@@ -2,10 +2,7 @@ import { Button } from '@spree/dashboard-ui'
import { useSearch } from '@tanstack/react-router'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
-import {
- normalizeOrigin,
- StorefrontConnectSheet,
-} from '@/components/spree/storefront-connect-sheet'
+import { normalizeOrigin, StorefrontConnectSheet } from '../storefront-connect-sheet'
import type { SetupTaskSlotContext } from './types'
// Card body for the setup_storefront task: opens the storefront-connect
diff --git a/packages/dashboard/src/components/spree/storefront-connect-sheet.tsx b/packages/dashboard/src/components/spree/storefront-connect-sheet.tsx
index bb9362ef76..5b17e22fad 100644
--- a/packages/dashboard/src/components/spree/storefront-connect-sheet.tsx
+++ b/packages/dashboard/src/components/spree/storefront-connect-sheet.tsx
@@ -15,8 +15,8 @@ import { ExternalLinkIcon, EyeIcon, EyeOffIcon } from 'lucide-react'
import { type ReactNode, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { toast } from 'sonner'
-import { useStorefrontPublishableKey } from '@/hooks/use-api-keys'
-import { useConnectStorefront } from '@/hooks/use-store-settings'
+import { useStorefrontPublishableKey } from '../../hooks/use-api-keys'
+import { useConnectStorefront } from '../../hooks/use-store-settings'
const STOREFRONT_REPOSITORY_URL = 'https://github.com/spree/storefront'
const STOREFRONT_DEMO_URL = 'https://demo.spreecommerce.org'
diff --git a/packages/dashboard/src/hooks/use-imports.ts b/packages/dashboard/src/hooks/use-imports.ts
index f95b731953..715028980c 100644
--- a/packages/dashboard/src/hooks/use-imports.ts
+++ b/packages/dashboard/src/hooks/use-imports.ts
@@ -2,7 +2,7 @@ import type { Import, ImportCompleteMappingParams } from '@spree/admin-sdk'
import { adminClient, useResourceKey, useResourceKeyBuilder } from '@spree/dashboard-core'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
-import { isImportActive } from '@/lib/import-types'
+import { isImportActive } from '../lib/import-types'
export { isImportActive }
diff --git a/packages/dashboard/src/nav/default.ts b/packages/dashboard/src/nav/default.ts
index ac9db7023b..225d2efcd8 100644
--- a/packages/dashboard/src/nav/default.ts
+++ b/packages/dashboard/src/nav/default.ts
@@ -10,7 +10,7 @@ import {
TagIcon,
UsersIcon,
} from 'lucide-react'
-import { GettingStartedNavBadge } from '@/components/spree/getting-started-nav-badge'
+import { GettingStartedNavBadge } from '../components/spree/getting-started-nav-badge'
nav.add({
key: 'getting-started',
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/customers/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/customers/index.tsx
index abc8dc9c7a..7a9a4be709 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/customers/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/customers/index.tsx
@@ -41,7 +41,10 @@ import { Controller, useForm } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
import { z } from 'zod/v4'
import { ImportWizardDialog } from '../../../../components/spree/imports/import-wizard-dialog'
-import { customerGroupAutocompleteProps, useCustomerGroups } from '../../../../hooks/use-customer-groups'
+import {
+ customerGroupAutocompleteProps,
+ useCustomerGroups,
+} from '../../../../hooks/use-customer-groups'
import {
useBulkAddCustomersToGroups,
useBulkAddCustomerTags,
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/getting-started.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/getting-started.tsx
index 1dfcb8dad0..765fcb9085 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/getting-started.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/getting-started.tsx
@@ -11,8 +11,8 @@ import {
import { createFileRoute, Link } from '@tanstack/react-router'
import { CheckCircle2Icon, ChevronDownIcon, CircleIcon } from 'lucide-react'
import { useTranslation } from 'react-i18next'
-import '@/components/spree/setup-tasks/register'
-import { setupTaskSlot } from '@/components/spree/setup-tasks/types'
+import '../../../components/spree/setup-tasks/register'
+import { setupTaskSlot } from '../../../components/spree/setup-tasks/types'
// Settings deep-links for the tasks whose default card body (copy + CTA
// button) suffices. Tasks needing real UI register a slot component under
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/settings/imports/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/settings/imports/index.tsx
index 47dac27498..009f2ccf69 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/settings/imports/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/settings/imports/index.tsx
@@ -10,9 +10,9 @@ import { createFileRoute, useNavigate } from '@tanstack/react-router'
import { DownloadIcon } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import { z } from 'zod/v4'
-import { ImportWizardDialog } from '@/components/spree/imports/import-wizard-dialog'
-import { isImportActive, useDeleteImport } from '@/hooks/use-imports'
-import '@/tables/imports'
+import { ImportWizardDialog } from '../../../../../components/spree/imports/import-wizard-dialog'
+import { isImportActive, useDeleteImport } from '../../../../../hooks/use-imports'
+import '../../../../../tables/imports'
// `import` carries the prefixed id of the import whose wizard dialog is open,
// so the flow is deep-linkable and survives refresh (same pattern as the
diff --git a/packages/dashboard/src/routes/forgot-password.tsx b/packages/dashboard/src/routes/forgot-password.tsx
index 36dec4d059..34f2071894 100644
--- a/packages/dashboard/src/routes/forgot-password.tsx
+++ b/packages/dashboard/src/routes/forgot-password.tsx
@@ -14,8 +14,8 @@ import { createFileRoute, Link, Navigate } from '@tanstack/react-router'
import { useState } from 'react'
import { useForm } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
-import { AuthShell } from '@/components/spree/auth-shell'
-import { type ForgotPasswordFormValues, forgotPasswordFormSchema } from '@/schemas/auth'
+import { AuthShell } from '../components/spree/auth-shell'
+import { type ForgotPasswordFormValues, forgotPasswordFormSchema } from '../schemas/auth'
export const Route = createFileRoute('/forgot-password')({
component: ForgotPasswordPage,
diff --git a/packages/dashboard/src/routes/reset-password.tsx b/packages/dashboard/src/routes/reset-password.tsx
index ed2cccdd33..3562f63481 100644
--- a/packages/dashboard/src/routes/reset-password.tsx
+++ b/packages/dashboard/src/routes/reset-password.tsx
@@ -15,8 +15,8 @@ import { createFileRoute, Link, Navigate, useNavigate } from '@tanstack/react-ro
import { useForm } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
import { z } from 'zod/v4'
-import { AuthShell } from '@/components/spree/auth-shell'
-import { type ResetPasswordFormValues, resetPasswordFormSchema } from '@/schemas/auth'
+import { AuthShell } from '../components/spree/auth-shell'
+import { type ResetPasswordFormValues, resetPasswordFormSchema } from '../schemas/auth'
const resetSearchSchema = z.object({
token: z.string().min(1).optional(),
diff --git a/packages/dashboard/src/tables/imports.tsx b/packages/dashboard/src/tables/imports.tsx
index 959332ecb2..841f7112a4 100644
--- a/packages/dashboard/src/tables/imports.tsx
+++ b/packages/dashboard/src/tables/imports.tsx
@@ -3,7 +3,7 @@ import { defineTable } from '@spree/dashboard-core'
import { RelativeTime, ResourceNameCell, StatusBadge } from '@spree/dashboard-ui'
import i18n from 'i18next'
import { UploadIcon } from 'lucide-react'
-import { importTypeLabel } from '@/lib/import-types'
+import { importTypeLabel } from '../lib/import-types'
defineTable<Import>('imports', {
title: i18n.t('admin.pages.settings.imports.title'),