feat(context): swap orders-page AI history ⓘ for context popover
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
995b7ed675
commit
f5185d3a2c
1 changed files with 3 additions and 6 deletions
|
|
@ -63,7 +63,7 @@ import { ItemStatusPill } from "@/components/item-status-pill";
|
|||
import { QuoteSearch } from "@/components/ui/quote-search";
|
||||
import { SendPoModal } from "@/components/purchase-orders/send-po-modal";
|
||||
import { AiInsightsPanel } from "@/components/ai-insights-panel";
|
||||
import { AiItemHistoryTrigger } from "@/components/ai-item-history-trigger";
|
||||
import { OrderItemContextPopoverTrigger } from "@/components/order-item-context-popover-trigger";
|
||||
import type { Order, OrderItem, PurchaseOrder, Quote, ItemStatus } from "@/lib/types";
|
||||
|
||||
/**
|
||||
|
|
@ -497,16 +497,13 @@ export default function OrderDetailPage({ params }: { params: Promise<{ id: stri
|
|||
<TableCell className="font-medium">
|
||||
<div className="whitespace-pre-wrap break-words max-w-[420px] flex items-start gap-1.5"
|
||||
// Stop the row's click handler from firing
|
||||
// when the operator pops the AI history
|
||||
// when the operator pops the context panel
|
||||
// open — otherwise the row pushes to
|
||||
// /orders/{id}/process on every ⓘ click.
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<AiItemHistoryTrigger
|
||||
<OrderItemContextPopoverTrigger
|
||||
itemId={item.id}
|
||||
insights={
|
||||
(item.ai_item_insights as Record<string, unknown> | null | undefined) ?? null
|
||||
}
|
||||
className="mt-0.5"
|
||||
/>
|
||||
<span>{item.description}</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue