Commit Graph

7840 Commits

Author SHA1 Message Date
Carlos R. L. Rodrigues
03731c7660 chore(core-flows): reserve inventory from available location (#11538) 2025-02-26 06:10:41 -03:00
Shahed Nasser
b966198258 docs: add user guide to navbar (#11611)
* docs: add user guide to navbar

* fix titles
2025-02-26 11:00:01 +02:00
Shahed Nasser
b45c1e1580 docs: prepare projects configurations for user guide (#11610)
* docs: prepare projects configurations for user guide

* fix build error
2025-02-26 10:01:30 +02:00
Harminder Virk
9e2af4801d feat: add routes loader (#11592)
Fixes: FRMW-2919

This PR adds a new routes loader with a single responsibility of scanning the filesystem and collecting routes. Sorting of routes, merging middleware and registering them with express are going to separate implementations.

The new `RoutesLoader` class allows overriding routes as-well (not recommended though) and this is how routes are de-duplicated.

- When two routes for the exact route pattern/matcher are discovered, the routes loader will only keep the last one.

- Routes files can also override handlers for specific HTTP methods. For example, the original route file exported handlers for `GET` and `POST`, but the overriding one only defines `GET`. In that case, we will continue using the original implementation for the `POST` handler.

- If an overriding route file exports additional configuration like `export const AUTHENTICATION=false`, then this will only impact the handlers exported from this file and not the original handlers.

Routes sorting has been already been implemented in a separate PR and you can visualize it using this URL. https://routes-visualizer.fly.dev/
2025-02-26 07:24:10 +00:00
Adrien de Peretti
b42f151be3 chore(): Improve internal repository delete algo (#11601)
* chore(): Improve internal repository delete algo

* chore(): Improve internal repository delete algo

* chore(): Improve internal repository delete algo

* update tests

* Create purple-donkeys-learn.md

* update tests
2025-02-25 19:59:57 +01:00
Kasper Fabricius Kristensen
d814d9540e fix(types): Allow providing either vite@5 or vite@6 for the peer dependency (#11581)
**What**
- The types package has an optional peerDep on vite@5. This causes issues if the package is installed in a repo that has vite@6 installed. An example could be a `react-router/remix` storefront.
- Loosen the dependency to accept either vite@5 or vite@6.

Resolves SUP-970
2025-02-25 18:59:38 +00:00
Shahed Nasser
8bb0a25f57 fix(types, medusa): remove fulfillment and payment status filters from validator + http types (#11604) 2025-02-25 19:42:53 +01:00
Shahed Nasser
c382ed6ed1 docs: finish user guide updates (#11603)
* finished settings changes

* fix todos

* update titles
2025-02-25 19:04:25 +02:00
Shahed Nasser
5d404a3bb8 chore(ui): updates to InlineTip's TSDocs (#11580) 2025-02-25 15:51:49 +02:00
Shahed Nasser
731f118987 docs: fix types for provider docs not generated correctly (#11598) 2025-02-25 14:31:26 +02:00
Shahed Nasser
8edc23748a docs: fix incorrect link in tax-inclusive-pricing (#11599) 2025-02-25 14:31:10 +02:00
Shahed Nasser
47a963559b docs: document swc dependency for plugins (#11426)
* docs: document swc dependency for plugins

* added llms
2025-02-25 14:30:38 +02:00
Shahed Nasser
698a520729 chore(types): change payment provider types to interfaces (#11597)
* chore(types): change payment provider types to interfaces

* add changeset
2025-02-25 14:30:18 +02:00
Shahed Nasser
3f2dcb2109 docs: document different ways of selling products (#11446)
* docs: document different ways of selling products

* add llms
2025-02-25 14:07:25 +02:00
Shahed Nasser
75da1516b3 docs: fix to recipe after latest update (#11586) 2025-02-24 18:56:01 +02:00
Riqwan Thamir
fb2e86484a feat(core-flows,types,cart): add credit lines to cart (#11419)
* feat(core-flows,types,cart): add credit lines to cart

* chore: fix specs

* chore: credit lines hook

* chore: update types

* chore: added credit line totals

* chore: add totals fields to query config

* chore: add complete cart hook

* chore: add credit lines creation to order

* chore: pr ready for review

* chore: fix tests

* Apply suggestions from code review

* chore: fix types

* chore: adjust summary calculations with new totals
2025-02-24 14:34:36 +01:00
Shahed Nasser
be566ca6fb docs: fix OAS generator + generate OAS (#11584) 2025-02-24 15:30:38 +02:00
github-actions[bot]
41f070be9a chore(docs): Generated References (automated) (#11579)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2025-02-24 13:47:40 +02:00
github-actions[bot]
7799647675 chore(docs): Updated UI Reference (automated) (#11578)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2025-02-24 11:23:30 +00:00
Shahed Nasser
31f8b72129 docs: updates for 2.5.1 release (#11574)
* docs: updates for 2.5.1 release

* update
2025-02-24 13:02:26 +02:00
github-actions[bot]
148587edc0 chore(docs): Update version in documentation (automated) (#11577)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-02-24 12:47:32 +02:00
olivermrbl
34fc7c53fd chore: Release 2025-02-24 11:36:46 +01:00
olivermrbl
3f7470022c chore: Version packages 2025-02-24 11:36:46 +01:00
Shahed Nasser
a9e2ef6c20 docs: fix start command in deployment guides (#11571) 2025-02-24 12:26:21 +02:00
Shahed Nasser
5071001aea chore: update TSDocs of account holder additions (#11576) 2025-02-24 12:21:31 +02:00
Harminder Virk
feec0243ab feat: add middleware and routes sorter (#11526)
Fixes: FRMW-2918
2025-02-24 10:17:15 +00:00
Shahed Nasser
38a57b1ddc chore(ui): explicitely specify the props type of InlineTip (#11575) 2025-02-24 10:11:57 +00:00
Kasper Fabricius Kristensen
f00e6bf660 fix(js-sdk): Export Draft Order methods (#11572) 2025-02-24 10:30:07 +01:00
Georgi Bachev
92bffadbf9 Adding Bulgarian translations to the admin dashboard. (#11565) 2025-02-24 09:29:53 +01:00
olivermrbl
932fd90d40 chore: Fix incorrect minor in changeset 2025-02-23 16:29:59 +01:00
Kasper Fabricius Kristensen
efd66c0d59 fix(core-flows): Allow adding shipping methods through order edits (#11504)
* fix(core-flows): Allow adding shipping methods through order edits

* fix(core-flows): Allow adding shipping methods through order edits

* update test description

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-02-23 16:06:54 +01:00
Oli Juhl
215553792b chore: Force select-in strategy by passing pagination through (#11556)
* chore: Force select-in by passing pagination through

* chore: Force select-in by passing pagination through
2025-02-23 14:42:19 +01:00
Carlos R. L. Rodrigues
0c957350a6 fix(order): calculate taxes on order edit flows (#11518)
* fix(order): calcualte taxes on order edit flows

* merge summary

* tests

* fix pending difference

* comments

* claim test

* revert method
2025-02-21 15:27:40 +01:00
Adrien de Peretti
065df75e7d fix(): handle empty q filters - allow to query deleted records from graph API - staled_at fixes (#11544)
* fix(): Allow to query deleted records from graph API

* fix(): Allow to query deleted records from graph API

* handle empty q value

* update staled at sync

* rename integration tests file

* Create strong-houses-marry.md

* try to fix flacky tests

* fix pricing context

* update changeset

* update changeset

* fix import

* skip test for now

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-02-21 13:24:12 +01:00
Shahed Nasser
cfffd55ae6 docs: fixes to wishlist plugin guide (#11551) 2025-02-20 19:44:51 +02:00
Kasper Fabricius Kristensen
3b4997840e fix(medusa,js-sdk,types): Add basic draft order operations to js-sdk (#11514)
**What**
- Exposes `sdk.admin.draftOrder.create/update/retrieve/list` functions from the js-sdk
- Implements the necessary types in the types package.
- Adds missing endpoints to admin API.
2025-02-20 16:05:21 +00:00
Shahed Nasser
120e6f9ba6 docs: fix typos + clarify example in UI docs (#11543) 2025-02-20 11:22:42 +02:00
Shahed Nasser
39a0077e84 docs: many improvements to settings user guides (#11536)
* docs: many improvements to settings user guides

* fix build errors
2025-02-20 11:22:15 +02:00
Oli Juhl
dbd06fd41d fix(utils): Handle 0 correctly in build query (#11525)
**What**

Remove truthy/falsy check for `take` and `skip`

**Why**

To ensure `{ take: 0, skip: 0 }` is not converted to `{ take: undefined, skip: undefined }`
2025-02-19 19:04:48 +00:00
Adrien de Peretti
0a95c6f6df chore(cli): Prevent swallowing error in non production env (#11534) 2025-02-19 20:02:47 +01:00
Adrien de Peretti
0307304dc6 fix(dashboard): Prevent overfetching data (#11532)
**What**
Currently, the dashboard is fetching way more data than needed to display the products. This can lead to issues for complex catalog. this pr aim to reduce the data to be fetched to exactly what is needed.
<img width="2553" alt="Screenshot 2025-02-19 at 15 08 16" src="https://github.com/user-attachments/assets/b00e856c-e040-4f05-9f15-41fb8d299387" />
2025-02-19 14:26:22 +00:00
Shahed Nasser
508b948b9d docs: update users user guide (#11531) 2025-02-19 14:46:17 +02:00
Adrien de Peretti
77f37c5f97 Chore(index): Sync logs management (#11522)
**What**
- Add index engine sync log information
- Ad `setTimeout(0)` to give breath to the event loop and ensuring not blocking the event loop and allow for other tasks queue execution to happen while syncing

here is an example:
**LOG_LEVEL=info**

![Screenshot 2025-02-19 at 10 09 25](https://github.com/user-attachments/assets/fc74dc32-1bc1-4123-9de3-f37817b7e783)

**LOG_LEVEL=debug**

![Screenshot 2025-02-19 at 10 10 35](https://github.com/user-attachments/assets/222a1ce1-9267-4cb0-9518-dc4c7aa2b6f4)
2025-02-19 11:54:38 +00:00
Shahed Nasser
647077057c docs: update store user guide (#11530) 2025-02-19 13:41:27 +02:00
Shahed Nasser
4faf40e916 docs: update price lists user guides (#11528) 2025-02-19 12:57:47 +02:00
Shahed Nasser
2940b0fee2 docs: update promotions user guide (#11524)
* update promotion pages

* finish update

* fix build error
2025-02-19 12:12:03 +02:00
Shahed Nasser
0da188a4ff docs: add missing details in product import user guide (#11527) 2025-02-19 12:11:43 +02:00
Stevche Radevski
3281613e22 fix: typings for list payment method were incorrect (#11523) 2025-02-19 09:15:42 +00:00
Frane Polić
0c530e90c5 feat(core-flows, types): add has missing inventory flag when listing shipping options (#11493)
**What**
- add `insufficient_inventory` flag when listing shipping options for a cart
- add `enabled_in_store` flag when creating/editing pickup options
2025-02-19 08:08:25 +00:00
Harminder Virk
0e6ffad30f fix: allow setting DB_PORT and DATABASE_URL env variables (#11519)
Fixes: FRMW-2896

Closes: https://github.com/medusajs/medusa/issues/11502
2025-02-19 08:07:15 +00:00