Commit Graph
6277 Commits
Author SHA1 Message Date
Kasper Fabricius KristensenandGitHub 16d8fb1d20 fix(dashboard): Pass query params to list SC request (#8863)
Resolves CC-331
2024-08-29 08:35:39 +00:00
Shahed NasserandGitHub 70f2290a22 docs: added documentation for db commands (#8846)
* docs: added documentation for db commands

* fix lint errors
2024-08-29 10:46:00 +03:00
Shahed NasserandGitHub c86a9fe864 docs-util: fix removal of manually-added schemas in clean script (#8840) 2024-08-29 10:22:50 +03:00
Adrien de PerettiandGitHub 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 KristensenandGitHub 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ćandGitHub d8fdf4d0b2 fix(dashboard): active rma z-index (#8854) 2024-08-28 15:54:01 +00:00
Adrien de PerettiandGitHub 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ćandGitHub 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 PerettiandGitHub 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. RodriguesandGitHub 6cfe9bd874 fix(orchestration): remote joiner alias conflict (#8844) 2024-08-28 11:34:22 -03:00
Shahed NasserandGitHub 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 JuhlandGitHub 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 PerettiandGitHub 5294ce8654 chore(medusa): Re enable plugin loading (#8843)
* chore(medusa): Re enable plugin loading

* finalise
2024-08-28 15:38:51 +02:00
Shahed NasserandGitHub 22d92aa70a docs: add tracking for navigation usage (#8819) 2024-08-28 15:44:54 +03:00
Shahed NasserandGitHub e1fd448cd1 docs: capitalize HTTP methods in api reference (#8821) 2024-08-28 15:44:42 +03:00
Shahed NasserandGitHub 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 NasserandGitHub 61e7b2eb24 fix(admin-next,types): fix some http type names (#8836) 2024-08-28 15:43:54 +03:00
Riqwan ThamirandGitHub 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 NasserandGitHub ba24e6882d fix(medusa-oas-cli): fix download url (#8763) 2024-08-28 14:23:25 +02:00
Carlos R. L. RodriguesandGitHub 8dea3e44c6 fix(order): order change references (#8845) 2024-08-28 08:57:44 -03:00
Oli JuhlandGitHub c2e7940f61 fix: Validate boolean query params (#8834) 2024-08-28 13:14:15 +02:00
Oli JuhlandGitHub 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 NasserandGitHub af6d43f0f0 docs-util: fix for product type schemas (#8837) 2024-08-28 12:54:35 +03:00
Shahed NasserandGitHub 8f8e2f5a65 fix(medusa): use correct request type for create cart API route (#8820) 2024-08-28 12:16:30 +03:00
Alexander NortungandGitHub afd6fdcdf6 fix: product category types (#8833) 2024-08-28 11:13:03 +02:00
Riqwan ThamirandGitHub c72b4847b9 fix(dashboard,js-sdk): fixes from rma flows testing (#8826) 2024-08-28 10:59:36 +02:00
Riqwan ThamirandGitHub 2ee374fafc fix(order): run migration before setting not null (#8831) 2024-08-28 10:10:35 +02:00
Harminder VirkandGitHub 69c5d122b1 feature: add db:setup command (#8830) 2024-08-28 13:08:48 +05:30
github-actions[bot]andGitHub 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ćandGitHub 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
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 NortungandGitHub 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. RodriguesandGitHub ff6fcfb139 fix(core-flows,order): return damaged items (#8818) 2024-08-27 11:21:10 -03:00
Shahed NasserandGitHub 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ćandGitHub 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 JuhlandGitHub 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 NasserandGitHub c6eba80af6 docs: generate sidebar and other data related to core-flows reference (#8811) 2024-08-27 11:22:03 +00:00
Shahed NasserandGitHub aa8e245c91 docs: [24/24] generate core-flows references (#8809) 2024-08-27 14:11:55 +03:00
Harminder VirkandGitHub 2a5ee970e6 feat: move migrations commands to the new db namespace (#8810) 2024-08-27 16:40:00 +05:30
Shahed NasserandGitHub 6470168526 docs: [23/n] generate core-flows reference (#8807) 2024-08-27 12:25:39 +03:00
Shahed NasserandGitHub 2b67b87137 docs: [22/n] generate core-flows reference (#8805) 2024-08-27 12:25:26 +03:00
Shahed NasserandGitHub 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 NasserandGitHub 40330650e4 docs: [20/n] generate core-flows reference (#8803) 2024-08-27 12:25:05 +03:00
Shahed NasserandGitHub 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 NasserandGitHub 9dc70a8195 docs: [18/n] generate core-flows reference (#8801) 2024-08-27 12:24:40 +03:00
Shahed NasserandGitHub c5a86a83ee docs: [17/n] generate core-flows reference (#8800) 2024-08-27 12:24:30 +03:00
Shahed NasserandGitHub e29ead56dc docs: [16/n] generate core-flows reference (#8799) 2024-08-27 12:24:21 +03:00
Shahed NasserandGitHub 20623cdc80 docs: [15/n] generate core-flows reference (#8796) 2024-08-27 12:24:11 +03:00
Shahed NasserandGitHub fc3ab7faf6 docs: [14/n] generate core-flows reference (#8795) 2024-08-27 12:24:02 +03:00
Shahed NasserandGitHub e30e9a0f2b docs: [13/n] generate core-flows reference (#8794) 2024-08-27 12:23:47 +03:00