WFDASH-WEBAPP/.opencode/openwork/inbox/chat-attachments/ses_01738112fffe3dQ66XdT6shP6s
Dave 397df8e2b2 fix: correct quote expiry handling for PocketBase's 0 default
PocketBase returns 0 for unset number fields, which broke the original
null-coalescing check in effectiveValidityDays, leading to PDFs showing
"Valid until: today" for all new quotes created via email ingest.

Changes include:
- Update effectiveValidityDays to treat 0, negatives, null/undefined as falling back to 30-day default
- Add test cases for 0 and negative validity_days inputs
- Explicitly set validity_days to QUOTE_VALID_DAYS when creating new quotes
- Add one-time idempotent migration script to backfill legacy invalid validity values
- Refactor item intel popover patch logic to use PocketBase SDK for authenticated requests
- Add n8n workflow for AI-powered item insight matching
2026-08-11 08:32:17 +02:00
..
6a4b0c56-6618-4be2-9005-c96d244ec960-POPULATE AI INSIGHTS.json
8f9f550e-bde4-48c6-ba22-86e2bf0c4ef8-POPULATE AI INSIGHTS-3.json fix: correct quote expiry handling for PocketBase's 0 default 2026-08-11 08:32:17 +02:00
9d4e3bc5-9f95-4dfa-af3e-7b56a99572a3-POPULATE AI INSIGHTS-2.json fix: correct quote expiry handling for PocketBase's 0 default 2026-08-11 08:32:17 +02:00
2450d742-820a-488c-a1ef-5edaf217d63b-image.png
c2eed7ef-1bf0-4d12-90de-2a936e1026ac-2_price_list_records.json