Commit Graph

4171 Commits

Author SHA1 Message Date
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
Philip Korsholm 148f537b47 feat(medusa): integrate pricing module to core (#5304)
* add pricing integraiton feature flag

* init

* first endpoint

* cleanup

* remove console.logs

* refactor to util and implement across endpoints

* add changeset

* rename variables

* remove mistype

* feat(medusa): move price module integration to pricing service (#5322)

* initial changes

* chore: make product service always internal for pricing module

* add notes

---------

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

* nit

* cleanup

* update to object querying

* update cart integration test

* remove uppercase currency_code

* nit

* Feat/admin product pricing module reads (#5354)

* initial changes to list prices for admin

* working price module implementation of list prices

* nit

* variant pricing

* redo integration test changes

* cleanup

* cleanup

* fix unit tests

* [wip] Core <> Pricing - price updates  (#5364)

* chore: update medusa-app

* wip

* get links and modules working with migration

* wip

* chore: make test pass

* Feat/rule type utils (#5371)

* initial rule type utils

* update migration script

* chore: cleanup

* ensure prices are always decorated

* chore: use seed instead

* chore: fix oas conflict

* region id add to admin price read!

---------

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com>

* pr feedback

* create remoteQueryFunction type

* fix merge

* fix loaders issue

* Feat(medusa, types, pricing): pricing module migration script (#5409)

* add migration script for money amounts in pricing module

* add changeset

* rename file

* cleanup imports

* update changeset

* add check for pricing module and ff

* feat(medusa,workflows,types): update prices on product and variant update (#5412)

* wip

* chore: update product prices through workflow

* chore: cleanup

* chore: update product handler updates prices for variants

* chore: handle reverts

* chore: address pr comments

* chore: scope workflow handlers to flag handlers

* chore: update return

* chore: update db url

* chore: remove migration

* chore: increase jest timeout

* Feat(medusa): update migration and initDb to run link-migrations (#5437)

* initial

* loader update

* more progress on loaders

* update integration tests and remote-query loader

* remove helper

* migrate isolated modules

* fix test

* fix integration test

* update with pr feedback

* unregister medusa-app

* re-register medusaApp

* fix featureflag

* set timeout

* set timeout

* conditionally run link-module migrations

* pr feedback 1

* add driver options for db

* throw if link is not defined in migration script

* pass config module directly

* include container in migrate command

* chore: increase timeout

* rm redis from api integration tests to test

* chore: temporarily skip tests

* chore: undo skips + add timeout for workflow tests

* chore: increase timeout for order edits

* re-add redis

* include final resolution

* add sharedcontainer to medusaapp loader

* chore: move migration under run command

* try removing redis_url from api tests

* chore: cleanup server on process exit

* chore: clear container on exit

* chore: adjustments

* chore: remove consoles

* chore: close express app on finish

* chore: destroy pg connection on shutdown

* chore: skip

* chore: unskip test

* chore: cleanup container pg connection

* chore: skip

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-10-30 14:42:17 +01:00
Kasper Fabricius Kristensen b69f182571 fix(admin-ui): modify webpack config to prevent throwing sourcemap errors (#5484) 2023-10-30 12:06:58 +01:00
Oli Juhl 8f5b5b51a9 chore: Ignore markdown + yaml in repo language scan (#5486) 2023-10-30 09:19:39 +01:00
Adrien de Peretti a45da9215d fix(medusa, modules-sdk, modules): Module loading missing dependencies + remote query reference issue (#5468) 2023-10-26 20:24:38 +02:00
Andrii Nutskovskyi 725ba9bb9b feat(admin-ui): Added Ukrainian translations (#5084)
Co-authored-by: Victor Gerbrands <42065266+VariableVic@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-26 20:23:02 +02:00
Prajjwal Kumar ec2b8414db feat(admin-ui): add Tamil translation (#5463)
* feat(admin-ui): added translations for tamil language

* feat(admin-ui): added the language in i18
2023-10-26 16:50:01 +02:00
Shahed Nasser 7f9c4dea66 docs: improve UX of recipe learning path (#5477)
* docs: improve UX of recipe learning path

* fix icon colors
2023-10-26 16:05:17 +03:00
Kasper Fabricius Kristensen ea2ee343f0 fix(admin-ui): PriceList bulk editor fixes (#5456)
* fix: rounding on decimal numbers, wrap in form

* add changeset

* fix: decimal numbers in product details

* fix: resolve an issue where double clicking an already selected cell would freeze it
2023-10-26 09:56:36 +02:00
Oli Juhl ebba93e03d fix(medusa): Revert status type in API (#5428) 2023-10-26 08:11:01 +02:00
Shahed Nasser 2ac05066ac chore(docs-util): Improve generate references script and action (#5472)
* chore(docs-util): Improve generate references script and action

* added if condition for API reference

* fix api reference condition

* fix description of action

* fix body value

* fix step name
2023-10-25 17:12:10 +03:00
Adrien de Peretti e64823d1b9 fix(medusa): totals calculation with gift card (#5075)
**What**
Resolve potential discrepency between what is calculated in the `createFromCart` and the cart/order totals calculation.
When the giftCard is taxable then the following calculation is applied 
```ts
cart.subtotal + cart.shipping_total - cart.discount_total
```
otherwise
```ts
 cart.subtotal +
          cart.shipping_total +
          cart.tax_total -
          cart.discount_total
```

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-25 10:29:30 +00:00
Shahed Nasser 8bb8eb530b docs: added documentation for logging (#5469) 2023-10-25 12:49:37 +03:00
Shahed Nasser f08a295ad4 fix(admin-ui): fix analytics config not being saved in invite form (#5467) 2023-10-25 12:06:12 +03:00
github-actions[bot] db8a2f80a3 chore(docs): Removed Docs Announcement Bar (automated) (#5466)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-10-25 10:06:59 +03:00