Kasper Fabricius Kristensen
a1a1e0e789
feat(dashboard): SO cart item total rules UI ( #10386 )
2024-12-09 09:44:11 +01:00
Riqwan Thamir
f95c4e240c
fix(promotion, core-flows): updating cart with removed promotion removes adjustments ( #10489 )
2024-12-08 13:13:31 +01:00
Kasper Fabricius Kristensen
864f53011b
fix(dashboard,types): Fix TS errors ( #10457 )
...
**What**
- Fixes TS erros in dashboard project
- Updates incorrect HTTP Invite types
- Fixes incorrectly formatted dates in dashboard
2024-12-08 11:51:13 +00:00
Adrien de Peretti
0a077d48e1
chore(workflow-engine): Migrate to DML ( #10477 )
...
RESOLVES FRMW-2832
RESOLVES FRMW-2833
**What**
Migrate workflow engines to DML. Alos includes and update to the linkable generation which now takes into account id and primary keys to generate the linkable instead of only primary keys
2024-12-06 13:23:07 +00:00
Carlos R. L. Rodrigues
b0448a7c35
chore: locking-postgres provider dml ( #10478 )
2024-12-06 10:14:14 -03:00
Carlos R. L. Rodrigues
f65a3cc06d
fix(utils): avoid optional properties on graphql generated file ( #10476 )
...
FIXES: SUP-367
2024-12-06 12:16:02 +00:00
Harminder Virk
f3c91c908a
refactor: migrate store module to DML ( #10467 )
2024-12-06 17:38:15 +05:30
Kasper Fabricius Kristensen
7e04091b49
fix(dashboard): Prevent sending off empty string as handle for product category ( #10473 )
2024-12-06 12:33:18 +01:00
Shahed Nasser
597bffaab3
fix(framework): add missing query type argument in request types ( #10456 )
...
* fix(framework): add missing query type argument in request types
* fix types
2024-12-06 09:53:34 +02:00
Carlos R. L. Rodrigues
90ae187e09
fix(workflows-sdk): name for when/then step ( #10459 )
2024-12-05 15:47:42 -03:00
Adrien de Peretti
b160fd3cbf
fix(utils): DML one to one definition ( #10415 )
...
RESOLVES FRMW-2819
**What**
Fix one to one definition.
2024-12-05 16:55:57 +00:00
Harminder Virk
70d77ea22f
refactor: migrate api key module to DML ( #10450 )
...
Fixes: FRMW-2827
2024-12-05 16:37:54 +00:00
Adrien de Peretti
559fc6587a
fix(): Deleted default sales channel should be prevented ( #10193 )
...
FIXES CMRC-722
**What**
- It should not be allowed to delete a default sales channel
- The admin does not allow to delete a sales channel use as the default for the store
2024-12-05 16:19:45 +00:00
Kasper Fabricius Kristensen
2b455b15a6
fix(dashboard): Cleanup unsafe accesses to possibly undefined values in order timeline ( #10454 )
...
**What**
- Fixes an unsafe access to a field that may be undefined if an order was created through a custom workflow.
2024-12-05 15:51:35 +00:00
Kasper Fabricius Kristensen
16663ec813
fix(dashboard,types): Add missing Metadata form for Region domain and fix payload types ( #10449 )
2024-12-05 14:03:29 +00:00
Harminder Virk
be15240909
refactor: migrate sales-channel to DML ( #10452 )
...
Fixes: FRMW-2830
2024-12-05 14:02:08 +00:00
Harminder Virk
0a16efa426
refactor: migrate cart module to DML ( #10385 )
...
FIXES: FRMW-2815
This PR has no breaking changes
2024-12-05 12:30:50 +00:00
Adrien de Peretti
90d7f4ff39
chore(utils): DML#hasOne allow mappedBy to not be defined ( #10442 )
...
RESOLVES FRMW-2826
**What**
We have many places where we define only one to one on one side of the relation. In that case it is a one to one that does not mapped by to the other side relation since it is not defined. This pr allow to create a one to one without mapped by. In order to remove breaking changes, in that case we ask the user to explicitly define the `mappedBy` as `undefined`
2024-12-05 09:31:38 +00:00
olivermrbl
4723acd949
chore: Version packages
2024-12-04 18:36:57 +01:00
Kasper Fabricius Kristensen
3d5ca155e3
fix(dashboard): Prevent order details page from crashing on no region ( #10431 )
...
Resolves SUP-356
2024-12-04 16:18:54 +00:00
Kasper Fabricius Kristensen
c6f955f0b5
fix(dashboard): Add Shipping Profile metadata route ( #10430 )
2024-12-04 17:09:44 +01:00
Kasper Fabricius Kristensen
a5263083fa
fix(framework): Ensure that CORS and Auth middleware is applied for routes only defined in middlewares.ts ( #10339 )
2024-12-04 14:49:43 +01:00
Kasper Fabricius Kristensen
a5c8cc992c
fix(dashboard): Prevent language ptBR from breaking dashboard ( #10422 )
2024-12-04 10:44:04 +01:00
Kasper Fabricius Kristensen and Oli Juhl
e8f4f7ea2b
fix(dashboard): Add default value to inventory item combobox ( #10412 )
...
**What**
- Resolves CMRC-761
- Fixes TS errors in the same file.
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-12-03 18:03:54 +00:00
Kasper Fabricius Kristensen
18583ed567
fix(dashboard): Fix broken number input in adjust inventory form ( #10416 )
2024-12-03 18:36:20 +01:00
Harminder Virk
3e98364bd1
feature: add support for check constraints in DML ( #10391 )
2024-12-02 17:59:50 +05:30
Adrien de Peretti
ac79585232
feat(user): Migrate user module to DML ( #10389 )
...
* feat(user): Migrate user module to DML
* Create rotten-tigers-worry.md
* update indexes names following conventions
* remove duplicate modifier
2024-12-02 12:36:40 +01:00
Adrien de Peretti
4ef353a7b9
feat(auth): Migrate auth module to DML ( #10387 )
...
* feat(auth): Migrate auth module to DML
* Create lazy-eagles-bow.md
2024-12-02 11:58:04 +01:00
Riqwan Thamir
11bd556133
feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context ( #10374 )
...
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context
* chore: add test for shipping options returning free shipping
2024-12-01 20:59:26 +01:00
Kasper Fabricius Kristensen
94f6265dfc
fix(ui,icons,ui-preset): Fix CodeBlock and Command components ( #10369 )
2024-11-29 17:30:25 +01:00
Harminder Virk
194361b95a
fix: do not rely on model loading order to find an implicit owner ( #10360 )
2024-11-29 16:02:34 +05:30
Riqwan Thamir
324b4ab438
feat(pricing, types): add price rule operators to price calculations ( #10350 )
...
what:
- adds price rule operators when doing price calculations
- rules now accepts a key where the value can be an array of objects `({ operator: string, value: number })`
- validation for available types of operator and value to be a number
```
await service.createPriceSets({
prices: [
{
amount: 50,
currency_code: "usd",
rules: {
region_id: "de",
cart_total: [
{ operator: "gte", value: 400 },
{ operator: "lte", value: 500 },
]
},
},
]
})
```
- price calculations will now account for the operators - lte, gte, lt, gt when the price context is a number
RESOLVES CMRC-747
2024-11-28 20:48:00 +00:00
Shahed Nasser
2838100efc
fix(product): change export name of ProductImage ( #10326 )
...
Change export of `Image` to `ProductImage` to match the data model's name.
2024-11-27 17:35:06 +00:00
Shahed Nasser
ef046844cc
fix(medusa): remove request body type argument from cancel order transfer routes ( #10327 )
...
Remove the request body type passed as a type argument for admin and store routes for order transfer cancelation. Since the type is empty, it leads to a generated empty request body schema in the API reference.
2024-11-27 17:07:20 +00:00
olivermrbl
e9c1b1127e
chore: Version packages
2024-11-27 15:40:07 +01:00
Carlos R. L. Rodrigues
e9003c3124
fix(utils): read dir recursive ( #10318 )
...
What:
- Using `Object.defineProperty) to avoid issues on Node versions that set this property as readonly.
2024-11-27 14:37:07 +00:00
Kasper Fabricius Kristensen
2edc2fe19b
fix(dashboard): Prevent product metadata form from throwing error ( #10312 )
...
Resolves CMRC-755
2024-11-27 13:20:12 +00:00
Kasper Fabricius Kristensen
030ee87150
fix(dashboard): Align casing of fields in reset password event ( #10313 )
...
* fix(dashboard): Align casing of fields in reset password event
* update changeset
2024-11-27 13:06:04 +01:00
Kasper Fabricius Kristensen
da536aba24
fix(dashboard): Truncate long product organization tags ( #10261 )
...
Resolves CMRC-736
2024-11-26 12:00:25 +00:00
Kasper Fabricius Kristensen
344a6c9ea0
fix(dashboard): Add Metadata form to variant page ( #10285 )
...
Adds Metadata form to the Product Variant details page.
2024-11-26 11:40:07 +00:00
Kasper Fabricius Kristensen
3ab056e572
feat(dashboard): Allow setting a tooltip for disabled action items ( #10234 )
...
**What**
- Allow passing a `disabledTooltip` for actions in a `ActionMenu`. Useful for providing context for the user why a option is disabled. E.g. `{ disabled: sales_channel.is_default, disabledTooltip: "Deleting the default Sales Channel is not allowed. Please assign a different default Sales Channel for your store". }`
2024-11-25 13:01:26 +00:00
Danilo Silva and Kasper Fabricius Kristensen
ade1545207
feat: add ptBR (Brazilian Portuguese) in translations ( #10188 )
...
**Changelog**
- Add translation in Portuguese (Brazil)
- Updates test suites that validate translations (*.json) and corresponding $schema.json.
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-11-25 12:27:23 +00:00
olivermrbl
ccf4e801f3
chore: Version packages
2024-11-25 12:14:36 +01:00
Kasper Fabricius Kristensen
c28d0db164
fix(product, dashboard): manual cleanup of uploaded images ( #10254 )
...
* manual cleanup
* add changeset
* remove thumbnail on deletion
2024-11-25 11:44:22 +01:00
olivermrbl
4245312d8d
chore: Version packages
2024-11-25 09:57:00 +01:00
Kasper Fabricius Kristensen and Oli Juhl
1659c9be5d
feat(product,dashboard): Allow re-ordering images ( #10187 )
...
* migration
* fix snapshot
* primarykey
* init work on dnd
* progress
* dnd
* undo changes
* undo changes
* undo changes
* undo changes
* fix firefox issue
* lint
* lint
* lint
* add changeset
* undo changes to product module
* set activator node
* init work on service layer
* alternative
* switch to OneToMany
* add tests
* progress
* update migration
* update approach and remove all references to images in product.ts tests
* handle delete images on empty array
* fix config and order type
* update changeset
* rm flag
* export type and fix type in test
* fix type
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-11-25 09:03:10 +01:00
Kasper Fabricius Kristensen
96b8963a6c
fix(admin-vite-plugin): Move @babel/types to dependencies from devDependencies to make it compatible with Yarn PnP ( #10236 )
2024-11-22 20:49:35 +00:00
Kasper Fabricius Kristensen
d6ff8d7aa1
fix(js-sdk): Preserve path in baseUrl ( #10222 )
...
**What**
- Currently the `js-sdk` will discard the path in the `baseUrl` and only use the `origin`. As an example passing a `baseUrl` of `"http://localhost:9000/custom/path "`, will result in only `"http://localhost:9000 "` being used.
- This PR preserves the path, so using `sdk.admin.products()` will make a request to `"http://localhost:9000/custom/path/admin/products `. For an explanation of when this might be useful see this issue: https://github.com/medusajs/medusa/issues/10190#issuecomment-2492974845
Resolves CMRC-740
2024-11-22 14:52:54 +00:00
Alan Martinez and Kasper Fabricius Kristensen
60b13c191e
Support spanish translation ( #10213 )
...
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-11-22 13:18:45 +00:00
Riqwan Thamir
6486f2bcce
feat(core-flows,medusa): remove cart customer validation + rename workflow ( #10207 )
...
what:
- removes cart customer takeover validation
- change workflow from update to transfer
2024-11-21 16:57:03 +00:00