Commit Graph

4264 Commits

Author SHA1 Message Date
Shahed Nasser
9f495fd853 chore(types, medusa): [3/3] add missing query type arguments (#8880)
Add missing type arguments in listing requests.

3/3
2024-08-30 07:07:18 +00:00
Oli Juhl
e0cb5ff0aa fix(dashboard): Fetch tags + types in product forms (#8887) 2024-08-30 08:35:46 +02:00
Carlos R. L. Rodrigues
891037081d chore(core-flows): apply taxes to items and shipping on RMA flows (#8858)
** What
Apply taxes to order line items and shipping methods
2024-08-29 17:33:39 +00:00
Frane Polić
f2496ef783 feat(dashboard): refactor dismissed quantity (#8842)
**What**
- refactor Receive return flow to use dismissed quantity instead of written off quantity 
- fix a few more edge cases

---

FIXES CC-392
2024-08-29 16:47:07 +00:00
Carlos R. L. Rodrigues
90a6f61c62 fix(order): populate version entities (#8884) 2024-08-29 13:22:24 -03:00
Oli Juhl
9cf1a5d709 chore: Remove last trace of client in dashboard (#8873) 2024-08-29 17:48:01 +02:00
Adrien de Peretti
bd20d66968 fix(link-module): Migration planner not closing connection correctly (#8881)
RESOLVES CC-405

**What**
Fixing mikro orm connection not closed during sync-links
2024-08-29 15:10:13 +00:00
Carlos R. L. Rodrigues
b6521e4c1a feat(medusa): order changes endpoint (#8728)
What:
- `admin/orders/:id/changes` endpoint to get order changes related to the order
- added `*_by` attributes missing
2024-08-29 14:20:12 +00:00
Riqwan Thamir
2a6c6fe590 feat(dashboard,types): split damaged activity from received (#8859)
what:

- split damaged activity from received
- adds a popover to view return details

<img width="1661" alt="Screenshot 2024-08-28 at 23 23 10" src="https://github.com/user-attachments/assets/064e982c-f850-452d-a60d-e5c267d0075a">

RESOLVES CC-363
2024-08-29 14:04:00 +00:00
Oli Juhl
00bd9271e3 chore: Workflow execution JS-SDK (#8851) 2024-08-29 11:22:43 +00:00
Frane Polić
e396c01260 fix(dashboard): RMAs shipping pricing (#8848)
* wip: allow unsetting price

* fix: use non return shipping for outbound

* fix: claims shipping

* fix: refactor

* fix: checks

* feat: polish
2024-08-29 11:54:29 +02:00
Oli Juhl
e652d03b98 chore: Replace reservation customer group client with JS-SDK + clean up (#8857) 2024-08-29 11:51:23 +02:00
Kasper Fabricius Kristensen
16d8fb1d20 fix(dashboard): Pass query params to list SC request (#8863)
Resolves CC-331
2024-08-29 08:35:39 +00:00
Adrien de Peretti
77b874f272 feat: Add support for providers to validate their options at loading time (#8853)
* feat: Add support for providers to validate their options at loading time

* fix missing removal

* fix integration tests

* add tests
2024-08-29 09:08:49 +02:00
Kasper Fabricius Kristensen
b8572165cb feat(dashboard): DataGrid improvements [4/4] (#8798)
**What**
- Changes cell state strategy from tracking from lazy to eager. This has required some changes to the API of the DataGrid component, and createDataGridColumnHelper function.
- Displays error messages in both affected cells and their rows. The row indicator also provides an option to quickly jump to an error.
- Allows the user to hide all rows and columns that don't have errors, to help quickly get an overview of the errors in a large grid.
- The first column of a DataGrid is now pinned, making it easier for a user to tell which entity they are editing.
- Fixes and improvements to column visibility menu.
- Adds a shortcuts modal that explains the different available keyboard commands.
- Updates `@tanstack/react-table` to the latest version.

Resolves CC-269
2024-08-28 19:06:38 +00:00
Frane Polić
d8fdf4d0b2 fix(dashboard): active rma z-index (#8854) 2024-08-28 15:54:01 +00:00
Adrien de Peretti
52e394055c fix(utils): DML hasOne - belongsTo not behaving correctly (#8813)
FIXES FRMW-2676

**What**
ref: https://discord.com/channels/876835651130097704/1023889804544458752/threads/1276979858781503528

Currently, when providing the following

```ts
const user1 = manager.create(User, {
  username: "User 1",
  team: {
    name: "Team 1",
  },
})
```

It would result in an error inserting into the database because the foreign key will be sent twice as part of the insert, one for the relation and one for the foreign key that both relate to the foreign key property.

To fix that and allow both approaches (providing the entity to cascade persist or just providing the foreign key in case of another side nullable relation) we need to handle it a bit differently.

now both approaches would be valid. the entities for the example might not be the best ones but it is just to illustrate
option 1 - we create both the user and the team:
```ts
const user1 = manager.create(User, {
  username: "User 1",
  team: {
    name: "Team 1",
  },
})
```
option 2 - the team already exists (for example the previous user have been detached from the team but we kept the team alive and assign a new user to that team) :
```ts
const user1 = manager.create(User, {
  username: "User 1",
  team_id: team.id
})
```
2024-08-28 15:45:48 +00:00
Frane Polić
6ea5a15762 fix(dashboard): active RMA section border (#8849)
**What**
- fix border around active RMA section on larger screens

**Prev**
![Screenshot 2024-08-28 at 14 36 11](https://github.com/user-attachments/assets/89f2dba9-3d84-4b32-a44c-44b32fb605fb)

**Now**
![Screenshot 2024-08-28 at 14 35 23](https://github.com/user-attachments/assets/6e96acfd-8916-456a-bdeb-9485d491f22f)
2024-08-28 15:20:56 +00:00
Adrien de Peretti
5bec38538a chore: Treat internal event differently, primarely do not display info logs for those events (#8767)
* chore: Treat internal event differently, primarely do not display info log for those events

* revert doc

* add few tests

* only set internal option if present

* revert to previous condition

* start including feedback after discussion

* include feedback

* fix modules integration tests

* fix modules integration tests

* fix event bus local
2024-08-28 16:46:40 +02:00
Carlos R. L. Rodrigues
6cfe9bd874 fix(orchestration): remote joiner alias conflict (#8844) 2024-08-28 11:34:22 -03:00
Shahed Nasser
68f3244de3 fix(core-flows): use unit price of item in create cart and add to cart flows (#8841)
* fix(types): fix create line item workflow type

* use unit price in workflows

* use tax inclusive from item
2024-08-28 17:34:07 +03:00
Oli Juhl
37b7592fba chore: Remove unused clients in admin + clean up js-sdk (#8839)
* feat(js-sdk): Add API key

* chore: Remove unused clients in admin + clean up js-sdk

* fix sales channel hooks
2024-08-28 15:43:55 +02:00
Adrien de Peretti
5294ce8654 chore(medusa): Re enable plugin loading (#8843)
* chore(medusa): Re enable plugin loading

* finalise
2024-08-28 15:38:51 +02:00
Shahed Nasser
61e7b2eb24 fix(admin-next,types): fix some http type names (#8836) 2024-08-28 15:43:54 +03:00
Riqwan Thamir
8fbfb1445d fix(dashboard): align items inside quick view popover (#8847)
* fix(dashboard): align items inside quick view popover

* chore: remove unwanted w-* classes
2024-08-28 14:37:35 +02:00
Shahed Nasser
ba24e6882d fix(medusa-oas-cli): fix download url (#8763) 2024-08-28 14:23:25 +02:00
Carlos R. L. Rodrigues
8dea3e44c6 fix(order): order change references (#8845) 2024-08-28 08:57:44 -03:00
Oli Juhl
c2e7940f61 fix: Validate boolean query params (#8834) 2024-08-28 13:14:15 +02:00
Oli Juhl
dbe931ab00 feat(js-sdk): Add API key (#8838)
* feat(js-sdk): Add API key

* address PR comments

* Allow params to create + update
2024-08-28 13:07:06 +02:00
Shahed Nasser
8f8e2f5a65 fix(medusa): use correct request type for create cart API route (#8820) 2024-08-28 12:16:30 +03:00
Alexander Nortung
afd6fdcdf6 fix: product category types (#8833) 2024-08-28 11:13:03 +02:00
Riqwan Thamir
c72b4847b9 fix(dashboard,js-sdk): fixes from rma flows testing (#8826) 2024-08-28 10:59:36 +02:00
Riqwan Thamir
2ee374fafc fix(order): run migration before setting not null (#8831) 2024-08-28 10:10:35 +02:00
Harminder Virk
69c5d122b1 feature: add db:setup command (#8830) 2024-08-28 13:08:48 +05:30
Frane Polić
e0a3b8fc2e feat(dashboard): summary shipping breakdown (#8779)
**What**
- display a shipping costs breakdown in the order summary
- allow to receive only non canceled returns
- show how many items is actually received with return in the timeline

**Question**
- should we display the shipping total somewhere as well

---

CLOSES CC-356
2024-08-28 06:44:22 +00:00
420coupe
a430339d54 feat(notification-sendgrid): include ability to handle attachments (#8729)
* feat(notification-sendgrid): include ability to handle attachments array if passed to dynamicTemplateData.attachments

* docs: update sendgrid page.mdx

include attachments documentation in example

* ability to set from email, must be verified sender

* docs: update to include optional from property

* first-class optional vars for from & attachments

* docs: update for optional first-class vars

* Update www/apps/resources/app/architectural-modules/notification/sendgrid/page.mdx

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

---------

Co-authored-by: Stevche Radevski <sradevski@live.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-08-28 09:39:41 +03:00
Alexander Nortung
ac18b5d35f fix(product): Add metadata to property to product category data model (#8766)
* fix: Add metadata to property to product category data model

* chore: Add migration for adding metadata column to product category

* chore: Added test for product category metadata
2024-08-27 16:21:41 +02:00
Carlos R. L. Rodrigues
ff6fcfb139 fix(core-flows,order): return damaged items (#8818) 2024-08-27 11:21:10 -03:00
Shahed Nasser
0c4f4c8a11 docs: updates following authentication flow changes (#8706)
* docs: updates following authentication flow changes

* generate sidebar

* added open api specs

* fix up OAS

* changes to existing pages

* change sidebar items

* update marketplace recipe
2024-08-27 15:47:39 +03:00
Frane Polić
9197bdd77b feat(dashboard): cancel return request (#8761)
* wip: cancel return request

* fix: refactor

* feat: correct endpoint, add hook, fix types

* feat: add prompt
2024-08-27 13:57:12 +02:00
Oli Juhl
c11ef01c15 feat: Separate registration from authentication in auth domain (#8683)
* wip

* feat: Introduce register

* fix: user command

* fix: Invite HTTP tests

* fix: Auth tests

* fix: Invite modules tests
2024-08-27 13:44:52 +02:00
Harminder Virk
2a5ee970e6 feat: move migrations commands to the new db namespace (#8810) 2024-08-27 16:40:00 +05:30
Adrien de Peretti
b09c19912b fix(orchestration, workflow-sdk): Local workflow separated orchestrator (#8765)
FIXES TRI-174

**What**
Currently, every time a Local workflow is being instantiated, it will grab the global workflow definition including the orchestrator instance. This leads to issues when we have concurrent running workflows which all register their event listeners to this single orchestrator instance which can lead to exhausting the listerners. 
With this fix, every local workflow will have a copy of the global workflow definition plus a new instance (cloned) of the orchestrator meaning that from now on, every local workflow will have its own orchestrator.
2024-08-27 08:59:56 +00:00
Oli Juhl
2bacf86d3c chore: Remove prepublishOnly script (#8699)
* wip

* wip

* verbose logging

* remove prepublish scripts

* chore: add back prepublish scripts

* wip

* remove prepublishOnly script

* chore: Clean up rest of build scripts

* add back build script

* feedback

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-08-27 10:31:38 +02:00
Harminder Virk
98b4c76ece feature: add sync links command (#8775) 2024-08-27 13:43:54 +05:30
Harminder Virk
965c3c99db refactor: cleanup error output and do not add red color to help output (#8778) 2024-08-27 13:18:22 +05:30
Frane Polić
979f7704ee fix(dashboard): summary section return fixes (#8770)
**What**
- open receive Return if only one exists
- fix double dashed divider

---

FIXES CC-287 CC-361
2024-08-27 06:53:13 +00:00
Carlos R. L. Rodrigues
571f0c7629 chore(core-flows): product events (#8769) 2024-08-26 18:38:30 -03:00
Carlos R. L. Rodrigues
3b4eea08ef chore: peer dependency version (#8771)
* fix peer dependency version

* dotenv

* commands

* dotenv cli
2024-08-26 21:55:57 +02:00
Carlos R. L. Rodrigues
afd25846f0 chore: dependencies reorg (#8744) 2024-08-26 09:37:05 +00:00