Commit Graph

6218 Commits

Author SHA1 Message Date
Oli Juhl ebc4215f16 fix: Change num_code column from int to varchar (#7463) 2024-05-27 10:28:07 +02:00
Adrien de Peretti b8bc3ed16f chore: Start cleaning up medusa-core-utils (#7450)
**What**
- remove medusa-core-utils
- dispatch the utils where they belongs
- update usage

**NOTE**
I have been wondering if the graceful class should go into the utils package or medusa package, I ve put it in the medusa package as it seems to be the best place I can see for now and is tight to the server as well. Also, I wanted to avoid the utils package to depends on http and net dependencies, happy to change that if you feel like it
2024-05-27 08:00:15 +00:00
Stevche Radevski 28a3f9a3df feat: Add list cart option typings, make region optional on update cart (#7455) 2024-05-27 09:37:10 +02:00
Oli Juhl 3b93bc9f55 chore: Remove babel package from changeset (#7462) 2024-05-26 21:17:56 +02:00
Kasper Fabricius Kristensen b4a02413e2 feat(dashboard,admin-shared): Add more injection zones (orders, collections, categories) (#7447)
* add more injection zones

* fix position
2024-05-26 20:30:20 +02:00
Adrien de Peretti f585b13c96 chore: remove babel usage (#7452) 2024-05-24 20:51:12 +02:00
Stevche Radevski 8acba7aba6 feat: Add customer address methods to sdk (#7445) 2024-05-24 19:01:11 +02:00
Muhammad Naimul Islam 2b55208c1c docs: fix component title and description in alert.mdx (#7435)
- Removed the incorrect title and description from the Alert component page
- Added new title and description for the Alert component page
2024-05-24 15:55:42 +00:00
Harminder Virk ba66ab8d56 Update teams.yml (#7451) 2024-05-24 20:37:13 +05:30
Adrien de Peretti 77d72c5791 fix(customer): Unique constraint on customer email (#7439)
**What**
Prevent creating multiple customers with the same email
2024-05-24 14:20:54 +00:00
Kasper Fabricius Kristensen 066fd3c3d2 feat(dashboard): Add more injection zones (customer, customer groups) (#7448) 2024-05-24 14:19:33 +00:00
Adrien de Peretti d354b253d5 chore: Fixes somes command and migrate to ts (#7444)
**What**
Fix some commands that are using the loaders return unproperly and cleanup, also includes a migration to ts
2024-05-24 14:17:58 +00:00
Shahed Nasser 7390821da5 fix(link-modules): move readonly link to readonly directory (#7446) 2024-05-24 16:32:25 +03:00
Adrien de Peretti fff1b3ef9c chore(medusa, workflows-sdk): Workflow default to throw the first error (#7442)
**What**
Currently when a workflow fail it will throw an error which contains the messages of all error thrown durring the workflow lifetime. Therefore, in our cases we are always preventing workflow to throw and grab the first error that we then re throw.
This pr eliminate that need by throwing back the first error among the error thrown by a workflow as it is the main case. In case someone need a special handling they can still set the option throwOnError to false and handle the error the way they need
2024-05-24 12:55:05 +00:00
Adrien de Peretti 16651f9849 chore(medusa): Loader shutdown fixes (#7443)
**What**
prepare shutdown was called after modules shutdown
2024-05-24 12:38:37 +00: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
Stevche Radevski 296473d994 feat: Update customer related typings and sdk methods (#7440) 2024-05-24 13:25:10 +02:00
Riqwan Thamir ff870482bb feat(medusa,core-flows,types): fix bugs with cart promotions (#7438)
what:

The true source of promotions applied are present in the adjustments, previously we had links as the source of truth, but some issues popped up when you're trying to delete a line item as it was holding onto stale promotion data.

For this to truly work properly in the current form, we would have to pass data from the deleted line item step to the refresh promotion step and mutate the links twice to get the correct promotions for a cart. Additionally, the final list of codes to apply, comes from computeAction, because some previously applied codes could no longer be valid. The combination of passing codes from adjustments to computeActions and the codes returned from the computedActions are how we can accurately calculate the right promotions to apply. 

With this change, the promotions step always look at the latest line item adjustments of the cart, pass them to compute actions, pick the correct codes to apply from the compute actions and then mutate the links based on the final result. This way, we perform the correct calculations for a cart and have promotion links that are correct.
2024-05-24 09:48:14 +00:00
Harminder Virk d29d5436fb Update develop command to use JIT compiler (#7436) 2024-05-24 12:46:48 +05:30
Shahed Nasser bfa1dc27cb chore: add auth-emailpass package to changeset (#7437) 2024-05-24 07:02:14 +00:00
Adrien de Peretti f8b4a65168 feat: Load custom link definitions (#7430)
**What**
Load custom links from the projects
2024-05-23 20:33:38 +00:00
Kasper Fabricius Kristensen 253bec655c fix(admin-sdk): Remove polyfills and unused dependencies (#7434) 2024-05-23 22:02:40 +02:00
Stevche Radevski 135772b27b feat: Revert to using app_metadata for authentication (#7433) 2024-05-23 22:01:41 +02:00
Kasper Fabricius Kristensen 6ec6e2c7b6 feat(dashboard,admin-vite-plugin): Add product zones and fix zone change effect (#7427)
**What**
- Adds injection zones to the product domain.
- Fixes an issue where changing the `zone` in a widget config to another valid widget would not trigger a HMR event.
- Fixes an issue where UI Routes would not work in production.
2024-05-23 19:13:42 +00:00
Stevche Radevski 8a070d5d85 Revamp the authentication setup (#7419)
* feat: Add email pass authentication provider package

* feat: Revamp auth module and remove concept of scope

* feat: Revamp the auth module to be more standardized in how providers are loaded

* feat: Switch from scope to actor type for authentication

* feat: Add support for per-actor auth methods

* feat: Add emailpass auth provider by default

* fix: Add back app_metadata in auth module
2024-05-23 20:56:40 +02:00
Carlos R. L. Rodrigues 7b0cfe3b77 chore(modules-sdk): throw when failing to load module (#7431) 2024-05-23 16:16:36 +00:00
Riqwan Thamir e3beaf5a29 chore: add cart links to promotions/product (#7428) 2024-05-23 16:54:09 +02:00
Carlos R. L. Rodrigues e632b273b7 chore(medusa): upgrade medusa build (#7425) 2024-05-23 11:19:44 -03:00
Riqwan Thamir d1d23f1e8d feat(dashboard,medusa): Promotion Campaign fixes (#7337)
* chore(medusa): strict zod versions in workspace

* feat(dashboard): add campaign create to promotion UI

* wip

* fix(medusa): Missing middlewares export (#7289)

* fix(docblock-generator): fix how type names created from Zod objects are inferred (#7292)

* feat(api-ref): show schema of a tag (#7297)

* feat: Add support for sendgrid and logger notification providers (#7290)

* feat: Add support for sendgrid and logger notification providers

* fix: changes based on PR review

* chore: add action to automatically label docs (#7284)

* chore: add action to automatically label docs

* removes the paths param

* 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

* chore: fix bug with form reset

* chore: address reviews

* chore: fix specs

* chore: loads of FE fixes + BE adds

* chore: add more polishes + reorg files

* chore: fixes to promotions modal

* chore: cleanup

* chore: cleanup

* chore: fix build

* chore: fkix cart spec

* chore: fix module tests

* chore: fix moar tests

* wip

* chore: templates + fixes + migrate currency

* chore: fix build, add validation for max_quantity

* chore: allow removing campaigns

* chore: fix specs

* chore: scope campaigns based on currency

* remove console logs

* chore: add translations + update keys

* chore: move over filesfrom v2 to routes

* chore(dashboard): Delete old translation files (#7423)

* feat(dashboard,admin-sdk,admin-shared,admin-vite-plugin): Add support for UI extensions (#7383)

* intial work

* update lock

* add routes and fix HMR of configs

* cleanup

* rm imports

* rm debug from plugin

* address feedback

* address feedback

* temp skip specs

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
Co-authored-by: Stevche Radevski <sradevski@live.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-05-23 15:28:00 +02:00
Kasper Fabricius Kristensen 4a10821bfe fix(admin-next): add admin packages to changeset (#7426) 2024-05-23 15:16:19 +02:00
Harminder Virk ada33e984d refactor: silently load ts-node (#7424) 2024-05-23 18:34:34 +05:30
Kasper Fabricius Kristensen f1176a0673 feat(dashboard,admin-sdk,admin-shared,admin-vite-plugin): Add support for UI extensions (#7383)
* intial work

* update lock

* add routes and fix HMR of configs

* cleanup

* rm imports

* rm debug from plugin

* address feedback

* address feedback
2024-05-23 14:02:19 +02:00
Kasper Fabricius Kristensen 521c252dee chore(dashboard): Delete old translation files (#7423) 2024-05-23 14:00:39 +02:00
Harminder Virk 66279f1691 Remove redundant bin option in the medusa package (#7418) 2024-05-23 16:56:54 +05:30
Carlos R. L. Rodrigues f3d19f5394 fix(workflows-sdk): use loaded modules when container is empty (#7422) 2024-05-23 08:26:16 -03:00
Oli Juhl 05077bab32 feat: Add copy invite action (#7413)
https://github.com/medusajs/medusa/assets/59018053/2a2d0d39-e020-4146-8679-cbc99d75c98e
2024-05-23 10:58:59 +00:00
Adrien de Peretti 37ae87fe9b fix(admin-next, utils, medusa): Handle db errors properly and fix form (#7416)
* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form
2024-05-23 12:36:45 +02:00
Kasper Fabricius Kristensen e01472aae6 chore(dashboard): Remove v1 code and medusa-react (#7420) 2024-05-23 09:40:30 +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
Oli Juhl b0209e1114 fix: Navigate to orders on signin (#7415) 2024-05-23 10:11:25 +02:00
Kasper Fabricius Kristensen ccf335fcf4 fix(dashboard): settings navigation loop (#7412)
* fix: settings navigation loop

* fix comment
2024-05-23 10:07:10 +02: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
Oli Juhl 9a10adfd91 fix: Remove log for read only links (#7410) 2024-05-22 22:36:23 +02:00
Oli Juhl 4ee47cf9b1 fix: Accept invite in admin (#7393)
* fix: Accept invite in admin

* fix: Accept invite in admin

* minor fix
2024-05-22 21:40:38 +02: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
Harminder Virk 965a50d483 fix: Commands loading entrypoints (#7404)
* fix: enable worker mode when executing user and migrate commands

* refactor: do not enable worker mode for migrate command

* refactor: auto detect is application is using ts-node

* refactor: remove directories node from config

* style: update comments next to enabling worker mode
2024-05-22 19:31:13 +05:30
Oli Juhl c198e2329c chore: Change default log level (#7402) 2024-05-22 15:16:45 +02:00
Carlos R. L. Rodrigues e760dbc953 fix(link-modules): fix warn on readonly links (#7403) 2024-05-22 13:07:30 +00: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