github-actions[bot]
d3e8efd573
chore(docs): Generated Docs Announcement Bar (automated) ( #5661 )
...
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com >
2023-11-21 09:18:07 +00:00
Shahed Nasser
9c7f95c3d5
docs: documentation for v1.18 ( #5652 )
...
* docs: documentation for v.17.5
* fix links
* updated version number
2023-11-21 08:57:11 +00:00
olivermrbl
adc60e519c
chore: Release
2023-11-21 08:52:26 +00:00
github-actions[bot]
f4085dbede
chore: Version Packages ( #5622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-21 08:46:09 +00:00
olivermrbl
7935c27b33
chore(changesets): Correct version bump
2023-11-21 08:25:30 +00:00
olivermrbl
b53ab22a7c
chore(changesets): Minor-bump @medusajs/medusa
2023-11-20 18:27:40 +00:00
olivermrbl
ebf63dffc4
chore(medusa-oas-cli,medusa-source-shopify): Remove workspace versions
2023-11-20 18:24:30 +00:00
Riqwan Thamir
c4722715cd
fix(product): when running migrations, prevent exploding on isolated case ( #5643 )
...
* fix(product): when running migrations, prevent exploding on isolated case
* chore: remove try catch block
* chore: added variant test fixes
* chore: update name of var
2023-11-20 18:08:28 +01:00
Shahed Nasser
c51dce164d
docs: general fixes to references ( #5653 )
...
* fixed typedoc plugin's escape strategy
* move props comments to the associated property
* regenerate references
2023-11-17 19:36:58 +02:00
Bastien
b3093c3e3d
feat(medusa): Add metadata to Product Category ( #5599 )
...
* ✨ feat(migrations): add metadata column to product_category table in database to store additional information about each product category
* ✨ feat(product-category.ts): add metadata field to ProductCategory model to store additional details
📝 docs(product-category.ts): add documentation for new metadata field in ProductCategory model
* ✨ feat(product-category.ts): add metadata field to ProductCategoryInput type to support additional data
* ✨ feat(ProductCategory.ts): add optional metadata field to ProductCategory model to store additional details
* ✨ feat(product-categories): add metadata field to product categories for additional information storage
📝 docs(product-categories): add documentation for new metadata field in product categories
* ✨ feat(product-categories): add 'metadata' field to default and allowed product category fields for enhanced data tracking
* ✨ feat(product-category.ts): add metadata support to product categories
🔧 refactor(product-category.ts): import setMetadata from utils to handle metadata setting in a more efficient way
* ✨ feat(models): add metadata field to AdminPostProductCategoriesCategoryReq and AdminPostProductCategoriesReq models to store additional information
* 📝 docs(api-reference): add metadata field to ProductCategory schema in both admin and store specs
🔧 fix(api-reference): make metadata field required in ProductCategory schema to ensure data consistency
* Create nine-fishes-matter.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-16 20:37:02 +01:00
Kasper Fabricius Kristensen
57573ed4d7
feat(medusa): Alternative Subscriber API and new ScheduledJobs API ( #5624 )
...
* workking subscribers API
* progress
* update registrar args
* cleanup
* progress
* progress
* tests
* rename to loaders
* rm build artifacts
* improve validation and change jobs args to object
* spread context on subscribe
* add changeset
* address comments
* fix spelling of warning and add warning on Redis not enabled for Scheduled Jobs
* fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-16 20:36:02 +01:00
Riqwan Thamir
4f0bea4909
fix(pricing): add missing migrations for pricing module ( #5646 )
2023-11-16 14:26:00 +00:00
Kasper Fabricius Kristensen
a67a8e7e90
fix(ui): Fixed CodeBlock line number width ( #5640 )
...
**What**
- Fixes the width of lineNumbers in the CodeBlock component according to the widest number.
- Introduces a new prop on snippets that allows users to hide the copy button. Also updated docs to reflect this.
Before:

After:
<img width="742" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/5ce845f7-b8c7-411c-abfb-fa03448aeb1a ">
Closes #5639
2023-11-16 10:50:04 +00:00
Shahed Nasser
95aa5a2d28
docs: generate inventory and stock location references ( #5645 )
2023-11-16 11:10:23 +02:00
github-actions[bot]
ecabd38b07
chore(docs): Removed Docs Announcement Bar (automated) ( #5644 )
...
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com >
2023-11-16 10:13:55 +02:00
Riqwan Thamir
1772e80ed1
feat(pricing,types): price list API + price calculations with price lists ( #5498 )
...
**what:**
**PriceList Service APIs:**
- createPriceList
- updatePriceList
- addPriceListPrices
- removePriceListRules
- setPriceListRules
- deletePriceList
- listPriceLists
- listAndCountPriceLists
**Price Calculations**
- Returns prices with price list prices
- Returns a new shape with calculated and original prices
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-11-15 20:24:29 +00:00
Kasper Fabricius Kristensen
2947f57db1
fix(medusa): Update wrapHandler so it also passes errors in non-async route handlers to the errorHandler middleware ( #5597 )
...
* fix: Align @types/react versions across UI packages
* update codeowners
* fix: Update wrapHandler so it also catches errors for non-async route handlers
* rm chaining
* align wrapHandler in utils and add deprecation note
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-15 19:41:10 +01:00
Kasper Fabricius Kristensen
c08240df3f
fix(admin-ui): Preserve decimal numbers when locale uses commas ( #5641 )
...
**What**
- Ensure that we format numbers with `.` as the decimal separator, even when the users locale uses `,`. This changes still allows users to use comma as the decimal separator, but the transformation we use before writing to state converts the number to use a dot instead.
2023-11-15 17:18:26 +00:00
Kasper Fabricius Kristensen
a2a45b6fef
fix: minor fixes to IconButton and Button documentation ( #5636 )
...
**What**
- Updates example on IconButton page so it no longer uses IconBadge
- Removes the "small" size from Button props as it no longer exists.
2023-11-15 15:53:05 +00:00
Shahed Nasser
61aef4aaa7
chore(types): Add TSDoc comments to IInventoryService ( #5630 )
...
* chore(types): Add TSDoc comments to IInventoryService
* fix description of list methods
* address PR feedback
2023-11-15 17:40:25 +02:00
Shahed Nasser
e13995ff2f
chore: add TSDocs for IStockLocationService ( #5631 )
...
* chore: add TSDocs for IStockLocationService
* address feedback
2023-11-15 15:54:20 +02:00
Kasper Fabricius Kristensen
52800710a2
fix(medusa): Error handling middleware should be applied when no config is exported ( #5634 )
...
**What**
- Fixes an issue where the default errorHandler middleware was not applied if the user did not have a `middlewares.ts` file.
- Updates the type of `MiddlewaresConfig` so `middlewares` is now optional, as people might want to only set a bodyParser config for a matcher and not provide any additional middleware.
2023-11-14 20:48:10 +00:00
chemicalkosek
7226f5b699
fix(medusa): Add missing promiseAll import ( #5635 )
2023-11-14 19:37:00 +01:00
Victor Gerbrands
3f016d871a
fix(admin-ui): sort supported languages alphabetically ( #5479 )
...
## What?
Added sorting to the `supportedLanguages` array in `packages/admin-ui/ui/src/i18n/index.ts`. This makes sure the languages in the dropdown are sorted alphabetically.

## Why?
As we're supporting more languages in the admin UI, this list was getting messy.
## How?
By using `sort()` and `localeCompare()` on array declaration.
## Testing
Go to Medusa Admin locally, login and navigate to Settings > Personal information to test the language dropdown.
2023-11-14 15:09:57 +00:00
Shahed Nasser
edeec07466
docs: added troubleshooting for postgres docker container ( #5629 )
...
* docs: added troubleshooting for postgres docker container
* fix component name
2023-11-14 12:27:38 +02:00
Shahed Nasser
26617cecf1
chore: change code owners of docs-util directory ( #5626 )
...
The `docs-util` directory holds the necessary utility to automate documentation processes. So, the code-owners of it should be the Docs team.
2023-11-14 08:53:18 +00:00
Shahed Nasser
b1826a8e01
chore: add missing error responses to currency OAS ( #5627 )
2023-11-14 10:18:37 +02:00
Shahed Nasser
c6dff873de
docs: update docusaurus to v3 ( #5625 )
...
* update dependencies
* update onboarding mdx
* fixes for mdx issues
* fixes for mdx compatibility
* resolve mdx errors
* fixes in reference
* fix check errors
* revert change in vale action
* fix node version in action
* fix summary in markdown
2023-11-13 20:11:50 +02:00
Riqwan Thamir
cedab58339
feat(workflows,medusa,utils): add medusa v2 feature flag ( #5603 )
...
* chore: add medusa v2 feature flag
* chore: cleanup more FF
* chore: cleanup workflows FF
* chore: add comments on broken specs
* chore: added check for package registration
* chore: reenable workflows FF for create order workflow
* chore: disable FF on test cli db
* chore: hide loader validation behind FF
* chore: use medusa v2 enabled
* chore: register feature flag router in use-db
* chore: change to minro
2023-11-13 16:18:05 +01:00
Shahed Nasser
c7b8d060d7
docs: add note about ttl in redis cache module ( #5617 )
2023-11-13 10:42:52 +02:00
github-actions[bot]
39649b3552
chore(docs): Generated References ( #5602 )
...
Generated the following references:
- `pricing`
- `product`
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2023-11-10 17:31:02 +00:00
github-actions[bot]
5f4317b9d7
chore(docs): Generated Docs Announcement Bar (automated) ( #5600 )
...
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-11-10 12:56:46 +00:00
github-actions[bot]
01d4047976
chore(docs): Generated API Reference ( #5601 )
...
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com >
2023-11-10 14:27:17 +02:00
Oli Juhl
02e2ee4e8a
docs: cache-redis breaking changes ( #5590 )
...
* docs: cache-redis breaking changes
* remove section
2023-11-10 11:00:22 +01:00
Shahed Nasser
d4b8a89e66
docs: updated API Routes and Middlewares docs ( #5588 )
...
* docs: updated API Routes and Middlewares docs
* fix eslint errors
2023-11-10 11:00:08 +01:00
Shahed Nasser
3781ac4631
docs: added troubleshooting guide for promise.all ( #5586 )
...
* docs: added troubleshooting guide for promise.all
* fix eslint errors
2023-11-10 10:59:52 +01:00
olivermrbl
03e56aed74
chore: Release
2023-11-10 10:38:47 +01:00
github-actions[bot]
71d59d2c81
chore: Version Packages ( #5527 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 10:28:21 +01:00
olivermrbl
d2309e771d
chore(changesets): Add missing stock-location changeset
2023-11-10 10:19:17 +01:00
adamlamaa
203e1fccb4
feat(medusa): Include Product Collections in Seed command ( #5510 )
2023-11-10 08:55:08 +01:00
Adrien de Peretti
4ad66c1795
fix(medusa): Load legacy modules entities ( #5594 )
2023-11-10 08:51:55 +01:00
Kasper Fabricius Kristensen
e3f1da92db
fix(admin-ui, ui): Align @types/react versions across UI packages ( #5596 )
...
* fix: Align @types/react versions across UI packages
* update codeowners
2023-11-10 08:31:30 +01:00
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