Commit Graph

4185 Commits

Author SHA1 Message Date
Shahed Nasser
d74df4878f docs: fix expandable link in ParameterType (#5595) 2023-11-09 21:20:54 +02:00
github-actions[bot]
f35fcb810f chore(docs): Generated References (#5593)
* chore(docs): Generated References (automated)

* fix sidebar and links

* removed reflection path section

---------

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
Co-authored-by: Shahed nasser <shahednasser@gmail.com>
2023-11-09 20:23:25 +02:00
olivermrbl
85fca8d9aa chore(changesets): Add link-modules to changeset 2023-11-09 17:17:44 +01:00
Shahed Nasser
4f91263588 chore: fix generate automated reference action (#5589)
* chore: fix generate automated reference action

* fix dependencies

* add depends in turbo

* add install step for www workspace
2023-11-09 17:14:28 +02:00
olivermrbl
8a53fe6f45 chore(changesets): Change cache-redis to minor bump 2023-11-09 14:56:27 +01:00
olivermrbl
c39bf69a5e chore(changesets): Add missing patch bumps 2023-11-09 14:37:48 +01:00
Rick Lam
b4e8adfcf9 fix(admin-ui): Admin UI: Invalid Request Header (#5548)
**What**
Fix of https://github.com/medusajs/medusa/issues/4904

**Fixes**
Admin run development server with hostname shown Invalid Request Header

**How**
Added webpack-dev-server config [allowedHosts](https://webpack.js.org/configuration/dev-server/#devserverallowedhosts) and [webSocketUrl](https://webpack.js.org/configuration/dev-server/#websocketurl) in admin develop options to change allowlist services hostname and Web Socket Url

**Testing**
Edit medusa-config.js with hostname in admin plugin develop options
```
const plugins = [
  // ...
  {
    resolve: "@medusajs/admin",
    /** @type {import('@medusajs/admin').PluginOptions} */
    options: {
      develop: {
        allowedHosts: [
          'host.com',
          'subdomain.host.com',
          'subdomain2.host.com',
          'host2.com',
        ],
        webSocketURL: 'wss://host.com/ws'
      },
    },
  },
]
```


Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-11-09 12:32:27 +00:00
Shahed Nasser
91615f9c45 chore: improve JS Client TSDoc comments (#5582)
* add oas schema to tsdoc parser

* add tsdoc (part 1)

* Finished tsdoc in js client

* general fixes

* added tsdoc in core medusa package

* parse schema tags in model files

* added maxlevel option

* added more tsdoc

* added tsdoc in core

* added TSDoc in core package

* generated client types

* support featureFlag and expandable tags

* added support for resource feature flag note

* fix api ignore plugin

* added eslint plugin

* support feature flag and expandable badges

* adjusted overview page + generated reference

* revert generated files

* added changeset

* add details about new typedoc options

* fix broken link
2023-11-09 12:51:17 +02:00
Kasper Fabricius Kristensen
c68da6d685 feat(medusa): API routes body parser config (#5537) 2023-11-09 09:10:45 +01:00
Adrien de Peretti
f90ba02087 feat(utils): Introduce promiseAll util (#5543) 2023-11-08 08:48:48 +01:00
Kasper Fabricius Kristensen
e4ce2f4e07 chore(ui,icons,ui-preset,toolbox): Move design system packages to monorepo (#5470) 2023-11-07 22:17:44 +01:00
github-actions[bot]
71853eafdd chore(docs): Removed Docs Announcement Bar (automated) (#5574)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-11-07 10:20:13 +02:00
Nick Miller
e4157875b5 docs(create tax provider): tax line code required (#5540)
While I was developing a custom tax provider, I ran into a pretty frustrating issue related to multiple tax lines and incorrect / unexpected tax total calculations. I outlined the issue in discord, before finding the solution: https://discord.com/channels/876835651130097704/1169705457804398662

After some digging, I found this issue from a while back: https://github.com/medusajs/medusa/pull/1262, where it states there is now a unique constraint on `item_id, code` and `shipping_method_id, code`. But, in the current documentation for creating a custom tax provider, it states these fields as part of the tax line items returned are optional.

If these `code` values are left out, it can cause tax lines to be applied multiple times (as seen here as well: https://github.com/medusajs/medusa/issues/1901)

I'm not entirely sure how this should be phrased in the documentation, so I just wanted to get this up and on your radar for resolution. If it ends up being that `code` truly should not be optional, I suspect some type definitions would need to change as well?
2023-11-06 17:12:56 +00:00
Egor Makarenko
09ab1d1be6 feat(create-medusa-app): print error message for failed db connection (#5547)
`create-medusa-app` currently prints a generic error message when it cannot connect to a database. This tiny pull request adds the thrown error to the log message, that simplifies debugging of installation issues
2023-11-06 16:37:10 +00:00
Shahed Nasser
2576a0fd23 docs(api-reference): added local server to list of servers (#5572)
* docs(api-reference): added local server to list of servers

* fix publishable api key route
2023-11-06 17:30:56 +02:00
Kasper Fabricius Kristensen
d7e1887221 fix(admin-ui): Prevent comma decimal separator from converting inputs to NaN (#5566)
**What**
- Using the Price List bulk editor with a locale that uses comma as the decimal separator would convert decimal numbers to NaN. This PR fixes that by replacing commas with dots, before passing the values on to the state manager.

Closes #5565
2023-11-06 13:26:35 +00:00
Shahed Nasser
0c9216c225 docs: add missing mime_type in digital products recipe (#5569)
* docs: add missing mime_type in digital products recipe

* fix lint error
2023-11-06 14:35:23 +02:00
Adrien de Peretti
f88d75b0a7 feat(product, pricing, utils): Transaction issues and reference issues (#5533)
* feat(product, pricing, utils): Transaction issues and reference issues

* fixes decorators

* cleanup

* fix product module upsert

* fix missing active manager

* increase timeout

* revert package.json

* WIP

* try another node version based on findings with memory issues with jest introduced after 16.11 but fixed in 21

* re add bail

* fix variant options

* chore: bulk create pricing

* chore: workflow bulk

* Create big-chefs-dream.md

* fix missing update for upserty

* Add integration tests for product options upsert

* rm unnecessary return

* fix product prices workflow issue

* cleanup

* fix flag

* fix model

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com>
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-11-06 12:24:29 +01:00
Stefanos Chalkidis
57c3a24ad3 docs(create-events-module): fixed typos (#5524) 2023-11-02 18:19:25 +00:00
Stefanos Chalkidis
febbf398ef docs(create-scheduled-job): rewrote sentence (#5525) 2023-11-02 17:36:10 +00:00
Adrien de Peretti
154c9b43bd feat(medusa, modules-sdk, types, utils): Re work modules loading and remove legacy functions (#5496) 2023-11-02 17:59:13 +01:00
olivermrbl
ca411e54eb chore(changesets): Add admin bump 2023-11-02 17:40:07 +01:00
Kasper Fabricius Kristensen
f7e9829881 fix(admin-ui): Prevent oversized product request in Price List domain (#5535)
* fix(admin-ui): Prevent oversized product request in Price List domain

* add changeset
2023-11-02 17:05:08 +01:00
Shahed Nasser
3bf9d8ddec chore: ignore vercel deployments when automerging (#5532)
Add vercel actions to the list of ignored checks when the `automerge` label is added to an approved PR.
2023-11-02 12:25:11 +00:00
Kasper Fabricius Kristensen
8e48be58ef fix(admin-ui): Make regions in tax setting scrollable (#5530)
* fix overflow

* intersection observer and changeset
2023-11-02 13:03:45 +01:00
Sebastian Rindom
3a344964e0 chore: Update README.md (#5517)
Remove Circle CI badge
2023-11-02 10:31:45 +00:00
github-actions[bot]
aa2bb7a31b chore(docs): Generated References (#5516)
Generated the following references:
- `js-client`
- `pricing`
- `services`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-11-02 09:16:47 +00:00
Adrien de Peretti
80fe362f33 fix(integration): setup (#5511)
* fix(integration): setup
2023-11-01 13:56:12 -04:00
Shahed Nasser
4692f54b49 chore(docs-util): fix freshness check script (#5518) 2023-11-01 12:28:34 +02:00
github-actions[bot]
6060b88360 chore(docs): Generated Docs Announcement Bar (automated) (#5515)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-11-01 08:45:15 +01:00
olivermrbl
0af6e5534b chore: Release 2023-11-01 08:24:54 +01:00
github-actions[bot]
309c82e175 chore: Version Packages (#5454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 08:19:58 +01:00
Shahed Nasser
9f29f18ee9 chore(docs-util): fix announcement script (#5503) 2023-10-31 17:27:12 +01:00
Kunal Agrawal
201b35cd31 feat(admin-ui): add Hindi Translation (#5452) 2023-10-31 16:53:52 +01:00
Adrien de Peretti
d6372246ee fix(integration): Product ordered by variants prices (#5507)
* fix(integration): Product ordered by variants prices

* set cache to 0 to prevent issues between tests
2023-10-31 16:20:55 +01:00
Kasper Fabricius Kristensen
2548ea8e5e fix(medusa): Make file based routing compatible with Windows pathing (#5497) 2023-10-31 14:46:24 +01:00
Ramzi Youssef
4ce8279d25 fix(admin-ui): Enhanced 'activity-drawer' visibility with z-index adjustment (#5315) 2023-10-31 14:39:13 +01:00
Riqwan Thamir
03c7a3949c chore(integration-tests): skip create product workflow test (#5504) 2023-10-31 11:43:42 +00:00
Oli Juhl
65639cb8c1 fix(integration-tests): Add missing deps + timeout to repos test (#5506) 2023-10-31 12:18:55 +01:00
pepijn-vanvlaanderen
2057d3b247 fix(admin-ui) Custom batch job activity card (#5288) 2023-10-31 11:22:28 +01:00
Philip Korsholm
9ff22110a6 fix(medusa): Add inventory decoration for cart endpoints (#5187)
**What**
- decorate item totals for `cart.item.variant` when adding a line-item and retrieving a cart

closes #5181
2023-10-31 09:55:30 +00:00
huuduc2312
ca05436fc1 feat(admin-ui): add Vietnamese translation (#5442) 2023-10-31 10:36:05 +01:00
Philip Korsholm
e346be3eca fix(integration-tests): Restore integration redis-url (#5502) 2023-10-31 09:04:03 +01:00
Adrien de Peretti
a780b92b8d fix(medusa): Add admin get product tests (#5480) 2023-10-31 08:54:06 +01:00
Shahed Nasser
c1b97050ab feat(medusa-oas-cli,oas-github-ci): new options + added download of OAS in api reference (#5453) 2023-10-31 08:05:48 +01:00
Shahed Nasser
03959c3e3a feat(create-medusa-app): improve spinner style (#5474)
* feat(create-medusa-app): improve spinner style

* remove comment
2023-10-31 08:02:40 +01:00
Riqwan Thamir
399005cc58 fix: undo container pg connection destroy (#5500) 2023-10-31 08:02:19 +01:00
Philip Korsholm
4d52082bf0 feat(medusa): variant creation with prices in productservice.create (#5410) 2023-10-30 17:22:57 +01:00
Oli Juhl
397da6c2ba fix(admin-ui): TIP in shipping option creation (#5356)
* fix(admin-ui): TIP in shipping option creation

* Create six-pigs-return.md
2023-10-30 15:17:34 +01:00
Yersultan
3e5c6f5d8c feat(admin-ui): Add Russian translation (#5142) 2023-10-30 15:12:49 +01:00