order details: hide the review surface for spine-bridged retail rows
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:
2026-08-10 18:02:51 +10:00
parent 502e3f563c
commit 7f8e363b5b
3 changed files with 28 additions and 15 deletions
+3 -1
View File
@@ -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 }[];