You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4fd6eb2
Browse filesBrowse the repository at this point in the historyBrowse files
chore(post-phase2): cleanup pass for support matrix, layers + dead code
Six small follow-ups from the Phase 2 reviews:
1. zplCommandSupport.ts: FN and FV were still marked 'unsupported'
after Phase 1 merged Variables; flip both to 'supported'. Add
DF, XF, XG, DY entries (Phase 2d batch export) which the matrix
silently lacked, so the import report now reflects reality.
2. Move the `Page` interface out of the store and into types/Group
alongside LabelObject. zplGenerator.ts no longer imports from
store/, removing the only `lib -> store` edge in the Phase 2
surface. The single remaining consumer (ZplImportModal) imports
from types/Group directly; no compatibility shim needed.
3. Drop the dead `getImportedFile` export from csvImport.ts and the
corresponding `lastImportedFile` slot; `rememberImport` no longer
takes a File argument (the only field-name consumer reads from
`pending.parsed.file` directly).
4. Extract `R:LBL.ZPL` as `BATCH_TEMPLATE_PATH` constant in
zplGenerator.ts so the path appears once instead of twice. The
constant's JSDoc sits above it; the function's JSDoc is attached
to the function (was orphaned in the first pass).
5. Add `selectBatchInputs` returning `{dataset, mapping} | null` and
derive `selectCanBatchExport` from it. The hook's batch paths
call `selectBatchInputs(getState())` once and consume the narrowed
pair, instead of duplicating the predicate via redundant null
guards. Boolean selector still drives the UI's menu-enable state.
6. canBatchExport lifts from useZplImportExport's hook-local
derivation to the store-level selector, matching the existing
selectPreviewLocksEditor / selectLabelaryNoticeRequired pattern.
{cmd: 'FC',status: 'unsupported',description: 'Field clock — inserts date/time into field data'},
54
54
{cmd: 'FE',status: 'unsupported',description: 'Field concatenation — appends data to the current field'},
55
55
{cmd: 'FM',status: 'unsupported',description: 'Multiple field origin locations'},
56
-
{cmd: 'FN',status: 'unsupported',description: 'Field number — variable field placeholder for recall/merge'},
56
+
{cmd: 'FN',status: 'supported',description: 'Field number — variable field placeholder, lands in the Variables tab on import and emits as ^FN{slot} on export'},
57
57
{cmd: 'FP',status: 'unsupported',description: 'Field parameter — sets character-by-character text direction'},
58
-
{cmd: 'FV',status: 'unsupported',description: 'Field variable — supplies data for a ^FN field at print time'},
58
+
{cmd: 'FV',status: 'supported',description: 'Field variable — supplies data for a ^FN field at print time; populates the bound Variable\'s default on import'},
59
59
60
60
// ── Fonts & text ──────────────────────────────────────────────────────────
61
61
{cmd: 'A0',status: 'supported',description: 'Scalable/bitmap font 0 — primary designer font'},
description: 'Download graphic to printer storage (~DG)',
172
172
loss: 'Stores data on the physical printer; not relevant for canvas label design',
173
173
},
174
+
175
+
// ── Templates & batch merge (round-trip on parse; emit as ^DFR/^XFR
176
+
// for CSV-driven batch printing) ──────────────────────────────────────────
177
+
{cmd: 'DF',status: 'supported',description: 'Download format — used as ^DFR:LBL.ZPL to store the design template once, recalled per CSV row during batch export'},
178
+
{cmd: 'XF',status: 'supported',description: 'Recall format — pulled per row in batch export, paired with ^FN overrides'},
179
+
{cmd: 'XG',status: 'supported',description: 'Recall graphic — used together with ~DY for printer-resident images'},
180
+
{cmd: 'DY',status: 'supported',description: 'Download object (~DY) — embeds custom fonts and graphics so the printer can resolve ^A aliases and ^XG recalls'},
0 commit comments