Commit Graph

8237 Commits

Author SHA1 Message Date
Shahed Nasser
f74586e772 fix(create-medusa-app): updates to text and prompts (#12360) 2025-05-06 14:23:54 +03:00
Shahed Nasser
ffd323a2a9 chore(types): add note in TSDocs of list and retrieve methods (#12364) 2025-05-06 09:52:06 +03:00
Shahed Nasser
94b7ee99b7 docs: add troubleshooting for index.html error (#12365) 2025-05-05 19:26:36 +03:00
Oli Juhl
77c3023200 fix(product): Return updated collections (#12354)
Collection updates without a `products` payload were not returned from the service layer due to an incorrect early return

Fixes SUP-1488
2025-05-05 14:41:45 +00:00
Shahed Nasser
f25a4a5e34 docs: add script to catch bad redirects (#12361)
* docs: add script to catch bad redirects

* add missing dependency
2025-05-05 12:49:05 +03:00
Harminder Virk
e4d853185f fix: export ProductImage to allow for custom links to add alt text (#12357) 2025-05-05 14:24:25 +05:30
Shahed Nasser
c35e9e5104 docs: fix local links in UI docs (#12359) 2025-05-05 11:50:01 +03:00
Shahed Nasser
47772b7593 docs: fix redirect on infrastructural modules (#12358)
* docs: fix redirect on infrastructural modules

* fix image
2025-05-05 11:37:31 +03:00
Oli Juhl
b463c7980a chore: Update teams.yml (#12355)
**What**
- Add Pedro to team
2025-05-05 07:16:48 +00:00
Harminder Virk
84f58f9058 feat: implement direct upload (#12328)
* feat: implement direct upload

* feat: add direct-upload endpoint

* refactor: implement feedback

* refactor: have a dedicated endpoint for direct uploads

* refactor: convert responses to snakecase

* refactor: rename method to createImport

* test: add tests for the presigned-urls endpoint
2025-05-04 12:58:10 +02:00
Pedro Guzman
ed55d17a36 fix: batch updates in upsertMany_ (#12333) 2025-05-02 08:36:33 +02:00
Shahed Nasser
70a99a2434 docs: generate events reference (#12341)
* docs: generate events reference

* change link in navbar

* fix redirect
2025-05-01 19:39:53 +03:00
Shahed Nasser
332e46d1db chore(utils): fixes to events TSDocs (#12342) 2025-05-01 19:23:50 +03:00
Shahed Nasser
91f5ac91a9 docs-util: add script to generate events info (#12340)
* docs-util: add script to generate events info

* add property and parent name to json
2025-05-01 14:44:24 +03:00
Shahed Nasser
e3e02a1cc8 chore: add tsdocs for events (#12337) 2025-05-01 12:15:33 +03:00
Shahed Nasser
a53d645f8a fix(core-flows,utils): move fulfillment workflow events (#12338)
Move fulfillment workflow events to be with other workflow events.

Could be considered a breaking change for users using the previously `FulfillmentEvents` variable
2025-05-01 09:11:17 +00:00
Shahed Nasser
2bfe936185 docs-util: support deprecated tag in OAS (#12339) 2025-05-01 11:59:48 +03:00
Obad Zafar
393ac8d885 docs: fix TypeScript errors in marketplace vendor tutorial (#12302)
The index.ts code example in "Create Workflow" section of the Marketplace Vendor Tutorial contains TypeScript errors that prevent successful compilation:

Missing transform import: The tutorial uses the transform function on line 33, but it's not imported from "@medusajs/framework/workflows-sdk"

TypeScript union type complexity error: When working with the useQueryGraphStep function, TypeScript throws "Expression produces a union type that is too complex to represent" error

Incorrect export name: On line 67, the export is export default createVendorAdminWorkflow but the workflow is defined as createVendorWorkflow (line 24)

These errors make it impossible for developers to follow the tutorial successfully without debugging TypeScript errors.

Closes #12301
2025-05-01 06:58:13 +00:00
Shahed Nasser
7cb85ea123 docs-util: fix hook examples not showing in generated references (#12334) 2025-04-30 18:46:39 +03:00
Frane Polić
8985998756 feat(core-flows, utils): add OrderEdit events (#12320)
* feat(core-flows, utils): add OrderEdit events

* fix: typo
2025-04-30 17:44:39 +02:00
Carlos R. L. Rodrigues
90c61d1898 fix(core-flows): add missing remove remote link (#12326)
* fix(core-flows): add missing remove remote link

* temp disable test
2025-04-30 17:43:37 +02:00
Shahed Nasser
4a9ac0d4be docs: localization with contentful guide (#12202) 2025-04-30 13:27:31 +03:00
Harminder Virk
ceb504db2c feat: add needed methods to the file module and providers (#12325) 2025-04-30 13:17:31 +05:30
AmbroziuBaban
3539066146 fix(dashboard): Admin Global Search broken for variants (#11877)
* fix(dashboard): Admin Global Search broken for variants

* Create small-nails-hang.md

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-04-30 09:35:29 +02:00
Obad Zafar
4f7fcd7597 docs: fix missing quotation mark in marketplace vendor tutorial curl request (#12315) 2025-04-29 15:45:05 +03:00
Frane Polić
4f6362b1cb fix(design-system): filter/sorting menu error (#12309) 2025-04-29 12:13:12 +02:00
Carlos R. L. Rodrigues
b868a4ef4d feat(index): add filterable fields to link definition (#11898)
* feat(index): add filterable fields to link definition

* rm comment

* break recursion

* validate read only links

* validate filterable

* gql schema array

* link parents

* isInverse

* push id when not present

* Fix ciruclar relationships and add tests to ensure proper behaviour (part 1)

* log and fallback to entity.alias

* cleanup and fixes

* cleanup and fixes

* cleanup and fixes

* fix get attributes

* gql type

* unit test

* array inference

* rm only

* package.json

* pacvkage.json

* fix link retrieval on duplicated entity type and aliases + tests

* link parents as array

* Match only parent entity

* rm comment

* remove hard coded schema

* extend types

* unit test

* test

* types

* pagination type

* type

* fix integration tests

* Improve performance of in selection

* use @@ to filter property

* escape jsonPath

* add Event Bus by default

* changeset

* rm postgres analyze

* estimate count

* new query

* parent aliases

* inner query w/ filter and sort relations

* address comments

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-04-29 12:10:31 +02:00
Shahed Nasser
8a3f639f01 chore(core-flows): fix note usage in TSDocs (#12318) 2025-04-29 10:49:56 +03:00
Shahed Nasser
f4fba0986c docs: fix incorrect note usage in some workflow references (#12317) 2025-04-29 10:49:28 +03:00
Shahed Nasser
c1e6b81972 docs: improve installation documentation with diagrams (#12312) 2025-04-28 19:43:28 +03:00
LennarX
f31013104b docs(algolia): rename instructed filename to fit (#12300)
The instructed filename now is the same as in the code-block below (`algolia-sync.ts`) and the instructions don't have naming conflicts (see next step which is instructing to create a file named `product-sync.ts`).
2025-04-28 19:19:06 +03:00
Shahed Nasser
56ded19bf9 docs: fix module name in product review guide (#12310) 2025-04-28 19:17:10 +03:00
Harminder Virk
552dc52228 test: use shared as integration-tests level (#12278) 2025-04-28 18:41:19 +05:30
LennarX
5f4a859911 feat(apply-i18n-placeholders): extend schema, translate and use in .tsx (#12264)
This extends the `$schema.json` by the 4 placeholders, later used in `product-create-general-section.tsx`. The placeholders affected by this are for the title, subtitle, handle and description. Should be all on this page. There is no plain / hard-coded text left in there. The translations were made for each accordingly.
2025-04-28 10:31:03 +02:00
Shahed Nasser
05b43ecdb5 docs-util: add sidebar link validation in prep script (#12306) 2025-04-28 10:50:02 +03:00
Shahed Nasser
3c967e6753 docs: fix troubleshooting page (#12305) 2025-04-28 10:49:49 +03:00
Frane Polić
d7a273ff2d fix(core-flows): handle inventory kit items in mark-as-shipped/delivered flows (#12269)
* fix(core-flows): handle invetory kit items in mark-as-shipped and mark-as-delivered flows

* fix: typo

* chore: more assertion

* chore: fix comment

* Update packages/core/core-flows/src/order/workflows/create-shipment.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* fix: undo comment

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-04-26 19:38:00 +02:00
Shahed Nasser
43d282da8b docs: general improvements and additions (#12296) 2025-04-25 19:00:45 +03:00
Alexander Lindkjær
e2a7dbb61b Update 6.3. Using TypeScript Aliases - Alias should run after build, not before (#12272)
https://docs.medusajs.com/learn/configurations/ts-aliases

`npm run resolve:aliases` should run after `medusa build` to change out the aliases in the build output. 

So instead of the current guide
`"build": "npm run resolve:aliases && medusa build"`

I should be 
`"build": "medusa build && npm run resolve:aliases"`
2025-04-25 15:26:06 +00:00
Shahed Nasser
cb92217d03 docs: improve resend guide (#12293)
* docs: improve resend guide

* fix lint error

* more improvements
2025-04-25 12:42:09 +03:00
Shahed Nasser
69df003968 docs-util: enable internal resolve for workflows sdk reference (#12292) 2025-04-25 10:11:32 +03:00
Shahed Nasser
13071172b3 docs: added mark fulfillment delivered step in digital products recipe (#12290)
* docs: add fulfillment delivered step to digital products recipe

* generate llms

* small change
2025-04-24 19:08:05 +03:00
Shahed Nasser
35d7c143ea docs: improve documetation around error handling in workflows (#12288)
* docs: improve documetation around error handling in workflows

* regenerate
2025-04-24 18:41:28 +03:00
Shahed Nasser
8aed57d453 docs: add note to s3 guide (#12289) 2025-04-24 18:15:30 +03:00
Riqwan Thamir
db9483140a fix(medusa): Fix store return API (#12284)
what:

- fixes the middleware to point to the right API route
- adds a test to store return API
2025-04-24 13:25:22 +00:00
Shahed Nasser
97daa5a41c docs: clarify ISO format for province codes (#12282)
* docs: clarify ISO format for province codes

* regenerate
2025-04-24 15:44:35 +03:00
Shahed Nasser
cb16f79b8f chore(types): claify province code format in TSDocs (#12283) 2025-04-24 13:53:26 +03:00
Shahed Nasser
4946b67152 docs: regenerate core-flows reference + OAS for draft order updates (#12280)
* docs: regenerate core-flows reference for updates in draft orders

* generate OAS
2025-04-24 12:01:46 +03:00
Shahed Nasser
71a5dc448d chore(core-flows, types): add tsdocs for draft orders workflows (#12279) 2025-04-24 11:31:28 +03:00
Shahed Nasser
7d498227d1 docs: fix core flows reference not generating (#12274) 2025-04-23 19:46:54 +03:00