Commit Graph

7563 Commits

Author SHA1 Message Date
Adrien de Peretti
9321920227 fix: Medusa package version should use ~ instead of ^ (#11077)
RESOLVES FRMW-2859
2025-01-22 15:15:30 +00:00
python27tt
91112b4365 Add Romanian translation (#10890)
* Add Romanian translation

* romanian added
2025-01-22 15:53:17 +01:00
gharbi-mohamed-dev
7dc18a41b1 add support to arabic (#11088)
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2025-01-22 15:24:27 +01:00
Paul Nodet
909b685961 refactor(ui-preset): replace defaultTheme import (#11041)
Removing the import allows future compatibilty with tailwind v4 where it won't be exported anymore. Fix #11040
2025-01-22 13:48:26 +00:00
Kasper Fabricius Kristensen
6346836c2d feat(dashboard): Refactor Users table to use the new DataTable block (#11058)
**What**
- Updates the Users table to use the new DataTable
- Fixes an issue where initial parsing of URL filters weren't formatted correctly.
2025-01-22 13:19:23 +00:00
Kasper Fabricius Kristensen
0bef3202f3 fix(dashboard): Add global errorElement (#10981)
Resolves CMRC-627

**What**
- If the session expired, and the user then navigated to a route with no loader the request for the user info in the sidebar would fail causing the app to crash as we didn't have an errorElement wrapping the app shell.
- This PR adds a top level errorElement which handles errors that are outside of a page context, such as in the sidebar.
2025-01-22 12:47:17 +00:00
Kasper Fabricius Kristensen
7feb004600 fix(ui): Fix position of Checkbox indicator (#11075)
**What**
- Fixes an issue that would cause the Checkbox indicator to get rendered outside of view in the checkbox was wrapped in a relative div.
2025-01-22 11:08:32 +00:00
Kasper Fabricius Kristensen
c400719fcc fix(dashboard): Persist variant_rank (#11074)
**What**
- Sends variant_rank to the backend
- Sorts variant table by variant_rank if no other order is selected.

We have a project planned for implementing variant_rank correctly, and adding UI for managing the rank after product creation. This PR handles none of that, as it should be handled as part of said project. This PR simply makes the field useable until then.

Resolves CMRC-859
2025-01-22 10:32:24 +00:00
Sanchir Enkhbold
9472a825b5 feat: Add translations for Mongolian (#11085) 2025-01-22 10:58:41 +01:00
Kasper Fabricius Kristensen
b9c469a6d4 fix(admin-bundler): Fix Vite imports to prevent deprecation warnings (#11086) 2025-01-22 10:55:18 +01:00
Harminder Virk
e53b8b0a97 fix: Flaky behavior of Yalc (#11084) 2025-01-22 14:26:07 +05:30
Shahed Nasser
2d0e50624f fix(core-flows): change some types to interfaces (#11061) 2025-01-22 10:29:31 +02:00
Kasper Fabricius Kristensen
83c91f1186 fix(dashboard): Use date util to properly format date in order details view (#11073)
Resolves CMRC-858
2025-01-22 07:43:51 +00:00
Adrien de Peretti
da3906efa4 fix: Unique constraint should account for soft deleted records (#11048)
FIXES FRMW-2878

**What**
Currently, the `one-to-one` unique constraints does not account for deleted record. This prevents from inserting a new record wth the same fk if another one is deleted.

**Caveat**
`hasOne` with FK option is meant to be a special case, for example a many to one - one to many without defining the other side of the relation. In that case we don't handle this behaviour and keep it as it is
2025-01-22 07:42:06 +00:00
Adrien de Peretti
ecc8efcb04 fix(event): Subscriber ID miss usage (#11047)
PARTIALLY RESOLVES FRMW-2876

**What**
Fix wrong usage of the `subscriberId` in the event bus. It happens that the subscriber id coming from the context was not used at all. This issue lead to duplicated event subscriber with the same subscriber id, it also prevent unsubscribing from event since rand id will be assigned.

**NOTE**
This PR does not handle overide strategy for subscribers with the same id. this still needs to be discussed
2025-01-22 07:40:31 +00:00
Riqwan Thamir
8119d9964b fix(promotion): eval conditions for rules are made accurate (#10915)
what:

- fixes eval conditions for promotion rules

RESOLVES CMRC-851
2025-01-21 21:26:20 +00:00
Carlos R. L. Rodrigues
cc73802ab3 chore(order): dml (#10292)
* ../../core/types/src/dml/index.ts

* ../../core/types/src/dml/index.ts

* fix: relationships mapping

* handle nullable foreign keys types

* handle nullable foreign keys types

* handle nullable foreign keys types

* continue to update product category repository

* fix all product category repositories issues

* fix product category service types

* fix product module service types

* fix product module service types

* fix repository template type

* refactor: use a singleton DMLToMikroORM factory instance

Since the MikroORM MetadataStorage is global, we will also have to turn DML
to MikroORM entities conversion use a global bucket as well

* refactor: update product module to use DML in tests

* wip: tests

* WIP product linkable fixes

* continue type fixing and start test fixing

* test: fix more tests

* fix repository

* fix pivot table computaion + fix mikro orm repository

* fix many to many management and configuration

* fix many to many management and configuration

* fix many to many management and configuration

* update product tag relation configuration

* Introduce experimental dml hooks to fix some issues with categories

* more fixes

* fix product tests

* add missing id prefixes

* fix product category handle management

* test: fix more failing tests

* test: make it all green

* test: fix breaking tests

* fix: build issues

* fix: build issues

* fix: more breaking tests

* refactor: fix issues after merge

* refactor: fix issues after merge

* refactor: surpress types error

* test: fix DML failing tests

* improve many to many inference + tests

* Wip fix columns from product entity

* remove product model before create hook and manage handle validation and transformation at the service level

* test: fix breaking unit tests

* fix: product module service to not update handle on product update

* fix define link and joiner config

* test: fix joiner config test

* test: fix joiner config test

* fix joiner config primary keys

* Fix joiner config builder

* Fix joiner config builder

* test: remove only modifier from test

* refactor: remove hooks usage from product collection

* refactor: remove hooks usage from product-option

* refactor: remove hooks usage for computing category handle

* refactor: remove hooks usage from productCategory model

* refactor: remove hooks from DML

* refactor: remove cruft

* order dml

* cleanup

* re add foerign key indexes

* wip

* chore: remove unused types

* wip

* changes

* rm raw

* autoincrement

* wip

* rel

* refactor: cleanup

* migration and models configuration adjustments

* cleanup

* number searchable

* fix random ordering

* fix

* test: fix product-category tests

* test: update breaking DML tests

* test: array assertion to not care about ordering

* fix: temporarily apply id ordering for products

* types

* wip

* WIP type improvements

* update order models

* partially fix types temporarely

* rel

* fix: recursive type issue

* improve type inference breaks

* improve type inference breaks

* update models

* rm nullable

* default value

* repository

* update default value handling

* fix unit tests

* WIP

* toMikroORM

* fix relations

* cascades

* fix

* experimental dml hooks

* rm migration

* serial

* nullable autoincrement

* fix model

* model changes

* fix one to one DML

* order test

* fix addresses

* fix unit tests

* Re align dml entity name inference

* update model table name config

* update model table name config

* revert

* update return relation

* WIP

* hasOne

* models

* fix

* model

* initial commit

* cart service

* order module

* utils unit test

* index engine

* changeset

* merge

* fix hasOne with fk

* update

* free text filter per entity

* tests

* prod category

* property string many to many

* fix big number

* link modules migration set names

* merge

* shipping option rules

* serializer

* unit test

* fix test mikro orm init

* fix test mikro orm init

* Maintain merge object properties

* fix test mikro orm init

* prevent unit test from connecting to db

* wip

* fix test

* fix test

* link test

* schema

* models

* auto increment

* hook

* model hooks

* order

* wip

* orm version

* request return field

* fix return configuration on order model

* workflows

* core flows

* unit test

* test

* base repo

* test

* base repo

* test fix

* inventory move

* locking inventory

* test

* free text fix

* rm timeout mock

* migrate fulfillment values

* v6.4.3

* cleanup

* link-modules update sql

* revert test

* remove fake timers

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Harminder Virk <virk.officials@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-01-21 08:04:47 -05:00
Stevche Radevski
05c8a67d8e feat: Add support for creating payment methods to payment module (#11063)
CLOSES CLO-407
2025-01-21 11:31:44 +00:00
Shahed Nasser
cd758067d4 fix(create-medusa-app): fix database name from input not used in setup (#11071) 2025-01-21 12:35:46 +02:00
Adrien de Peretti
13fe2f6776 fix(framework): migration scripts regexp (#11072)
FIXES FRMW-2879

**What**
The exclusion regexp was broken and instead use the ignore options of the glob sync function to properly ignore definition files
2025-01-21 09:34:57 +00:00
Kasper Fabricius Kristensen
d4e042e9ad fix(dashboard,js-sdk,types): Remove redundant body for markAsDelivered (#10964)
Resolves CMRC-623
2025-01-20 17:17:48 +00:00
Shahed Nasser
45b47bf813 fix(medusa): use correct request and response types for batch location levels route (#11055)
Use HTTP types for request / response types of the new batch location levels route
2025-01-20 17:03:07 +00:00
Shahed Nasser
24a952a83a docs: fix types with arguments not showing correct properties (#11062) 2025-01-20 18:38:40 +02:00
Stevche Radevski
a0fc612bf4 feat: Add translations for Macedonian (#11039)
I figured I should at least translate Medusa in my own language 😄 

I did some AI translation first, and did a quick round of obvious improvements. Can be made better but it's pretty good as-is.
2025-01-20 16:37:23 +00:00
Avia-Code
644c8b9d30 fix(dashboard): create sales channel toast type (#11019)
Fixes #11023
2025-01-20 16:04:49 +00:00
Shahed Nasser
0d18d5854a docs: fixes for core workflows reference (#11056)
* docs: fix step input / output description not showing

* fix generated example for array types

* show workflow summary in diagram

* fix workflow node width

* hide undefined types
2025-01-20 17:34:02 +02:00
Shahed Nasser
af350c3a8b docs: add search to workflows reference (#11054)
* docs: add search to workflows reference

* fix error
2025-01-20 17:02:29 +02:00
github-actions[bot]
5b9cb5a2be chore(docs): Updated API Reference (automated) (#11053)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2025-01-20 14:38:53 +00:00
github-actions[bot]
8dc8d648f9 chore(docs): Generated References (automated) (#11052)
Generated the following references:
- `core_flows`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-01-20 13:37:33 +00:00
Kasper Fabricius Kristensen
147c0e5a35 feat(ui,dashboard): Add DataTable block (#10024)
**What**
- Adds opinionated DataTable block to `@medusajs/ui` 
- Adds new DataTable to `@medusajs/dashboard` that uses the above mentioned block as the primitive.

The PR also replaces the table on /customer-groups and the variants table on /products/:id with the new DataTable, to provide an example of it's usage. The previous DataTable component has been renamed to `_DataTable` and has been deprecated.

**Note**
This PR has a lot of LOC. 5,346 of these changes are the fr.json file, which wasn't formatted correctly before. When adding the new translations needed for this PR the file was formatted which caused each line to change to have the proper indentation.

Resolves CMRC-333
2025-01-20 13:26:12 +00:00
github-actions[bot]
c3976a312b chore(docs): Update version in documentation (automated) (#11051)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-01-20 15:21:25 +02:00
Eugene Pro
b278ee5ff1 docs: how to add new admin route under existing route (#10652)
* docs: how to add new admin route under existing route

* docs: update about defineRouteConfig

* docs: add new line

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* docs: add new line

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2025-01-20 15:21:09 +02:00
olivermrbl
402a5c3cd4 chore: Release 2025-01-20 07:41:38 -05:00
olivermrbl
57e9a7a5bf chore: Version packages 2025-01-20 07:41:15 -05:00
Harminder Virk
171088b47a fix: missing dependencies in the framework package (#11049)
In the framework package we are directly importing many uninstalled dependencies. The issue does not occur for transitive dependencies. However, the `glob` package is not a transitive dependency of any production dependency and hence it fails.

Fixes: #11044
Fixes: FRMW-2877
2025-01-20 11:51:44 +00:00
Shahed Nasser
e4487341b6 chore(core-flows): general fixes to core-flows TSDocs (#11046) 2025-01-20 11:11:37 +02:00
Shahed Nasser
d089852ce3 docs: improve content of workflows reference overview page (#11045) 2025-01-20 10:54:32 +02:00
gharbi-mohamed-dev
66898124b1 docs: fix typo in admin translations guide (#11043) 2025-01-20 10:08:28 +02:00
Frane Polić
123d2f45de feat(dashboard): invite UI tweaks (#10999) 2025-01-18 10:50:24 -05:00
Shahed Nasser
2a5f2a5387 fix(cli): fix command description for plugin:db:generate (#11022) 2025-01-18 10:49:23 -05:00
Frane Polić
c1385c7002 fix(core-flows): cart validate sales channel (#11024) 2025-01-18 10:48:58 -05:00
Shahed Nasser
45847fef19 docs: generate references for v2.3.0 (#11035) 2025-01-17 19:05:02 +02:00
Shahed Nasser
2f7ec55f2e chore: generate types docs reference manually for 2.3.0 (#11034) 2025-01-17 18:39:29 +02:00
github-actions[bot]
24441e48df chore(docs): Updated API Reference (automated) (#11030)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2025-01-17 16:35:02 +00:00
Shahed Nasser
bff8c0bc93 chore: generate core-flows reference for 2.3.0 (#11028) 2025-01-17 18:17:18 +02:00
github-actions[bot]
e50d0ff369 chore(docs): Generated DML JSON files (automated) (#11026)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-01-17 18:07:05 +02:00
github-actions[bot]
2c966490f4 chore(docs): Update version in documentation (automated) (#11025)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-01-17 18:05:52 +02:00
Shahed Nasser
e3d5457b5c docs: document new migration script option for db:migrate (#10986)
* docs: document new migration script option for db:migrate

* update versions
2025-01-17 17:41:49 +02:00
Shahed Nasser
f15fb4d4fa chore(framework): update the TSDocs for a plugin in the medusa config (#10991)
* chore(framework): update the TSDocs for a plugin in the medusa config

* change version
2025-01-17 17:41:05 +02:00
Shahed Nasser
8754c2afef docs: update payment docs after removing fields (#10992) 2025-01-17 17:40:52 +02:00