Add saved signature presets #10

Merged
odweta merged 1 commits from odweta-saved-signatures into main 2026-09-10 17:43:59 +02:00
odweta commented 2026-09-10 17:43:22 +02:00 (Migrated from github.com)

Users can now keep multiple reusable signature images instead of uploading the same signature for every invoice.

This adds a per-user signature preset table and authenticated API endpoints for listing, saving/updating, and deleting presets. The invoice editor now provides a dropdown to select a saved signature, controls to name and manage presets, and applies the selected image to the existing invoice/PDF flow. Existing JPG/PNG and 420x210 pixel validation remains in place, with shared validation used by both invoice and preset APIs.

Tests cover the supported signature data URL formats and the existing invoice normalization behavior.

Users can now keep multiple reusable signature images instead of uploading the same signature for every invoice. This adds a per-user signature preset table and authenticated API endpoints for listing, saving/updating, and deleting presets. The invoice editor now provides a dropdown to select a saved signature, controls to name and manage presets, and applies the selected image to the existing invoice/PDF flow. Existing JPG/PNG and 420x210 pixel validation remains in place, with shared validation used by both invoice and preset APIs. Tests cover the supported signature data URL formats and the existing invoice normalization behavior.
Sign in to join this conversation.