Commit Graph

4112 Commits

Author SHA1 Message Date
Adrien de Peretti
6c808dd6d9 fix(medusa): Handle variant error during line item generation (#5145)
* fix(medusa): Handle variant error during line item generation

* improve and tests

* cleanup

* update messages

* Create few-masks-draw.md

* change error type

* fix unit tests
2023-09-20 10:19:02 +02:00
Shahed Nasser
889154c440 docs: fix card title in digital products recipe (#5147) 2023-09-19 18:43:23 +03:00
Adrien de Peretti
02fe4d1364 fix(orchestration): ToRemoteJoinerHelper property building (#5130)
* fix(orchestration): ToRemoteJoinerHelper property building

* update fix
2023-09-19 15:37:17 +02:00
Shahed Nasser
d709521826 docs: updated recipes (#5138) 2023-09-19 13:48:27 +03:00
Razvan Stan
5b557d3098 docs: fix steps numbering in Create Entity docs (#5035)
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-09-19 11:06:27 +03:00
olivermrbl
a37e0b44d4 chore: Release 2023-09-18 18:58:27 +02:00
github-actions[bot]
c5433e2981 chore: Version Packages (#5083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-18 18:55:48 +02:00
Oli Juhl
299b98c401 fix(admin-ui): Wraps invite route correctly with analytics (#5118) 2023-09-18 18:07:54 +02:00
adil
a52d5ed786 fix(medusa-test-utils): Fixed count serialization and incorrect function call (#5090)
- Serialized `count`  - Updated the function name called inside the mock implementation

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-18 15:26:13 +02:00
Oli Juhl
8772a0722e fix(admin-ui): Wrap invite route in AnalyticsProvider (#5111)
* fix(admin-ui): Wrap invite route in AnalyticsProvider

* Create nervous-keys-impress.md
2023-09-18 15:25:12 +02:00
Frane Polić
4dd11c8867 fix(admin-ui): modal pointer events (#5113) 2023-09-18 15:07:59 +02:00
Carlos R. L. Rodrigues
1e5a6d4359 fix(modules-sdk): medusa app default module (#5114) 2023-09-18 12:45:13 +00:00
Shahed Nasser
a161f689b9 docs: fix SendGrid's dynamic_template_data property (#5112) 2023-09-18 15:06:09 +03:00
Didier Guyon
254ae8d07f fix(admin-ui): Typo in Return Reasons subtitle (#5027) 2023-09-18 11:41:54 +02:00
Bruno Bodian
835b85c1e3 docs(medusa-file-s3): update aws config object name (#5098)
Update the aws config object name as [defined here](https://github.com/medusajs/medusa/blob/develop/packages/medusa-file-s3/src/services/s3.ts#L43)

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-09-18 11:53:57 +03:00
Shahed Nasser
0c467012f6 docs: fix retrieve order by display ID code block (#5106)
Fixes #5099
2023-09-18 10:50:54 +03:00
Frane Polić
4710520c35 fix(admin-ui): fix template expression (#5103)
**What**
- use template instead of object in render
2023-09-17 20:08:14 +00:00
Shahed Nasser
beeb0d6154 docs: added docs for multi-language support (#5026)
* docs: added docs for multi-language support

* fix sidebar

* fix sidebar ref

* added config step
2023-09-15 17:21:00 +02:00
Oli Juhl
5bd7311393 docs: Add upgrade guide for 1.16.0 (#5051)
* docs: Add upgrade guide for 1.16.0

* Update www/docs/content/upgrade-guides/medusa-core/1-16-0.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

* Update www/docs/content/upgrade-guides/medusa-core/1-16-0.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-09-15 17:20:27 +02:00
olivermrbl
7dcb82468f chore: Release 2023-09-15 17:14:26 +02:00
github-actions[bot]
223a4a4cd9 chore: Version Packages (#5002)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-15 17:09:34 +02:00
Oli Juhl
2a2108fe56 fix(admin-ui): Case sensitive locale detection in prod (#5082)
* fix(admin-ui): Admin path in i18n

* lowercase locale
2023-09-15 17:08:01 +02:00
Oli Juhl
a7459029fe chore(admin-ui): Add pt-BR to supported languages (#5080) 2023-09-15 15:23:17 +02:00
olivermrbl
5930f89b7c add medusa-js patch 2023-09-15 15:12:36 +02:00
Adrien de Peretti
92237db7fe fix(medusa): Money amount detached migration (#5079) 2023-09-15 13:51:19 +02:00
Shahed Nasser
09bcbdaea5 docs: fix environment variable names for Railway guide (#5077)
* docs: fix environment variable names for Railway guide

* Update deploying-on-railway.md

* Update deploying-on-railway.md
2023-09-15 14:42:11 +03:00
Oli Juhl
c722440c30 fix(admin-ui): Load translations from path (#5064)
* fix(admin-ui): Load translations from path

* Create big-oranges-battle.md

* fix: resolve public folder path in dev

---------

Co-authored-by: Kasper <kasper@medusajs.com>
2023-09-15 13:19:24 +02:00
Rodrigo da Hora
53ffd614b5 feat(admin-ui): pt-BR translations and en version text fixes (#5066)
# feat(localization): Add pt-BR translation and fix en version text

## Summary

This PR aims to improve Medusa's localization experience. It includes new translations for Brazilian Portuguese (pt-BR) and minor text adjustments in the English version.


## Objectives

- Add Brazilian Portuguese (pt-BR) language support
- Refine text consistency and clarity in the English version


## Details

### 1. Brazilian Portuguese Translations (pt-BR)

New translations have been added to enhance accessibility and user experience for brazilian users.

### 2. Minor Text Adjustments in English

Text in the English version has been adjusted.


## Next Steps

Pending review, additional adjustments may be made based on feedback.

---

I'm looking forward to your feedback and collaboration to further improve this tool. Please review and let me know if any adjustments are required.

Best Regards,
Rodrigo da Hora.

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-09-15 11:03:14 +00:00
Shahed Nasser
7d35723023 fix(medusa-react): fix useAdminAddStoreCurrency hook (#5074) 2023-09-15 12:06:12 +02:00
Kasper Fabricius Kristensen
cb67760f71 fix(admin,admin-ui): copy public folder as part of admin build (#5057)
**What**
- Copies `/public` folder into Admin build
- Updates the version of `dotenv` to match the version used in other Medusa dependencies. This will prevent errors when trying to link the `admin` package into a local repository for testing.
2023-09-15 09:47:11 +00:00
Adrien de Peretti
60360d2fd2 fix(medusa): Fix order service linting issues (#5071)
* style(medusa): Fix order service linting issues

* Create short-ligers-pull.md
2023-09-15 10:58:30 +02:00
Oli Juhl
dc94f053d3 fix(medusa): Support fields param in list-variants (#5053)
* fix(medusa): Support fields param in list-variants

* Create cuddly-pigs-tease.md

* address pr comments
2023-09-15 09:08:04 +02:00
Philip Korsholm
edf90eecb4 feat(pricing) Add Price Set Rule Type (#4977)
* initial

* initial service

* update pricing module service

* add integration test for rule-type

* update pricing-module integration tests

* update pricing service interface

* feat(pricing): PriceSets as entry point to pricing module

* chore: add price set money amount

* chore: add price set money amount

* chore: change name of test

* chore: added changeset

* chore: use filterable props from money amount in price sets

* chore: update migrations

* test update integration test

* fix weird behavior

* Update packages/pricing/integration-tests/__fixtures__/rule-type/index.ts

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>

* Apply suggestions from code review

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>

* move rule-type to common

* chore: reset migration

* chore: remove incorrect conflicts

* chore: address review

* chore: remove ghost price list

* Apply suggestions from code review

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

* update id prefix

* use persist not persistAndflush

* rename key_value to rule_attribute

* more renaming

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-09-14 17:58:31 +02:00
Shahed Nasser
5b09f816cb fix(create-medusa-app): fix command for windows OS (#5061) 2023-09-14 18:07:43 +03:00
Shahed Nasser
d14966abca api-ref: fix feedback component client error (#5055) 2023-09-14 17:06:18 +03:00
Geoffroy Empain
ab754a4cc2 feat(admin-ui): Add French translations (#5031)
* feat(admin-ui): add fr translations

* chore: register french in available languages

* chore: apply suggestions

---------

Co-authored-by: Geoffroy Empain <geoffroy@charlie-bravo.be>
2023-09-14 14:19:11 +02:00
olivermrbl
77c85fc6c6 chore(changesets): Minor bump @medusajs/medusa 2023-09-14 13:43:21 +02:00
github-actions[bot]
c8188ffe7a chore(docs): Removed Docs Announcement Bar (automated) (#5049)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-09-14 10:09:32 +03:00
Adrien de Peretti
05a32683a3 feat(medusa): Get product with isolated product module (#5010) 2023-09-13 14:39:59 +02:00
Adrien de Peretti
4fa675ec25 chore(medusa, modules-sdk, types): Refactor modules loading from medusa (#5018) 2023-09-13 14:26:54 +02:00
Carlos R. L. Rodrigues
5362bfc348 feat(medusa): Drop FKs to isolate products (#5042)
What:
Remove FKs related to product domain tables
2023-09-13 12:05:37 +00:00
Philip Korsholm
5d10c46bb1 feat(medusa): Separate money amount and variant (#4906)
* initial changes

* working test

* final changes to product tests

* update integration tests

* update price list integration tests

* update integration tests

* update unit tests

* update plugin integration tests

* remove catch from integration test

* undo change

* add andWhere

* update upsertCurrencyMoneyAmount method

* undo line item changes

* undo changes

* update deprecated method

* Update packages/medusa/src/migrations/1692953518123-drop_money_amount_constraints_for_pricing_module.ts

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* rename joinTable

* update with joinTable entity

* update load methods

* remove await create

* re-add context test

* update price list behavior for prices

* update price list snapshots

* re-add admin seeder

* pr feedback

* fix unit tests

* fix plugin integration tests

* initial review changes

* redo changes to variant creation

---------

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>
2023-09-13 13:26:20 +02:00
Riqwan Thamir
3d68be2b6b fix(orchestration,link-modules,pricing,types): fix shippingprofile errror outside of core + change link alias name (#5025)
* fix(orchestration,link-modules,pricing,types): fix shippingprofile error outside of core + change link alias name

* chore: scope relationships and move condition inside

* chore: remove islist

* chore: fix merge conflict

* chore: reverted serviceName scoping

* chore: change shape to make methodOverride compatible

* chore: added methodOverride to remote query

* chore: revert override
2023-09-13 12:16:00 +02:00
Adrien de Peretti
7231f65833 feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled (#5037)
* feat(medusa): Prevent default SC to be assign if the isolated product flag is enabled

* Create breezy-fans-accept.md
2023-09-13 10:36:55 +02:00
Shahed Nasser
973c79bef6 docs: change usage of AbstractPaymentService with AbstractPaymentProcessor (#5038)
Fixes #5033
2023-09-13 11:19:25 +03:00
Oli Juhl
d4432dd183 feat(admin-ui): Add display name + pull supported languages from config (#5028) 2023-09-13 09:45:26 +02:00
Carlos R. L. Rodrigues
05fcfd803e Fix(medusa): duplicated migration (#5029)
Fix duplicated migration class name
2023-09-12 20:15:47 +00:00
Adrien de Peretti
30863fee52 feat(medusa): List products with Remote Query (#4969)
**What**
- includes some type fixes in the DAL layer
- List products including their prices and filtered by the sales channel as well as q parameter and category scope and all other filters
- Assign shipping profile
- ordering
- Add missing columns in the product module
- update product module migrations

**Comment**
-  In regards to the fields, we can pass whatever we want the module will only return the one that exists (default behavior), but on the other hand, that is not possible for the relations.

**question**
- To simplify usage, should we expose the fields/relations available from the module to simplify building a query for the user and be aware of what the module provides

**todo**
- Add back the support for the user to ask for fields/relations
2023-09-12 15:55:05 +00:00
Geoffroy Empain
afd4e72cdf feat(admin-ui): Multi-language support (#4962) 2023-09-12 14:53:48 +02:00
Adrien de Peretti
107aaa371c fix(orchestration): Infinite loop by reference update (#5023)
* fix(orchestration): Infinite loop by reference update

* fix

* handle conflict alias config

* rm field alias

* Create wet-gorillas-laugh.md
2023-09-12 13:24:35 +02:00