Skip to content

feat: Add ZPL import append mode#57

Merged
u8array merged 2 commits into
mainfrom
feat/zpl-import-append-mode
May 11, 2026
Merged

feat: Add ZPL import append mode#57
u8array merged 2 commits into
mainfrom
feat/zpl-import-append-mode

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 11, 2026

Introduces an "append mode" for ZPL imports, allowing users to add imported pages to an existing design without overwriting it. This includes a new toggle and corresponding locale keys.

Introduces an "append mode" for ZPL imports, allowing users to add
imported pages to an existing design without overwriting it. This
includes a new toggle and corresponding locale keys.
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 'append mode' for ZPL imports, allowing users to add imported pages to an existing design instead of overwriting it. It includes updates to the labelStore to support page appending, UI changes in ZplImportModal to toggle this mode, and necessary localization updates. The reviewer noted that the file import handler is missing validation for empty results, which should be addressed to match the manual text import logic.

Comment thread src/components/Output/ZplImportModal.tsx
Mirror the manual-paste validation in handleFileSelect: if the parsed
file contains no supported objects and no label-config changes, show
the same 'No supported objects found' message instead of silently
no-op'ing (append mode) or clearing the design (replace mode).

Findings from Gemini on PR #57.
@u8array u8array merged commit 6b006d0 into main May 11, 2026
2 checks passed
@u8array u8array deleted the feat/zpl-import-append-mode branch May 11, 2026 21:09
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