Stevche Radevski and GitHub
296473d994
feat: Update customer related typings and sdk methods ( #7440 )
2024-05-24 13:25:10 +02:00
Riqwan Thamir and GitHub
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 and GitHub
d29d5436fb
Update develop command to use JIT compiler ( #7436 )
2024-05-24 12:46:48 +05:30
Shahed Nasser and GitHub
bfa1dc27cb
chore: add auth-emailpass package to changeset ( #7437 )
2024-05-24 07:02:14 +00:00
Adrien de Peretti and GitHub
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 and GitHub
253bec655c
fix(admin-sdk): Remove polyfills and unused dependencies ( #7434 )
2024-05-23 22:02:40 +02:00
Stevche Radevski and GitHub
135772b27b
feat: Revert to using app_metadata for authentication ( #7433 )
2024-05-23 22:01:41 +02:00
Kasper Fabricius Kristensen and GitHub
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 and GitHub
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 and GitHub
7b0cfe3b77
chore(modules-sdk): throw when failing to load module ( #7431 )
2024-05-23 16:16:36 +00:00
Riqwan Thamir and GitHub
e3beaf5a29
chore: add cart links to promotions/product ( #7428 )
2024-05-23 16:54:09 +02:00
Carlos R. L. Rodrigues and GitHub
e632b273b7
chore(medusa): upgrade medusa build ( #7425 )
2024-05-23 11:19:44 -03:00
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 and GitHub
4a10821bfe
fix(admin-next): add admin packages to changeset ( #7426 )
2024-05-23 15:16:19 +02:00
Harminder Virk and GitHub
ada33e984d
refactor: silently load ts-node ( #7424 )
2024-05-23 18:34:34 +05:30
Kasper Fabricius Kristensen and GitHub
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 and GitHub
521c252dee
chore(dashboard): Delete old translation files ( #7423 )
2024-05-23 14:00:39 +02:00
Harminder Virk and GitHub
66279f1691
Remove redundant bin option in the medusa package ( #7418 )
2024-05-23 16:56:54 +05:30
Carlos R. L. Rodrigues and GitHub
f3d19f5394
fix(workflows-sdk): use loaded modules when container is empty ( #7422 )
2024-05-23 08:26:16 -03:00
Oli Juhl and GitHub
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 and GitHub
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 and GitHub
e01472aae6
chore(dashboard): Remove v1 code and medusa-react ( #7420 )
2024-05-23 09:40:30 +00:00
Shahed Nasser and GitHub
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 and GitHub
b0209e1114
fix: Navigate to orders on signin ( #7415 )
2024-05-23 10:11:25 +02:00
Kasper Fabricius Kristensen and GitHub
ccf335fcf4
fix(dashboard): settings navigation loop ( #7412 )
...
* fix: settings navigation loop
* fix comment
2024-05-23 10:07:10 +02:00
Shahed Nasser and GitHub
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 and GitHub
9a10adfd91
fix: Remove log for read only links ( #7410 )
2024-05-22 22:36:23 +02:00
Oli Juhl and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
c198e2329c
chore: Change default log level ( #7402 )
2024-05-22 15:16:45 +02:00
Carlos R. L. Rodrigues and GitHub
e760dbc953
fix(link-modules): fix warn on readonly links ( #7403 )
2024-05-22 13:07:30 +00:00
Shahed Nasser and GitHub
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 and GitHub
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 and GitHub
6ab7cbd529
chore: fixes to ConfigModule's docblocks ( #7390 )
2024-05-22 13:40:53 +03:00
Shahed Nasser and GitHub
6fa23a2695
feat(medusa): add error handling to exec script ( #7394 )
2024-05-22 12:39:34 +02:00
Shahed Nasser and GitHub
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
Harminder Virk and GitHub
ff5d573887
refactor: register plugin routes before the Medusa core routes ( #7395 )
2024-05-22 15:34:53 +05:30
Shahed Nasser and GitHub
2187b82d5d
fix(core-flows,types): general fixes to workflow types ( #7392 )
2024-05-22 11:27:12 +02:00
Stevche Radevski and GitHub
5ede560f70
feat(auth): Revamp authentication setup ( #7387 )
...
* chore: Clean up authentication middlewares
* chore: Rename AuthUser to AuthIdentity
* feat: Define link between user, customer, and auth identity
* feat: Use links for auth, update auth context content
* fix: Adjust user create command with new auth setup
* fix: Make auth login more dynamic, review fixes
* fix: Change test assertions for created by
2024-05-22 10:27:32 +02:00
Frane Polić and GitHub
b7df447682
fix(core-flows): set SalesChannels on Product update ( #7272 )
2024-05-21 21:48:34 +02:00
Shahed Nasser and GitHub
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 and GitHub
1f43290cec
feat(medusa-cli): added branch option ( #7384 )
2024-05-21 21:17:01 +02:00
Adrien de Peretti and GitHub
c4fde7ea5c
feat(core-flows, fulfillment): Add create return specific method and add more tests ( #7357 )
...
* feat(core-flows, fulfillment): Add create return specific method and add more tests
* fix defautl providers in tests fixtures
* more tests
* wip fixes
* fix flow and tests
* cleanup
2024-05-21 13:48:59 +02:00
Stevche Radevski and GitHub
35dc3c5cf7
fix: Minor HTTP typing fixes ( #7380 )
2024-05-21 12:16:08 +02:00
Riqwan Thamir and GitHub
43613f3f58
chore: pick the default store region ( #7369 )
...
* chore: pick the default store region
* chore: fix test
* chore: remove from defaults workflow and move to seeds
* chore: undo payment provider change
* chore: rearrange conditionals
2024-05-21 12:05:01 +02:00
Harminder Virk and GitHub
3dbb256ddf
load resources from starter kit and introduce srcDir configuration
2024-05-21 15:02:53 +05:30
Shahed Nasser and GitHub
73c917fdce
feat(medusa,medusa-cli): add an exec command ( #7376 )
2024-05-21 10:56:44 +02:00
Riqwan Thamir and GitHub
442b0b2038
chore: rename route from api-v2 to api ( #7379 )
...
* chore: rename route from api-v2 to api
* chore: change oas references
* chore: remove v2 ref
2024-05-21 10:44:02 +02:00
Stevche Radevski and GitHub
e72174c4ff
fix: Minor updates to the http typings ( #7378 )
2024-05-21 10:19:35 +02:00