Commit Graph
2539 Commits
Author SHA1 Message Date
Shahed NasserandGitHub 2cf26d7071 docs: added robots.txt file (#2549) 2022-11-04 15:11:52 +02:00
Shahed NasserandGitHub 5cc8f26aae docs: added opengraph image (#2547)
* docs: added opengraph image

* re-ran install
2022-11-04 14:50:42 +02:00
olivermrbl a68af8a474 chore: Update lockfile 2022-11-04 13:32:23 +01:00
olivermrbl a3873b47f0 Merge branch 'master' into develop 2022-11-04 11:40:46 +01:00
olivermrbl 4542906619 chore(release): Publish 2022-11-04 11:37:56 +01:00
Oliver Windall JuhlandGitHub 222423625d chore(medusa): Enable analytics ff by default (#2532) 2022-11-04 11:33:21 +01:00
Shahed NasserandGitHub 52666a8538 docs: general design fixes (#2545)
* general fixes to the docs design

* fix condition checking for auto color scheme
2022-11-04 12:30:55 +02:00
olivermrbl 55dd5650c0 Merge branch 'master' into develop 2022-11-04 11:24:49 +01:00
Shahed NasserandGitHub e4e65812a6 docs: fix color mode tabs (#2541) 2022-11-03 19:53:39 +02:00
Shahed NasserandGitHub 3a727c6f68 docs: fix main content not centered (#2540) 2022-11-03 19:24:47 +02:00
Shahed NasserandGitHub 76a16aa131 docs: redesigned documentation (#2539)
* docs: redesigned navigation bar (#2478)

* docs: redesigned homepage (#2480)

* docs: redesigned homepage

* fixed link

* docs: redesigned notes (#2491)

* docs: Applied Typography redesign rules (#2516)

* changes to typography

* small changes and fixes

* docs: redesigned table of content (#2518)

* redesigning toc

* finalized table of content design

* docs: redesigned code blocks (#2519)

* docs: redesigned code blocks

* removed unused package

* docs: redesigned survey and content footer (#2522)

* fixes to inline code

* redesigned doc footer

* docs: redesigned footer (#2523)

* docs: changed dark mode colors (#2524)

* docs: redesigned sidebar (#2535)

* docs: redesigned search modal (#2537)

* docs: resolved loose ends (#2538)

* added spacing for tabs

* docs: added no-zoom class for deploy images

* fix to tooltip design for inline code
2022-11-03 18:59:46 +02:00
Sebastian RindomandGitHub 61da5f3650 fix(medusa-plugin-brightpearl): account for shipping prices being tax inclusive (#2536)
**What**
BP plugin was recording total shipping price based on the shipping_method.price; however, this value may be with or without taxes depending on the tax inclusivity setting. This change ensures that the shipping price is calculated correctly.
2022-11-03 15:22:49 +00:00
olivermrbl 2e553ce42a chore(medusa-payment-stripe): Add /helpers to gitignore 2022-11-03 10:24:24 +01:00
Pankaj PatelandGitHub aee53884a4 docs: fix manual fulfilment package link (#2517) 2022-11-03 10:37:10 +02:00
0f9bf2c6f8 chore(docs): Generated Docs Announcement Bar (automated) (#2529)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-03 10:09:42 +02:00
f5d6652026 chore(docs): Generated Services Reference (automated) (#2528)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-03 10:09:19 +02:00
bb95afabbb chore(docs): Generated Entities Reference (automated) (#2527)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-03 10:08:59 +02:00
3c6fe30ee7 chore(docs): Generated JS Client Reference (automated) (#2526)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-03 10:08:09 +02:00
Philip KorsholmandGitHub 38d4a7db3d Feat(Medusa): Allow custom shipping price on draft orders (#2531)
* create custom shipping option for cart to have custom shipping price on draft orders

* Create moody-chefs-stare.md
2022-11-03 08:44:47 +01:00
Philip KorsholmandGitHub ea3d738823 Feat(medusa): config error handling in loaders (#2514)
**What**
- add error handling when loading project config

**How**
- Add error parameter to get-medusa-config result if an error was thrown (previously we returned an empty config)
- Discussion: 
A different, but equally valid approach could be just throwing the error rather than creating an error parameter. This causes a more ugly output without warnings and changes the api a bit but it would force error handling. wdyt?

**Why**
- cli would fail with database error `databaseMissingDriverError` if config was invalid, ex. missing a comma


### example (missing `,` in config)
**old output**
```
Successfully compiled 2 files with Babel (143ms).
[medusa-config] ⚠️ redis_url not found. A fake redis instance will be used.
[medusa-config] ⚠️ database_type not found. fallback to default sqlite.
info:    Using flag MEDUSA_FF_ORDER_EDITING from environment with value true
info:    Using flag MEDUSA_FF_SALES_CHANNELS from environment with value true
info:    Using flag MEDUSA_FF_TAX_INCLUSIVE_PRICING from environment with value true
info:    Using fake Redis
✔ Models initialized – 13ms
✔ Plugin models initialized – 0ms
✔ Repositories initialized – 17ms
⠋ Initializing databaseMissingDriverError: Wrong driver: "undefined" given. Supported drivers are: "aurora-data-api", "aurora-data-api-pg", "better-sqlite3", "capacitor", "cockroachdb", "cordova", "expo", "mariadb", "mongodb", "mssql", "mysql", "nativescript", "oracle", "postgres", "react-native", "sap", "sqlite", "sqljs".
```

**new output** 
```
Successfully compiled 2 files with Babel (185ms).
error:    Error in loading config: Unexpected identifier
error:    /Users/phko/projects/community/my-medusa-store/medusa-config.js:129
  plugins,
  ^^^^^^^

SyntaxError: Unexpected identifier
    at compileFunction (<anonymous>)
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at getConfigFile (/Users/phko/projects/community/my-medusa-store/node_modules/medusa-core-utils/dist/get-config-file.js:26:20)
```
2022-11-02 18:58:02 +00:00
olivermrbl 0b0d50b476 Merge branch 'develop' of github.com:medusajs/medusa into develop 2022-11-02 18:20:54 +01:00
Carlos R. L. RodriguesandGitHub c3f8297599 feat(medusa): manage payment sessions from payment collection (#2402)
* feat: manage payment sessions from payment collection
2022-11-02 13:34:29 -03:00
olivermrbl ee8a71c692 chore(release): Publish 2022-11-02 16:44:54 +01:00
olivermrbl a014e3623c chore: Add Stripe plugin changeset 2022-11-02 16:41:11 +01:00
olivermrbl e6b42702bd Merge branch 'master' into develop 2022-11-02 16:34:33 +01:00
Oliver Windall JuhlandGitHub 684f68ce12 fix(medusa): Sales Channel migration script (#2521) 2022-11-02 13:37:46 +01:00
SanyamandGitHub d33eeb09f4 docs: update MinIO's port to avoid port clash (#2495)
* update MinIO's port to avoid port clash

added bash command to update the MinIO port to `9001` instead of `9000`

* move `warning` to the new section

* remove `:::warning` & `:::`, update text positioning

* add `:`
2022-11-01 10:25:36 +02:00
Aniketh VarmaandGitHub 096425f7db docs: add zoom functionality on images (#2403)
* Add zoom functionality on images

* Fixes in zooming images

* yarn.lock issue fix
2022-11-01 10:25:08 +02:00
olivermrbl 144ce0e42c chore: Add missing changeset for 2479 2022-10-31 13:42:27 +01:00
Frane PolićandGitHub 591668d332 fix(medusa): draft order set payment as captured (#2479)
**What**
- when an order is created from a draft order, set the payment of the order as captured

FIXES CORE-592
2022-10-31 12:24:59 +00:00
Sebastian RindomandGitHub 58c7ffdc6e fix(medusa): allow filtering collections by handle (#2482) 2022-10-31 08:51:15 +00:00
Sebastian RindomandGitHub a9acb48fc6 feat(stripe): Support automatic payment methods (#2492) 2022-10-30 13:32:00 +01:00
Carlos R. L. RodriguesandGitHub b88cef2b1f feat: Development server for core + plugins (#2448) 2022-10-21 15:53:06 +02:00
Kasper Fabricius KristensenandGitHub 4de4f20b46 feat(medusa): add analytics config (#2442)
**What**
- Adds new entity AnalyticsConfig
- Adds new service AnalyticsConfigService
- Adds new repository AnalyticsConfigRepository
- Adds new endpoints to get, create, update, and delete analytics configs

**Why**
As we begin gathering usage insights to help us improve Medusa, we want to give each individual users the ability to control what data they share with us, or not share any data with us at all. The AnalyticsConfig holds information that is used to check if the user wishes for their data to be anonymized or if they have opted out of sharing usage data.

The entire feature can be disabled on a store level by setting the feature flag `MEDUSA_FF_ANALYTICS=false` in their environment variables, the feature is enabled by default. 

**Testing**
Adds integration test for each of the new endpoints

Resolves CORE-656, CORE-655, CORE-654

Also resolves CORE-574
2022-10-21 13:04:46 +00:00
olivermrbl f83c238a26 Merge branch 'master' into develop 2022-10-21 14:22:30 +02:00
Sebastian RindomandGitHub 7fdced0225 chore: Update snapshot this action (#2484) 2022-10-21 14:22:15 +02:00
olivermrbl 8b44618e7c fix: Merge conflicts with master 2022-10-21 14:21:06 +02:00
26627c69a9 docs: fix broken link redis (#2481)
* fix: fixed broken link redis

* Update docs/content/advanced/backend/notification/how-to-create-notification-provider.md

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-10-20 21:42:49 +03:00
Adrien de PerettiandGitHub 299c4ae7f5 feat(medusa): Align product import and export (#2471)
**What**

Create a data structure that facilitate the addition of new column descriptor for both export and import and ensure that the column name is shared between bother import and export to facilitate the import with an exported file. 

**Tests**

Add an additional integration tests that export a file, update the data, and re import the same file

FIXES CORE-716
FIXES CORE-713
2022-10-20 14:48:34 +00:00
Adrien de PerettiandGitHub 13611e3e53 fix(medusa): Select config should be undefined if length === 0 (#2469) 2022-10-20 13:25:23 +02:00
Shahed NasserandGitHub a03bdaf375 docs: added core package to troubleshooting step (#2473) 2022-10-19 20:07:07 +03:00
Adrien de PerettiandGitHub 2f00bd100a chore(medusa): Move formatException to the errorHandler to be always applied and not have to apply it manually (#2467)
**What**

Move the usage of the formatException to the errorHandler level in order to not have to try catch here and there to apply it. Also make our error handling uniformed and avoid forgetting to apply it.

FIXES CORE-721
2022-10-19 16:22:42 +00:00
Kasper Fabricius KristensenandGitHub fcfb7d167b fix(medusa): Allow AddressPayload or string on DraftOrder creation (#1902) 2022-10-19 18:01:08 +02:00
Adrien de PerettiandGitHub 8be67c734c feat(medusa): Filter product list by discount condition id (#2464) 2022-10-19 11:23:33 +02:00
Adrien de PerettiandGitHub 9deec0fc3c fix(medusa): Idempotency workStage used within transaction (#2358) 2022-10-19 10:47:31 +02:00
Philip KorsholmandGitHub 3c5e31c645 fix(medusa, medusa-file-*): Protected uploads for file services (#2433) 2022-10-18 10:46:47 +02:00
Oliver Windall JuhlandGitHub 7d77d91a3d chore: Automate staging releases with action (#2458) 2022-10-17 18:11:49 +02:00
Frane PolićandGitHub 73db8cfca6 feat: list OE by order id (#2457)
**What**
- allow passing `order_id` param to OE list endpoint
2022-10-17 15:34:20 +00:00
Adrien de PerettiandGitHub 48411157b1 feat(medusa): Support batch remove resources on discount condition (#2444)
**what**
- Add support to remove resources by batch on discount conditions
- Add support on medusa-js and medusa-react

**Tests**
- Add integration tests to validate that the resources have been deleted and the length is the one expected
- Add unit tests on medusa react

FIXES CORE-609
2022-10-17 09:03:38 +00:00
Shahed NasserandGitHub 479ae1e257 docs: Added automated freshness check (#2428)
* docs: created freshness check script

* added github action
2022-10-17 10:01:45 +03:00