order details: hide the review surface for spine-bridged retail rows
ci / lint-test (push) Successful in 58s
ci / lint-test (push) Successful in 58s
Verdicts are the meal lane's feedback loop (loved/never steers the next restaurant order and the nudge card warns on re-order). Bridge rows (source='order-bridge': Amazon, eBay, Officeworks...) have no such loop, so ItemVerdictToggle and OrderVerdict stay hidden there. The order API now returns 'source'; OrderReceipt.platform widened to string — the bridge writes real platform slugs beyond the meal trio.
This commit is contained in:
+3
-1
@@ -257,7 +257,9 @@ export function useTransactionSplits(transactionId: number) {
|
||||
}
|
||||
|
||||
export interface OrderReceipt {
|
||||
platform: "doordash" | "ubereats" | "uber" | null;
|
||||
/** 'email' | 'receipt-scan' | 'order-bridge' | ... — which lane wrote the row. */
|
||||
source: string | null;
|
||||
platform: string | null;
|
||||
order_reference: string | null;
|
||||
line_items: { qty: number; description: string; amount: number; options?: string[] }[];
|
||||
route: { label: string; time: string | null; address: string }[];
|
||||
|
||||
Reference in New Issue
Block a user