Commit Graph

4659 Commits

Author SHA1 Message Date
Adrien de Peretti
de228d209f fix(telemetry): Pointing and resolving packages wrongly (#9939)
FIXES FRMW-2764

**What**
- Fix wrong CLI package
- Fix package.json path resolution
2024-11-06 08:43:04 +00:00
Adrien de Peretti
879ce33090 fix(utils/dml): set-relationship graphql generator from DML wrong managed belongsTo (#9932)
**What**
Currently, when setting a `belongsTo` relationship on the DML with the otherside being `hasMany` it result in a wrongly generated gql output making the belongs to being a collection of the relation instead of the relation directly. This pr fixes this issue
2024-11-05 14:14:28 +00:00
Adrien de Peretti
bbf4af1725 fix(types): Prev limit wrong values (#9935)
**What**
The values are wrongly set which can lead to infinite depth iteration

**Note**
This will change on how we manage those cases in the future but currently it fixes an issue
2024-11-05 14:14:06 +00:00
Kasper Fabricius Kristensen
d19d7a66ff fix(dashboard): Allow using enter key to create newline in Textarea (#9913)
* fix(dashboard):Allow using enter key to create newline in Textarea

* update scheam file
2024-11-05 08:54:28 +01:00
Adrien de Peretti
c0368cca28 fix(workflows-sdk): Paralellize steps rollback issue with config (#9921)
* fix(workflows-sdk): Paralellize steps rollback issue with config

* Create tall-starfishes-travel.md
2024-11-05 08:54:04 +01:00
Adrien de Peretti
16b4cc433e fix(utils): Mikro orm repository update many to many should detach all items by default (#9917)
* fix(utils): Mikro orm repository update many to many should detach all items by default

* Create shiny-spiders-raise.md
2024-11-05 08:53:55 +01:00
Frane Polić
61cb97da26 fix(dashboard): truncate price cell titles (#9715)
Before:
![Screenshot 2024-10-22 at 17 14 56](https://github.com/user-attachments/assets/7ec74e70-c69f-4346-b15a-665fed27e688)

After
![Screenshot 2024-10-22 at 17 26 15](https://github.com/user-attachments/assets/b353c40b-7451-4bdf-9459-1494c18c7531)


Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-11-04 11:01:00 +00:00
Harminder Virk
ab90900d40 fix: disable admin when running integration tests (#9915) 2024-11-04 16:20:41 +05:30
Kasper Fabricius Kristensen
e2058683f4 chore(dashboard): Setup test and script for validating i18n (#9799)
**What**
- Adds a test that validates that en.json and $schema.json matches, this will help us catch missing translations, and prevent us from forgetting to update the schema when we delete/add new keys.
- Adds a script for validating translations against the translation schema. This can be used to validate that community PRs for i18n contain all the required keys. To use the script you can run `yarn i18n:validate <file name>` e.g. `yarn i18n:validate da.json` which will look for a da.json file in the translation folder, and validate it against the schema. We handle this with a script as we don't want to do so through a test. Doing it with a test would mean that if we update the schema, we would also have to update all translations files that we don't maintain ourselves. The purpose of the script is just to allow us to easily review community PRs and also as a tool for people opening PR's to check their translations agains the schema, as it will print missing/additional keys.
- Also adds a script to generate a schema from the en.json file. After adding/deleting keys to en.json you should run `yarn i18n:generate`.
2024-11-04 09:45:07 +00:00
Harminder Virk
300ef8dbb9 fix: consider --host flag and HOST env variable (#9912) 2024-11-04 14:56:57 +05:30
Frane Polić
dd93d8de6e fix(dashboard): tax override reference (#9796)
* fix: tax override reference

* fix: create rest

* fix: comment out unsupported references for now

* fix: edit form
2024-11-04 09:05:46 +01:00
Frane Polić
1889180319 fix(core-flows, dashboard): adjust stock levels when doing partial fulfilments (#9736)
* fix: correctly update stock location when partial fulfillemnt is created

* fix: update test

* fix: count reserved quantity of the item as available quantity for fulfillment

* fix: refresh reservations when order fulfillment is created

* feat: add check for reservation quantity

* feat: add a test case
2024-11-04 09:04:58 +01:00
Kasper Fabricius Kristensen
a0034a0fef fix(dashboard): Allow float values for product prices (#9859) 2024-11-04 09:04:29 +01:00
Ikko Eltociear Ashimine
ccec9b8750 chore: update common.ts (#9818)
addreses -> address
2024-10-28 14:30:28 +00:00
Shahed Nasser
43a44cf426 chore(js-sdk,types): add tsdocs for admin JS SDK methods [4/n] (#9745)
Add TSDocs to admin JS SDK from notification to payment

[4/n]
2024-10-28 04:42:17 +00:00
olivermrbl
4ccab16336 chore: Version packages 2024-10-25 17:19:36 +02:00
Frane Polić
ddf3306af1 feat(dashboard, medusa, types): orders list on customer details page (#9790)
**What**
- display orders list on customer details

---

CLOSES CC-625
2024-10-25 11:31:30 +00:00
Shahed Nasser
f40ea9cfbf chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n] (#9788)
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n]

* add api route link
2024-10-25 13:02:17 +03:00
Frane Polić
259d050e53 feat: customer bulk endpoint form managing customer groups (#9761)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-10-25 11:55:57 +02:00
docloulou
bb6d7c6641 feat: Allow customer metadata update (#9780)
* Allow customer metadata update 

See issue 9779
https://github.com/medusajs/medusa/issues/9779

* add integration tests for customer metadata

- Implemented integration tests to verify customer creation with metadata.
2024-10-25 11:28:34 +02:00
Adrien de Peretti
f295596df2 fix(orchestration): Ids wrongly processed when using operators map (#9781)
* fix(orchestration): Ids processing when using operators map

* fix(orchestration): Ids processing when using operators map

* address feedback

* address feedback
2024-10-25 11:10:35 +02:00
Frane Polić
853dd38044 fix(core-flows, dashboard): products category batch issue (#9766)
FIXES CC-624
2024-10-25 08:52:05 +00:00
Kasper Fabricius Kristensen
59e6747800 feat(dashboard,ui): DateFilter should open correctly (#9775) 2024-10-24 17:28:03 +02:00
Shahed Nasser
92bbd7953b chore: update links to v2 docs in source code and comments (#9732) 2024-10-24 15:18:38 +03:00
Adrien de Peretti
471f7e4a10 fix(medusa): Admin validator filtering and pagination (#9748)
**What**
Fix usage of $and and $or operator and pagination inclusion
2024-10-24 11:44:14 +00:00
Adrien de Peretti
e087073121 fix(dashboard): Workflow executions (#9757)
**What**
- Fix wrong http request fields
- fix workflow executions UI

<img width="1609" alt="Screenshot 2024-10-24 at 12 22 06" src="https://github.com/user-attachments/assets/5f8ced3c-920e-424a-bdd0-ca5793fa8dad">
<img width="1623" alt="Screenshot 2024-10-24 at 12 22 19" src="https://github.com/user-attachments/assets/1df44280-3616-44af-a1a5-591e6c9a7986">
2024-10-24 11:18:05 +00:00
Kasper Fabricius Kristensen
7b6793f846 fix(dashboard): Prevent reusing same Component for nested UI routes (#9725)
**What**
- Fixes a bug that caused nested UI routes to reuse their parents Component.
2024-10-24 11:06:49 +00:00
Shahed Nasser
669adbcdc9 fix(js-sdk): remove list and retrieve methods of paymentCollection (#9746)
Co-authored-by: Harminder Virk <virk.officials@gmail.com>
2024-10-24 12:27:57 +02:00
Harminder Virk
809c8a6741 fix: missing dependency in dev-cli (#9730) 2024-10-23 10:01:39 +02:00
olivermrbl
2fbebb60e3 chore: Release 2024-10-22 20:43:47 +02:00
Oli Juhl
c3418a2b93 chore: Prepare versions + changeset (#9707)
* chore: Prepare version + changeset

* chore: Bump dependencies

* chore: Update lock-file
2024-10-22 20:31:33 +02:00
Riqwan Thamir
d1ce6d4321 Revert "feat(core-flows,medusa): Add customer validation on cart update" (#9724) 2024-10-22 18:26:01 +00:00
Oli Juhl
f1b2d22db7 chore: Remove v2 branches from starters (#9721)
* chore: Remove v2 branches from starters

* revert imports
2024-10-22 20:00:13 +02:00
Adrien de Peretti
6b989353ac fix: API validation management issues (#9693)
**What**
Currently, the API validation layer is broken in both responsibilities and validation itself.
This pr introduce the following fixes and patterns:
- Always create a `*Fields` schema that only takes care of defining the schema validation without `effect`
- Use the previous point into the API schema validator including `$and` and `$or` capabilities plus the recursive effects
- remove `normalizeArray` which does not have to exists since array are already treated as they should
- Add recursive transformation to take into account `$and` and `$or` as well or any other similar operators
- New util `applyAndAndOrOperators` to wrap the management of those operators and to be merged to an existing schema

Tasks
- [x] store domain
- [ ] admin domain
2024-10-22 15:16:36 +00:00
Shahed Nasser
14efb2a420 chore(js-sdk,types): add tsdocs for admin JS SDK methods [3/n] (#9712) 2024-10-22 18:08:33 +03:00
Kasper Fabricius Kristensen
1c1ba88220 fix(dasbhoard): Revert keybound form for public pages (#9710)
**What**
- We recently changed all forms to require Cmd/Ctrl + Enter to submit, this makes sense for our forms within modals, but not so much for our public pages such as the login page.
- This PR removes the need to hold Cmd or Ctrl when trying to submit the forms on the login page, reset password page, and register page.
- Also fixes some incorrect styling on the reset password and register pages.
2024-10-22 15:00:35 +00:00
Frane Polić
94ca1134c7 fix(dashboard): broken CustomerGroup create form (#9711) 2024-10-22 14:59:45 +00:00
Adrien de Peretti
29d9f90fbf Feat/validate query enhancement (#9705)
* feat(framework): Enhance query validation

* feat(framework): Enhance query validation

* feat(framework): Enhance query validation

* feat(framework): Enhance query validation

* fix

* split restriction per http domain

* fix

* fix unit tests

* fix middleware

* cleanup allowed fields

* update docs

* missing allowed

* export

* missing allowed

* missing fields

* improvements

* rm unnecessary fields

* wip

* update symbol support

* update symbol support

* update allowed

* update allowed
2024-10-22 16:47:05 +02:00
Frane Polić
6e0a1e3a86 fix(dashboard): temp hide order column on reservations (#9692)
**What**
- hide the order column on the reservations list until a link is introduced + impl. of `listOrderItems`
2024-10-22 12:27:05 +00:00
Shahed Nasser
3df7ebe3d1 chore(js-sdk,types): add tsdocs for admin JS SDK methods [2/n] (#9696)
Add TSDocs to admin JS SDK from customer groups to fulfillment providers

[2/n]
2024-10-22 11:53:09 +00:00
Shahed Nasser
5ea3100c10 chore(js-sdk,types): add tsdocs for admin JS SDK methods [1/n] (#9667)
Add TSDocs to admin JS SDK from API keys to currencies

[1/n]
2024-10-22 11:19:04 +00:00
Riqwan Thamir
0d803b3f2d feat(core-flows,medusa): Add customer validation on cart update (#9662) 2024-10-22 12:19:12 +02:00
Kasper Fabricius Kristensen
68cb7d0b27 fix(admin-vite-plugin): Generate correct UI Route tree (#9699) 2024-10-22 10:55:16 +02:00
Stevche Radevski
abe003a5d6 fix: Don't store token in SDK by default (#9704) 2024-10-22 10:42:55 +02:00
Carlos R. L. Rodrigues
d8e3e04895 feat(core-flows): order events (#9702) 2024-10-21 15:26:44 -03:00
Kasper Fabricius Kristensen
9f53683508 feat(dashboard,types): Translate all OrderBy filters (#9691)
Resolves CC-616

**Note**
- I have added some missing fields to a couple of types, to resolve TS errors in the dashboard.
- For the ApiKey types I have left the created_at, updated_at, etc. as type Date, as changing them to string, caused @medusajs/medusa to fail building. We need to clean up the types at a later time.
2024-10-21 18:09:55 +00:00
Stevche Radevski
e81dbc754c chore: Correctly assert test (#9695) 2024-10-21 18:07:13 +00:00
Frane Polić
171434e4d1 fix: allow to pass external_id on create/update (#9694) 2024-10-21 20:05:18 +02:00
Shahed Nasser
a0668adefa fix(dashboard,js-sdk): remove methods / hooks to non existing exchange routes (#9697)
Remove the following exchange methods (and hooks from dashboard) which point to routes that don't exist:

- `delete`
- `addItems`
- `updateItem`
- `removeItem`
2024-10-21 14:00:30 +00:00
Adrien de Peretti
45df24f707 fix(product): Category repository missing ontext (#9688)
**What**
- Fix product category repository missing context passed to down level methods
- Ensure the base repository when getting the active manager returns a fresh one if possible instead of the global one in order to prevent shared entity map by mistake
2024-10-21 11:42:17 +00:00