Commit Graph

3606 Commits

Author SHA1 Message Date
olivermrbl
ce4e83b2aa chore: Release 2023-06-20 14:41:59 +02:00
Shahed Nasser
76c4bf4acb docs: documentation changes for release (#4300)
* docs: added manage reservations user guide (#4290)

* docs: added manage reservations user guide

* removed feature flag details

* docs: added how-to for custom reservations (#4292)

* docs: added how-to for custom reservations

* eslint fixes

* docs: added product module documentation (#4287)

* docs: added product module documentation

* added details about optional environment variables

* small fixes

* Remove reference link

* added example usages

* added link to sample project

* address PR feedback

* docs: moved product module guide + added product module tabs (#4307)

* added product module tab

* adjust design of badge

* docs: added onboarding features (#4168)

* added marketplace page

* added subscription roadmap

* added rating for onboarding

* added learning path components

* small fixes

* fix build error

* fix eslint errors

* change roadmaps to recipes

* small change in text

* optimize learning path and notifications

* fix tracking usage

* fix eslint errors

* added enter/exit animation

* allow starting a path using a query parameter

* fix gap between notifications

* address vercel comments

* fixed links issue

* changed create-medusa-app docs steps

* move troubleshooting section

* improved tracking across docs

* fix build errors

* remove console

* added a note about `boilerplate` option

* added troubleshooting section for eagain

* added invite option in cli reference

* added track event for finished onboarding

* update boilerplate option name

* redesigned learning path component

* docs: added how to create widget docs (#4318)

* docs: added how to create widget docs

* remove development guide

* added types

* docs: added details about createCustomAdminHooks (#4288)

* docs: added details about createCustomAdminHooks

* small improvement

* added missing import

* small changes

* docs: added onboarding guide (#4320)

* docs: added how to create widget docs

* remove development guide

* docs: added onboarding guide

* added types

* added recipes link

* small adjustments

* fixed eslint errors

* styling fixes

* change to singular product module

* updated the what's new section

* shorten down medusa react card

* updated tailwind configurations

* fix build error

* fix newspaper icon

* style fixes

* change modal shadow

* fix color of line numbers

* fix code fade color

* docs: updated admin documentations

* eslint fixes

* text changes

* added a note about beta version

* remove empty object argument

* remove demo repo url

* fix selection color for code headers

* general fixes

* fix eslint error

* changed code theme

* added preparation step

* changes regarding beta version

* Update docs/content/modules/products/serverless-module.md

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

* Update docs/content/modules/products/serverless-module.md

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

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-06-20 12:25:22 +02:00
github-actions[bot]
8db03619b5 chore: Version Packages (#4364)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-20 11:50:33 +02:00
Shahed Nasser
6d5da9166f feat(create-medusa-app): support admin onboarding experience (#4339) 2023-06-20 11:43:40 +02:00
Shahed Nasser
9d868dfc40 docs: remove latest tag for yarn (#4358) 2023-06-19 18:24:12 +03:00
olivermrbl
befa3b83f8 chore: Release 2023-06-19 16:34:14 +02:00
github-actions[bot]
e2bb65d160 chore: Version Packages (#4354)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-19 16:31:15 +02:00
Riqwan Thamir
dc120121c1 fix(product, types): correct path for migration files + fix types on products service module (#4348)
* chore: correct path for migration files

* chore: resolve the path for migrations to be picked up

* chore: fix types on product service interface

* chore: update changeset to reflect type changes

* chore: changed changeset to the correct format
2023-06-19 16:12:47 +02:00
github-actions[bot]
bf4f5e7147 chore: Version Packages (#4346)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-18 21:18:41 +02:00
olivermrbl
12782778f9 chore: Prepare @medusajs/product for beta 2023-06-18 21:11:02 +02:00
Shahed Nasser
5b50daec08 docs: updated create-medusa-app steps (#4327) 2023-06-18 15:38:06 +03:00
github-actions[bot]
6b3353bdc8 chore(docs): Generated Docs Announcement Bar (automated) (#4344)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-06-18 13:41:16 +02:00
olivermrbl
d88a57fd9c chore: Release 2023-06-18 13:26:47 +02:00
github-actions[bot]
5d7877ded6 chore: Version Packages (#4223)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-18 13:14:20 +02:00
olivermrbl
b779040acb chore: First major of create-medusa-app 2023-06-18 13:02:18 +02:00
Adrien de Peretti
13294fff3f fix(medusa): medusa develop does not take execArgv into account properly (#4338) 2023-06-17 15:43:05 +02:00
Shahed Nasser
a19d397a77 docs: fix text highlight color for dark mode (#4332) 2023-06-16 15:37:16 +03:00
Ashutosh Krishna
698df651f5 docs: fixed typos in condition type relations section in discounts architecture page (#4122)
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-06-16 15:23:22 +03:00
Shahed Nasser
2bffe9c542 docs: fix code tabs in migrations guide (#4331) 2023-06-16 14:39:15 +03:00
Shahed Nasser
e1f43fd207 chore(create-medusa-app, product, utils, medusa-cli): Resolve string-width dep issue (#4328) 2023-06-16 11:31:23 +02:00
Philip Korsholm
0bfdc33a0b fix(admin-ui): Inventory nitpicking (#4316)
* minor fixes

* add changeset

* add search by sku placeholder
2023-06-16 08:28:07 +02:00
Shahed Nasser
5ad7347408 fix(create-medusa-app): disable opening browser (#4321) 2023-06-15 21:15:19 +02:00
Adrien de Peretti
30d89044f1 fix(product): The bin scripts should include a shebang and import in the body (#4296) 2023-06-15 19:42:49 +02:00
Philip Korsholm
1d91fa4e08 fix(medusa-plugin-brightpearl): External ref split (#4295)
* order should be first part of external_ref

* add changeset

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-06-15 19:41:44 +02:00
Shahed Nasser
f98ba5bde8 feat(create-medusa-app,medusa-cli): Allow clearing project (#4273)
- Added build step
- Added `--no-boilerplate` option to `create-medusa-app` to allow clearing onboarding files
- Clear project files by default in medusa-cli
2023-06-15 17:31:30 +00:00
Philip Korsholm
f8643361cd feat(admin-ui, medusa): Remove feature flag (#4267) 2023-06-15 16:55:29 +00:00
olivermrbl
c95b485a1e chore: Use specific typeorm versions 2023-06-15 18:30:58 +02:00
Oliver Windall Juhl
9b42387fd3 chore: Add missing deps (#4317) 2023-06-15 18:27:31 +02:00
Derek Wene
81dfeb43ea feat(medusa): add redis_prefix in configModule.projectConfig (#4268) 2023-06-14 16:24:35 +02:00
Liam Cooper
ca477c86af feat(medusa): Preserve node flags in develop command (#1860) 2023-06-14 15:26:16 +02:00
Oliver Windall Juhl
afd1b67f1c chore: Clean up deps, devDeps, and peerDeps across all packages (#4276)
* chore: Use caret for all Medusa deps

* Create wild-balloons-push.md

* Address PR feedback

* force build order

* add missing dep

* add missing dev deps

* addresses last comments
2023-06-14 15:18:11 +02:00
Adrien de Peretti
02b1bd07cd fix(medusa): Query parser issues with large array (#4213)
* fix(medusa): Query parser issues with large array

* Create little-weeks-exercise.md

* add integration tests
2023-06-14 13:36:04 +02:00
Shahed Nasser
5eae7f03ef docs: update paypal configurations (#4304) 2023-06-14 11:33:52 +03:00
Adrien de Peretti
8e708aaddf fix(medusa): Remove items.refundable from the order default store fields (#4294)
* fix(medusa): Remove items.refundable from the order default store fields

* Create khaki-socks-thank.md

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-06-13 19:20:20 +02:00
Adrien de Peretti
2c0074031b fix(medusa): getAvailableContext should first check if the inventory service is present (#4293)
* fix(medusa): getAvailableContext should first check if the inventory service is present

* Create clever-seals-share.md
2023-06-13 18:14:43 +02:00
Neutron
2ebc3da98a docs : fix variable assignment and importing PostRepository (#4286)
* fix variable assignment and import in step-5

* update with postRepository_ suffix for flexibility and avoiding name conflicts

* fixed ESLint Errors
2023-06-12 16:19:30 +03:00
Shahed Nasser
8228503fa2 docs: improvements to create plugin guide (#4285)
* docs: improvements to create plugin guide

* fix link
2023-06-12 10:57:40 +03:00
Mattèo Gauthier
1b748d435c docs: Fix code example with pnpm in the create-medusa-app page (#4284)
* Update create-medusa-app.mdx

* Change the command to start the dev command on the storefront
2023-06-12 10:43:27 +03:00
Adrien de Peretti
14c0f62f84 feat: Product Module (#4161)
* chore: boilerplate setup

* wip: add Product, ProductTag, ProductType, ProductCollection models

* wip: `IProductService` definition

* wip: test function in index, build passing

* fix: where condition

* chore: get boilerplate working with modules sdk, create a boilerplate test, create product variant model, register services properly

* chore: added variant to model

* chore: changed definition details + add migrator

* cleanup and update product entity

* Update product unique index to include soft deleted

* Migrations tests

* generated migration

* update dev orm config

* add path aliases

* WIP

* chore: added boilerplate integration test + database helper + product variant migraiton + model

* chore: remove old test utils

* update ts and jest config to include path aliases

* tweak config

* WIP migrations variant

* Migrations round

* integration tests migrations polishing

* chore: fixed issues with test db

* fix path aliases when published

* use ts-alias

* fix connection loader

* fixes

* wip: product list

* (WIP): Data access layer

* (WIP): DAL cleanup services

* wip: `ProductTag` DAL

* wip: `ProductTag` expose list in product service

* (WIP): Continue DAL and test list product filtering/populate

* WIP: unit tests

* chore: added tests for service - productvariant

* chore: WIP finding issues with orm manager fork

* WIP fix fields selection

* chore: make text fixes work

* (WIP) product integration

* (WIP) product integration

* chore: create a product in variant test

* list product with relations

* wip: `ProductTag` service + integrations

* chore: added with and without serialization example

* chore: remove only in spec

* wip: `ProductCollection` service + integrations

* uncomment product.variants

* Update type IProductService

* (WIP) type work

* (WIP) Product variants relation

* WIP: replacable data layer

* (WIP): Use bundle types

* WIP: update type

* WIP upadte tests

* WIP

* wip: options/option values entites

* (WIP): cleanup

* wip: add option value to variant, fix collection

* Integration tests for custom data access layer

* update tests

* chore: merge with latest branch

* chore: scope tests to relations and add category to models/index

* chore: ignore dist folders for jest

* chore: modularize spec data file

* improve DX

* module fixture naming

* chore: added category tests + fix model

* chore: use kebab case

* chore: allow scoping products by category id

* chore: replace `kebabCase` import

* feat: add `deleted_at` to options

* improve typings

* chore: wip

* fix query util

* revert webpack

* fix: update option models, create option DTOs, tests wip, fix `deduplicateIfNecessary` returning `undefined`

* fix: merge conflict

* WIP connection

* rm unsues deps

* fix migrations

* fix query util

* chore: adds mpath on creation

* WIP update types

* improve typings

* WIP typeings improvement

* WIP

* deps

* chore: package medusa/product ot medusa-commerce/product

* chore: added product categories service + descendants filter

* add missing index

* Add support for strict categories not in

* Add support for strict categories not in

* lint

* rename module

* rename module

* Create small-ducks-doubt.md

* yarn lock

* update initialise

* chore: fix/finalise DTOs

* fix: wrong types in `IProductService`

* fix type

* Load database config from env if present (#4175)

* Load database config from env if present

* Load database config from env if present

* options optionnal

* update util

* add defaults

* improve filterable interfaces

* fix import

* fix types

* remove medusa-telemetry from modules-sdk

* WIP fixing webpack issues when bootstraping module

* cleanup

* improve loading driver options

* cleanup

* yarn lock

* fix import

* improve sdk types and naming

* align orther modules initialise method

* fix module tests with singleton module

* fix module tests with singleton module

* add up/down migration scripts

* update types

* scripts

* cleanup migrations and scripts

* hash module singleton

* cleanup migration

* cleanup

* fix stringifyCircular usage

* improvements

* fix deps

* fix deps

* improve load config utils

* improve load config utils

* fix deps

* add declaration to the build

* update yarn

* Do not resolve a module path if the exports are explicitly given

* fix module registration resolution path when exports are provided. Explicitly check for false and assign an empty string in this scenario for segregation purpose

* add comment

* fix migration options to prevent set replica errors

* chore: update types to a proper depedency

* chore: update type package

* add seed scripts

* Add descriptive error during database config loading

* use MedusaError

* chore: added lodash to package

* add more test to the database config loader util

* create bin scripts

* add bin

* update argv retrieval

* update package.json

* chore: add product category to injected deps

* chore: replace with product category service

* move dotenv usage to the functions

* do not load db if there is custom manager

* chore: fix some tests on products repo

* chore: fixed product spec

* chore: skip products module on modules register

* stringifyCircular update

* chore: fix incorrect module resolution

* fix: circular stringify and non required module loading

* yarn lock

* target es5

* chore: mikro-orm back to 5.7.4

* revert module registry

* skip external modules

* es2020

* update indexes, migration and integration tests

* rm only

* unit test script should only run unit tests

* Exclude product integration from the unit tests and make use of the global integration script to run all packages integration tests

* fix integration tests

* improve setup

* cleanup

* log error on setup fail

* Create enum like for package names

* chore: remove EOL

* chore: review part 2

* renamve gateway to productModuleService

* chore: added filters and collections to productmoduleservice

* chore: add collection to the singleton instance

* chore: remove skipped test + add todo

* fix indexes on fields and relations + update migration

* update yarn lock

* update idx

* add foreign key

* rename interface and add listCategories

* rename product module definition

---------

Co-authored-by: fPolic <frane@medusajs.com>
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com>
2023-06-09 20:47:24 +02:00
Shahed Nasser
ffeeb84d97 docs: fix feedback component not picking up positive feedback (#4270)
* docs: fix feedback component not picking up positive feedback

* fix animation

* improve speed
2023-06-09 13:51:25 +03:00
Philip Korsholm
79cca2ab80 feat(admin-ui): Filter reservations (#4115)
* initial filter

* clenaup

* reser filters correctly

* filter reservations

* ensure reset works

* update types

* add adjustment icon

* pr prep

* update filtering with proper description handling

* location filter updates and search removal

* removed greyed out dates + add created_by filtering

* update filtering with proper ordering

* filter out selected users

* fix array issues

* update spacing for searchable queries

* fix deselection bug for inventory item search

* update date filter;

* rename const a to initialFilters

* fix re-render issue

* ui updates

* update inventory filter to remove selected items

* fix width

* fix truncation for button text if desired

* add span classes

* add "go to reservations" popover

* add tooltip if location text is truncated

* fix long items

* typing

* minor fix for select value

* fix reservation quantity field updates

* add pb

* Update packages/admin-ui/ui/src/components/templates/reservations-table/index.tsx

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

* feedback

* add changeset

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-06-08 17:57:39 +02:00
Shahed Nasser
f7376f09fe docs: fix api reference block widths on small devices (#4265) 2023-06-08 17:31:10 +03:00
Shahed Nasser
51bff28962 docs: fixed details about postgres url format (#4263) 2023-06-08 10:10:41 +03:00
Shahed Nasser
947e6aac77 fix(create-medusa-app): handle todos (#4262) 2023-06-08 09:29:43 +03:00
Shahed Nasser
c04d93cd04 feat(create-medusa-app): update command for a better onboarding experience (#4215)
* feat(create-medusa-app): update command for a better onboarding experience

* use medusa-telemetry for tracking

* update used snapshot

* added changeset

* update yarn.lock

* increased facts timer

* updated snapshot version

* show facts throughout installation + add first_run to url

* added message after server termination

* print message only once

* added github to process terminated message

* address pr feedback

* added onboarding seeding

* fix for npm install
2023-06-07 20:34:50 +02:00
Shahed Nasser
8676ee7a2e feat(medusa,medusa-cli): Added an invite option to the create user command, and allow seeding publishable api keys (#4192)
* feat(medusa,medusa-cli): Added an invite option to the create user command

* ensure process exits for invites

* addressed PR comments

* allow seeding publishable api keys
2023-06-07 20:34:27 +02:00
Nicklas Gellner
854022daa8 Create FUNDING.yml (#4225)
Following the guidelines on GitHub to include a "sponsor" button within our repo.

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
2023-06-07 11:48:08 +02:00
Frane Polić
1bd2e7a5be fix(admin-ui): flickering Timeline (#4231)
* fix(admin-ui): prevent Timeline flickering while loading

* chore: changesets

---------

Co-authored-by: fPolic <frane@medusajs.com>
2023-06-07 10:58:30 +02:00
Adrien de Peretti
2db6a1d407 chore(medusa): Improve database loader error handling (#4254)
* chore(medusa): Improve database loader error handling

* Create sharp-melons-doubt.md

* move the database error handling to the utils

* fix unit tests

* tackle feedback

* fix unit tests
2023-06-07 10:57:29 +02:00
Shahed Nasser
e69af09d23 docs: changed text highlight color (#4257) 2023-06-06 18:26:24 +03:00