feat(dashboard): order edit UI (#8700)

**What**
- order edit create flow
- active order edit panel

**Note**
- basic implementation of the flow, edge cases from the design such as fulfilled quantities validation will be added in a followup
This commit is contained in:
Frane Polić
2024-08-23 06:42:06 +00:00
committed by GitHub
parent 02c6574e01
commit 49353f8c3c
29 changed files with 1470 additions and 16 deletions
@@ -13,7 +13,7 @@ import { throwIfOrderIsCancelled } from "../../utils/order-validation"
/**
* This step validates that an order-edit can be requested for an order.
*/
export const beginorderEditValidationStep = createStep(
export const beginOrderEditValidationStep = createStep(
"begin-order-edit-validation",
async function ({ order }: { order: OrderDTO }) {
throwIfOrderIsCancelled({ order })
@@ -37,7 +37,7 @@ export const beginOrderEditOrderWorkflow = createWorkflow(
throw_if_key_not_found: true,
})
beginorderEditValidationStep({ order })
beginOrderEditValidationStep({ order })
const orderChangeInput = transform({ input }, ({ input }) => {
return {