Philip Korsholm
3171b0e518
feat(medusa): add if statement to idempotency-key initialize ( #3555 )
...
* add if statement to idempotency-key initialize
* add changeset
2023-03-22 21:34:50 +01:00
Oliver Windall Juhl
74bc4b16a0
feat(medusa-plugin-algolia): Revamp Algolia search plugin ( #3510 )
2023-03-22 12:55:26 +01:00
Oliver Windall Juhl
ef5ef9f5a2
feat(medusa,event-bus-local,event-bus-redis): Event Bus modules ( #2599 )
2023-03-22 10:26:21 +01:00
github-actions[bot]
6e0b9c3991
chore(docs): Generated Services Reference (automated) ( #3551 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-22 09:07:06 +00:00
github-actions[bot]
dafdd3f46d
chore(docs): Generated Docs Announcement Bar (automated) ( #3550 )
...
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com >
2023-03-22 10:06:11 +01:00
olivermrbl
a4575c3911
chore(release): v1.7.15
2023-03-22 09:49:19 +01:00
Shahed Nasser
c1efb03956
docs: fix admin redirects ( #3548 )
2023-03-22 10:10:40 +02:00
Riqwan Thamir
7408111d11
chore: Cleanup changesets and group fixes ( #3543 )
...
* cleanup changeset and group fixes
* chore: merge more fixes
* chore: merge more changesets
* chore: fix issue with naming
2023-03-21 18:45:39 +01:00
Adrien de Peretti
98fe8fd00a
fix(medusa): Variant update should include the id for the listeners to be able to identify the entity ( #3539 )
...
* fix(medusa): Variant update should include the id for the listeners to be able to identify the entity
* fix unit tests
* Create brave-seahorses-film.md
2023-03-21 16:15:05 +01:00
Frane Polić
f831b7db37
fix(admin-ui): show failure reason for batch jobs ( #3526 )
...
* fix: display error messages for batch jobs
* feat: add changesets
* feat: tooltip size, load more jobs
---------
Co-authored-by: fPolic <frane@medusajs.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-21 16:13:39 +01:00
Riqwan Thamir
7f2223b650
fix(medusa): fix bug with parent not being saved correctly ( #3534 )
...
What:
- Parent was being updated incorrectly because of a weird typeorm issue, making the rank pick up the wrong entity's rank. This PR fixes that issue by passing in an ID and letting the service take care of fetching the parent.
RESOLVES CORE-1274
2023-03-21 08:37:13 +00:00
Rares Stefan
c328ec5ca2
fix(admin-ui): Try and ensure allocation table checkmarks align better ( #3535 )
...
Followed the suggestion in the card and added a seemingly reasonable min-width to the total cell. Looks alright to me, though potentially fragile.
Before:
<img width="663" alt="image" src="https://user-images.githubusercontent.com/948623/226488496-9ac834d6-6deb-4960-afb5-683e25b207e5.png ">
After:
<img width="663" alt="image" src="https://user-images.githubusercontent.com/948623/226488325-765a18aa-090b-456f-a9cb-8676ef23d7a4.png ">
Resolves CORE-1244
2023-03-21 08:22:09 +00:00
Rares Stefan
497c7c55c7
feat(admin-ui): Encode location id in URL on location table ( #3533 )
...
Encoded the `location_id` into the query params and ensured it gets parsed on mount, into defaults. This allows safer refreshes of the locations table or accurate deep-links to be shared.
Resolves CORE-1252
2023-03-21 08:12:58 +00:00
github-actions[bot]
17f615ef30
chore(docs): Removed Docs Announcement Bar (automated) ( #3536 )
...
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com >
2023-03-21 10:06:21 +02:00
Rares Stefan
d525c27774
fix(admin-ui): Fix location address editing form state ( #3525 )
...
I believe that changing the requiredness of the `address_1` and `country_code` fields when any part of the address was filled was not being registered correctly with the form state representation of those fields. ~~Have added an effect that unregisters the fields when the requiredness state changes and allows them to be re-registered with the correct `required` value when the next re-render happens due to that state having changed.~~
Have updated the submit button to be available even if form is invalid.
Resolves CORE-1266
2023-03-21 08:01:41 +00:00
Riqwan Thamir
98cad6d731
feat(medusa): seed command can create product categories ( #3528 )
...
* chore: seed command can create product categories
* chore: lint fixes
* chore: add a default value for categories
2023-03-20 19:08:52 +01:00
Shahed Nasser
7c2bd1f5cf
docs: removed the gatsby storefront guide ( #3527 )
...
* docs: removed the gatsby storefront guide
* docs: fixed query value
2023-03-20 19:11:55 +02:00
Philip Korsholm
55c5fba0d3
Feat(admin, medusa): add locations to claim and swap creation ( #3522 )
...
**What**
- Add location selection to claim and swap creation
Fixes CORE-1269
2023-03-20 14:05:37 +00:00
Rares Stefan
a8423b8acc
fix(medusa, admin-ui): Fix edit order variant stock ( #3512 )
...
The stock column when adding variants in an order edit would just look at `inventory_quantity`, location-unaware. Updated this to now attempt to request location-aware stock information and updated the column to use this information and show total stock across how many locations, and a tooltip showing per-location stock.

Resolves CORE-1250
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-03-20 13:16:49 +00:00
Rares Stefan
2176ff5027
fix(admin-ui): Hide create fulfilment button when nothing left to fulfil ( #3515 )
...
Previously, if an order had two fulfilments that fully satisfied the order, then only one was shipped, the status would change to `partially_shipped` and show the "Create Fulfillment" button again, which would open a buggy modal with no items to fulfil. Added another check that looks at the items in the order and compares `quantity` and `fulfilled_quantity`, so that we can hide the button based on this as well, rather than just the order's `fulfillment_status`, which can be misleading.
Also added a status icon to the Fulfillment card's title bar for the `partially_shipped` status, as this area was blank before in that state.
Resolves CORE-1262
2023-03-20 13:01:17 +00:00
Philip Korsholm
026bdab05d
Feat/fulfill swaps and claims with locations ( #3518 )
...
* re-add if statements
* initial implementation
* add changeset
* address feedback
* remove context param from create-fulfillment
* fix tests
2023-03-20 13:48:25 +01:00
Philip Korsholm
ea2633bccf
Fix/minor mw fixes ( #3521 )
...
**What**
- Fix stock locations quantities being shown as `undefined` and `NaN`
- Throw if updates to location levels are made with negative quantities through the api
- Show "allocated" in order summary for partially fulfilled orders
Fixes CORE-1268, CORE-1267, CORE-1265
2023-03-19 20:28:59 +00:00
Frane Polić
a3a7ace0c0
fix(admin): draft order shipping details ( #3500 )
...
* wip: fix draft order shipping details screen
* fix: reset address, refactor and cleanup
* fix: use const
* Create .changeset/violet-sloths-train.md
* fix: required fields, reset province
---------
Co-authored-by: fPolic <frane@medusajs.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-19 14:31:03 +01:00
Philip Korsholm
aed7805c0e
fix(medusa): Error messages for reset tokens ( #3514 )
...
* initial
* reset password token handling
* Create .changeset/old-planes-cross.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-19 10:52:10 +01:00
Carlos R. L. Rodrigues
aa690beed7
feat(medusa): Modules initializer ( #3352 )
2023-03-17 12:18:52 -03:00
Kasper Fabricius Kristensen
8a7421db5b
feat(admin): Improve DX for deploying admin externally ( #3418 )
...
* init deploy command
* add include flag
* add 'shortcut' flag
* add dev command, fix var replacement, change default behaviour
* cleanup params of build command
* fix defaults when using the plugin to serve admin
* add changeset
* fix globals
* update README
* throw error on no build found
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-17 13:18:51 +01:00
Kasper Fabricius Kristensen
9ad15d3a88
feat(admin-ui): Implements redesign of public pages ( #3504 )
...
* redesign public pages
* rm build files
* fix size of button
2023-03-17 10:17:47 +01:00
Shahed Nasser
812c8c6abd
docs: fix error during navigation ( #3509 )
2023-03-17 10:59:20 +02:00
Shahed Nasser
d0d46a504a
docs: fix trailing slash causing 404 ( #3508 )
2023-03-17 10:11:54 +02:00
Philip Korsholm
0d1b63d773
fix(medusa): Use get for creating fulfillments ( #3498 )
...
* use get
* changeset
* use set
* add tests
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-16 19:03:36 +01:00
Davor Bačić
fe4b8feb7e
feat(medusa): Add event emitter to ProductCollectionService ( #3495 )
...
* added event emit on ProductCollectionService CRUD, updated unit test
* productCollectionService code style fix
* Create .changeset/gold-fireants-look.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-16 19:01:26 +01:00
Shahed Nasser
2c3e8196c7
docs: fixed discount details ( #3499 )
2023-03-16 18:29:20 +02:00
Philip Korsholm
2e12f13565
Feat/show order as allocated ( #3497 )
...
**What**
- Add check to see if any items is unfulfilled when validating reservations for allocation indicator
- Add reservations refresh to onSuccess when creating a fulfillment to automatically update indicators on fulfillment
Fixes CORE-1248
Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com >
2023-03-16 15:49:00 +00:00
Patrick
e6e5291527
feat(codegen): commit generated client types to codebase ( #3492 )
...
## What
Commit generated client types to codebase.
## Why
As a developer, we will provides better visibility on the impact of OAS changes to the generated type. Also allow for browser the types on GitHub.
## How
* Remove `/lib` from .gitignore
* Add a non-blocking github action check validating if the latest generated build has been committed.
* Runs `yarn build --force --no-cache` on GitHub. Caching was creating false positives.
* Use `git status` and filter the output to target only `packages/generated` directory.
## Test
Proof of a failing check:
https://github.com/medusajs/medusa/actions/runs/4432323763/jobs/7776235128
UPDATE: Failing check after updating branch with latest develop
https://github.com/medusajs/medusa/actions/runs/4436707954/jobs/7785472045
2023-03-16 15:30:40 +00:00
Oliver Windall Juhl
7e17e0ddc2
feat(medusa-plugin-meilisearch): Update + improve Meilisearch plugin ( #3377 )
...
* feat(medusa-plugin-meilisearch): Upgrade meilisearch deps + migrate plugin to TS
* fix version
* Remove transaction base service from search service
* Create .changeset/strange-mails-pump.md
* Backward compatibility
* Address PR feedback
* Fix folder structure
* Update readme
* Move types
* fix deps
* Change version in changeset
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2023-03-16 16:15:29 +01:00
Shahed Nasser
1decaa27c7
docs: publish restructure ( #3496 )
...
* docs: added features and guides overview page
* added image
* added version 2
* added version 3
* added version 4
* docs: implemented new color scheme
* docs: redesigned sidebar (#3193 )
* docs: redesigned navbar for restructure (#3199 )
* docs: redesigned footer (#3209 )
* docs: redesigned cards (#3230 )
* docs: redesigned admonitions (#3231 )
* docs: redesign announcement bar (#3236 )
* docs: redesigned large cards (#3239 )
* docs: redesigned code blocks (#3253 )
* docs: redesigned search modal and page (#3264 )
* docs: redesigned doc footer (#3268 )
* docs: added new sidebars + refactored css and assets (#3279 )
* docs: redesigned api reference sidebar
* docs: refactored css
* docs: added code tabs transition
* docs: added new sidebars
* removed unused assets
* remove unusued assets
* Fix deploy errors
* fix incorrect link
* docs: fixed code responsivity + missing icons (#3283 )
* docs: changed icons (#3296 )
* docs: design fixes to the sidebar (#3297 )
* redesign fixes
* docs: small design fixes
* docs: several design fixes after restructure (#3299 )
* docs: bordered icon fixes
* docs: desgin fixes
* fixes to code blocks and sidebar scroll
* design adjustments
* docs: restructured homepage (#3305 )
* docs: restructured homepage
* design fixes
* fixed core concepts icon
* docs: added core concepts page (#3318 )
* docs: restructured homepage
* design fixes
* docs: added core concepts page
* changed text of different components
* docs: added architecture link
* added missing prop for user guide
* docs: added regions overview page (#3327 )
* docs: added regions overview
* moved region pages to new structure
* docs: fixed description of regions architecture page
* small changes
* small fix
* docs: added customers overview page (#3331 )
* docs: added regions overview
* moved region pages to new structure
* docs: fixed description of regions architecture page
* small changes
* small fix
* docs: added customers overview page
* fix link
* resolve link issues
* docs: updated regions architecture image
* docs: second-iteration fixes (#3347 )
* docs: redesigned document
* design fixes
* docs: added products overview page (#3354 )
* docs: added carts overview page (#3363 )
* docs: added orders overview (#3364 )
* docs: added orders overview
* added links in overview
* docs: added vercel redirects
* docs: added soon badge for cards (#3389 )
* docs: resolved feedback changes + organized troubleshooting pages (#3409 )
* docs: resolved feedback changes
* added extra line
* docs: changed icons for restructure (#3421 )
* docs: added taxes overview page (#3422 )
* docs: added taxes overview page
* docs: fix sidebar label
* added link to taxes overview page
* fixed link
* docs: fixed sidebar scroll (#3429 )
* docs: added discounts overview (#3432 )
* docs: added discounts overview
* fixed links
* docs: added gift cards overview (#3433 )
* docs: added price lists overview page (#3440 )
* docs: added price lists overview page
* fixed links
* docs: added sales channels overview page (#3441 )
* docs: added sales overview page
* fixed links
* docs: added users overview (#3443 )
* docs: fixed sidebar border height (#3444 )
* docs: fixed sidebar border height
* fixed svg markup
* docs: added possible solutions to feedback component (#3449 )
* docs: added several overview pages + restructured files (#3463 )
* docs: added several overview pages
* fixed links
* docs: added feature flags + PAK overview pages (#3464 )
* docs: added feature flags + PAK overview pages
* fixed links
* fix link
* fix link
* fixed links colors
* docs: added strategies overview page (#3468 )
* docs: automated upgrade guide (#3470 )
* docs: automated upgrade guide
* fixed vercel redirect
* docs: restructured files in docs codebase (#3475 )
* docs: restructured files
* docs: fixed eslint exception
* docs: finished restructure loose-ends (#3493 )
* fixed uses of backend
* docs: finished loose ends
* eslint fixes
* fixed links
* merged master
* added update instructions for v1.7.12
2023-03-16 17:03:10 +02:00
Rares Stefan
4213326fe8
feat(admin-ui): Add location names to fulfilment rows and timeline events ( #3481 )
...
Adds location information to fulfilment rows and timeline events


Resolves CORE-1234
2023-03-16 14:41:39 +00:00
github-actions[bot]
f312ce1e0f
chore(docs): Generated Services Reference (automated) ( #3490 )
...
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com >
2023-03-16 14:20:25 +02:00
Philip Korsholm
02c77d7059
Fix/adjust reservations correctly ( #3474 )
...
**What**
- Adjust reservations correctly according to the following heuristic:
adjustment by addition: (i.e. positive quantity adjustment passed to the adjustment method)
- if a reservation for the line-item in the location exists add quantity to that
- if not create a new reservation
adjustment by subtraction:
- if a reservation with the exact quantity exists, delete it and return
- if a reservation with a greater quantity exists, subtract from it and return
- otherwise delete from reservations until a reservation with greater quantity than the remaining is found and adjust that with the remaining quantity OR there are no more reservations
Fixes CORE-1247
2023-03-16 09:47:54 +00:00
Philip Korsholm
38c8d49f46
Feat(medusa): handle reservation quantity update for line items ( #3484 )
...
**What**
- Raise exception if a reservation is updated or created to have larger quantity than is unfulfilled for a line-item
Fixes CORE-1249
2023-03-16 09:15:39 +00:00
Riqwan Thamir
061a600f80
fix(medusa): fix rank order changing on category update ( #3486 )
...
what:
- fixes issue where ranking changes when only properties other than rank are updated on categories
FIXES CORE-1253
2023-03-16 08:53:49 +00:00
Patrick
13f40d7217
feat(oas): declare x-expanded-relations - Admin ( #3483 )
...
* feat(oas): declare x-expanded-relations - Admin
* fixup! feat(oas): declare x-expanded-relations - Admin
* fixup! feat(oas): declare x-expanded-relations - Admin
* fixup! feat(oas): declare x-expanded-relations - Admin
* fixup! feat(oas): declare x-expanded-relations - Admin
* fixup! feat(oas): declare x-expanded-relations - Admin
* feat: move defaultAdminOrdersRelations and Fields to types directory
* chore(changeset): patch
* fix(test): update unit tests
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-16 09:33:09 +01:00
Carlos R. L. Rodrigues
2869763ea9
fix(medusa): EventBusService.emit using Redis mock ( #3491 )
...
* Fix eventBusService.emit using redis mock
* revert gitignore
* enqueuer
* unit test add redis_url
* fix test
2023-03-16 09:29:18 +01:00
Patrick
522e306e2e
feat(oas): declare x-expanded-relations - Store ( #3482 )
...
* feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* fixup! feat(oas): declare x-expanded-relations - Store
* chore(changeset): patch
* fix(tests): update store auth integration test
* fix: pr feedback
* fix(test): match response code
2023-03-16 09:08:20 +01:00
olivermrbl
da0787bd11
chore: Update changeset for medusa-react
2023-03-15 18:51:16 +01:00
Riqwan Thamir
4ede91952d
fix(medusa-react): invalidate products query on category delete ( #3485 )
2023-03-15 18:38:02 +01:00
github-actions[bot]
09dec65430
chore(docs): Generated Docs Announcement Bar (automated) ( #3489 )
...
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com >
2023-03-15 18:24:45 +01:00
olivermrbl
360ae16c2d
chore(release): v1.7.14
2023-03-15 18:16:23 +01:00
olivermrbl
52c705057f
chore: Remove integration-tests from changeset
2023-03-15 17:16:23 +01:00
Adrien de Peretti
fa4049cb51
feat(medusa): Improve performance of Products domain ( #3417 )
...
* feat(medusa): Improve product update performances
* fix tests and update
* update mock repo
* improve repo
* cleanup
* fix
* cleanup + bulk emit + unit test fix
* improvements
* improve
* fix unit tests
* fix export
* fix product update handler
* enhance mock repo
* fix import integration
* fix end point tests
* revert mock repo product variant
* fix unit
* cleanup
* cleanup
* address feedback
* fix quotes in tests
* address feedback
* Create new-tips-mate.md
* use types
2023-03-15 17:05:43 +01:00