Commit Graph

4294 Commits

Author SHA1 Message Date
Shahed Nasser
892d737c1f docs: enhance how references are generated (#5805)
* adjusted configurations

* enhancements to tool and configurations

* change reference in docs

* fixed issue in workflows reference

* added project name

* more optimizations

* fix context error

* added a types reference

* resolved missing types

* fix reference reflection types not having children

* add an expand url parameter

* added new option to the README

* added details about new option
2023-12-05 15:29:41 +02:00
Chris
a418e6cebc docs: search results template needs the product ids to fetch previews (#5793)
https://github.com/medusajs/nextjs-starter-medusa/issues/200#issuecomment-1828308192
2023-12-05 09:23:25 +00:00
Shahed Nasser
ebac617c19 docs: fix typo in onboarding (#5802) 2023-12-05 10:52:51 +02:00
github-actions[bot]
be1bcfc186 chore(docs): Removed Docs Announcement Bar (automated) (#5801)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-12-05 10:24:25 +02:00
Edin Skeja
5d0e9ac007 feat(medusa-payment-klarna): Add language variable (#4483)
* Add language variable

* Add changeset
2023-12-03 14:42:16 +01:00
iweurman
f20d484b23 feat(admin): Add Korean language support (#5769)
* Add Korean language support

* Add to docs

* Create angry-eels-guess.md

---------

Co-authored-by: olivermrbl <oliver@mrbltech.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-03 14:40:15 +01:00
driver005
fd317f1a6b feat(medusa-cli): add monorepo support command develop (#5723)
* add monorepo support command develop

* fix formating bug in @medusa/admin package.json

* Create grumpy-bees-laugh.md

---------

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-03 14:29:55 +01:00
Oli Juhl
428331a653 feat(medusa): Respond with order when cart is already completed (#5766) 2023-12-01 09:17:12 +01:00
Shahed Nasser
c808317044 docs: added "Integrate Your Ecommerce Stack" recipe (#5774) 2023-11-30 11:27:09 +00:00
Kasper Fabricius Kristensen
4e9d954549 fix(medusa-react): Allow setting maxRetries on MedusaProvider (#5765)
* allow settign maxRetries on MedusaProvider

* add changeset

* set default maxRetries to 3
2023-11-29 15:42:46 +00:00
Shahed Nasser
f802e2460f docs: TSDoc + reference of fulfillment service (#5761) 2023-11-29 11:58:08 +00:00
Adrien de Peretti
8f25ed8a10 feat(link-modules, pricing, product, utils): Custom database config in shared mode (#5755)
* feat(link-modules, pricing, product, utils): Should be able to set some custom database config even in shared mode

* Create wet-hounds-retire.md
2023-11-29 08:19:28 +00:00
Riqwan Thamir
c4deeee481 fix(modules-sdk): add graphql dependency to modules-sdk (#5750) 2023-11-28 17:11:44 +00:00
Shahed Nasser
443c611d3b docs: updated Next.js deployment guide (#5756) 2023-11-28 15:52:29 +00:00
Shahed Nasser
fa4935259c docs: diagrams plugin tooling (#5741)
* added plugin

* updated plugin + added component

* dummy data TO BE REMOVED

* (wip) workflow generator tool

* add workflow generator tooling

* updated the generator tool

* added code file creation

* fix design of diagrams

* configured diagram theme

* added build script

* removed comments + unnecessary files

* general fixes

* refactored plugin

* added README + more output types
2023-11-28 14:30:23 +00:00
Shahed Nasser
d27b86ab8e docs: added examples for modules usage in Medusa (#5753)
* Add data migration script after running migrations

* Update install-medusa.mdx

* Update examples.md (#5751)

* fix lint errors

* fix comment in example

* added examples for modules usage in Medusa

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-11-28 11:14:00 +00:00
Philip Korsholm
e4bfa6c88a fix(medusa): throw proper error when product doesn't exist w/ key header (#5745)
**What**
- ensure that an error is raised properly if the requested product doesn't exist and a publishable-key header is set

**Why**
- previously endpoints would hang if the product didn't exist and requests would time out


closes #5724
2023-11-28 10:24:50 +00:00
Riqwan Thamir
870d686136 docs: update pricing module docs with the latest changes (#5749)
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-11-28 09:56:57 +00:00
Shahed Nasser
deca78f749 docs: updated next.js starter docs (#5748)
* docs: updated next.js starter docs

* fix lint errors

* added migration script
2023-11-28 09:42:28 +00:00
Shahed Nasser
5f90515306 docs: fix back links for modules references (#5747) 2023-11-27 19:59:04 +00:00
github-actions[bot]
cdd42dbdcd chore(docs): Generated References (#5743)
Generated the following references:
- `entities`
- `inventory`
- `js-client`
- `pricing`
- `product`
- `services`
- `stock-location`
- `workflows`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-11-27 18:58:52 +00:00
Shahed Nasser
dc6b815b12 docs: updated user guide for product pricing (#5744)
Updated the user guide to remove the pricing section in create/update variants sections
2023-11-27 18:37:14 +00:00
Shahed Nasser
d337c6d95b docs: fix back link in Workflows API Reference (#5740)
Fix back link shown in the sidebar of the workflows API reference
2023-11-27 18:09:32 +00:00
github-actions[bot]
0d316b5981 chore(docs): Generated Docs Announcement Bar (automated) (#5742)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-11-27 17:13:49 +00:00
Shahed Nasser
cdc1da5df7 docs: added documentation pages for experimental features (#5671)
* docs: added documentation pages for experimental features

* fix content lint issues

* fixed lint errors

* added migration step

* added workflows introduction

* add installation guides

* added installation guides for modules + generated workflows reference

* added missing workflows reference link

* Added warning message for experimental features

* fix note
2023-11-27 16:49:12 +00:00
olivermrbl
cf0939aab2 chore: Release 2023-11-27 16:45:56 +00:00
github-actions[bot]
935e9f0561 chore: Version Packages (#5673)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 16:43:51 +00:00
Kasper Fabricius Kristensen
d5526736ec fix(admin-ui): fix height of Bulk Editor cells to always be 40px (#5737) 2023-11-27 16:34:53 +00:00
Shahed Nasser
547b16ead5 docs: fix code block titles (#5733)
* docs: fix code block titles

* remove console

* fix build error
2023-11-27 16:08:10 +00:00
Philip Korsholm
de8f748674 fix(link-modules, utils): remove limits on queries when primary-key is provided (#5732) 2023-11-27 15:42:25 +00:00
Philip Korsholm
3bcf08c0cb fix(admin-ui): inventory item deletion when removing product (#5727) 2023-11-27 13:42:55 +00:00
Riqwan Thamir
2e6b110316 fix(medusa,pricing): Fix migrations for existing databases (#5730) 2023-11-27 13:36:56 +00:00
Kasper Fabricius Kristensen
5f6751a61f fix(admin-ui): Fix Y-axis scroll in bulk editor (#5726) 2023-11-27 11:13:11 +00:00
Philip Korsholm
18afe0b9ad Fix(medusa, inventory, stock-location, types, utils): Modules sdk build query (#5713)
* remove defaults

* take 2

* works now

* add changeset

* pricing module and pricing service list take null updates

* update handlers

* update product module service with take:null where relevant

* no spread

* note to self:default offset should be 0, not 15
2023-11-27 10:17:42 +00:00
github-actions[bot]
faa528159d chore(docs): Removed Docs Announcement Bar (automated) (#5721)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-11-27 09:34:34 +00:00
olivermrbl
a982e60a0e chore: Bump lock-file 2023-11-27 08:28:09 +00:00
olivermrbl
285fa92876 chore(workflows-sdk): Change version for release 2023-11-27 08:10:57 +00:00
Philip Korsholm
aa6c4cbac5 fix(medusa): pricing module list prices return type (#5715) 2023-11-26 16:30:21 +00:00
Philip Korsholm
0df1c7d427 fix(pricing, types): update calculatePrices return type to match actual type (#5709)
* initial type fix

* add changeset

* update changeset

* update tsdocs

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-11-24 17:12:34 +00:00
Carlos R. L. Rodrigues
ffb0c7b4cd feat(workflows-sdk): get name method (#5714) 2023-11-24 16:39:27 +00:00
olivermrbl
74117ad48b chore(changesets): Change workflows -> workflows-sdk 2023-11-24 14:03:51 +00:00
Adrien de Peretti
ddbeed4ea6 chore(workflows, core-flows): Split workflows tooling and definitions (#5705) 2023-11-24 13:55:48 +00:00
Riqwan Thamir
fc1ef29ed9 fix(medusa,pricing,types): rules only gets updated/deleted upon passing an explicit object (#5711) 2023-11-24 13:54:23 +00:00
Kasper Fabricius Kristensen
07934cdaac fix(admin-ui): Edit prices requires at least one product (#5710) 2023-11-24 13:54:07 +00:00
Kasper Fabricius Kristensen
f4c489fb85 fix(admin-ui): Fix issue with null product categories (#5707)
* fix(admin-ui): If categories is null on a product the details page should not crash

* cleanup variant warning to reflect pricing changes
2023-11-24 12:51:32 +00:00
Philip Korsholm
712c4496ce fix(medusa): Update default relations in admin for list-product from module 2023-11-24 12:50:42 +00:00
olivermrbl
f2fd51f969 chore(changesets): include @medusajs/admin 2023-11-24 09:22:09 +00:00
Shahed Nasser
a2f42d1d1c docs: update Next.js starter main image (#5702) 2023-11-23 18:28:36 +00:00
Kasper Fabricius Kristensen
22bea2724d fix(medusa): Normalize subscriber paths (#5703) 2023-11-23 17:33:51 +00:00
Shahed Nasser
f3e20379b0 chore: added TSDoc for workflow utility functions (#5674)
* feat(translation): Init plugin

* Create migration and entity

* Start service implementation

* fix typo

* typings

* config

* lang -> locale

* chnge config

* link

* update link

* update export

* workflow composer (wip)

* workflow step/workflow

* simplify api

* Add structured tests

* Add step name onto the step function for future usage

* new abstraction level of exported workflow

* cleanup

* rm step 4

* Add parallelize support to workflow composition

* add Symbols and support primitive types as input

* rem .only

* eslint

* cleanup + test

* resultFrom

* prevent undefined from crashing

* finalise tests

* chore: transform

* chore: tests and transform type

* move translation to my dummy

* chore: copy before transform

* yarn.lock

* chore: shortcut to property access

* Add type safety

* WIP typesafety

* WIP

* finalise typings

* remove extends unknown

* WIP

* finalise transform typings

* finalise transform typings

* workflow typs

* More typings in invoke and compensate

* rm comment

* Context as the last args

* fix step function type

* types

* fixes

* fixes compose

* chore: transform

* chore: fix tests and transform Proxy

* chore: args length

* uncomment

* chore: array fill

* WIP fix filler

* WIP fix filler

* chore: remove only

* apply gap filler to create step invoke

* context first

* fixes

* wofkrlow ts documentation

* wofkrlow ts documentation

* wofkrlow ts documentation

* wofkrlow ts documentation

* wofkrlow ts documentation

* chore: hook

* hook types

* update types

* don't loose previous iteration

* update implementation

* fix some tests part 1

* finalise typings

* rm new lines

* fixes

* wip

* fixes

* fix tests

* simplify types

* simplify types

* update export

* improve types exclusion compensateInput

* allow a workflow to return plain object composed of stepReturn properties

* only allow one handler for the hook registration

* only allow one handler for the hook registration

* workflow loading

* lint

* lint

* lint

* finalise tests

* try to fix ci

* try to fix ci

* remove corepack step

* cleanup

* cleanup

* cleanup

* chore: context as 2nd argumentq

* added tsdoc for some workflow functions

* Add support for StepResponse and re work the typings

* changeset

* chore: invoke output as default compensate input

* copy data

* copy data

* fix createWorkflow result

* added tsdoc to remaining utility functions

* rm test file

* proxify input and transformer as well

* transformer should re run + type update

* rework step response

* allow void return from steps

* updates to the TSDocs

* address comments

* address PR feedback

* add await for API Route examples

* ignore documenting hooks

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com>
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2023-11-23 16:38:43 +00:00