Skip to content

fix: hide HRI checkbox and rendering for symbologies without ZPL HRI …#10

Merged
u8array merged 2 commits into
mainfrom
fix/gs1databar-hri-not-supported
May 5, 2026
Merged

fix: hide HRI checkbox and rendering for symbologies without ZPL HRI …#10
u8array merged 2 commits into
mainfrom
fix/gs1databar-hri-not-supported

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 5, 2026

…support

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

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 introduces an interpretationLocked property to barcode definitions to handle symbologies, such as GS1 Databar, that do not support human-readable interpretation (HRI) in ZPL output. The implementation updates the registry, hides the UI toggle when locked, and suppresses HRI in the canvas renderer. Review feedback highlights that the suppression logic in BarcodeObject should be moved earlier to ensure consistency with size calculations and BWIP options. Additionally, it is recommended to enforce this lock within the toZPL function to prevent legacy objects from generating invalid ZPL.

Comment thread src/components/Canvas/BarcodeObject.tsx
Comment thread src/registry/barcode1d.tsx
@u8array u8array merged commit b126e13 into main May 5, 2026
2 checks passed
@u8array u8array deleted the fix/gs1databar-hri-not-supported branch May 5, 2026 21:07
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