GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(catalog): the coverage tracks Docker instead of linting · u8array/ZPLab@7f01e58

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • docs
    • zpl-coverage.md
  • packages/core/src/catalog
    • catalog.test.ts
    • commands.json
    • index.ts
    • schema.ts
  • scripts
    • catalog.d.mts
    • catalog.mjs
    • gen-coverage.mjs
  • src
    • components/Output
      • ZplCatalog.test.tsx
      • ZplCatalogDetail.tsx
    • locales
      • ar.ts
      • bg.ts
      • cs.ts
      • da.ts
      • de.ts
      • el.ts
      • en.ts
      • es.ts
      • et.ts
      • fa.ts
      • fi.ts
      • fr.ts
      • he.ts
      • hr.ts
      • hu.ts
      • it.ts
      • ja.ts
      • ko.ts
      • lt.ts
      • lv.ts
      • nl.ts
      • no.ts
      • pl.ts
      • pt.ts
      • ro.ts
      • sk.ts
      • sl.ts
      • sr.ts
      • sv.ts
      • tr.ts
      • zh-hans.ts
      • zh-hant.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ On desktop, **File → Settings… → App → MCP** starts a local MCP server,
187187
## Coverage
188188

189189
<!-- coverage:start (generated from the command catalog by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
190-
125 of the 225 ZPL II commands are modelled in the browser; desktop covers 2 more with a connected printer. 2 more are planned for both builds. 74 need a connected printer and are planned for desktop. The source editor checks parameters for 1 command. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
190+
125 of the 225 ZPL II commands are modelled in the browser; desktop covers 2 more with a connected printer. 2 more are planned for both builds. 74 need a connected printer and are planned for desktop. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
191191

192192
| Area | Modelled |
193193
|---|---|
Collapse file

‎docs/zpl-coverage.md‎

Copy file name to clipboardExpand all lines: docs/zpl-coverage.md
+144-144Lines changed: 144 additions & 144 deletions
  • Display the source diff
  • Display the rich diff
Large diffs are not rendered by default.
Collapse file

‎packages/core/src/catalog/catalog.test.ts‎

Copy file name to clipboardExpand all lines: packages/core/src/catalog/catalog.test.ts
+10-3Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from "vitest";
22
import raw from "./commands.json";
3-
import { catalogSchema } from "./schema";
3+
import { catalogSchema, type StoredCommandEntry } from "./schema";
44
import { CATALOG_SECTIONS, ZPL_COMMANDS, catalogEntry, commandId, commandIds, filterCatalog } from "./index";
55

66
describe("zpl command catalog", () => {
@@ -9,6 +9,12 @@ describe("zpl command catalog", () => {
99
expect(result.success ? [] : result.error.issues).toEqual([]);
1010
});
1111

12+
it("stores a docker level only where it diverges from the web", () => {
13+
for (const c of (raw as unknown as { commands: StoredCommandEntry[] }).commands) {
14+
if (c.support.docker !== undefined) expect(c.support.docker, c.cmd).not.toBe(c.support.web);
15+
}
16+
});
17+
1218
it("tracks the whole ZPL II guide: unique ids, grouped by section in section order", () => {
1319
// Adding or removing a command is a deliberate act that must move this pin.
1420
expect(ZPL_COMMANDS).toHaveLength(225);
@@ -49,6 +55,7 @@ describe("zpl command catalog", () => {
4955
const rank = { no: 0, planned: 1, yes: 2 } as const;
5056
for (const c of ZPL_COMMANDS) {
5157
expect(rank[c.support.desktop], c.cmd).toBeGreaterThanOrEqual(rank[c.support.web]);
58+
expect(rank[c.support.docker], c.cmd).toBeGreaterThanOrEqual(rank[c.support.web]);
5259
// The coverage legend promises the reason in the name: a qualifier after a comma.
5360
if (Object.values(c.support).every((level) => level === "no")) expect(c.title, c.cmd).toMatch(/,/);
5461
}
@@ -61,8 +68,8 @@ describe("zpl command catalog", () => {
6168
expect(catalogEntry("~HL")).toBe(catalogEntry("^HL"));
6269
expect(commandId(catalogEntry("~HL")!)).toBe("^HL");
6370
// Prefix twins with diverging support are separate entries.
64-
expect(catalogEntry("^PH")?.support).toEqual({ web: "yes", desktop: "yes", lint: "no" });
65-
expect(catalogEntry("~PH")?.support).toEqual({ web: "no", desktop: "planned", lint: "no" });
71+
expect(catalogEntry("^PH")?.support).toEqual({ web: "yes", desktop: "yes", docker: "yes" });
72+
expect(catalogEntry("~PH")?.support).toEqual({ web: "no", desktop: "planned", docker: "no" });
6673
expect(catalogEntry("^QQ")).toBeUndefined();
6774
});
6875

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.