Skip to content

feat(zpl): ^CV code-validation toggle - #130

Merged
u8array merged 1 commit into
mainfrom
feat/zpl-cv-code-validation
Jun 5, 2026
Merged

u8array merged 1 commit into
mainfrom
feat/zpl-cv-code-validation

Conversation

@u8array

@u8array u8array commented Jun 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

Adds the ZPL ^CV barcode validation flag — when Y the firmware
prints `INVALID-x` in reverse video over a barcode whose data fails
its symbology's character/checksum rules.

^CV is session-scoped per spec (resets on power-off, not persisted
by ^JUS). The Setup-Script emitter registry now distinguishes
`scope: 'persistent' | 'session'`; session entries emit AFTER
configurationUpdate so ^JUS never tries to commit a non-persistent
state. The "configurationUpdate last" tripwire becomes "last among
persistent entries", with a new test pinning the wire order
^XA ^JUS ^CVY ^XZ.

UI lives in the Print Quality tab next to ^JZ / ^JT / ~TA. Three
new locale keys (codeValidation, codeValidationOn,
codeValidationOff) seeded across all 32 locales via
scripts/locale_tool.py add-key.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request implements support for the ZPL code validation command (^CV). It introduces a new 'session' scope for setup script commands to ensure they are emitted after the ^JUS commit command, updates the parser and printer profile schema, adds localized strings across multiple languages, and adds a UI selector in the PrintQualityTab. Feedback on the changes points out an inconsistency in PrintQualityTab.tsx where 'loc' is used instead of 't.printerSettings', which could lead to a runtime ReferenceError if 'loc' is undefined.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/components/PrinterSettings/PrintQualityTab.tsx
@u8array
u8array merged commit 7cc349e into main Jun 5, 2026
2 checks passed
@u8array
u8array deleted the feat/zpl-cv-code-validation branch June 5, 2026 14:49
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