Skip to content

feat: signature-pad, draw or upload a handwritten signature - #69

Merged
zyx1121 merged 1 commit into
mainfrom
feat/signature-pad
Oct 10, 2026
Merged

zyx1121 merged 1 commit into
mainfrom
feat/signature-pad

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 10, 2026

Copy link
Copy Markdown
Member

For the portal's trip app (and approve later): members save a handwritten signature that appears on their signed PDFs.

  • SignaturePad: a dialog with 手寫 (pointer-events canvas, pen/finger/mouse, 清除) and 上傳圖片 (PNG/JPEG; no SVG) tabs; onSave gets a data URL and can throw to keep the dialog open.
  • Drawn signatures export as a transparent PNG cropped to the strokes at 2x.
  • SignaturePreview: a saved signature on its paper, for pages (pages may not draw frames themselves).
  • Ink and paper are black and white in every theme; DESIGN.md records this as the single color exception. No new dependency.

Verified on the sandbox: typecheck, lint, tokens:check, theme:check, build; the docs demo draws a stroke with pointer events, saves a 496x192 PNG, and shows it in the preview.

🤖 Generated with Claude Code

Black ink on white paper in every theme, since signatures end up on
printed documents; exported as a transparent PNG cropped to the strokes.
SignaturePreview shows a saved one on a page. DESIGN.md notes the one
color exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit 5327585 into main Oct 10, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/signature-pad branch October 10, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant