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
Harminder Virk
63fff01f2f
fix: allow additional_data to be undefined or null ( #9687 )
2024-10-21 13:44:21 +05:30
Shahed Nasser
fa15db4538
chore(types,js-sdk,medusa): Add TSDocs for store and auth's JS SDK + small type fixes ( #9657 )
...
* added jsdocs
* more tsdocs
* added for cart completion
* finish up the store tsdocs
2024-10-21 11:03:33 +03:00
Kasper Fabricius Kristensen
7cc599a68c
fix(dasboard): Grammer issues on invite page ( #9683 )
2024-10-21 10:01:22 +02:00
Frane Polić
05cea00146
fix: wrong qk ( #9685 )
2024-10-21 10:01:10 +02:00
Oli Juhl
604c182a20
fix(core-flows): Actually emit event in update products workflow ( #9682 )
2024-10-21 09:55:50 +02:00
Frane Polić
24a1b81fb2
fix(dashboard, js-sdk): undefined RMA activity items ( #9649 )
...
**What**
- fix for showing removed items in rma flows
---
DEPENDS ON https://github.com/medusajs/medusa/pull/9646
FIXES CC-597
2024-10-20 12:56:08 +00:00
Carlos R. L. Rodrigues
6fa98b6a4d
chore(orchestration): modules method context ( #9669 )
...
** What **
* Test to check if the MedusaContext is being injected when calling a Module's method
2024-10-18 21:08:06 +00:00
Shahed Nasser
2ea766daf5
fix(dashboard,js-sdk): remove method and hook for deleting claim ( #9668 )
2024-10-18 19:43:53 +03:00
Shahed Nasser
30659b077a
chore(utils): update tsdocs for provider identifiers ( #9656 )
2024-10-18 17:32:15 +03:00
Harminder Virk
1e0f6188ec
fix: resolve paths using require.resolve ( #9665 )
2024-10-18 13:30:29 +00:00
Carlos R. L. Rodrigues
d3c1580c06
fix(orchestration): local workflow proxy ( #9664 )
2024-10-18 13:30:16 +00:00
Harminder Virk
d77d184729
Fix/production logging ( #9658 )
...
Keep the old format (ie combined) when logging in production.
**Development**

**Production**

2024-10-18 13:11:46 +00:00
Frane Polić
5b91d71318
feat(dashboard) taxes + discount breakdown ( #9586 )
...
**What**
- add tax breakdown to order details
- display discount total and codes
---
CLOSES CC-553
2024-10-18 09:40:08 +00:00
Harminder Virk
aa6a28ac56
feature: use application logger to log HTTP requests ( #9655 )
2024-10-18 15:08:55 +05:30
Kasper Fabricius Kristensen
82e32f9da4
test(admin-vite-plugin): React Invalid hook call on Windows ( #9647 )
2024-10-18 09:38:28 +00:00
Christian
a0b747e117
feat: allow html content for notifications ( #9613 )
...
* feat: allow passing provider specific metadata to notification module
* changed providerContext to snake cased
* rename provider_context to content
2024-10-18 11:36:22 +02:00
Carlos R. L. Rodrigues
2a98be6b65
feat(medusa): ordem items endpoint ( #9646 )
2024-10-18 05:59:24 -03:00
Kasper Fabricius Kristensen
7a47f5211d
fix(dashboard): Hide usage insights ( #9651 )
...
**What**
- Hides everything related to usage insights from the profile page.
**Why**
- We haven't set up usage insights tracking in V2, so hiding the UI for disabling/enabling it. We can re-add it again later if we decide we want to continue tracking how the dashboard is used.
2024-10-18 08:20:05 +00:00
Adrien de Peretti
876d8072e7
chore: Update modules providers configuration with 'identifier' and 'PROVIDER' ( #9636 )
...
* chore: Update modules providers configuration with 'identifier' and 'PROVIDER'
* update check
* fix tests
* type
* normalize auth provider
* emailpass
* providers
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-10-18 09:24:15 +02:00
Carlos R. L. Rodrigues
902ac12f73
chore: remove internal module resources option ( #9582 )
...
What:
* removes resouces type "shared" or "isolated" from internal modules.
* modules can have an isolated database connection by providing a database config as part of their options on `medusa-config`
CLOSES: FRMW-2593
2024-10-17 21:31:46 +00:00
Shahed Nasser
ab113cdc38
chore(js-sdk): add ignore tsdoc tag to client and constructor of inner classes ( #9635 )
2024-10-17 19:31:51 +03:00
Shahed Nasser
4ca5510da9
fix(types): change options to be required in http type ( #9642 )
...
`options` is now required when creating a product. This PR updates the http type
2024-10-17 16:13:17 +00:00
Shahed Nasser
31900239b7
fix(core-flows, types): general fixes to types and tsdocs ( #9633 )
...
- Export input type of `useQueryGraphStep` step
- Remove duplicate `OrderTransactionDTO`
- Fix some tsdoc errors
2024-10-17 15:50:19 +00:00
Kasper Fabricius Kristensen
10ae60e155
fix(ui): Fix Avatar styling ( #9645 )
...
Resolves CC-138
2024-10-17 15:26:00 +00:00
Kasper Fabricius Kristensen
902087e569
fix(dashboard): Ensure all progress tabs are 200px wide ( #9644 )
...
**What**
- Fixes onE FocusModal where the ProgressTabs weren't 200px wide. All others already have the correct width.
Resolves CC-110
2024-10-17 15:17:10 +00:00
Adrien de Peretti
3474d54a50
feat(medusa): Display admin url on start ( #9643 )
...
**What**
Display the admin url on server start in the console
<img width="452" alt="Screenshot 2024-10-17 at 16 07 10" src="https://github.com/user-attachments/assets/bc618371-2022-40fe-a573-4dff13f8a2ff ">
2024-10-17 15:06:03 +00:00
Kasper Fabricius Kristensen
b50ac9730e
fix(dashboard): Fix styling of nested NavLinks ( #9637 )
...
**What**
Adds the `end` prop to NavLinks, so they only use their active style when the current path is a perfect match.
This was added to prevent MenuItems from extensions both showing the parent and child items as active, when the child route was active.
Also added a check to prevent users from adding nested settings NavLinks.
<img width="218" alt="Skærmbillede 2024-10-17 kl 14 25 12" src="https://github.com/user-attachments/assets/9e4d530a-c7b4-410e-aaaf-5a21ac86eb03 ">
<img width="221" alt="Skærmbillede 2024-10-17 kl 14 24 03" src="https://github.com/user-attachments/assets/6769b951-8e48-4725-a373-dc64ed6936ce ">
2024-10-17 14:16:31 +00:00
Carlos R. L. Rodrigues
e9a06f4b4d
fea(providers): locking postgres ( #9545 )
...
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-17 13:11:39 +00:00
Riqwan Thamir
3b50c6d019
feat(core-flows,types,medusa): Add tax region update API ( #9634 )
...
* feat(core-flows,types,medusa): Add tax region update API
* chore: added specs
2024-10-17 14:19:29 +02:00