WFDASH-WEBAPP/src/lib
Dave bf4968875b feat(quotes): compute item intel right after the AI fills a line
A line the AI filled now gets its Item Intel immediately, so the blue
price-check marker on the Process page has something to show instead of
"No intel available" until someone opens the ⓘ popover.

The intel is anchored to the POS item the AI actually picked
(ai_fill.stock_item_id / ai_fill.stock_item_sku), so it points at that
exact catalogue row rather than a description-fuzzy guess.

The step is strictly additive: it runs inside the same audit actor as
the fill, never throws (a failure is logged and the fill still counts
as filled), and it is skipped once the run's TICK_TIME_BUDGET_MS is
spent — the remaining lines keep their fills and get their intel on the
next ⓘ / Refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 21:22:06 +02:00
..
pdf
reports
scan
server feat(quotes): compute item intel right after the AI fills a line 2026-10-24 21:22:06 +02:00
audit-fetch.test.ts
audit-fetch.ts
audit-format.test.ts
audit-format.ts
collection-ai-card.test.ts feat(collection-confirm): check printed prices on delivery notes; show AI reading notes 2026-10-19 13:50:27 +02:00
collection-ai-card.ts feat(collection-confirm): check printed prices on delivery notes; show AI reading notes 2026-10-19 13:50:27 +02:00
collection-ai-ticks.test.ts feat(collection-confirm): check printed prices on delivery notes; show AI reading notes 2026-10-19 13:50:27 +02:00
collection-ai-ticks.ts feat(collection-confirm): check printed prices on delivery notes; show AI reading notes 2026-10-19 13:50:27 +02:00
collection-driver-verdict.test.ts feat(driver): read-only invoice check endpoint for the driver app 2026-10-21 19:38:38 +02:00
collection-driver-verdict.ts feat(driver): read-only invoice check endpoint for the driver app 2026-10-21 19:38:38 +02:00
delivery-note-stage.test.ts
delivery-note-stage.ts
dev-identity.test.ts
dev-identity.ts
file-fields.test.ts
file-fields.ts
geo.test.ts
geo.ts
giellie-image.ts
giellie-sse.test.ts
giellie-sse.ts
giellie-types.ts
item-status-ui.test.ts
item-status-ui.ts
letterhead.test.ts
letterhead.ts
note-feed.test.ts feat(collection-pool): back-to-pending, collection date, and a safe notes feed 2026-10-16 00:44:49 +02:00
note-feed.ts feat(collection-pool): back-to-pending, collection date, and a safe notes feed 2026-10-16 00:44:49 +02:00
order-age.test.ts
order-age.ts
order-ai-match-tint.test.ts feat(orders): tint New-tab cards by the AI quote match 2026-10-24 20:52:59 +02:00
order-ai-match-tint.ts feat(orders): tint New-tab cards by the AI quote match 2026-10-24 20:52:59 +02:00
order-assistant-review.test.ts feat(orders): purple review for AI-filled order lines 2026-10-24 14:25:11 +02:00
order-assistant-review.ts feat(orders): purple review for AI-filled order lines 2026-10-24 14:25:11 +02:00
order-assistant-save.test.ts feat(orders): purple review for AI-filled order lines 2026-10-24 14:25:11 +02:00
order-assistant-save.ts feat(orders): purple review for AI-filled order lines 2026-10-24 14:25:11 +02:00
order-color.test.ts
order-color.ts
order-invoices.test.ts
order-invoices.ts
order-item-qty.test.ts
order-item-qty.ts
order-rep.test.ts
order-rep.ts
pb-helpers-duplicate.test.ts
pb-helpers.ts fix: number customer POs one at a time (duplicate PO numbers) 2026-10-19 15:08:12 +02:00
pin-model.test.ts
placeholder-customers.ts
po-reference.ts feat(collection-confirm): spot a photo on the wrong PO and move it 2026-10-19 14:08:47 +02:00
pocketbase.ts
pos-cart-quantity.test.ts
pos-inline-handlers.test.ts
pos-search.test.ts
price-list-search.ts
quote-assistant-counts-client.test.ts feat(quote-assistant): AI x/y badge on quotes board 2026-10-16 20:01:43 +02:00
quote-assistant-counts-client.ts feat(quote-assistant): AI x/y badge on quotes board 2026-10-16 20:01:43 +02:00
quote-assistant-merge.test.ts fix(quote-assistant): AI fill on Process page keeps unsaved typing 2026-10-16 23:29:04 +02:00
quote-assistant-merge.ts fix(quote-assistant): AI fill on Process page keeps unsaved typing 2026-10-16 23:29:04 +02:00
quote-assistant-review.test.ts fix(quote-assistant): review minors (templates, forced order, bounds, UI) 2026-10-16 23:41:28 +02:00
quote-assistant-review.ts fix(quote-assistant): review minors (templates, forced order, bounds, UI) 2026-10-16 23:41:28 +02:00
quote-assistant-save.test.ts feat(quote-assistant): purple AI lines on process and quote pages 2026-10-16 19:56:02 +02:00
quote-assistant-save.ts feat(quote-assistant): purple AI lines on process and quote pages 2026-10-16 19:56:02 +02:00
quote-pricing.test.ts feat(delivery-notes): lock the cost price, markup stays the only input 2026-10-15 15:44:24 +02:00
quote-pricing.ts feat(delivery-notes): lock the cost price, markup stays the only input 2026-10-15 15:44:24 +02:00
quote-status.test.ts
quote-status.ts
rep-visibility.test.ts
rep-visibility.ts
repair-document-stage.test.ts
repair-document-stage.ts
safe-next-path.ts
short-collection.test.ts feat(collection): split short pickups on confirm, stop re-billing 2026-10-22 04:04:50 +02:00
short-collection.ts feat(collection): split short pickups on confirm, stop re-billing 2026-10-22 04:04:50 +02:00
sops.ts
stock-fulfillment.test.ts
stock-fulfillment.ts
stock-low-stock.ts
stock-match.ts
stock-status.test.ts
stock-status.ts
supplier-color.test.ts
supplier-color.ts
theme-types.ts
themes.ts
tracker-parsing.test.ts
tracker-parsing.ts
types.ts feat(intel): anchor item intel to the exact POS item the AI picked 2026-10-24 21:18:05 +02:00
use-boolean-preference.ts
use-split-ratio.test.ts
use-split-ratio.ts
use-theme-id.ts
user-color.ts
utils.test.ts
utils.ts
visit-matching.test.ts
visit-matching.ts
visit-stops.test.ts
visit-stops.ts
working-days.ts