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.

Fixed biome errors + added missing translations

Damian Legawiec02689e4f1fd0
diff --git a/packages/admin/e2e/gift-cards.spec.ts b/packages/admin/e2e/gift-cards.spec.ts
index 5f301fcfb5..0757b7e445 100644
--- a/packages/admin/e2e/gift-cards.spec.ts
+++ b/packages/admin/e2e/gift-cards.spec.ts
@@ -32,7 +32,7 @@ test.describe('gift cards', () => {
// Per-test unique amount so leftover rows from earlier tests don't
// satisfy this assertion accidentally (suite is serial — see CLAUDE.md).
- const cents = Date.now() % 9000 + 100
+ const cents = (Date.now() % 9000) + 100
const amount = (cents / 100).toFixed(2)
await createGiftCard(page, { amount })
diff --git a/packages/admin/src/locales/en.json b/packages/admin/src/locales/en.json
index fa24a94d5a..e06b3f2b18 100644
--- a/packages/admin/src/locales/en.json
+++ b/packages/admin/src/locales/en.json
@@ -1160,10 +1160,6 @@
},
"stock_locations": {
"add_cta": "Add stock location",
- "stock_items": {
- "empty": "No stock items at this location yet.",
- "empty_search": "No stock items match your search."
- },
"create_label": "Create stock location",
"create_description": "Add a warehouse, store, or pickup point to fulfill orders from.",
"edit_description": "Update name, address, pickup, or stock policies.",
@@ -1185,7 +1181,9 @@
"title": "Stock at this location",
"help": "Adjust on-hand and backorderable counts per variant.",
"search_placeholder": "Search SKU or product…",
- "table": { "variant": "Variant", "on_hand": "On hand", "backorder": "Backorder" }
+ "table": { "variant": "Variant", "on_hand": "On hand", "backorder": "Backorder" },
+ "empty": "No stock items at this location yet.",
+ "empty_search": "No stock items match your search."
}
},
"store": {
diff --git a/packages/admin/src/schemas/promotion.ts b/packages/admin/src/schemas/promotion.ts
index ea9592c822..be91720b72 100644
--- a/packages/admin/src/schemas/promotion.ts
+++ b/packages/admin/src/schemas/promotion.ts
@@ -43,10 +43,7 @@ export const promotionFormSchema = z
kind: z.enum(['coupon_code', 'automatic']),
code: z.string(),
multi_codes: z.boolean(),
- number_of_codes: z.preprocess(
- emptyToUndefined,
- z.coerce.number().int().positive().optional(),
- ),
+ number_of_codes: z.preprocess(emptyToUndefined, z.coerce.number().int().positive().optional()),
code_prefix: z.string(),
starts_at: z.string(),
expires_at: z.string(),