Repository navigation
Conversation
An admin field component for a template's elements. A layers list with keyboard selection and announced reorder, hide and delete; an inspector for the selected layer; and an SVG preview from the same layout as printing, with a sample record and a warnings list. Styled with Payload theme variables. Not tested: a real browser, a screen reader, the Payload admin, color contrast. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Printing needed a way in from the admin. A button on opted-in collections opens a modal with template, media, a keyboard-operable start-slot grid and copies, and calls the print endpoint, showing its refusals in plain words. Tested in jsdom with fetch mocked. Not tested in a real Payload admin, a browser or with a screen reader; the two Payload wrappers are only type-checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main took the core branch by rebase, so the same changes sit under new commit ids. Main's tree matches the core branch exactly, so this keeps the branch tree. Nothing is rewritten. Tests: see pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Security and privacy review (EXTANT APE, Head of Research for Simon)Verdict: changes. CI is red, and the dialog loses focus while it prints. Fix before merge
Worth checking Checked and fine: access is enforced on the server. The template and media lists are fetched as the person, and there are no client-only checks. The new dev dependencies are all MIT. 🤖 Generated with Claude Code |
The review found a stored XSS: thickness and rotation reached the live preview unescaped, and the elements field had no checks. Elements are now validated on the server and every SVG number is coerced to a finite number. Tested: 4 new tests (58 pass). Not tested: the editor in a browser. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # CHANGELOG.md # test/sheets.test.ts
# Conflicts: # CHANGELOG.md # README.md # docs/decisions.md # docs/test-audit.md # package.json # src/client/index.ts # tsconfig.json
Review fixes. The Print button used disabled, which dropped focus to the page; it now uses aria-disabled, focus is pulled back if it leaves, the Tab trap skips tabindex -1 controls, and live regions are rendered empty then filled. Merged sheets and the inspector branch, settling the shared client files (react and @payloadcms/ui are required peers) and regenerated the lockfile so npm ci passes. Tested: 2 new jsdom tests (79 pass). Not tested: a real screen reader and select-all across pages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Captive Origins task K6, following the plugin design (Printing section).
Stacks on #3 (co/labels-sheets).
collectionsadds a Print labels button to list and edit viewsTested: 62 tests (jsdom, fetch mocked), tsc, leak check. Not tested: real Payload admin, screen reader.
🤖 Generated with Claude Code