* refactor: optimize page loading and data fetching * fix: resolve recurring production runtime errors * feat: add MCP company and customer updates * fix: handle year-end tax adjustments * feat: harden annual report compliance * fix: expand invoice logo and font support * fix: sanitize API route error responses * fix: sanitize user-facing error messages * feat: persist onboarding and tax assessment notices * fix: reduce cloud backup audit churn * feat: refine invoice editor layout * fix: show saved tax adjustments in INK2 * fix: complete annual report API mappings * docs: record operational safeguards and decisions * fix: harden annual report review findings * fix: adjust column span for description based on VAT registration * New css class name
32 lines
902 B
TypeScript
32 lines
902 B
TypeScript
import type { InvoiceFontFamily } from '@/types'
|
|
|
|
export const LOGO_UPLOAD_MAX_MB = 10
|
|
export const LOGO_UPLOAD_MAX_BYTES = LOGO_UPLOAD_MAX_MB * 1024 * 1024
|
|
|
|
export const INVOICE_LOGO_MAX_WIDTH_PT = 240
|
|
export const INVOICE_LOGO_MAX_HEIGHT_PT = 80
|
|
|
|
export const INVOICE_FONT_FAMILIES = [
|
|
'Helvetica',
|
|
'Times-Roman',
|
|
'Courier',
|
|
'Source Sans 3',
|
|
'Source Serif 4',
|
|
'Custom',
|
|
] as const satisfies readonly InvoiceFontFamily[]
|
|
|
|
export const STANDARD_PDF_FONT_FAMILIES = [
|
|
'Helvetica',
|
|
'Times-Roman',
|
|
'Courier',
|
|
] as const satisfies readonly InvoiceFontFamily[]
|
|
|
|
export const BUNDLED_INVOICE_FONT_FAMILIES = [
|
|
'Source Sans 3',
|
|
'Source Serif 4',
|
|
] as const satisfies readonly InvoiceFontFamily[]
|
|
|
|
export const CUSTOM_INVOICE_FONT_FAMILY = 'Custom' as const
|
|
export const INVOICE_FONT_UPLOAD_MAX_MB = 5
|
|
export const INVOICE_FONT_UPLOAD_MAX_BYTES = INVOICE_FONT_UPLOAD_MAX_MB * 1024 * 1024
|