Frane Polić
58c68f6715
feat(dashboard): Admin UI regions v2 ( #6943 )
2024-04-06 17:41:54 +02:00
Carlos R. L. Rodrigues
df0751f122
Feat: draft order api ( #6797 )
2024-04-06 16:35:10 +02:00
Stevche Radevski
883a75c4f3
feat: Switch to zod for the product API and implement missing primitives ( #6978 )
2024-04-06 13:45:52 +00:00
Riqwan Thamir
5e30b8cce6
feat(dashboard): added details page for promotions + edit sliders ( #6882 )
...
* chore: added details page for promotions
* chore: add edit rules, edit details and edit campaign pages
* chore: change to type button
* chore: connection for rules
* chore: listing rule labels of multiple modules
* chore: add badge summary list
* chore: fix campaigns
2024-04-06 13:20:31 +02:00
Stevche Radevski
07fb058d96
feat: Add product routes and components to v2 in admin-next ( #6958 )
2024-04-06 11:59:52 +02:00
Oli Juhl
c31dea02eb
feat: Add generic link filter middleware ( #6969 )
2024-04-06 11:18:03 +02:00
Oli Juhl
626aa09497
feat: Add create location fulfillment set flow + API ( #6945 )
2024-04-05 19:27:38 +02:00
Oli Juhl
8ecfa4b6f5
fix: Add count to stock-locations response ( #6965 )
2024-04-05 18:28:03 +02:00
Oli Juhl
5ba74ec5fc
feat: Add zod middleware ( #6961 )
2024-04-05 16:24:31 +02:00
Stevche Radevski
9ccd88d025
feat: Add boilerplate for the file module ( #6956 )
2024-04-05 14:46:02 +02:00
Riqwan Thamir
eb93e8f386
chore: rename rule endpoints validators ( #6955 )
2024-04-05 10:41:31 +00:00
Shahed Nasser
4c374e3a14
chore: add TSDocs to the Payment Module ( #6885 )
2024-04-05 12:01:36 +02:00
Oli Juhl
eadc5e8a79
feat: Admin V2 API keys ( #6883 )
...
Add API key management UI for V2
This PR only adds publishable API key UI. Secret API key management will come in a follow-up PR.
2024-04-05 09:55:59 +00:00
Adrien de Peretti
e944a627f0
feat: region payment providers management workflows/api ( #6864 )
2024-04-04 20:41:34 +02:00
Riqwan Thamir
483bf98a49
feat(medusa): added endpoints for rule attribute/operator/values options ( #6911 )
...
what:
adds endpoints that returns attribute options, operator options and value options for a particular rule.
2024-04-04 09:56:17 +00:00
Adrien de Peretti
49f16ab08d
fix(medusa): Fix get-query-config backward compatiblity ( #6913 )
2024-04-03 17:14:29 +02:00
Philip Korsholm and Oli Juhl
edafe7db47
Feat(link-module, core-flows, medusa): Add sales channel location management ( #6905 )
...
* add locations with sales channels
* init, not working location based management
* working adding sales channel stock locations
* remote sales channels from location
* remove console log
* rm allowedFields
* redo errorhandler
* make validation take an array
* add changeset
* fix build
* Update packages/core-flows/src/sales-channel/workflows/remove-locations-from-sales-channel.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* add default cases to return early
* cleanup
* add sc test and remove associations
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-04-03 08:38:53 +02:00
Oli Juhl
7895ff3849
feat: add sales channel management ( #6761 )
...
Add V2 sales channel management to admin
`@medusajs/medusa`
- Add `POST /admin/sales-channels/:id/products/batch/remove`
- Refactor cross-module filter middleware to comply with the latest convention
`@medusajs/admin-next`
- Add all sales channel routes
- Moves the following sales channel UI to shared components in `modules/sales-channel`:
- sales-channel-list
- sales-channel-edit
- sales-channel-details
- sales-channel-general-section
- sales-channel-create
The sales-channel-product-section is not shared because the API in V2 will change.
The sales-channel-add-products component is not shared because the API in V2 will change.
`@medusajs/core-flows`
- Add `detachProductsFromSalesChannelsStep`
- Add `removeProductsFromSalesChannelsWorkflow`
2024-04-02 13:38:33 +00:00
Stevche Radevski
585818eaf8
feat: Pricing update and refactor product API tests to not rely on internals ( #6892 )
...
This PR achieves the following
- Remove dependency on internals for seeding the tests (more work left, but major work done)
- Adds the workflow for updating variant's price
I will do a follow-up PR to further clean up the tests and remove all internal dependencies
2024-04-01 09:33:52 +00:00
Frane Polić
e58e81fd25
feat(dashboard): admin 3.0 order refund form ( #6850 )
2024-04-01 10:55:42 +02:00
Stevche Radevski
1a48fe0282
feat: Add v2 product types endpoints ( #6880 )
...
Also adjusts the product type module APIs to follow the conventions
2024-03-29 19:27:10 +00:00
Oli Juhl
1bcb13f892
feat: Remove sales channels from pub keys ( #6876 )
...
**What**
- Add workflow + step for detaching sales channels from pub API keys
- Tweak linking error message to be more helpful
- Add `removeRemoteLink` step to delete API key workflow
2024-03-29 15:01:10 +00:00
8fd1488938
chore: medusa shutdown ( #6865 )
...
* chore: medusa shutdown
* continue
* use shutdown
* on application shutdown
* consume shutdown
* more connection close
* more cleanup
* more cleanup
* update lock
* revert package
* graceful shutdown
* Create yellow-apples-attack.md
* graceful shutdown
* graceful shutdown
---------
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-03-29 09:22:29 -03:00
Riqwan Thamir
0c0b425de7
feat(medusa-react,medusa,types,dashboard): added empty state + table for promotions list page ( #6827 )
...
what:
- adds empty state for promotions list page
- lists all promotions with pagination
<img width="1663" alt="Screenshot 2024-03-26 at 14 19 27" src="https://github.com/medusajs/medusa/assets/5105988/ed0d5c65-d003-40f5-b899-540970d892f5 ">
<img width="1664" alt="Screenshot 2024-03-27 at 20 46 17" src="https://github.com/medusajs/medusa/assets/5105988/4aa40f09-fe3f-4f34-af7a-f5c183254c76 ">
2024-03-29 11:22:42 +00:00
pepijn-vanvlaanderen
6113af0a66
fix(medusa): Deleted discount missing on order ( #6837 )
...
* Fix deleted discount missing on order
* Added integration test
* Added changeset
2024-03-29 11:51:27 +01:00
85a27c3572
fix(inventory): cannot migrate existing products ( #6877 ) ( #6878 )
...
* fix(inventory): cannot migrate existing products (#6877 )
* chore: add changeset (#6821 )
---------
Co-authored-by: Geoffroy Empain <geoffroy@charlie-bravo.be >
Co-authored-by: Stevche Radevski <sradevski@live.com >
2024-03-29 11:05:12 +01:00
Stevche Radevski
cbb5e6bd99
feat: Refactor the product module definitions and implementation ( #6866 )
...
There are several things done in this PR, namely:
Unify the service endpoints API to always work with a model rather than allowing to pass both ID and model (eg. both type_id and type being available in the request to create).
Start using upsertWithReplace to simplify the code and fix some deassociation bugs
Apply some changes to tests to deal with the pricing breaking changes
Correctly define the model relationships (with both ID and entity fields available)
All tests for the product are passing, which should bring us back to a great baseline.
2024-03-29 09:03:41 +00:00
Oli Juhl
d97af91a8d
feat(admin-next): Email password invite flow in admin 2.0 ( #6821 )
2024-03-29 08:05:11 +01:00
Philip Korsholm and Riqwan Thamir
18438a695a
feat(medusa, stock-location-next): add list-stock-locations endpoint to api-v2 ( #6788 )
...
* initial create
* add list for stock locations
* add changeset
* redo changes for stock locatino module'
* add changeset
* naming
* prep for pr
* move integration tests
* fix pr feedback
* add changeset
* update changeset
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-03-28 17:33:26 +01:00
Sebastian Rindom
6bf4d40856
chore(medusa-test-utils): create declaration file ( #6858 )
...
**What**
- Fixes tsconfig to ensure a declaration file is included in the build.
**Why**
- Ensure tsserver can understand things from medusa-test-utils
- Get rid of "Could not find a declaration file for module" warning in editors.
2024-03-28 10:43:25 +00:00
Oli Juhl
ea8d9d4d42
feat: API key sales channel link ( #6851 )
...
What
- Add link between API key and sales channels
- Add API route for batch adding sales channels to a publishable API key
- Clean up API key API routes responses
- Move API key test suite from `integration-tests/modules` to `integration-tests/api`
2024-03-28 10:15:11 +00:00
Philip Korsholm
ff84f749d5
feat(medusa): add list location levels endpoint in api v2 ( #6741 )
2024-03-27 18:59:38 +01:00
4cf71af07d
feat(core-flows, medusa): add update stock location endpoint to api-v2 ( #6800 )
...
* initial create
* add changeset
* redo changes for stock locatino module'
* initial update
* add changeset
* move integration tests
* update update method
* fix integration tests
* Update packages/stock-location-next/src/services/stock-location.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* update service
* initial fixes
* pr feedback
* update types
* expand revert clause for update
* update versioning
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-03-27 10:31:17 +01:00
Oli Juhl
0b23e7efb8
feat: Support invites in CLI for V2 ( #6798 )
...
**What**
- Add invite support to cli for 2.0
- Allow email to be passed upon accepting an invite
2024-03-26 20:02:56 +00:00
github-actions[bot] and github-actions[bot] <github-actions[bot]@users.noreply.github.com>
74e17ee6f9
chore: Version Packages ( #6757 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 18:04:04 +01:00
Oli Juhl
7bc7adeeb4
feat: Create user account ( #6819 )
2024-03-26 10:07:38 +01:00
Riqwan Thamir and Adrien de Peretti
509ddf9a56
feat(medusa): migrate medusa unit tests / plugins integration tests to swc jest ( #6820 )
...
what:
- migrates medusa package to swc/jest
- migrates plugins integration tests to swc/jest
- parallelises a few of the heavy test packages
- fixes typeorm circular dependencies
**Unit Tests**
Before: 1 job => ~30 mins
After: 2 jobs => ~5 mins
<img width="260" alt="Screenshot 2024-03-25 at 15 11 49" src="https://github.com/medusajs/medusa/assets/5105988/e1df6985-5bd6-48d0-b87b-336d3c77d0cf ">
**Plugins**
Before: 1 job => ~10 mins
After: 1 job => ~5 mins
<img width="254" alt="Screenshot 2024-03-25 at 15 26 03" src="https://github.com/medusajs/medusa/assets/5105988/c1cec0e2-a1c3-41d1-9372-46d114d804c6 ">
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-25 17:55:34 +00:00
Kasper Fabricius Kristensen
26531c5a38
feat(dashboard): Draft orders create ( #6680 )
...
**What**
- Adds Create draft order form
- Updates draft order details page to also display "custom" items.
**Note**
- Currently, the form is missing a way to input a discount code. Need to rethink this a bit, as the we can't implement the design in Figma.
- The current design is missing a way to select from a customers existing shipping addresses, we should add that to keep the features we have today.
- This PR uses `useInfiniteQuery` which does not work on our staging (due to duplicate dependencies as a result of building straight from the monorepo), so you will need to test locally.
2024-03-25 17:18:24 +00:00
Philip Korsholm and Riqwan Thamir
20132d7cea
feat(medusa, core-flows): add retrieve stock location endpoint to api-v2 ( #6791 )
...
* initial create
* add changeset
* redo changes for stock locatino module'
* add get endpoint
* add changeset
* add exception if location is not found
* remove only
* initial delete stock location
* add changeset
* add changeset
* pr prep
* remote duplicate changeset
* propagate deletion with common step
* move integration tests
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-03-25 16:58:23 +01:00
Philip Korsholm and Riqwan Thamir
deab12e27e
feat(types, medusa, core-flows): add delete-stock-location endpoint to api-v2 ( #6801 )
...
* initial create
* add changeset
* redo changes for stock locatino module'
* initial delete stock location
* add changeset
* pr prep
* propagate deletion with common step
* move integration tests
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-03-25 16:29:36 +01:00
Riqwan Thamir and Adrien de Peretti
9073d7aba3
feat(core-flows,medusa,types,utils): rename psma to prices ( #6796 )
...
What:
Renames pricesetmoneyamount to prices
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-25 13:15:25 +00:00
Philip Korsholm
68b9812aa1
feat(core-flows, medusa): add create stock location endpoint for api-v2 ( #6787 )
2024-03-25 12:53:09 +01:00
Oli Juhl
0deb2776ad
feat: Add successRedirectUrl to auth options ( #6792 )
2024-03-25 08:55:21 +01:00
Philip Korsholm
aa154665de
feat(core-flows, types, medusa): Add Update location level endpoint for api-v2 ( #6743 )
...
* initialize update-location-level
* update middlewares
* readd middleware
* pr feedback
2024-03-25 07:43:41 +01:00
Sebastian Rindom
4c3389e1e6
fix: revert no server start ( #6790 )
...
**Why**
- we want to start a server so we can allow health checks on workers
2024-03-22 14:57:34 +00:00
Oli Juhl
9e25e0c42e
feat: List products middleware ( #6769 )
2024-03-22 14:59:21 +01:00
Riqwan Thamir
b792c4cab5
chore: merge money amounts and price set money amounts ( #6768 )
...
what:
- merges price set money amounts and money amount
2024-03-21 16:10:13 +00:00
Adrien de Peretti and Sebastian Rindom
1ef9c78cea
chore: Deprecate extra in favor of driver options ( #6772 )
...
**What**
Deprecate databse_extra in favor of database_driver_options
Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com >
2024-03-21 14:45:11 +00:00
Sebastian Rindom
56481e683d
feat: v2 - add worker mode ( #6739 )
...
**What**
- Adds support for starting a Medusa process with a worker mode.
- The worker modes supported are "shared", "worker", "server"
- In "worker" mode, API routes are not registered and modules that need to run workers (e.g., event bus redis) can use the flag to conditionally start workers.
- In "server" mode, API routes are registered and workers are not started.
- In "shared" mode, API routes are registered and workers are started. This is great for development.
2024-03-21 13:08:20 +00:00
Sebastian Rindom
205573f5e3
fix(medusa): migrate with feature flag ( #6771 )
...
* fix(medusa): migrate with feature flag
* fix
* Create small-guests-whisper.md
2024-03-21 11:33:40 +01:00