Skip to content

feat(designer): match printer size, specific resize error - #181

Merged
cljiahao merged 4 commits into
stagingfrom
feat/label-fit-printer-size
Dec 1, 2026
Merged

cljiahao merged 4 commits into
stagingfrom
feat/label-fit-printer-size

Conversation

@cljiahao

@cljiahao cljiahao commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

What

  • Printer-fit notice in the sticker designer gets a "Match printer size" button. It resizes the label template to the selected printer's media via the new fitTemplateToSize in src/lib/sticker-fit.ts.
  • When a resize is rejected because fields extend past the new edge, the designer shows a specific error instead of a generic one.
  • Docs: designer README, src/lib/README.md, CHANGELOG.

Tests

  • src/lib/sticker-fit.test.ts covers fitTemplateToSize.
  • sticker-designer.dom.test.tsx covers the button and the rejection error.
  • pnpm check and the full vitest suite pass locally (178 files, 1516 tests). origin/staging merged in cleanly before push.

🤖 Generated with Claude Code

@cljiahao
cljiahao merged commit f268ea9 into staging Dec 1, 2026
12 checks passed
@cljiahao
cljiahao deleted the feat/label-fit-printer-size branch December 1, 2026 17:23
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