Skip to content

Commit

Permalink
Merge branch 'feat/data-table-medusa-ui' of https://github.com/medusa…
Browse files Browse the repository at this point in the history
…js/medusa into feat/data-table-medusa-ui
  • Loading branch information
kasperkristensen committed Nov 13, 2024
2 parents 9116fe5 + c81766e commit 1e0f329
Show file tree
Hide file tree
Showing 97 changed files with 4,611 additions and 595 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-dancers-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

fix: do not update the .env.template file with the database name
5 changes: 5 additions & 0 deletions .changeset/honest-chefs-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---

Order edit quantity diff
6 changes: 6 additions & 0 deletions .changeset/thirty-lamps-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@medusajs/core-flows": patch
"@medusajs/medusa": patch
---

Create Order before payment capture
27 changes: 26 additions & 1 deletion integration-tests/http/__tests__/order-edits/order-edits.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import {
ContainerRegistrationKeys,
Modules,
OrderChangeStatus,
RuleOperator,
} from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import {
adminHeaders,
createAdminUser,
Expand Down Expand Up @@ -418,6 +418,31 @@ medusaIntegrationTestRunner({
expect(result.summary.current_order_total).toEqual(124)
expect(result.summary.original_order_total).toEqual(60)

const updatedItem = result.items.find((i) => i.id === item.id)
expect(updatedItem.actions).toEqual([
expect.objectContaining({
details: expect.objectContaining({
quantity: 2,
unit_price: 25,
quantity_diff: 0,
}),
}),
expect.objectContaining({
details: expect.objectContaining({
quantity: 3,
unit_price: 25,
quantity_diff: 1,
}),
}),
expect.objectContaining({
details: expect.objectContaining({
quantity: 3,
unit_price: 30,
quantity_diff: 1,
}),
}),
])

// Remove the item by setting the quantity to 0
result = (
await api.post(
Expand Down
10 changes: 8 additions & 2 deletions packages/admin/dashboard/src/i18n/languages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { enUS, pl } from "date-fns/locale"
import { de, enUS, pl } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand All @@ -8,9 +8,15 @@ export const languages: Language[] = [
ltr: true,
date_locale: enUS,
},
{
code: "de",
display_name: "Deutsch",
ltr: true,
date_locale: de,
},
{
code: "pl",
display_name: "Polish",
display_name: "Polski",
ltr: true,
date_locale: pl,
},
Expand Down
Loading

0 comments on commit 1e0f329

Please sign in to comment.