Commit Graph

5261 Commits

Author SHA1 Message Date
Shahed Nasser
e443a7be3f feat(create-medusa-app): install v2 by default (#7381)
- Remove `v2` option and install V2 starter branch by default.
- Use new `exec` command to seed data
- Install v2 branch of next.js starter if the option is provided.
- Change the opened browser to `localhost:9000/app`.
- Added a bunch of todos for onboarding flows once we have that
2024-05-21 19:45:43 +00:00
Shahed Nasser
1f43290cec feat(medusa-cli): added branch option (#7384) 2024-05-21 21:17:01 +02:00
Adrien de Peretti
c4fde7ea5c feat(core-flows, fulfillment): Add create return specific method and add more tests (#7357)
* feat(core-flows, fulfillment): Add create return specific method and add more tests

* fix defautl providers in tests fixtures

* more tests

* wip fixes

* fix flow and tests

* cleanup
2024-05-21 13:48:59 +02:00
Stevche Radevski
35dc3c5cf7 fix: Minor HTTP typing fixes (#7380) 2024-05-21 12:16:08 +02:00
Riqwan Thamir
43613f3f58 chore: pick the default store region (#7369)
* chore: pick the default store region

* chore: fix test

* chore: remove from defaults workflow and move to seeds

* chore: undo payment provider change

* chore: rearrange conditionals
2024-05-21 12:05:01 +02:00
Harminder Virk
3dbb256ddf load resources from starter kit and introduce srcDir configuration 2024-05-21 15:02:53 +05:30
Shahed Nasser
73c917fdce feat(medusa,medusa-cli): add an exec command (#7376) 2024-05-21 10:56:44 +02:00
Riqwan Thamir
442b0b2038 chore: rename route from api-v2 to api (#7379)
* chore: rename route from api-v2 to api

* chore: change oas references

* chore: remove v2 ref
2024-05-21 10:44:02 +02:00
Stevche Radevski
e72174c4ff fix: Minor updates to the http typings (#7378) 2024-05-21 10:19:35 +02:00
Stevche Radevski
2371626198 feat(sdk): Type all store endpoints in the SDK (#7375)
The typings will need further refinement, but we can do that once closer to a public release
2024-05-20 19:41:58 +00:00
Carlos R. L. Rodrigues
f57dc98c7a chore(order): Paid Total and Refunded Total (#7373) 2024-05-20 15:48:57 -03:00
Stevche Radevski
025536e2a5 feat(sdk): Replace region calls with the SDK in admin, apply typings … (#7371) 2024-05-20 14:47:31 +00:00
Frane Polić
521b4e7926 feat(dashboard): order fulfillment UI (#7262)
* feat: initial impl. of Unfulfilled section and create flow

* feat: create fulfillment

* feat: order <> fulfillment link, fulfillment section

* feat: accept order_id when creating fulfillment

* feat: finish create and cancel

* fix: integration test

* refactor: real Order<>Fulfillment link instead readonly, add link step to the workflow

* fix: revert `order_id` definitions

* chore: add changeset

* fix: build

* fix: address comments

* fix: fetch inventory and location levels for fulfilled variant

* fix: loading inventory details

* add isList to order fulfillment link

* fix: duplicate declaration

* fix: type

* refactor: link orders step, fix client

* fix: move translations to the new file

* fix: pass order id in test

---------

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2024-05-20 13:41:09 +02:00
Oli Juhl
c9bffdfecb feat: expose backend url in admin options (#7370) 2024-05-20 11:24:15 +02:00
Stevche Radevski
028f63eb63 feat: Add missing typings for the http layer and cleanup some (#7260) 2024-05-20 09:27:21 +02:00
Shahed Nasser
cd312287f5 docs-util: add type argument of MedusaRequest as query parameter for get requests (#7359) 2024-05-20 09:51:37 +03:00
Shahed Nasser
5d4bf83145 docs: fix code block highlighting for lines starting with spaces (#7356) 2024-05-20 09:49:52 +03:00
Carlos R. L. Rodrigues
48aa09be23 Chore(order): endpoints - Part 1:N (#7360) 2024-05-19 14:51:08 -03:00
olivermrbl
0d0c0b4329 chore: Update preview release changeset 2024-05-19 14:16:26 +02:00
Oli Juhl
c0813a3547 fix: undefined BACKEND_URL in client (#7367) 2024-05-19 13:51:36 +02:00
Oli Juhl
bf4724b8e6 feat: Destroy session + introduce http config (#7336) 2024-05-19 12:40:28 +02:00
Frane Polić
ce75755ac6 feat(dashboard): manage groups from customer details (#7346) 2024-05-19 11:10:13 +02:00
Stevche Radevski
05e42bc6fc feat: Add back the subscribers API and load v2 subscribers (#7358) 2024-05-17 15:37:56 +00:00
Stevche Radevski
00a37cede1 feat: Add support for authentication to the sdk, and plug it in the admin (#7349)
* feat: Add support for authentication to the sdk, and plug it in the admin

* fix: await fetch before returning in sdk
2024-05-17 14:37:38 +02:00
Harminder Virk
ff337498a0 Merge pull request #7348 from medusajs/fix/2152
Fix issue related to removing last product from the collection
2024-05-17 15:47:37 +05:30
Harminder Virk
cf15f5d498 refactor: use flatMap 2024-05-17 15:31:50 +05:30
Harminder Virk
72718101c6 Merge branch 'develop' into fix/2152 2024-05-17 14:43:21 +05:30
Harminder Virk
72f98ea50b refactor: implement query suggestions from Adrien 2024-05-17 14:42:57 +05:30
Frane Polić
df8f4169e5 fix(dashboard): variants list query key (#7354) 2024-05-17 10:18:36 +02:00
Harminder Virk
9ff3b08b0b Merge branch 'develop' into fix/2152 2024-05-17 13:24:39 +05:30
Harminder Virk
1abf9f19b3 test: increase notification module tests timeout 2024-05-17 13:10:35 +05:30
Oli Juhl
31648b12ca fix: Retrieve region in loader (#7351) 2024-05-17 09:35:30 +02:00
Harminder Virk
9c97356098 Merge branch 'develop' into fix/2152 2024-05-17 09:54:37 +05:30
Harminder Virk
a15f2b37b3 test: add tests 2024-05-17 09:33:34 +05:30
Frane Polić
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 Peretti
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 Radevski
07e5c17f86 chore: Remove medusa interfaces package (#7347) 2024-05-16 15:06:21 +02:00
Harminder Virk
9298a57be1 Merge branch 'develop' into fix/2152 2024-05-16 17:28:54 +05:30
Harminder Virk
230337aef9 refactor: remove early return check when products list is undefined 2024-05-16 17:13:49 +05:30
Stevche Radevski
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
Oli Juhl
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 Radevski
845eda4643 feat: Create the Medusa API SDK as js-sdk package (#7276) 2024-05-16 12:30:32 +02:00
Adrien de Peretti
e733d6b1ee fix(modules-sdk): Resolve discovery location properly (#7345) 2024-05-16 12:13:25 +02:00
Frane Polić
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 Thamir
b78703b8c6 chore: fix variant pricing validation for carts (#7344) 2024-05-16 09:03:37 +02:00
Shahed Nasser
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 Nasser
9b1998b9b2 docs: update events reference (#7321)
* change subscribers events

* add event references for modules
2024-05-16 09:01:12 +02:00
Shahed Nasser
1160a34f3d docs: handle Card and CardList components in cross-links plugin (#7338) 2024-05-16 09:40:42 +03:00
Kasper Fabricius Kristensen
490586f566 feat(medusa,dashboard,admin-sdk): Run admin dashboard from Medusa instance (#7330) 2024-05-15 19:52:09 +02:00
Adrien de Peretti
ec5415ea1a chore(modules-sdk, medusa): Cleanup migration helpers (#7342)
**What**
Cleanup the migrations scripts
2024-05-15 15:52:26 +00:00