Commit Graph
100 Commits
Author SHA1 Message Date
Shahed Nasser 65be42c818 docs: add integrations page (#7421)
* add integrations page

* update payment provider docs

* use stripe icon
2024-05-28 13:25:03 +03:00
Shahed Nasser f8252b3d27 chore(medusa): pin @swc/core version to 1.5.7 (#7490) 2024-05-28 09:35:32 +02:00
Shahed Nasser 223b3978b2 docs: fix data payload of events in subscribers (#7406) 2024-05-28 09:24:40 +02:00
Shahed Nasser 7b059562d7 fix(core-flows): change default currency to eur (#7476) 2024-05-27 19:23:38 +03:00
Shahed Nasser 639758ffec chore(create-medusa-app): remove .github directory (#7473)
As we're adding some actions to the starter, it doesn't make sense to keep them in the cloned projects with `create-medusa-app`. This PR removes the `.github` directory from the project after cloning it
2024-05-27 12:43:49 +00:00
Shahed Nasser 98615c388b docs-util: fixes to base OAS + circular-patch redocly plugin (#7382)
* docs-util: remove MultipleErrors schema from base OAS

* fixes to circular patch plugin

* general fixes

* change nested schemas to references
2024-05-27 14:29:48 +02:00
Shahed Nasser b5b41c7a33 chore: remove duplicate package in changeset (#7472)
Remove `@medusajs/ui` from the preview changeset because it's added twice which causing an error in the release pipeline
2024-05-27 14:29:03 +02:00
Shahed Nasser 7390821da5 fix(link-modules): move readonly link to readonly directory (#7446) 2024-05-24 16:32:25 +03:00
Shahed Nasser 98808b6caa fix(link-modules): remove duplicate fulfillment set location link (#7441)
Remove the link defined in `location-fulfillment-set` because it's a duplicate of `fulfillment-set-location`.
2024-05-24 12:04:44 +00:00
Shahed Nasser bfa1dc27cb chore: add auth-emailpass package to changeset (#7437) 2024-05-24 07:02:14 +00:00
Shahed Nasser 9cbe0085d0 feat(create-medusa-app): remove admin email prompt (#7417)
* feat(create-medusa-app): remove admin email prompt

* change to constant
2024-05-23 12:23:45 +03:00
Shahed Nasser 6f1b90f207 fix(dashboard): fixes to strings (#7411)
* fix(dashboard): fix the text of manage areas

* add missing string

* add missing react import
2024-05-23 11:07:01 +03:00
Shahed Nasser bb5872de48 fix(dashboard): fix reservation's button text + documentation links (#7405)
* fix(dashboard): fix reservation's button text

* change documentation links
2024-05-22 18:39:19 +03:00
Shahed Nasser 5e0f98f578 fix(admin-sdk): error when admin needs build (#7401)
Fix the error shown when admin is not built instructing the user to run the `build` command.
2024-05-22 13:02:24 +00:00
Shahed Nasser 24a2ab754a fix(create-medusa-app): fix seed step to use seed script in package.json (#7397)
Fix the seed step to use the `seed` script defined in `package.json` to avoid issues if the file is renamed or path is changed
2024-05-22 11:41:45 +00:00
Shahed Nasser 6ab7cbd529 chore: fixes to ConfigModule's docblocks (#7390) 2024-05-22 13:40:53 +03:00
Shahed Nasser 6fa23a2695 feat(medusa): add error handling to exec script (#7394) 2024-05-22 12:39:34 +02:00
Shahed Nasser 154673f3d8 docs: fixes and changes based on latest updates (#7322)
* docs: changes based on DX changes

* remove fields no longer needed

* remove unnecessary parameters

* fixes to authenticate middleware usage

* add highlight to migrations config

* change configuration to http

* added missing remote link docs

* fix name in sidebar

* added notification module docs + updated file module docs

* add vale exceptions

* fix vale errors

* added docs on custom cli scripts
2024-05-22 13:37:48 +03:00
Shahed Nasser 2187b82d5d fix(core-flows,types): general fixes to workflow types (#7392) 2024-05-22 11:27:12 +02:00
Shahed Nasser e443a7be3f feat(create-medusa-app): install v2 by default (#7381)
- Remove `v2` option and install V2 starter branch by default.
- Use new `exec` command to seed data
- Install v2 branch of next.js starter if the option is provided.
- Change the opened browser to `localhost:9000/app`.
- Added a bunch of todos for onboarding flows once we have that
2024-05-21 19:45:43 +00:00
Shahed Nasser 1f43290cec feat(medusa-cli): added branch option (#7384) 2024-05-21 21:17:01 +02:00
Shahed Nasser 73c917fdce feat(medusa,medusa-cli): add an exec command (#7376) 2024-05-21 10:56:44 +02:00
Shahed Nasser cd312287f5 docs-util: add type argument of MedusaRequest as query parameter for get requests (#7359) 2024-05-20 09:51:37 +03:00
Shahed Nasser 5d4bf83145 docs: fix code block highlighting for lines starting with spaces (#7356) 2024-05-20 09:49:52 +03:00
Shahed Nasser 22f30f54fd docs: update api-reference project for v2 (#7307)
* remove everything v1 and make v2 default

* move main v2 rewrites to book

* move rewrites to book + other fixes
2024-05-16 09:02:35 +02:00
Shahed Nasser 9b1998b9b2 docs: update events reference (#7321)
* change subscribers events

* add event references for modules
2024-05-16 09:01:12 +02:00
Shahed Nasser 1160a34f3d docs: handle Card and CardList components in cross-links plugin (#7338) 2024-05-16 09:40:42 +03:00
Shahed Nasser 7a8937fcba fix(medusa): use pre-defined type in subscriber args (#7328) 2024-05-14 17:37:58 +03:00
Shahed Nasser 9ca302d33f fix(medusa): fix type of data in SubscriberArgs (#7324) 2024-05-14 13:59:25 +03:00
Shahed Nasser 70c4ffff8b docs: improve API testing feature (#7311) 2024-05-14 10:12:53 +03:00
Shahed Nasser 8958214350 chore: fix docs PR label removing team label (#7308)
* chore: fix docs PR labeler to only run with PR is opened

* add team labeler action

* move docs labeler to team labeler
2024-05-13 18:55:31 +03:00
Shahed Nasser 7cb90f8e82 docs: editing and general fixes of medusa's learning resources (#7261)
* docs: editing and general fixes of medusa's learning resources

* fix build script

* update ui dependency

* fix build

* adjust next.js steps
2024-05-13 18:55:11 +03:00
Shahed Nasser 803e4aad02 docs: added file module docs (#7278) 2024-05-13 18:54:59 +03:00
Shahed Nasser 8b2429d24f chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default (#7304)
* chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default

* fixes to changeset

* fix public url path
2024-05-13 17:01:38 +03:00
Shahed Nasser 728c5ee53c docs: preparations for preview (#7267)
* configured base paths + added development banner

* fix typelist site url

* added navbar and sidebar badges

* configure algolia filters

* remove AI assistant

* remove unused imports

* change navbar text and badge

* lint fixes

* fix build error

* add to api reference rewrites

* fix build error

* fix build errors in user-guide

* fix feedback component

* add parent title to pagination

* added breadcrumbs component

* remove user-guide links

* resolve todos

* fix details about authentication

* change documentation title

* lint content
2024-05-13 11:32:52 +03:00
Shahed Nasser 3e3b8a483f chore: add action to automatically label docs (#7284)
* chore: add action to automatically label docs

* removes the paths param
2024-05-13 09:36:47 +03:00
Shahed Nasser 1a68f4602c feat(api-ref): show schema of a tag (#7297) 2024-05-10 21:07:35 +03:00
Shahed Nasser e960f10aba fix(docblock-generator): fix how type names created from Zod objects are inferred (#7292) 2024-05-10 21:06:55 +03:00
Shahed Nasser 489a54e1fb fix(docblock-generator): eslint errors + missing await (#7281)
* chore: add missing await in docblock generator

* add fix for undefined symbol

* fix dirname path
2024-05-09 17:23:59 +03:00
Shahed Nasser 5d0ffe8ff4 docs: refactored versioning in api reference + modified v2 content (#7274) 2024-05-09 17:23:49 +03:00
Shahed Nasser c71a06c87f fix(medusa): import and use RequestQueryFields from types package (#7275)
Noticed that `RequestQueryFields` is defined in both the `medusa` and `types` package. Within the `medusa` package sometimes it uses the local type definition or the definition in `types`.

This PR removes the type definition of `RequestQueryFields` in `medusa` and uses that in `types` instead.
2024-05-08 12:55:29 +00:00
Shahed Nasser 67944dcc92 fix(medusa): Fix request type in upload route (#7271)
The `/admin/uploads` route uses an incorrect input type `CreateProductDTO`. This PR fixes it to the type defined in `validators.ts`.
2024-05-08 10:47:35 +00:00
Shahed Nasser 327e446974 docs: general fixes and overall changes (#7258)
* editing halfway

* edited second half

* adjust starter steps

* fix build

* typo fix
2024-05-07 18:00:28 +02:00
Shahed Nasser 14d15df866 docs: added advanced workflows documentation (#7252) 2024-05-07 10:32:36 +03:00
Shahed NasserandOli Juhl e7a3528367 fix(create-medusa-app): don't open browser to admin if v2 option is passed (#7253)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-05-06 18:35:32 +02:00
Shahed Nasser 651b953db7 fix(medusa-oas-cli, oas-github-ci): updated paths to docs directories following monorepo reorganization (#7245)
* fix(medusa-oas-cli, oas-github-ci): updated paths to docs directories following monorepo reorganization

* revert change to workspaces

* change oas in workspaces

* revert change in test script
2024-05-06 16:15:38 +03:00
Shahed Nasser 7b2879d643 chore(docs): Fix docblock-generator OAS tool's max-stack error (#7246)
* regenerate oas to fix duplicate keys

* fix clean:oas script

* fix max-stack errors

* fix max-level condition
2024-05-06 13:41:59 +03:00
Shahed Nasser b39de05535 chore: move docs-util to www (#7232)
* reorganize docs apps

* add README

* fix directory

* add condition for old docs

* move docs-util to www

* remove remaining docs-util

* fixes of paths

* fix scripts

* path fixes

* fix github actions

* add build packages script
2024-05-06 09:13:50 +03:00
Shahed Nasser 4fe28f5a95 chore: reorganize docs apps (#7228)
* reorganize docs apps

* add README

* fix directory

* add condition for old docs
2024-05-03 17:36:38 +03:00
Shahed Nasser 5bc780a646 feat(medusa-cli): added v2 flag (#7211) 2024-05-03 08:43:54 +02:00
Shahed Nasser b6083ce104 docs: added documentation for toast component changes (#7141)
* docs: added documentation for toast component changes

* added redirect from use-toast docs to upgrade guide

* remove unused file

* content linting fixes

* update UI package version

* updated ui preset

* fix upgrade guides main page
2024-05-01 18:12:10 +03:00
Shahed Nasser 347aece924 feat(docs-util): predefined OAS schemas (#7139)
* feat(docs-util): predefined OAS schemas

* small fix
2024-04-25 10:01:23 +02:00
Shahed Nasser f1a7821c19 docs-util: fix clean command removing used schemas (#6774) 2024-04-25 10:00:54 +02:00
Shahed Nasser abf1283ab6 docs: add details about the new host option of admin (#7142) 2024-04-24 18:01:11 +02:00
Shahed Nasser cfd765bece chore(ui): added API reference comments for Toast component (#7129) 2024-04-23 13:25:06 +02:00
Shahed Nasser 14748755ee chore: remove team from generate docblock actions (#6953) 2024-04-23 12:22:36 +02:00
Shahed Nasser 14a7378375 chore: add action to generate v2 oas (#7040) 2024-04-23 11:10:37 +03:00
Shahed Nasser c3efac5a0d fix(medusa-core-utils): add missing awilix dependency (#7003)
`medusa-core-utils` has a missing dependency `awilix` which sometimes result in errors as reported in issue #6884

This PR adds the missing dependency
2024-04-15 07:56:40 +00:00
Shahed Nasser 7934fbdd1e docs: fix download button in API reference (#7039)
* docs: fix download button in API reference

* remove comments
2024-04-15 09:37:24 +02:00
Shahed Nasser ed0313adef docs: change supabase database url format (#7036) 2024-04-15 09:35:58 +02:00
Shahed Nasser 0c12d7e7d7 docs: add note about expanding nested relations (#7008) 2024-04-15 09:32:57 +02:00
Shahed Nasser 8958760d5b docs: fixes to Digital Product recipe (#7025) 2024-04-15 09:32:07 +02:00
Shahed Nasser 8b388b815b docs: add a section about missing migration name (#7013) 2024-04-15 09:31:24 +02:00
Shahed Nasser 793184bf42 docs: improvements to railway deployment guide + new troubleshooting guide (#7012) 2024-04-15 09:30:31 +02:00
Shahed Nasser 78f603e4f1 docs: fix typedoc errors and warnings (#7006)
* docs: fix typedoc errors and warnings

* added missing quotations
2024-04-09 17:56:14 +03:00
Shahed Nasser ef39985d66 chore: Added TSDocs for the Fulfillment Module (#6912)
Added TSDocs for the Fulfillment Module
2024-04-08 08:17:38 +00:00
Shahed Nasser cbf2e6300d chore: added tsdocs to Region Module resources (#6799)
* chore: added tsdocs to Region Module resources

* typo fix
2024-04-05 19:35:14 +02:00
Shahed Nasser bde80a8371 chore: add TSDocs to the Promotion Module (#6793) 2024-04-05 12:06:35 +02:00
Shahed Nasser 0a8718f0c5 chore: added tsdocs to Cart Module (#6881) 2024-04-05 12:04:15 +02:00
Shahed Nasser bd2c5aca16 chore: added tsdocs for the Tax Module (#6902) 2024-04-05 12:03:03 +02:00
Shahed Nasser 3507e5e263 chore: updated TSDocs of the Pricing Module (#6894) 2024-04-05 12:02:46 +02:00
Shahed Nasser 4c374e3a14 chore: add TSDocs to the Payment Module (#6885) 2024-04-05 12:01:36 +02:00
Shahed Nasser d345496dbc chore: added tsdocs for the Auth Module (#6863) 2024-04-05 12:01:08 +02:00
Shahed Nasser f65e1dedbc chore: added tsdocs for Stock Location Next Module (#6817) 2024-04-05 12:00:46 +02:00
Shahed Nasser f25d55bd4f chore: added tsdocs to the Inventory Next Module (#6814) 2024-04-05 12:00:23 +02:00
Shahed Nasser 72564c917f chore: add tsdocs for the Customer Module (#6784) 2024-04-05 11:59:08 +02:00
Shahed Nasser 8901e32dba chore: add tsdocs for the Store Module resources (#6795)
* chore: add tsdocs to Store Module resources

* added examples
2024-04-05 11:58:53 +02:00
Shahed Nasser 0bf0bf819b fix(admin-ui): Resolve node-gyp error during installation with npm (#6952)
Fix `node-gyp` error that occurs during installation when using NPM and 20+ versions of Node.js. The error results from the package `@stdlib/number-float64-base-normalize` which is a dependency of `@segment/analytics-next`. Installing v0.0.8 resolves the error.

More details in PR #6485

## Testing

To test out the fix:

1. In a Medusa backend, remove the installation of `@stdlib/number-float64-base-normalize` (if available) and add instead the following override:

```json
  "overrides": {
    "@medusajs/admin": {
      "@medusajs/admin-ui": "2.1.14-snapshot-20240405070935"
    }
  }
```

2. Remove node_modules + any previous package-lock.json
3. Change to node v20+ and use npm to install dependencies -> no error occurs during installation.
2024-04-05 07:56:39 +00:00
Shahed Nasser 3dcf5224a1 chore: updated TSDocs of the Currency Module (#6908)
Updated TSDocs of the Currency Module
2024-04-03 07:32:08 +00:00
Shahed Nasser 8363dbec4f chore: update TSDocs of the Product Module (#6897)
Updated TSDocs of the Product Module.
2024-04-01 15:46:40 +00:00
Shahed Nasser 1ea0778264 chore: added TSDocs to auth_cors configuration (#6895)
Added description of `auth_cors` configuration as TSDoc comment
2024-04-01 15:21:23 +00:00
Shahed Nasser fe1d3a4a78 feat(create-medusa-app): Add a --verbose option. (#6027)
## What

Adds a `--verbose` option that shows the output of all underlying processes in real-time.

## Why

This is helpful for testing and debugging issues, especially issues that the community runs into. We can ask community members to pass the `--verbose` option and provide us with the outputted logs if they face problems.

## Caveats

When installing the Next.js starter then terminating the process, the main and child processes don't receive the abort signal as it seems to occur in the child process. This leads to the command continuing but then running into an error in the next step.

As this option is only used for debugging, I don't think it's a big issue.

## Testing

Run the `create-medusa-app` snapshot below with `--verbose` option. Or, change to the `packages/create-medusa-app` directory and run:

```bash
yarn dev --directory-path ~/some-dir --verbose
```

> The `--directory-path` option in this case is necessary as installing the medusa backend in the current `packages/create-medusa-app` directory leads to errors related to yarn workspaces.
2024-04-01 09:13:44 +00:00
Shahed Nasser 412111e1ea chore: fix doc announcement actions (#6856)
- Fix error in doc announcement actions due to missing build step.
- Update the announcement in the docs to the latest version
2024-03-28 17:23:25 +00:00
Shahed Nasser 21156f945d docs-util: added AI generator (#6770)
## What

Adds an AI generator to the docblock tool that uses OpenAI.

The generator at the moment only generates examples for functions when the `--generate-examples` option is provided.

## Note

I've included the generated examples of the `IOrderModuleService` as a reference of the type of result provided by the AI generator, with minor tweeks I've made. I haven't made any changes to descriptions in that file.
2024-03-28 11:32:30 +00:00
Shahed Nasser 5e53b917f7 chore: add tsdocs for the Sales Channel Module (#6794)
Add/update TSDocs to the Sales Channel Module's resources
2024-03-27 18:24:00 +00:00
Shahed Nasser 16860cc883 docs: added doc pages for v1.20.4 (#6828)
- Added new documentation page for Medusa Worker.
- Updated Railway deployment guide with details on Medusa Worker.
- Small adjustments to the `worker_mode` option's TSDocs.
2024-03-26 19:19:57 +00:00
Shahed NasserandRiqwan Thamir e005987adf fix(medusa-oas-cli): fix tool not working in Medusa backends (#6812)
* fix(medusa-oas-cli): fix tool not working in custom projects

* fix changeset message

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2024-03-26 09:33:06 +02:00
Shahed Nasser fbc369705d feat(create-medusa-app): Added --v2 option (#6729)
## What

Added a `--v2` option to the `create-medusa-app` command that clones the [feat/v2](https://github.com/medusajs/medusa-starter-default/pull/150) branch of the starter default and makes minor changes to the setup process.

## Why

This option is supposed to make it easier to test out internally a Medusa setup with all the commerce modules. The starter's branch installs and configures the modules + the V2 feature flag.

## Testing

To test it out, run the snapshot with the `--v2` option.

## Notes

- I couldn't install the new admin dashboard in the starter branch as it's not on NPM yet (at the time of writing this), so at the moment, this opens the current admin dashboard instead.
- When trying to create an invite using the CLI tool I get the error `Unable to resolve inviteService`. Not sure if we should also make changes to the CLI tool to allow creating an invite when V2 is enabled (I know now invites are creating within the User Module, so maybe when the V2 feature flag is enabled that should be resolved instead), but for now I just disabled running the create invite command as this is mainly for internal testing. Let me know what the suggested approach is here.
2024-03-25 12:51:15 +00:00
Shahed Nasser bb3cace0cd chore: add TSDocs to the API Key Module (#6785)
Add TSDocs to the API Key Module's resources
2024-03-22 12:23:44 +00:00
Shahed Nasser bb87db8342 docs: prep for v2 documentation (#6710)
This PR includes documentation that preps for v2 docs (but doesn't introduce new docs).

_Note: The number of file changes in the PR is due to find-and-replace within the `references` which is unavoidable. Let me know if I should move it to another PR._

## Changes

- Change Medusa version in base OAS used for v2.
- Fix to docblock generator related to not catching all path parameters.
- Added typedoc plugin that generates ER Diagrams, which will be used specifically for data model references in commerce modules.
- Changed OAS tool to output references in `www/apps/api-reference/specs-v2` directory when the `--v2` option is used.
- Added a version switcher to the API reference to switch between V1 and V2. This switcher is enabled by an environment variable, so it won't be visible/usable at the moment.
- Upgraded docusaurus to v3.0.1
- Added new Vale rules to ensure correct spelling of Medusa Admin and module names.
- Added new components to the `docs-ui` package that will be used in future documentation changes.
2024-03-18 07:47:35 +00:00
Shahed Nasser 480b4744af fix(dashboard): fixed some strings (#6686)
Fixed some strings in the admin dashboard.
2024-03-14 15:43:14 +00:00
Shahed Nasser d38b5eb790 docs: fix migrations path in extend entity docs (#6645) 2024-03-11 08:44:53 +01:00
Shahed Nasser 531e9e1e94 docs: hide admin translations contribution page (#6603) 2024-03-06 21:25:33 +01:00
Shahed Nasser 82db53c99e docs: fix search in api reference (#6578)
* docs: fix search in api reference

* remove log messages
2024-03-05 10:02:56 +01:00
Shahed Nasser 860d56041a docs: fixes to CLI reference (#6530) 2024-02-29 13:37:36 +01:00
Shahed Nasser 3b18f399c1 docs(ui): show icon tooltip on small devices (#6407) 2024-02-26 08:31:36 +01:00
Shahed Nasser c86e27bd0d chore: generated tsdocs (#6352)
Generated TSDocs for the past release.

Note: I haven't updated examples as the examples are for modules without a public reference yet, so the examples can wait.
2024-02-23 15:21:16 +00:00
Shahed Nasser 52afc619b3 docs: typo fix in create event module reference (#6470) 2024-02-22 12:16:18 +01:00
Shahed Nasser c3e30224c7 docs: add missing widget props for collections injection zones (#6452)
* docs: add missing widget props for collections injection zones

Adds missing widget props for the `product_collection.details.before` and `product_collection.details.after` injection zones.

* fix lint error
2024-02-21 07:49:30 +01:00
Shahed Nasser 68123c6ffd docs: add missing steps to enable medusa_v2 flag (#6406) 2024-02-16 14:20:52 +00:00