fix(admin-ui): Inventory and order UI fixes and tweaks (#3461)

This PR aims to tackle a few different small fixes and tweaks related to inventory and order details UI, in connection to multiwarehousing features.

- Successfully deleting an allocation should now only present one toast
- Updated copy in allocation editing toasts
- Inventory table search should now be the same height as the location selection trigger
- Inventory table rows should now correctly visually indicate that they are clickable
- Removed Filters from Inventory table for the time being
- Added actions to Inventory table rows for adjusting availability (same action as clicking the row, which remains) and going to the product detail page for the inventory item

Resolves CORE-1229, CORE-1228, CORE-1227, CORE-1233, CORE-1230
This commit is contained in:
Rares Stefan
2023-03-14 10:53:13 +01:00
committed by GitHub
parent 55a1f232a3
commit 478903b55a
4 changed files with 68 additions and 19 deletions
@@ -72,11 +72,15 @@ const EditAllocationDrawer = ({
const handleDelete = () => {
deleteReservation(undefined, {
onSuccess: () => {
notification("Success", "Allocation deleted successfully", "success")
notification(
"Allocation was deleted",
"The allocated items have been released.",
"success"
)
close()
},
onError: () => {
notification("Errors", "Failed to deleted ", "success")
notification("Error", "Failed to delete the allocation ", "error")
},
})
}
@@ -119,7 +123,11 @@ const EditAllocationDrawer = ({
},
{
onSuccess: () => {
notification("Success", "Allocation updated successfully", "success")
notification(
"Allocation was updated",
"The allocation change was saved.",
"success"
)
close()
},
onError: () => {
@@ -265,6 +273,7 @@ const EditAllocationDrawer = ({
className="my-1 w-full border text-rose-50"
size="small"
onClick={handleDelete}
type="button"
>
Delete allocation
</Button>