diff --git a/src/app/(app)/orders/[id]/process/page.tsx b/src/app/(app)/orders/[id]/process/page.tsx index 7441980..008dc45 100644 --- a/src/app/(app)/orders/[id]/process/page.tsx +++ b/src/app/(app)/orders/[id]/process/page.tsx @@ -60,6 +60,7 @@ import { MarginApprovalDialog } from "@/components/margin-approval-dialog"; import { SplitRemainderDialog } from "@/components/ui/split-remainder-dialog"; import { AiItemHistoryTrigger } from "@/components/ai-item-history-trigger"; import { AiFillMarker } from "@/components/ai-fill-marker"; +import { PriceCheckMarker } from "@/components/price-check-marker"; import { orderAiRowClass } from "@/lib/order-assistant-review"; import { orderReviewerFromAuthRecord, @@ -2707,6 +2708,25 @@ function ItemCard({ + {/* Price check — the blue badge. It goes under the purple AI + marker in the left-hand marker column, on its own full-width + row so the one-line summary is readable on a phone (it + truncates rather than wrapping). Only on lines the AI + filled, reviewed or not. */} + {item.ai_fill?.status === "filled" ? ( +
+ +
+ ) : null} + {/* Middle row: qty + supplier + status badge — inline on all screens */}
{/* Quantity display: diff --git a/src/app/(app)/quotes/[id]/process/page.tsx b/src/app/(app)/quotes/[id]/process/page.tsx index a0ea9c5..ff0dcc8 100644 --- a/src/app/(app)/quotes/[id]/process/page.tsx +++ b/src/app/(app)/quotes/[id]/process/page.tsx @@ -53,6 +53,7 @@ import { ProcessItemCard } from "@/components/quotes/process-item-card"; import { QuoteNoteCard } from "@/components/quotes/process-quote-note-card"; import { AiItemHistoryTrigger } from "@/components/ai-item-history-trigger"; import { AiFillMarker } from "@/components/ai-fill-marker"; +import { PriceCheckMarker } from "@/components/price-check-marker"; import { AiFillQuoteButton } from "@/components/ai-fill-quote-button"; import { aiRowClass, canAiFillQuote, isAiFillPending } from "@/lib/quote-assistant-review"; import { reviewerFromAuthRecord, withAiReview } from "@/lib/quote-assistant-save"; @@ -1605,6 +1606,25 @@ export default function QuoteProcessPage({ params }: { params: Promise<{ id: str {isExpanded ? : }
+ {/* Price check — the blue badge. It lives in + the Description cell (not the cramped 32-px + `#` column) so the one-line summary has + room; it sits under the purple AI + marker in the `#` column. Only on lines + the AI filled, reviewed or not. */} + {item.ai_fill?.status === "filled" ? ( +
+ +
+ ) : null} + {/* Price check — the blue badge under the purple AI marker. It + only shows on lines the AI filled (reviewed or not). Full + card width, so the one-line summary is readable on a phone; + it truncates rather than wrapping. */} + {item.ai_fill?.status === "filled" ? ( +
+ +
+ ) : null} + {/* Row 2: status badges — own line so they never overflow into neighbouring cells. Each badge is gated on its own condition; the whole row only renders if at least one badge is relevant. */}