WFDASH-WEBAPP/src/components
SJCoetz 714e910949 feat: add branded quote PDF generation and in-app viewer
This commit adds full quote PDF generation functionality with per-company letterhead branding:
- Server-side PDF rendering using @react-pdf/renderer matching the sample quote layout
- In-app modal PDF viewer with print, download, and new-tab controls
- Letterhead service to fetch and apply company-specific branding (CNL/ISHERWOOD)
- ZAR currency and date formatting utilities for South African quotes
- Updated QuoteAttachment type to handle PocketBase's array-based file tokens
- Fixed PocketBase attachment URL generation in quote email card
- Removed deprecated `included_in_quote` field from QuoteItem and quotes service
- Updated quote item creation test to validate draft item logic
- Added comprehensive unit tests for PDF rendering and formatting helpers
- Added dev scripts for debugging PDF and image rendering issues
- Added sample generated PDF files for visual verification
- Updated tsconfig to exclude development scripts directory
- Added @react-pdf/renderer production dependency
- Removed JEI as a valid letterhead option per requirements
2026-06-23 08:30:38 +02:00
..
ui feat: add branded quote PDF generation and in-app viewer 2026-06-23 08:30:38 +02:00
auth-provider.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
company-form.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
customer-form.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
data-table.tsx feat: add AI quote item rewriter and supporting UI/UX changes 2026-06-22 18:29:59 +02:00
delete-dialog.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
line-items-table.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
order-form.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
quote-email-card.tsx feat: add branded quote PDF generation and in-app viewer 2026-06-23 08:30:38 +02:00
quote-form.tsx feat: add AI quote item rewriter and supporting UI/UX changes 2026-06-22 18:29:59 +02:00
quote-pdf-viewer.tsx feat: add branded quote PDF generation and in-app viewer 2026-06-23 08:30:38 +02:00
rewrite-quote-modal.tsx feat: add locked pricing and overhaul quote rewrite 2026-06-22 23:07:53 +02:00
service-worker-registration.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
sidebar.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
supplier-form.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
supplier-map.tsx Add dark map, marker editing and fullscreen 2026-05-27 17:57:24 +02:00
theme-provider.tsx chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00