Commit Graph
5227 Commits
Author SHA1 Message Date
Frane PolićandGitHub df8f4169e5 fix(dashboard): variants list query key (#7354) 2024-05-17 10:18:36 +02:00
Oli JuhlandGitHub 31648b12ca fix: Retrieve region in loader (#7351) 2024-05-17 09:35:30 +02:00
Frane PolićandGitHub 694434d51a fix(dashboard): location UI fixes (#7288)
* fix: a few UI fixes

* fix: domain name

* feat: edit service zone areas

* feat: edit shipping option prices

* fix: sorting
2024-05-16 19:34:49 +02:00
Adrien de PerettiandGitHub a775d57255 feat(core-flows, types): Create return order (#7319)
**what**
- Create return workflow partial implementation
- Update some order domain types
- create order fulfillment link

**NOTE**
this PR is partially done but can still be merged as is, it will require some discussions around the flow and some unknowns or uncertainty in regards to some data and some behaviour
2024-05-16 14:10:54 +00:00
Stevche RadevskiandGitHub 07e5c17f86 chore: Remove medusa interfaces package (#7347) 2024-05-16 15:06:21 +02:00
ee924b1b28 feat: Add a simple configurable notifications subscriber (#7331)
* feat: Add a simple configurable notifications subscriber that is configurable

* Proposal on awaiting all subscribers to run

* fix: Clean up wait subscribers util and notifications test

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
2024-05-16 13:36:09 +02:00
2e42e053d4 chore: Publish preview release + deploy staging every 3 hours (#7341)
* wip

* Wrap up

* Update .github/workflows/trigger-staging-deployment.yml

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>

* enable schedule

---------

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2024-05-16 12:36:30 +02:00
Stevche RadevskiandGitHub 845eda4643 feat: Create the Medusa API SDK as js-sdk package (#7276) 2024-05-16 12:30:32 +02:00
Adrien de PerettiandGitHub e733d6b1ee fix(modules-sdk): Resolve discovery location properly (#7345) 2024-05-16 12:13:25 +02:00
d5ac0633f5 feat(dashboard): collection product management (#7333)
* feat: implement collection management

* fix: toasts

* fix: use query keys from the lib

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-05-16 09:07:36 +02:00
Riqwan ThamirandGitHub b78703b8c6 chore: fix variant pricing validation for carts (#7344) 2024-05-16 09:03:37 +02:00
Shahed NasserandGitHub 22f30f54fd docs: update api-reference project for v2 (#7307)
* remove everything v1 and make v2 default

* move main v2 rewrites to book

* move rewrites to book + other fixes
2024-05-16 09:02:35 +02:00
Shahed NasserandGitHub 9b1998b9b2 docs: update events reference (#7321)
* change subscribers events

* add event references for modules
2024-05-16 09:01:12 +02:00
Shahed NasserandGitHub 1160a34f3d docs: handle Card and CardList components in cross-links plugin (#7338) 2024-05-16 09:40:42 +03:00
Kasper Fabricius KristensenandGitHub 490586f566 feat(medusa,dashboard,admin-sdk): Run admin dashboard from Medusa instance (#7330) 2024-05-15 19:52:09 +02:00
Adrien de PerettiandGitHub ec5415ea1a chore(modules-sdk, medusa): Cleanup migration helpers (#7342)
**What**
Cleanup the migrations scripts
2024-05-15 15:52:26 +00:00
Harminder VirkandGitHub 17486cda99 Validate product and collection handles to be URL safe (#7310)
* fix: allow URL safe characters for product handle

Fixes: CORE-2072
2024-05-15 17:50:26 +02:00
Carlos R. L. RodriguesandGitHub 7c4f4d7388 feat(payment): update payment collection status (#7335) 2024-05-15 15:11:40 +00:00
Oli JuhlandGitHub 774696845c chore: Update perfect-fishes-listen.md (#7339) 2024-05-15 16:24:15 +02:00
Adrien de PerettiandGitHub 13ce60b999 fix(medusa, modules-sdk): Fix migrate command and fix revert support (#7340) 2024-05-15 15:46:23 +02:00
Riqwan ThamirandGitHub bb2b041954 feat(dashboard): add campaign create to promotion UI (#7306)
* chore(medusa): strict zod versions in workspace

* feat(dashboard): add campaign create to promotion UI

* chore: fix bug with form reset

* chore: address reviews
2024-05-15 10:43:13 +02:00
Stevche RadevskiandGitHub 5c14d283d0 chore: More cleanup of medusa package (#7332) 2024-05-15 09:42:06 +02:00
Carlos R. L. RodriguesandGitHub 70fd355e46 chore(order): link order and payment collection (#7334) 2024-05-14 20:37:27 +00:00
Shahed NasserandGitHub 7a8937fcba fix(medusa): use pre-defined type in subscriber args (#7328) 2024-05-14 17:37:58 +03:00
Carlos R. L. RodriguesandGitHub 4ef70d37bf feat(order): receive return and additional calculations (#7314) 2024-05-14 08:35:31 -03:00
Stevche RadevskiandGitHub d680c7ee4c Remove v1-related code from medusa app (#7326)
* chore: Remove unused validations and utilities

* chore: Remove all resources that are not being loaded

* chore: Remove unused dependencies, typeorm related code and fix tests

* chore: Use createAdminUser in all module tests
2024-05-14 13:21:30 +02:00
Carlos R. L. RodriguesandGitHub 9dae86daa2 chore: es target 2021 (#7325) 2024-05-14 08:07:14 -03:00
Harminder VirkandGitHub a502222582 refactor: remove usage of inventory_quantity from the codebase (#7323) 2024-05-14 13:01:49 +02:00
Shahed NasserandGitHub 9ca302d33f fix(medusa): fix type of data in SubscriberArgs (#7324) 2024-05-14 13:59:25 +03:00
Carlos R. L. RodriguesandGitHub e2dfe91071 chore(modules-sdk): Custom Module definition (#7315) 2024-05-14 06:59:14 -03:00
Stevche RadevskiandGitHub bf83d1cfe6 fix: Remove medusa v2 flag from the medusa app package (#7295) 2024-05-14 09:23:39 +02:00
josetrandGitHub ad007ad7ed Avoid returning draft_orders from /orders endpoint (#7302) 2024-05-14 09:14:24 +02:00
Shahed NasserandGitHub 70c4ffff8b docs: improve API testing feature (#7311) 2024-05-14 10:12:53 +03:00
Oli JuhlandGitHub 5b26f5f2cf feat: Add publishable key scopes middleware (#7301)
**What**

Add pub key + sales channel middlewares to the store carts API
- Assign sales channel associated with pub key, if sales channel is not passed in request
  - Throw if pub key has multiple associated sales channels
- Throw if sales channel ID in payload is not associated with publishable API key in header
2024-05-13 16:17:52 +00:00
Carlos R. L. RodriguesandGitHub 6c94d0205c Feat(order): return reason and transaction methods (#7303) 2024-05-13 16:15:25 +00:00
Shahed NasserandGitHub 8958214350 chore: fix docs PR label removing team label (#7308)
* chore: fix docs PR labeler to only run with PR is opened

* add team labeler action

* move docs labeler to team labeler
2024-05-13 18:55:31 +03:00
Shahed NasserandGitHub 7cb90f8e82 docs: editing and general fixes of medusa's learning resources (#7261)
* docs: editing and general fixes of medusa's learning resources

* fix build script

* update ui dependency

* fix build

* adjust next.js steps
2024-05-13 18:55:11 +03:00
Shahed NasserandGitHub 803e4aad02 docs: added file module docs (#7278) 2024-05-13 18:54:59 +03:00
Shahed NasserandGitHub 8b2429d24f chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default (#7304)
* chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default

* fixes to changeset

* fix public url path
2024-05-13 17:01:38 +03:00
Adrien de PerettiandGitHub 63623422fe chore(): Autoload module resources (#7291)
**What**
- automatically build and consume connection and container loader if not exported by the module
- therefore load the services and repositories automatically, including baseRepository
- automatically build run and revert migrations if not provided
- cleaup modules to remove extra unnecessary bits and pieces
- remove the `initializeFactory` in favor of using `medusaApp`

Should drastically improve the module building DX by removing a lot of boilerplate to handle by the user, that plus the base entity should simplify quite a lot the flow cc @shahednasser 

**Note**
I had to choose a way to identify connection and container loader from the exported loader from the module. I decided to go with named function `connectionLoader` and `containerLoader`, also, now the factories will return named function so if the user use the factories we are providing to build those loaders, the function will also be named and identified
2024-05-13 12:12:36 +00:00
Shahed NasserandGitHub 728c5ee53c docs: preparations for preview (#7267)
* configured base paths + added development banner

* fix typelist site url

* added navbar and sidebar badges

* configure algolia filters

* remove AI assistant

* remove unused imports

* change navbar text and badge

* lint fixes

* fix build error

* add to api reference rewrites

* fix build error

* fix build errors in user-guide

* fix feedback component

* add parent title to pagination

* added breadcrumbs component

* remove user-guide links

* resolve todos

* fix details about authentication

* change documentation title

* lint content
2024-05-13 11:32:52 +03:00
Shahed NasserandGitHub 3e3b8a483f chore: add action to automatically label docs (#7284)
* chore: add action to automatically label docs

* removes the paths param
2024-05-13 09:36:47 +03:00
Stevche RadevskiandGitHub 79758c46b6 feat: Add support for sendgrid and logger notification providers (#7290)
* feat: Add support for sendgrid and logger notification providers

* fix: changes based on PR review
2024-05-11 17:40:03 +02:00
Shahed NasserandGitHub 1a68f4602c feat(api-ref): show schema of a tag (#7297) 2024-05-10 21:07:35 +03:00
Shahed NasserandGitHub e960f10aba fix(docblock-generator): fix how type names created from Zod objects are inferred (#7292) 2024-05-10 21:06:55 +03:00
Adrien de PerettiandGitHub e5904f8c75 fix(medusa): Missing middlewares export (#7289) 2024-05-10 15:43:43 +00:00
Riqwan ThamirandGitHub 7e43aabda0 chore(medusa): strict zod versions in workspace (#7296) 2024-05-10 17:16:16 +02:00
Adrien de PerettiandGitHub 45e2228a07 chore(utils): Provide a mikro orm base entity (#7286)
**What**
Provide a new mikro orm base entity in order to abstract away the on init and on create which include the id auto generation if not provided. The main goal is to reduce complexity in entity definition
2024-05-10 09:27:33 +00:00
Stevche RadevskiandGitHub 144e09e852 feat: Add the basic implementation of notification module (#7282)
* feat: Add the basic implementation of notification module

* fix: Minor fixes and introduction of idempotency key

* fix: Changes based on PR review
2024-05-10 11:22:03 +02:00
Riqwan ThamirandGitHub 6ec5ded6c8 feat(dashboard): add promotions to campaign UI (#7283)
* feat(core-flows,types,medusa): API to add promotions to campaign

* chore: consolidate specs

* chore: split workflows step into 2

* chore: fix tests

* chore: fix specs

* chore: add promotions to campaign UI

* chore: fix bug wrt to not refreshing

* chore: address review comments
2024-05-10 10:39:01 +02:00