Commit Graph

7595 Commits

Author SHA1 Message Date
Shahed Nasser
c8fc5edadd docs: add documentation for DataTable (#11095)
* docs: add documentation for DataTable

* update package versions
2025-01-27 11:04:46 +02:00
Dano Alexander
956a50e934 Added currency symbol for Turkish lira (#11150) 2025-01-27 09:47:51 +01:00
Artsiom Trubchyk
84fe32521b feat: add Russian language translation (#11156) 2025-01-27 09:43:56 +01:00
olivermrbl
df4facbbef chore: Release 2025-01-27 09:35:34 +01:00
olivermrbl
986ee8008e chore: Version packages 2025-01-27 09:35:06 +01:00
Shahed Nasser
b0a2699e01 docs: fix tanstack query version (#11162) 2025-01-27 09:48:03 +02:00
Shahed Nasser
9462f00f8d docs: add updates documentation (#11146)
- Add chapter on updating Medusa
- Add section in UI docs about updating UI packages in standalone applications

Closes #10927
Closes DX-1282
2025-01-27 07:27:37 +00:00
Frane Polić
d4cbc6218c feat(medusa,product,types): product type & tag store missing endpoints (#11057)
* wip: tag endpoints

* feat: types, product types

* feat: tests

* fix: update product type schema
2025-01-26 14:16:49 +01:00
Shahed Nasser
1d7eeb53ae docs: fix current sidebar not found (#11155) 2025-01-25 18:51:05 +02:00
Shahed Nasser
f803157943 docs: generate sidebar for main docs (#11139) 2025-01-24 19:20:02 +02:00
Shahed Nasser
8038a917ee docs: fix sidebar items not showing if they have same title in API reference (#11122) 2025-01-24 18:54:21 +02:00
Shahed Nasser
dc3a4b5c40 docs: add troubleshooting for cloudflare s3 (#11143) 2025-01-24 18:51:43 +02:00
Carlos R. L. Rodrigues
a76208ed02 chore(utils): patch unique index migration (#11136) 2025-01-24 13:48:37 -03:00
Shahed Nasser
cdfde0dfac docs: document workflow retention (#11138) 2025-01-24 14:34:24 +02:00
Roman Shuper
c1ae373967 product categories hooks (#11093)
* hooks

* workflow result fixed
2025-01-24 10:48:37 +01:00
TomasKliner
232281d5a4 feat: add Czech language translation (#11127) 2025-01-24 09:19:57 +01:00
Devdutta Bain
8d0b9f5c69 typo (#11128)
fixed typos for cart ids
2025-01-24 07:31:35 +00:00
Shahed Nasser
36a08ac133 docs: clarify condition / variable manipulation restriction for workflows and steps (#11125) 2025-01-23 19:29:59 +02:00
Shahed Nasser
97280cd928 docs-util: fix incorrect workflow extracted in OAS (#11120) 2025-01-23 19:21:16 +02:00
Shahed Nasser
2fe98c9712 docs: add a note about installing tanstack query as a dev dependency (#11123) 2025-01-23 19:16:52 +02:00
Adrien de Peretti
eace10e66b fix(medusa,cli): Resources not correctly loaded when running the migration scripts (#11108)
FIXES FRMW-2888

**What**
Since the migration scripts runner run as part of the migrate script, we were cleaning up the resources but we didn't take into consideration that links are loading automagically by just importing the links. The issue is that once a link have been imported, the next import will rely on the cached module and therefore when cleaning the resources, re importing those links is not enough. Instead, we are now treating the run-script as a separate command that we run during running the migration so that resources are isolated and loaded according to the need of each script themselves
2025-01-23 16:33:50 +00:00
Frane Polić
6e5912612c fix(core-flows, dashboard): handling fulfillment rules (#11111)
**What**
- fix storing "true" | "false" strings from admin
- use strings instead of booleans for context filtering
2025-01-23 16:32:25 +00:00
Shahed Nasser
b418fb129a docs: update list of routes accepting additional data (#11119) 2025-01-23 18:12:15 +02:00
Shahed Nasser
c4eb36b837 docs: added note in API reference clarifying what schemas are (#11116)
* docs: added note in API reference clarifying what schemas are

* add yarn lock
2025-01-23 17:02:25 +02:00
Kasper Fabricius Kristensen
4eecda5466 fix(dashboard): Format i18n schema with Prettier (#11107)
**What**
- Formats the schema that is generated by `yarn i18n:schema`. 
- Ensures we don't end up with huge diffs if one team member forgets to format the schema in one PR, and the schema is then updated and formatted later on.
2025-01-23 14:47:25 +00:00
Kasper Fabricius Kristensen
57892bee00 fix(admin-bundler): Optimize tanstack/react-query (#11112) 2025-01-23 14:10:10 +00:00
Harminder Virk
0deffe7b9b fix: switch from tsc watch to chokidar (#11110) 2025-01-23 19:12:07 +05:30
Carlos R. L. Rodrigues
31384855af fix(fulfillment): migration so rules (#11113) 2025-01-23 12:43:32 +00:00
Carlos R. L. Rodrigues
5aa4797873 fix(fulfillment): migration so rules (#11109) 2025-01-23 11:50:11 +00:00
Behrouz Shafaati
91862d5086 Add Persian (fa) translations for the admin dashboard (#11091)
* finish translat to farsi v 1.0

Finish translation to Farsi v1.0

* Add labeler workflow

* Add missing translations for filters and UI elements in farsi

* Remove .github/workflows/labeler.yml file from changes as requested
2025-01-23 12:44:53 +01:00
Shahed Nasser
75ae707e4d chore(ui): add tsdocs for DataTable components (#11087)
Add TSDocs for `DataTable` components to generate better docs for their props
2025-01-22 17:12:44 +00:00
Michael
5ff45f27a1 feat: add translation for zh-CN (#10757)
* feat: add translation for zh-CN

* update: version to 2.3.1

* feat: add Simplified Chinese (zhCN) translations

* update some key to translate

* fix:Remove Duplicates
2025-01-22 16:28:31 +01:00
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