Commit Graph

4345 Commits

Author SHA1 Message Date
Adrien de Peretti
496dcf10c4 feat(medusa): Prevent cart completion conflict (#5814) 2023-12-19 10:47:41 +01:00
Adrien de Peretti
9cc787cac4 feat(workflows-sdk): Configurable retries upon step creation (#5728)
**What**
- Allow to create step that can be configured to have a max retry
- Step end retry mechanism on permanent failure

Also added an API to override a step configuration from within the createWorkflow
```ts
const step = createStep({ name: "step", maxRetries: 3 }, async (_, context) => {
  return new StepResponse({ output: "output" })
})

const workflow = createWorkflow("workflow", function () {
  const res = step().config({ maxRetries: 5 }) // This will override the original maxRetries of 3
})
```

**NOTE**
We can maybe find another name than config on the step workflow data to override the step config.
2023-12-19 09:38:27 +00:00
Adrien de Peretti
1a2f513d53 fix(medusa): Passport loader resolving to early (#5901)
* fix(medusa): Passport loader resolving to early

* fix(medusa): Passport loader resolving to early

* Create hungry-bikes-give.md
2023-12-18 17:02:51 +01:00
Katarzyna Stokłosa
05520391d1 fix: redis_options for job scheduler (#5894)
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-12-18 16:40:10 +01:00
Shahed Nasser
8cb53da34e docs: fix medusa-react guide + specify react-query version (#5918)
* docs: fix medusa-react guide by adding missing link

* fix link

* add v4.22 as the supported version of react-query
2023-12-18 16:01:24 +02:00
Sujal Gurung
bd60efbe65 docs: set rejectUnauthorized based on condition (#5907)
The general guide for hosting the server tells users to set `ssl.rejectUnauthorized` to false for production environments. However, the provided code snippet doesn't check the environment while setting the value. Directly pasting it into `medusa-config.js` will cause database connection attempts made from a development environment to be rejected and you can't even login to the admin account.

The change only sets the ssl property to false if the environment is a non-development one.  ~I got this code suggestion from the Kapa bot on discord so not sure if this is the best way to do this.~ This code is taken from the [configuration docs](https://docs.medusajs.com/development/backend/configurations#database_extra) themselves.

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-12-18 12:27:10 +00:00
Shahed Nasser
ddc6cc13a0 docs: add TSDoc for payment processor + generate docs (#5917)
* added tsdocs for payment processor

* generated reference for payment processor
2023-12-18 14:02:18 +02:00
Shahed Nasser
e63f4e6c7a docs: fix wishlist route (#5914) 2023-12-18 13:47:15 +02:00
Bogdan Ošep
e513cbae6b Slovenian(sl) translation (#5828)
Admin UI  - Translation into slovenian language(sl - slovenščina)
2023-12-18 11:15:57 +00:00
Edi
9c71c1d864 Bulgarian language support (#5786)
Bulgarian language support for the Admin dashboard
2023-12-18 10:49:04 +00:00
Chris
c444b036f7 feat(admin): Added Simplified Chinese support (#5798)
* feat(admin): Added Simplified Chinese support

* feat(admin): Update zh translation.json

* docs: Add Simplified Chinese to Admin language support list

* Revert "docs: Add Simplified Chinese to Admin language support list"

This reverts commit 51cca40211ac7e01ac7f78429107ace44785878a.
2023-12-18 11:23:26 +01:00
IdekDude
25dd570578 Changed 'duplicate' to 'delete' in "Delete a Variant" Section (#5823)
References [Issue 5787](https://github.com/medusajs/medusa/issues/5787)
2023-12-18 09:36:23 +00:00
Sujal Gurung
60f86c477e docs: update Railway pricing info in deploy guide (#5908)
Railway got rid of their free tier in [June](https://blog.railway.app/p/introducing-trial-hobby-pro-plans)
2023-12-18 08:53:17 +00:00
Shahed Nasser
a34fe9bfe3 docs: updated digital ocean spaces guide (#5900)
* docs: updated digital ocean spaces guide

* fix example
2023-12-15 17:25:18 +02:00
Shahed Nasser
525ae6d728 docs: added missing service method in digital products recipe (#5899)
* docs: added missing service method in digital products recipe

* fix lint
2023-12-15 15:40:05 +02:00
Frane Polić
1d7888afca feat(medusa, link-modules): sales channel <> product module link (#5450)
* feat: sales channel joiner config

* feat: product sales channel link config, SC list method

* feat: migration

* fix: refactor list SC

* refactor: SC repo api

* chore: changeset

* feat: add dedicated FF

* feat: product<> sc join entity

* fix: update case

* fix: add FF on in the repository, fix tests

* fix: assign id when FF is on

* fix: target table

* feat: product service - fetch SC with RQ

* feat: admin list products & SC with isolated product domain

* feat: get admin product

* feat: store endpoints

* fix: remove duplicate import

* fix: remove "name" prop

* feat: refactor

* fix: product seeder if FF is on

* fix: env

* refactor: workflow product handlers to handle remote links

* fix: condition

* fix: use correct method

* fix: build

* wip: update FF

* fix: update FF in the handlers

* chore: migrate to medusav2 FF

* chore: uncomment test

* fix: product factory

* fix: unlinking SC and product

* fix: use module name variable

* refactor: cleanup query definitions

* fix: add constraint

* chore: rename prop

* fix: add hook

* fix: address comments

* fix: temp sc filtering

* fix: use RQ to filter by SC

* fix: add sc to filter to list

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-12-15 13:43:00 +01:00
Shahed Nasser
11b1a61969 docs: fixes to digital products recipe (#5897)
* docs: fixes to digital products recipe

* fix lint errors
2023-12-15 12:39:40 +02:00
Philip Korsholm
56b07ed0cf feat(medusa): Update shipping option price type (#5895)
**What**
- allow updates to shipping option price type
- Clean up the use of strings in the api validation

Fixes #5824
2023-12-15 10:12:43 +00:00
Shahed Nasser
761d2e7a69 docs: update documentation websites (#5882)
* docs: update next.js to 14.0.4

* update docusaurus to v3.0.1

* update packages dependencies

* added engines

* update lock
2023-12-14 20:43:16 +02:00
github-actions[bot]
2d127a4c67 chore(docs): Generated References (#5881)
Generated the following references:
- `EventBusTypes`
- `IPricingModuleService`
- `ModulesSdkTypes`
- `PriceListWorkflow`
- `fulfillment`
- `js_client`
- `medusa`
- `modules`
- `pricing`
- `services`
- `types`
- `workflows`

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-12-14 18:28:23 +00:00
Shahed Nasser
fde1e23995 chore: refactored docs-util (#5876) 2023-12-14 18:25:40 +02:00
Riqwan Thamir
2d79eeeecc feat(medusa): add currency to region responses (#5857)
Resolves https://github.com/medusajs/medusa/issues/5837
2023-12-14 15:52:54 +00:00
github-actions[bot]
ff92619d6c chore(docs): Generated Docs Announcement Bar (automated) (#5877)
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>
2023-12-14 15:28:26 +00:00
Shahed Nasser
33dc7645d6 docs: fix upgrade guide release notes link (#5879) 2023-12-14 17:07:57 +02:00
Zarar Siddiqi
bbee9b4c53 docs: Add discount created event (#5850)
* Emit event when discount code created.

* Documentation for discount.created event.

* add patch changeset

* Cleaner code, avoid array indexing.

* Revert "Documentation for discount.created event."

This reverts commit 9447f4a171dd55ac8a550beeb403cb7404a18df2.

* Docs for discount.created event.
2023-12-14 15:54:31 +01:00
Riqwan Thamir
ae53a66273 docs: update docs changes for rules_count from number_rules (#5855)
* chore: add docs changes for rules_count from number_rules

* change diagrams

* undo linting

* fix lint error

---------

Co-authored-by: Shahed nasser <shahednasser@gmail.com>
2023-12-14 15:53:02 +01:00
Shahed Nasser
a6c8490fc3 docs: updates for v1.19 (#5868)
* docs: updates for v1.19

* Update www/apps/docs/content/upgrade-guides/medusa-core/1-19.mdx

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

* Update www/apps/docs/content/upgrade-guides/medusa-core/1-19.mdx

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

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-14 15:52:41 +01:00
olivermrbl
9623fcafe6 chore: Release 2023-12-14 15:31:50 +01:00
github-actions[bot]
7f5e638f61 chore: Version Packages (#5754)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 15:27:39 +01:00
Adrien de Peretti
2826605b01 fix(medusa): Order edit confirmation conflict line items update (#5867)
* fix(medusa): Order edit confirmation conflict line items update

* naming

* Create serious-flowers-provide.md

* another proposal

* fixes
2023-12-14 14:52:27 +01:00
Shahed Nasser
1c6c759aa8 docs: added a troubleshooting section for --db-url option (#5872)
* docs: added a troubleshooting section for --db-url option

* fix vale error
2023-12-14 14:59:07 +02:00
Shahed Nasser
c0ce969cd7 docs: fixed sidebar in API reference (#5871) 2023-12-14 13:26:24 +02:00
Adrien de Peretti
b5748ab59e chore(medusa): Prefer logger instead of console.log (#5846)
* chore(medusa): Prefer logger instead of console.log

* Create nasty-comics-leave.md

* fix imports
2023-12-13 16:09:48 +01:00
Shahed Nasser
245e5c9a69 docs: generate documentation for UI components (#5849)
* added tool to generate spec files for React components

* use typedoc for missing descriptions and types

* improvements and fixes

* improvements

* added doc comments for half of the components

* add custom resolver + more doc comments

* added all tsdocs

* general improvements

* add specs to UI docs

* added github action

* remove unnecessary api route

* Added readme for react-docs-generator

* remove comment

* Update packages/design-system/ui/src/components/currency-input/currency-input.tsx

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>

* remove description of aria fields + add generate script

---------

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2023-12-13 16:02:41 +02:00
Shahed Nasser
edc49bfe1d docs: update required Node.js version for Next.js starter (#5859) 2023-12-13 15:12:14 +02:00
Sajarin M
4710c8ba7e Fix multiple typos in medusa docs (#5854) 2023-12-13 10:51:48 +00:00
Riqwan Thamir
07107f3565 feat(orchestration,core-flows,medusa,product,types,utils): product import/export uses workflows (#5811) 2023-12-12 12:09:25 +00:00
Zarar Siddiqi
6f96ced40f feat(medusa): Emit "discount.created" event when discount is created (#5816) 2023-12-12 10:52:57 +01:00
Riqwan Thamir
079f0da83f feat(core-flows,pricing,medusa,pricing,types,utils): Price List Prices can have their own rules (#5752)
**What**
- Add price-rules for prices in price-lists
- make rules object optional when creating prices

**Why**
- more price granularity

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
2023-12-12 08:20:21 +00:00
Ishaq Khattana
f05c20695e docs: update local events module to fix mistyped reference to redis events module (#5835)
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-12-11 13:12:22 +02:00
josetr
d9e29e8e45 fix(medusa): Updating note doesn't require loading author relationship (#5825) 2023-12-10 19:37:29 +01:00
Kasper Fabricius Kristensen
8ab5baf78a fix(admin-ui): Bulk editor default fields (#5829)
* fix(ui): Bump cva and minor type fixes

* fix version of cva

* fix default fields
2023-12-10 19:36:08 +01:00
Kasper Fabricius Kristensen
591ba2388d fix(ui): Bump cva and minor type fixes (#5818)
**What**
- Bumps `class-variance-authority` to new beta version - `cva@beta`.
- Updates all usages of `cva` to new API.
- Clear up the naming of types in `usePrompt`

**Why**
- A bug in how `class-variance-authority` exported its types mean that we were relying on patching the package to ensure that the correct types made it into the build of our UI package. This was important to ensure intellisense for component variants, such as `<Button size="large" />`. Previously in the UI monorepo, having the patch was enough to ensure that the correct types made it into the build, but that was not the case after we moved the design system to the core repo. The issue with types is fixed in the `@1` version of `cva` which is currently in beta. I have pinpointed the version to the current beta version to ensure stability despite the package currently being in beta.
2023-12-07 20:13:44 +00:00
Adrien de Peretti
85cda7ce37 feat(medusa, core-workflows, product): slightly improve create cart workflow (#5725) 2023-12-07 17:05:23 +01:00
Adrien de Peretti
946db51a9b chore(): Add engines to all package.json if needed (#5812) 2023-12-07 17:03:50 +01:00
LULU
1c90610617 feat(admin-ui): metadata for categories in admin ui and refactor to react-hook-form (#5697)
* WIP

* add metadata to category add and edit ui

* remove console.log

* lint

* remove console.log

* requested changes getDefaultCategoryValues util

* change placeholder and wrap handleSubmit

* Update edit-product-category.tsx

---------

Co-authored-by: lulu <lucjan.grzesik@gmail.com>
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
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-07 10:51:21 +01:00
mortenengel
9b447f99ff fix(medusa): Product option values in CSV Export (#5781)
* https://github.com/medusajs/medusa/issues/5712

* fix-5712 added a comment

* fix/5712 - changing to context object

* Create yellow-games-reflect.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-06 15:12:05 +01:00
Annika
7d04f95603 docs(plugins): puts local-file plugin into correct category in site (#5804)
Closes [Issue #5782](https://github.com/medusajs/medusa/issues/5782)

Per Shahed, @medusajs/file-local plugin doesn't have the correct "storage" category, and its because the [package.json file](https://github.com/medusajs/medusa/blob/develop/packages/medusa-file-local/package.json) doesn't have the keyword medusa-plugin-storage. This PR is to add the keyword.
2023-12-06 12:20:38 +00:00
pepijn-vanvlaanderen
a53ae1e29b feat(medusa): Replace Node Redis with ioredis (#5656)
* Replaced Node Redis with ioredis

* Update express.ts
2023-12-06 09:10:56 +01:00
Adrien de Peretti
6975eacb33 feat(medusa): Improve add line item to cart perf and transaction management + clustering start command (#5701) 2023-12-06 08:53:35 +01:00