Commit Graph

6272 Commits

Author SHA1 Message Date
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
22d92aa70a docs: add tracking for navigation usage (#8819) 2024-08-28 15:44:54 +03:00
Shahed Nasser
e1fd448cd1 docs: capitalize HTTP methods in api reference (#8821) 2024-08-28 15:44:42 +03:00
Shahed Nasser
bfded6c2c8 docs: improvements to base OAS (#8835)
* docs: improve base OAS

* extra new lines + design fixes
2024-08-28 15:44:05 +03: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
af6d43f0f0 docs-util: fix for product type schemas (#8837) 2024-08-28 12:54:35 +03: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
github-actions[bot]
841cb69ba9 chore(docs): Generated References (#8828)
Generated the following references:
- `auth`
- `core_flows`
- `fulfillment`
- `fulfillment_models`
- `helper_steps`
- `medusa_config`
- `modules`
- `modules_sdk`
- `order`
- `order_models`
- `payment`
- `stock_location_next`
- `types`
2024-08-28 06:53:38 +00:00
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
Shahed Nasser
c6eba80af6 docs: generate sidebar and other data related to core-flows reference (#8811) 2024-08-27 11:22:03 +00:00
Shahed Nasser
aa8e245c91 docs: [24/24] generate core-flows references (#8809) 2024-08-27 14:11:55 +03:00
Harminder Virk
2a5ee970e6 feat: move migrations commands to the new db namespace (#8810) 2024-08-27 16:40:00 +05:30
Shahed Nasser
6470168526 docs: [23/n] generate core-flows reference (#8807) 2024-08-27 12:25:39 +03:00
Shahed Nasser
2b67b87137 docs: [22/n] generate core-flows reference (#8805) 2024-08-27 12:25:26 +03:00
Shahed Nasser
4f280e7cd6 docs: [21/n] generate core-flows reference (#8804)
* docs: [21/n] generate core-flows reference

* more
2024-08-27 12:25:16 +03:00
Shahed Nasser
40330650e4 docs: [20/n] generate core-flows reference (#8803) 2024-08-27 12:25:05 +03:00
Shahed Nasser
c617dc873b docs: [19/n] generate core-flows reference (#8802)
* docs: [19/n] generate core-flows reference

* more
2024-08-27 12:24:54 +03:00
Shahed Nasser
9dc70a8195 docs: [18/n] generate core-flows reference (#8801) 2024-08-27 12:24:40 +03:00
Shahed Nasser
c5a86a83ee docs: [17/n] generate core-flows reference (#8800) 2024-08-27 12:24:30 +03:00
Shahed Nasser
e29ead56dc docs: [16/n] generate core-flows reference (#8799) 2024-08-27 12:24:21 +03:00
Shahed Nasser
20623cdc80 docs: [15/n] generate core-flows reference (#8796) 2024-08-27 12:24:11 +03:00
Shahed Nasser
fc3ab7faf6 docs: [14/n] generate core-flows reference (#8795) 2024-08-27 12:24:02 +03:00
Shahed Nasser
e30e9a0f2b docs: [13/n] generate core-flows reference (#8794) 2024-08-27 12:23:47 +03:00
Shahed Nasser
8553cd6427 docs: [12/n] generate core-flows reference (#8793) 2024-08-27 12:23:32 +03:00
Shahed Nasser
d4aaf70667 docs: [11/n] generate core-flows reference (#8792) 2024-08-27 12:23:15 +03:00
Shahed Nasser
c4dd82e814 docs: [10/n] generate core-flows reference (#8791) 2024-08-27 12:22:59 +03:00
Shahed Nasser
842c26cb46 docs: [9/n] generate core-flows reference (#8790) 2024-08-27 12:22:48 +03:00
Shahed Nasser
587984de6e docs: [8/n] generate core-flows reference (#8789) 2024-08-27 12:22:38 +03:00