WFDASH-WEBAPP/.opencode/openwork/inbox/chat-attachments
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
..
ses_0126cb8e5ffeIDqXpbaiSlz2iI feat(item-intel): add new item intel popover and backend workflows 2026-08-11 02:57:57 +02:00
ses_019256f62ffeDwHi23C94lev5T feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
ses_0184473ccffef2zSiBR6i9d1Y7 feat: add split views, stock picking slips, and invoice viewer 2026-08-09 23:16:55 +02:00
ses_01738112fffe3dQ66XdT6shP6s fix: correct quote expiry handling for PocketBase's 0 default 2026-08-11 08:32:17 +02:00