Philip Korsholm
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
Philip Korsholm
0476f52519
Feat(medusa, admin-ui): Update edit allocation modal ( #4071 )
...
* update edit-allocation modal
* add changeset
* update edit-allocation modal
* update allocation modal
2023-05-22 15:58:51 +02:00
Philip Korsholm
2945769497
fix(admin-ui): Allow backorder update on variants ( #4051 )
2023-05-16 17:28:45 +02:00
Riqwan Thamir
aa74ebb181
fix(admin-ui): ensure that sales channel names are always an array ( #4049 )
2023-05-09 12:25:43 +02:00
Kasper Fabricius Kristensen
2829537592
fix(admin-ui): Template download path ( #4050 )
...
* pin react-router-dom
* fix template download path
* add changeset
2023-05-09 12:13:54 +02:00
Philip Korsholm
353fc94e4f
feat(admin-ui): Manage inventory toggle ( #4041 )
2023-05-08 18:44:27 +02:00
Kasper Fabricius Kristensen
596566a510
fix(admin-ui): Navigating to tax settings should not break URL ( #3989 )
...
* fix navigation to taxes page, and switch out react-helmet with react-helemt-async
* add changeset
* pinpoint react-hot-toast
2023-05-03 13:40:04 +02:00
Philip Korsholm
0c30d05cf3
fix(admin-ui): allocated badge for orders with statuses cancelled and archived ( #3950 )
...
* fix allocated badge for orders with statuses cancelled and archived
* add changeset
2023-05-01 09:48:51 +02:00
Philip Korsholm
4c5c4fd9b3
feat(admin-ui): Metadata for stock locations ( #3955 )
...
* initial update to stock locations
* add changeset
2023-05-01 08:39:29 +02:00
Frane Polić
88a224e42a
fix(admin): display correct items in the timeline after OE ( #3895 )
2023-04-23 13:28:15 +02:00
Oliver Windall Juhl
0be6816578
feat(admin-ui): Add Sales Channel filter ( #3897 )
...
* feat(admin-ui): Add Sales Channel filter
* Create silver-wombats-camp.md
* filter out null children
2023-04-23 13:26:42 +02:00
Rares Stefan
ba45a316a7
feat(admin-ui): Implement allocations on draft orders ( #3753 )
2023-04-21 18:42:52 +02:00
Philip Korsholm
d302db2397
fix(admin-ui): Add guard for null product_id ( #3894 )
...
* handle null variants differently
* add changeset
2023-04-21 18:00:51 +02:00
Oliver Windall Juhl
966ddd2f16
fix(inventory): Minor fixes to upserting inventory items ( #3883 )
...
* fix(inventory): Minor fixes to upserting inventory item levels
* Create sour-jobs-decide.md
* fix(inventory): Minor fixes to upserting inventory item levels
2023-04-19 22:43:09 +02:00
Oliver Windall Juhl
5fdccf5e32
fix(admin-ui): Check for undefined categories ( #3886 )
...
* fix(admin-ui): Check for undefined categories
* Create silent-garlics-kiss.md
2023-04-19 22:33:08 +02:00
Daniel Beck
d85d7bb6d4
fix(admin-ui): Flip rendering condition on reset password ( #3864 )
...
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2023-04-18 14:53:24 +02:00
Riqwan Thamir
d533caa4c2
feat(medusa, admin-ui): add description field to product categories ( #3768 )
...
* feat(medusa): add description field to product categories
* chore: set nullable to false
* chore: added UI for description
* chore: added codegen files
2023-04-08 18:29:12 +02:00
Frane Polić
6f48cc57bc
fix(admin-ui): "cancel fulfillment" notification text ( #3750 )
...
* fix: "cancel fulfillment" notification text
* fix: add changesets
---------
Co-authored-by: fPolic <frane@medusajs.com >
2023-04-06 15:45:54 +02:00
Frane Polić
72b76bbd3c
fix(admin-ui): display SC update notification ( #3755 )
...
Co-authored-by: fPolic <frane@medusajs.com >
2023-04-06 15:21:03 +02:00
Adrien de Peretti
dae8da1099
fix(admin): Duplicate product without prices ( #3706 )
...
* fix(admin): Duplicate product without prices
* Create honest-ways-eat.md
2023-04-04 16:04:31 +02:00
Philip Korsholm
748833383f
hotfix(medusa): Temporary multi-warehouse support for draft orders ( #3665 )
...
* remove reservations from draft order creation and show correct inventory
* add changeset
* add integration tests
* adjust inventory on payment if no inventory service is installed
2023-04-04 11:36:51 +02:00
Kasper Fabricius Kristensen
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
Philip Korsholm
a5ad6c0542
fix(admin-ui, medusa): Require name in create stock location ( #3670 )
...
* initial fix
* add changeset
* remove company from required fields
2023-04-02 11:57:41 +02:00
Philip Korsholm
eed784d7d0
fix(admin-ui, medusa): Allocations and fulfillments for variants without inventory items ( #3660 )
...
* fix fulfillment for order lines without inventory items
* fix summary card on order for variants without inventory items
* add changeset
* minor fixes
* remove variants without inventory items from allocate modal
* naming
* Update .changeset/kind-rings-wave.md
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* remove line item indicator
* cleanup
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-31 15:53:56 +02:00
Rares Stefan
ca3b32d53c
fix(admin-ui): Make copy on manage locations modal better when no locations ( #3666 )
2023-03-31 14:38:01 +02:00
Rares Stefan
7e1d8ef599
feat(admin-ui): Add new feature badge for categories and inventory ( #3657 )
...
* Add new feature badge for categories and inventory
* Add changeset
2023-03-31 12:29:46 +02:00
Oliver Windall Juhl
45fd0fb639
fix(admin-ui): Always show categories in product page ( #3655 )
...
* fix(admin-ui): Always show categories in product page
* Create .changeset/tasty-timers-drive.md
* add disabled classes
2023-03-31 12:09:11 +02:00
Kasper Fabricius Kristensen
4342ac884b
feat(admin-ui, medusa): admin UI metadata ( #3644 )
2023-03-31 12:07:24 +02:00
Oliver Windall Juhl
4f4ccee7fb
fix(admin-ui): Collapse categories by default ( #3637 )
2023-03-31 10:43:03 +02:00
Rares Stefan
e6b5859af2
feat(admin-ui): Make number input increment/decrement buttons not tabbable-to ( #3645 )
...
* Make number input inc./dec. buttons not tabbable to
* Create changeset
2023-03-30 18:18:41 +02:00
Oliver Windall Juhl
ebd6ab12c9
chore(admin-ui): Update favicon ( #3640 )
...
* fix(admin-ui): Eliminate purple from most-visible components
* chore(admin-ui): Update favicon
2023-03-30 12:53:00 +02:00
Oliver Windall Juhl
851a981880
fix(admin-ui): Eliminate purple from most-visible components ( #3639 )
2023-03-30 12:50:33 +02:00
Philip Korsholm
a7e3f2d343
feat(admin-ui): move inventory item fields into manage inventory modal ( #3591 )
2023-03-29 18:12:38 +02:00
Rares Stefan
7428ffa300
fix(admin-ui): Fix team table filter dropdown transparency ( #3625 )
...
* Add a z-index to the dropdown content
* Create yellow-trees-rest.md
2023-03-29 16:27:59 +02:00
Philip Korsholm
0d00903385
Fix(admin-ui): delete inventory item when variant is deleted ( #3585 )
2023-03-29 16:23:22 +02:00
Philip Korsholm
0695ff642b
fix(medusa, admin-ui): List all inventory levels ( #3552 )
...
* ensure that all levels are listed
* add changeset
* remove count from config
* update changeset version bump
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-29 08:54:49 +02:00
Rares Stefan
345005573a
fix(admin-ui): Update order edit variants table to fit longer content ( #3608 )
...
* Fix stock cell check, update table columns to fit longer content
* Create nine-planes-kneel.md
* Update check
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2023-03-28 19:21:40 +02:00
Philip Korsholm
d1a6aa5a90
fix(admin-ui): Create fulfillment ( #3607 )
...
* fix for create-fulfillment
* remove ff check
* add changeset
* Disable Create fulfillment button if no quantities fulfilled
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Rares Capilnar <rares.capilnar@gmail.com >
2023-03-28 19:04:35 +02:00
Frane Polić
91f0e01d0f
fix(admin-ui): disallow creating OE if there is no changes ( #3604 )
...
* wip: fix modal
* refactor: revert log
---------
Co-authored-by: fPolic <frane@medusajs.com >
2023-03-28 14:56:07 +02:00
Rares Stefan
455c56c4b3
fix(admin-ui): Hide inventory quantity field in variant stock form if SL module enabled ( #3592 )
...
* Hide inventory stock field if stock locations module enabled
* Create purple-cats-brake.md
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-27 20:49:31 +02:00
Rares Stefan
95c9fbfdd5
fix(admin-ui): Fix effect check in inventory table and overflow UI ( #3577 )
...
* Fix effect check in inventory table and overflow UI
* Create ten-berries-rest.md
* Fix edit stock&inventory modal to use the right form
* Fix faulty merge conflict resolution
* Fix inventory item creation
* Add redirect to locations tab if no locations, toast
* Revert redirect and toast, add message in table
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-03-27 20:48:47 +02:00
Philip Korsholm
feaf8d2e19
feat(admin-ui, medusa): Improve fulfillment validation ( #3541 )
...
* validate that an inventory level exists as well
* improve create-fulfillment handling in admin
* pass along location id rather than inventory level id
* add changeset
* remove dependency
2023-03-27 20:36:59 +02:00
Frane Polić
bd199d7f44
fix(admin): OrderEdit display of difference due with refund ( #3487 )
...
**What**
- fix `difference_due` in the OE modal to show the correct difference a user has to pay
- fix Timeline crashing due to returned line item being `undefined `(deleted after OE confirmation)
**Why**
We were taking into account `refunded_amount` when calculating "Difference Due" and used the following formula:
`orderEdit.total - paidTotal + refundedTotal`.
The issue here is that `orderEdit.total` is "overpriced" for the amount of items that are returned/refunded already (i.e. we are charging the user again for the returned items).
The straightforward solution would be to subtract `refunded_total` from the `orderEdit.total` to get the total cost of items the user is actually getting after the edit.
`difference_due = (orderEdit.total - refundedTotal) - (paidTotal - refundedTotal ) = orderEdit.total - paidTotal`
But if we have partially refunded returns, we would have the same problem of returned items priced into the total.
In that case, general solution should be something like:
`diff_due_display = orderEdit_total_of_items_user_is_getting - paid_total + refunded_total`
Would like to hear what you guys think!
---
FIXES CORE-1246
2023-03-24 16:59:15 +00:00
Philip Korsholm
284578a67a
Fix(admin-ui): multi warehouse minor fixes ( #3540 )
...
**What**
1. Enable the "create location" button in "create stock location" when a field has changed
2. Remove the "successful delete" toast when cancelling stock location creation
3. Properly update available and reserved when editing stock levels for variant
4. invalidate inventoryItemList queryKeys when changing location levels
**Why**
- we had the same bug with form validation when creating location levels as we had when editing them (1)
- when updating location levels, listing inventory items wouldn't show the newly added location levels (4)
- fixing ui bugs (2, 4)
2023-03-24 14:11:40 +00:00
Philip Korsholm
332a9b686b
Feat(admin-ui): Request return flow warnings and errors ( #3473 )
...
**What**
- Add warning to request-return modal if no inventory level exists for the combination of items that is being requested
- Block receive return at location with the same condition
2023-03-24 14:01:31 +00:00
Carlos R. L. Rodrigues
4e9d257d3b
Chore(medusa,utils,types,inventory,stock-location): remove core dependency modules ( #3531 )
2023-03-23 08:07:32 -03:00
Kasper Fabricius Kristensen
bfef22b33e
fix(admin-ui): Gift Card manage page ( #3532 )
...
**What**
- Updates GC manage page to use product page sections
- Revamps Denomination section
- Updates the location of several components to reflect that they are now shared between the GC and products domain


Resolves CORE-1089
2023-03-23 08:29:29 +00: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
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