Riqwan Thamir and GitHub
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
Oli Juhl and GitHub
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
Riqwan Thamir and GitHub
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
Frane Polić and GitHub
fcb03d60ea
feat(dashboard): Discounts details + edits ( #6547 )
...
**What**
- Discounts details page
- Edit discount details
- Edit discount configurations
- `ListSummary` component
**NOTE**
- conditions edit form will be implemented in a separate PR
- edit details from is missing metadata component which will be added later
---
https://github.com/medusajs/medusa/assets/16856471/c878af4a-48c2-4c45-b824-662784c7a139
2024-03-06 14:08:15 +00:00
Kasper Fabricius Kristensen and GitHub
44d43e8155
feat(dashboard, medusa, medusa-js, medusa-react, icons): DataGrid, partial Product domain, and ProductVariant hook ( #6428 )
...
The PR for the Products section is growing quite large, so I would like to merge this PR that contains a lot of the ground work before moving onto finalizing the rest of the domain.
**Note**
Since the PR contains changes to the core, that the dashboard depends on, the staging env will not work. To preview this PR, you will need to run it locally.
## `@medusajs/medusa`
**What**
- Adds missing query params to `GET /admin/products/:id/variants`
- `options.values` has been added to the default relations of admin product endpoints.
## `medusa-react`
**What**
- Adds missing hook for `GET /admin/products/:id/variants`
## `@medusajs/dashboard`
- Adds base implementation for `DataGrid` component (formerly `BulkEditor`) (WIP)
- Adds `/products` overview page
- Adds partial `/products/create` page for creating new products (WIP - need to go over design w/ Ludvig before continuing)
- Adds `/products/:id` details page
- Adds `/products/:id/gallery` page for inspecting a products images in fullscreen.
- Adds `/products/:id/edit` page for editing the general information of a product
- Adds `/products/:id/attributes` page for editing the attributes information of a product
- Adds `/products/:id/sales-channels` page for editing which sales channels a product is available in
- Fixes a bug in `DataTable` where a table with two fixed columns would not display correctly
For the review its not important to test the DataGrid, as it is still WIP, and I need to go through some minor changes to the behaviour with Ludvig, as virtualizing it adds some constraints.
## `@medusajs/icons`
**What**
- Pulls latest icons from Figma
## TODO in next PR
- [ ] Fix the typing of POST /admin/products/:id as it is currently not possible to delete any of the nullable fields once they have been added. Be aware of this when reviewing this PR.
- [ ] Wrap up `/products/create` page
- [ ] Add `/products/:id/media` page for managing media associated with the product.
- [ ] Add `/products/id/options` for managing product options (need Ludvig to rethink this as the current API is very limited and we can implement the current design as is.)
- [ ] Add `/products/:id/variants/:id` page for editing a variant. (Possibly concat all of these into one BulkEditor page?)
2024-02-21 11:29:35 +00:00
Vinícius Gutierrez and GitHub
aa9f66e16a
fix(medusa-react): medusa provider needs a medusa client instance ( #6363 )
2024-02-12 22:29:45 +01:00
Shahed Nasser and GitHub
1593e0b192
chore: small fixes to tsdocs ( #6341 )
...
Small fixes of the TSDocs for the upcoming release
2024-02-12 16:26:27 +00:00
Erik Engervall and GitHub
b1276cfcd5
feat(medusa-react): Add medusaClient prop to MedusaProvider ( #6299 )
2024-02-05 09:56:57 +01:00
Shahed Nasser and GitHub
f29948a6a8
docs-util: created docblock-generator tool ( #6096 )
2024-01-24 11:13:40 +01:00
Kasper Fabricius Kristensen and GitHub
d68089b2aa
fix(medusa): Implement listAndCount for UserService and update list endpoint ( #6190 )
2024-01-24 10:41:35 +01:00
Shahed Nasser and GitHub
4792c55226
docs: migrate guides to TSDoc references ( #6100 )
2024-01-22 18:38:35 +01:00
Shahed Nasser and GitHub
7d650771d1
docs: generate medusa-react reference ( #6004 )
...
* add new plugin for better organization
* added handling in theme for mutations and query types
* added tsdoc to hooks
* added tsdocs to utility functions
* added tsdoc to providers
* generated reference
* general fixes for generated reference
* generated api reference specs + general fixes
* add missing import react
* split utilities into different directories
* added overview page
* added link to customer authentication section
* fix lint errors
* added changeset
* fix readme
* fixed build error
* added expand fields + other sections to overview
* updated what's new section
* general refactoring
* remove unnecessary query field
* fix links
* added ignoreApi option
2024-01-05 17:03:38 +02:00
Oli Juhl and GitHub
925feea04a
feat(cart): Add cart module package ( #5982 )
...
* feat: Add CartModule foundation
* remove migration
* fix ts issue
* Create hot-dingos-pay.md
2024-01-02 15:59:23 +01:00
Kasper Fabricius Kristensen and GitHub
4e9d954549
fix(medusa-react): Allow setting maxRetries on MedusaProvider ( #5765 )
...
* allow settign maxRetries on MedusaProvider
* add changeset
* set default maxRetries to 3
2023-11-29 15:42:46 +00:00
Shahed Nasser and GitHub
91615f9c45
chore: improve JS Client TSDoc comments ( #5582 )
...
* add oas schema to tsdoc parser
* add tsdoc (part 1)
* Finished tsdoc in js client
* general fixes
* added tsdoc in core medusa package
* parse schema tags in model files
* added maxlevel option
* added more tsdoc
* added tsdoc in core
* added TSDoc in core package
* generated client types
* support featureFlag and expandable tags
* added support for resource feature flag note
* fix api ignore plugin
* added eslint plugin
* support feature flag and expandable badges
* adjusted overview page + generated reference
* revert generated files
* added changeset
* add details about new typedoc options
* fix broken link
2023-11-09 12:51:17 +02:00
Adrien de Peretti and GitHub
a780b92b8d
fix(medusa): Add admin get product tests ( #5480 )
2023-10-31 08:54:06 +01:00
0f34e0f381
feat(admin-ui, medusa, medusa-react, medusa-js): Price List UI revamp ( #5233 )
...
* progress on cleanup
* rm forceMount
* close modal on succesful submit
* fix: invalidate price list query on useAdminCreatePriceListPrices
* sync translation keys
* add last translations
* sync translation keys
* improve tabbing between cells
* add comment
* fix: remove double variant, set collision boundary on column dropdown
* add widgets
* update lock file
* decrease details info size, and add missing status update function
* sync translation keys
* add snapshots and remove min/max
* add missing filter menu for customer groups table
* add translation keys for filter menu
* rm unused code
* Create tall-apricots-run.md
* Update tall-apricots-run.md
* fix: discard invalid paste values
* add translation keys
* bump snapshots + minor fixes
* rm console.log
* bump snapshots
* bump ui packages, and add missing tax inclusive display in New form
* update lock file
* fix filter menu
* update snapshot
* update ui package and fix sub menu position
---------
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-10-06 08:22:25 -07:00
a9972d7d6f
fix(medusa-react): @medusajs/medusa-js import ( #5207 )
...
* fix(medusa-react): @medusajs/medusa-js import
* Create short-wolves-breathe.md
---------
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2023-09-26 16:27:50 -04:00
Shahed Nasser and GitHub
7d35723023
fix(medusa-react): fix useAdminAddStoreCurrency hook ( #5074 )
2023-09-15 12:06:12 +02:00
f1a05f4725
feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions ( #4761 )
...
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-17 12:14:45 +00:00
Oli Juhl and GitHub
9469063f64
fix(medusa-js): return type of collection hook + export ( #4747 )
2023-08-11 13:37:54 +02:00
josetr and GitHub
3e6cee2846
fix(medusa-react): Add missing query keys to inventory hooks ( #4467 )
...
* Add missing adminInventoryItemsKeys.lists() to inventory hooks
* Create gentle-points-cover.md
2023-07-19 09:20:55 +02:00
e3a8565213
fix(medusa-react): admin user mutation hooks invalidating wrong keys ( #4538 )
...
* fix(medusa-react): fix admin users invalidating wrong keys
* Create orange-zoos-float.md
---------
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2023-07-19 09:18:42 +02:00
josetr and GitHub
417debfe7d
fix(medusa-react): fix wrong admin reservations query key ( #4441 )
...
* Fix react admin reservations query key
* Create quiet-gifts-kick.md
2023-06-30 09:08:02 +02:00
fe25c8a91f
feat(medusa-react,medusa-js): Allow custom headers ( #4409 )
...
* add support for passing custom headers to backend through medusa-js and medusa-react
* switch order of override of headers
* Create gentle-teachers-greet.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-06-28 15:04:58 +02:00
79cca2ab80
feat(admin-ui): Filter reservations ( #4115 )
...
* initial filter
* clenaup
* reser filters correctly
* filter reservations
* ensure reset works
* update types
* add adjustment icon
* pr prep
* update filtering with proper description handling
* location filter updates and search removal
* removed greyed out dates + add created_by filtering
* update filtering with proper ordering
* filter out selected users
* fix array issues
* update spacing for searchable queries
* fix deselection bug for inventory item search
* update date filter;
* rename const a to initialFilters
* fix re-render issue
* ui updates
* update inventory filter to remove selected items
* fix width
* fix truncation for button text if desired
* add span classes
* add "go to reservations" popover
* add tooltip if location text is truncated
* fix long items
* typing
* minor fix for select value
* fix reservation quantity field updates
* add pb
* Update packages/admin-ui/ui/src/components/templates/reservations-table/index.tsx
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* feedback
* add changeset
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-06-08 17:57:39 +02:00
4f3c8f5d70
feat(admin-ui,medusa): Reservations management ( #4081 )
...
* add location filtering to list-location levels
* cleanup
* add location filtering to list-location levels
* cleanup
* Initial work on route,table,new reservation form
* generated types
* add block
* udpate clients
* initial create reservation
* update actionables for reservation table
* update edit-allocation modal
* misc naming updates
* update reservations table
* add expand capabilities for list-reservations
* expand fields and show columns
* update oas
* make remove item work in focus modal
* add yarn lock
* add integration test
* Fix display when label doesn't match search term
* remove unused file
* Update packages/admin-ui/ui/src/components/templates/reservations-table/components/reservation-form/index.tsx
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* Update packages/admin-ui/ui/src/domain/orders/details/allocations/edit-allocation-modal.tsx
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* Update packages/admin-ui/ui/src/components/templates/reservations-table/new/index.tsx
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* initial changes
* add changeset
* update font size
* cleanup reservations table + select
* add decorated inventory item type
* use type
* feedback changes
* Update packages/admin-ui/ui/src/components/molecules/item-search/index.tsx
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* decorate response for list inventory item to include total quantities
* update decorated properties
* decorate type
* adrien feedback
* Update packages/generated/client-types/src/lib/models/DecoratedInventoryItemDTO.ts
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* update join-utils
* fix caching
---------
Co-authored-by: Rares Capilnar <rares.capilnar@gmail.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-05-23 05:24:28 +02:00
c24c2a9732
fix(medusa-react): update customer hook payload type ( #3752 )
...
Co-authored-by: fPolic <frane@medusajs.com >
2023-04-06 15:42:55 +02:00
Rares Stefan and GitHub
30ee10fddd
fix(react): Fix input type on useAdminUpdateReservation mutation hook ( #3732 )
...
The hook was incorrectly expecting the input type for the creation mutation.
Resolves CORE-1316
2023-04-05 14:24:32 +00:00
Patrick and GitHub
d06ab92994
fix(medusa-react): export product-categories store hooks ( #3689 )
2023-04-03 17:32:02 +02:00
Philip Korsholm and GitHub
7f87c4f2c8
fix(medusa-react): Query key invalidation ( #3686 )
2023-04-03 17:29:48 +02:00
Kasper Fabricius Kristensen and GitHub
788ddc0f43
fix(medusa, admin-ui, medusa-react): Gift Card update fixes and admin UI cleanup ( #3676 )
...
* fix gc domain issues
* add changeset
* update changeset
* more minor fixes, remove breadcrumb
* more cleanup
* address feedback
2023-04-02 19:04:32 +02:00
Riqwan Thamir and GitHub
4ede91952d
fix(medusa-react): invalidate products query on category delete ( #3485 )
2023-03-15 18:38:02 +01:00
Patrick and GitHub
6748877c69
fix(oas,js,react): use AdminExtendedStoresRes instead of AdminStoresRes ( #3478 )
...
## What
Declare and use AdminExtendedStoresRes for `[get] /admin/store` endpoint.
## Why
Only `[get] /admin/store` returns `ExtendedStoreDTO`. Other `/admin/store` endpoints return `Store`.
## How
* Create new AdminExtendedStoresRes OAS schema
* Update medusa-js
* Update medusa-react
2023-03-15 11:17:34 +00:00
fe9eea4c18
feat(medusa, admin-ui, medusa-react, medusa-js): Allow toggling of manage inventory ( #3435 )
...
**What**
- Toggle manage inventory in the inventory management modal
**How**
- Create/update/remove inventory item based on if `manage_inventory` is set and if an inventory item already exists
- Move all stock location updates to when the modal is submitted
- Add create-inventory-item endpoint in the core
Fixes CORE-1196
Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com >
2023-03-14 16:14:31 +00:00
Riqwan Thamir and GitHub
9ba09ba4d7
feat(medusa, medusa-js, medusa-react): Add store queries to react medusa ( #3436 )
...
What:
- Adds queries to medusa react for core
- Fix naming issues in types
RESOLVES CORE-1131
2023-03-10 10:14:48 +00:00
Philip Korsholm and GitHub
80b95a2300
Fix(medusa, admin-ui): Order allocations ( #3419 )
...
**What**
- Fix `delete-reservation` endpoint to allow deletions of reservations
- remove `inventory_item_id` from reservation update call to properly update reservation
- invalidate all list caches to properly update order overview after an allocation has been created
- Fix overlap for long product titles in edit-allocation-modal
Fixes CORE-1214
2023-03-09 17:07:49 +00:00
57d7728dd9
feat(admin-ui, medusa-js, medusa-react, medusa): Multiwarehousing UI ( #3403 )
...
* add "get-variant" endpoint
* import from a different place
* fix unit test
* add changeset
* inventory management for orders
* add changeset
* initial create-fulfillment
* add changeset
* type oas and admin
* Move inv. creation and listing from admin repo
* Fix location editing bug (CORE-1216)
* Fix default warehouse on inventory table view
* remove actions from each table line
* Use feature flag hook instead of context directly
* remove manage inventory action if inventory management is not enabled
* Address review comments
* fix queries made when inventorymodules are disabled
* variant form changes for feature enabled
* move exclamation icon into warning icon
* ensure queries are not run unless feature is enabled for create-fulfillment
---------
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-03-08 16:08:56 +01:00
47d3440766
feat(admin-ui, medusa-react): product page categories management + nested multiselect ( #3401 )
...
* chore: allow products to be categorized in product create/edit page
* refactor: cleanup
* feat: invalidate product details cache when categories change
* fix: update changesets
* fix: push ner changeset
* feat: limit popup height
---------
Co-authored-by: fPolic <frane@medusajs.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-07 19:42:01 +01:00
Riqwan Thamir and GitHub
75924b682f
feat(medusa-react): add product category queries and mutations ( #3218 )
2023-02-16 10:22:23 +01:00
12d304307a
feat(medusa-js, medusa-react, medusa): Prepare API for admin implementations ( #3110 )
...
********What********
Add `joinSalesChannels util to stock locations
Add the following endpoints to medusa-react
- inventory items
- mutations
- update
- delete
- update location level
- delete location level
- create location level
- queries
- list inventory items
- get inventory item
- list location levels
- Stock locations
- mutations
- create stock location
- update stock location
- delete stock location
- queries
- list stock locations
- get stock locatoin
- Variants
- queries
- get inventory
- Reservations
- mutations
- create reservation
- update reservation
- delete reservation
- queries
- list reservations
- get reservation
- sales channels
- mutations
- associate location with sc
- remove location association
**Why**
- Update clients to reflect new api endpoints in the core with inventory modules
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-02-16 08:49:48 +00:00
Kasper Fabricius Kristensen and GitHub
4fbf6b7ad3
fix(medusa-react): Fix production.min.js causing invalid hook usage error in CJS environments ( #3144 )
2023-02-01 14:07:02 +01:00
Kasper Fabricius Kristensen and GitHub
6293fccc65
hotfix(medusa-react): Invalidate query keys on successful mutations ( #3099 )
...
**What**
- Fixes an issue where query keys weren't invalidated on successful mutations.
**How**
- Update `buildOptions` function to be called per `QueryKey` instead of passing them all as a single query key, resulting in no matches found.
- Fixes imports that aren't compatible with ESM modules.
2023-01-24 12:55:24 +00:00
Kasper Fabricius Kristensen and GitHub
150696de99
feat(medusa, medusa-js, medusa-react): Add endpoint to retrieve product tags from the storefront ( #3051 )
2023-01-18 10:47:15 +01:00
olivermrbl
ab580066ae
fix: Merge conflicts with master
2023-01-18 10:17:39 +01:00
Kasper Fabricius Kristensen and GitHub
cb25244007
hotfix(medusa-js, medusa-react): Fix issue with JS client bundle ( #3038 )
2023-01-16 17:44:24 +01:00
Kasper Fabricius Kristensen and GitHub
8d1275c942
feat(medusa-react): Upgrade react-query and clean up dependencies ( #2969 )
2023-01-11 19:19:34 +01:00
Kasper Fabricius Kristensen and GitHub
c2c38dd091
fix(medusa, medusa-react): Typing of optional fields on multiple product endpoints ( #2771 )
2022-12-12 19:10:06 +01:00
Philip Korsholm and GitHub
a6243618fe
feat(medusa): Claim customer orders ( #2710 )
2022-12-08 17:48:49 +01:00
Carlos R. L. Rodrigues and GitHub
15c667fbd3
feat(medusa,medusa-react): PaymentCollection support ( #2659 )
...
* chore: medusa react, order edit complete fix and single payment session
2022-12-07 12:39:35 -03:00