Skip to content

fix(vouchers): harden template editor and printed stock workflow - #67

Merged
Boym323 merged 41 commits into
mainfrom
fix/voucher-template-parity
Sep 26, 2026
Merged

Boym323 merged 41 commits into
mainfrom
fix/voucher-template-parity

Conversation

@Boym323

@Boym323 Boym323 commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Co opravuje

  • sjednocuje fitting textu mezi browser preview a PDF rendererem
  • respektuje výšku oblasti, horizontální insety a automatické řádkování při lineHeightMm = 0
  • publish preflight odmítne šablonu, která by ukázkový text musela oříznout
  • dynamický text a QR musí zůstat uvnitř TrimBoxu 210 × 99 mm
  • již vytištěné/převzaté kusy lze aktivovat i po deaktivaci immutable šablony
  • detail šablony správně rozlišuje DRAFT / PUBLISHED / INACTIVE
  • ukládání editoru používá optimistic concurrency přes updatedAt
  • doplněny regresní unit a DB integrační testy

Bezpečnost změny

Nové tiskové série nadále vyžadují PUBLISHED šablonu. Povolení INACTIVE se týká pouze aktivace kusu z již existující přijaté tiskové série.

Validace

CI je ponecháno jako autoritativní brána pro lint, typecheck, testy, build a E2E.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e1be2dadd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/vouchers/lib/voucher-template-layout.ts Outdated
Comment thread src/features/vouchers/lib/voucher-stock.ts
Comment thread src/features/vouchers/lib/voucher-text-fit.ts
@Boym323
Boym323 merged commit b78ebd3 into main Sep 26, 2026
14 checks passed
@Boym323
Boym323 deleted the fix/voucher-template-parity branch September 26, 2026 07:17
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