WFDASH-WEBAPP/src/lib/server
Dave 999948861e feat: add server-side quote search & PO number format update
Implement new server-side ranked quote search endpoint at `/api/v1/quotes/search`, replacing the legacy 500-row client-side substring scan that missed older quotes and didn't rank results by relevance. The new search scores matches across quote identifiers, customer/company headers, and line item fields.
Update PO number generation and validation to use a dashless format (POYYYYMMNNNXXX) with per-company scoped sequence numbers, and ignore legacy PO formats when calculating new sequences.
Remove legacy `searchQuotesWithItems` function and its associated test file, then update the quotes page to use the new server-side search API.
Add comprehensive unit and integration tests for the new quote search service and updated PO number logic.
2026-08-14 11:15:38 +02:00
..
agent-auth.test.ts
agent-auth.ts
ai-settings-service.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
ai-system-prompt.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
attachment-extractor.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
browser-session.ts feat(orders): show resolved sales rep name on order list and sprint 2026-08-04 08:50:54 +02:00
buyer-tasks-service.test.ts feat: add server-side quote search & PO number format update 2026-08-14 11:15:38 +02:00
buyer-tasks-service.ts feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
collection-confirm-service.test.ts feat(stock-purchase): split warehouse confirm from accountant booking 2026-08-06 23:01:15 +02:00
collection-confirm-service.ts feat(stock-purchase): split warehouse confirm from accountant booking 2026-08-06 23:01:15 +02:00
collection-confirm-upload.test.ts feat: add new order, invoice, and dashboard management tools 2026-08-05 23:00:54 +02:00
counter-service.ts feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
customers-service.test.ts feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
customers-service.ts feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
dashboard-service.test.ts feat: add new order, invoice, and dashboard management tools 2026-08-05 23:00:54 +02:00
dashboard-service.ts feat: add new order, invoice, and dashboard management tools 2026-08-05 23:00:54 +02:00
deliveries-service.test.ts
deliveries-service.ts fix(delivery-notes): correct DN cancellation and filter issues 2026-08-12 15:36:31 +02:00
delivery-notes-service.test.ts
delivery-notes-service.ts feat(invoicing, dn): add surplus tracking, fix qty, update branding 2026-08-13 13:02:37 +02:00
driver-stops.ts
item-history-service.test.ts feat(item-history): wire description-fuzzy matcher into getItemHistory 2026-07-29 17:43:59 +02:00
item-history-service.ts feat(context): implement getOrderItemContext (5 PB reads, fuzzy fallback) 2026-08-07 02:34:45 +02:00
item-intel-service.ts feat(item-intel): add new item intel popover and backend workflows 2026-08-11 02:57:57 +02:00
management-service.ts
order-completion.test.ts
order-completion.ts
order-item-context-service.test.ts test(context): getOrderItemContext unit tests (null, quote, stock low/out, invoiced) 2026-08-07 02:42:57 +02:00
order-item-context-service.ts chore(context): lint + build adjustments 2026-08-07 03:04:28 +02:00
order-item-margin-approval-service.test.ts fix: resolve PO bug, add sku, improve webhooks 2026-08-06 13:13:57 +02:00
order-item-margin-approval-service.ts fix: resolve PO bug, add sku, improve webhooks 2026-08-06 13:13:57 +02:00
order-item-status.test.ts
order-item-status.ts feat(order-items): below-22% margin approval workflow 2026-08-04 00:58:33 +02:00
order-items-service.test.ts feat: add driverless collection confirm and new order tooling 2026-08-12 01:13:46 +02:00
order-items-service.ts feat: add driverless collection confirm and new order tooling 2026-08-12 01:13:46 +02:00
order-quote-match.test.ts
order-quote-match.ts
orders-service-review.test.ts feat(orders): show From + Subject in review modal Source of truth header 2026-08-05 16:09:53 +02:00
orders-service.test.ts feat(orders,invoicing): add duplicate order cleanup and soft cancellation 2026-08-13 09:02:27 +02:00
orders-service.ts feat(orders,invoicing): add duplicate order cleanup and soft cancellation 2026-08-13 09:02:27 +02:00
po-email-template.ts
po-number.test.ts feat: add server-side quote search & PO number format update 2026-08-14 11:15:38 +02:00
po-number.ts feat: add server-side quote search & PO number format update 2026-08-14 11:15:38 +02:00
pocketbase-admin.test.ts feat: add new order, invoice, and dashboard management tools 2026-08-05 23:00:54 +02:00
pocketbase-admin.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
price-list-match.test.ts
price-list-match.ts
price-list-service.test.ts feat(mcp): add price_list.add_items tool for agent-driven catalogue upsert 2026-08-10 12:45:05 +02:00
price-list-service.ts feat(mcp): add price_list.add_items tool for agent-driven catalogue upsert 2026-08-10 12:45:05 +02:00
purchase-orders-service.test.ts feat(po): resend purchase order from sent / mail_failed / sending statuses 2026-08-04 20:05:52 +02:00
purchase-orders-service.ts feat(po): resend purchase order from sent / mail_failed / sending statuses 2026-08-04 20:05:52 +02:00
quote-email-template.ts feat(quotes): add approval page and email updates 2026-08-11 16:09:40 +02:00
quote-items-insights-service.test.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
quote-items-insights-service.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
quote-items-service.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
quotes-ai-processor.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
quotes-from-email-service.ts feat: add AI quote processing pipeline and admin settings UI 2026-08-09 16:17:29 +02:00
quotes-search-service.test.ts feat: add server-side quote search & PO number format update 2026-08-14 11:15:38 +02:00
quotes-search-service.ts feat: add server-side quote search & PO number format update 2026-08-14 11:15:38 +02:00
quotes-service.test.ts feat: add new order, invoice, and dashboard management tools 2026-08-05 23:00:54 +02:00
quotes-service.ts fix: correct quote expiry handling for PocketBase's 0 default 2026-08-11 08:32:17 +02:00
stock-booking-service.test.ts feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
stock-booking-service.ts feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
stock-cost-service.ts feat: unify buyer task flows by supporting both customer orders and stock purchases in mark-ready API and UI, and fix PDF table layout responsiveness. 2026-08-03 18:52:30 +02:00
stock-items-service.test.ts feat: add split-invoice stock PO workflow and supporting tooling 2026-08-07 00:53:29 +02:00
stock-items-service.ts feat: add split-invoice stock PO workflow and supporting tooling 2026-08-07 00:53:29 +02:00
stock-out.ts
stock-purchase-invoice-matching-service.test.ts feat(mcp): expand stock purchase invoice matching service with 5 phases 2026-08-09 20:23:36 +02:00
stock-purchase-invoice-matching-service.ts feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
stock-purchase-items-service.test.ts fix(stock-purchase-items): drop dead drv_collected_at write to unblock build 2026-08-07 01:39:03 +02:00
stock-purchase-items-service.ts fix(stock-purchase-items): drop dead drv_collected_at write to unblock build 2026-08-07 01:39:03 +02:00
stock-purchases-migration.test.ts
stock-purchases-service.attachments.test.ts feat(stock-purchases): add additional_attachments service helpers 2026-08-06 23:20:26 +02:00
stock-purchases-service.test.ts feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
stock-purchases-service.ts feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
stock-quick-draft-service.test.ts feat(stock-quick-draft): add updateQuickDraftLine service 2026-07-31 13:38:59 +02:00
stock-quick-draft-service.ts feat(stock-quick-draft): add updateQuickDraftLine service 2026-07-31 13:38:59 +02:00
stock-surplus.test.ts
stock-surplus.ts
tv-dashboard-service.ts feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
tv-session.ts feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00