Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Maps Zaopin Z1 PRO to its artwork filename while keeping PRO MAX on the placeholder. Existing image fallbacks limit missing-art impact; the proposed artwork is not published by this change. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Summary
Maps the Zaopin Z1 PRO to
zaopin-z1-pro.pngand records a suggested source image for the upload, followingpublic/devices/README.md("Contributing artwork"). The mapping lands first and the image follows.computeDeviceImageFilename(displayName) ... /\blamzu\s+maya$/ → lamzu-maya.png + /\bzaopin\s+z1\s+pro$/ → zaopin-z1-pro.pngThe Zaopin line shares
3554:f524(receiver) and3554:f526(cable), so the match is by name, not product id. The driver names the model from its handshake (OpenMouse-Project/mouse-protocol#322). The rule matches only a name ending in "Zaopin Z1 PRO", so "Zaopin Z1 PRO MAX" keeps the placeholder.For the maintainer upload (also in the README note): suggested source is the white Z1 PRO 4K render from the Mechkeys listing:
It is an 800×800 straight top-down PNG on an opaque light-grey backdrop, with the dongle and a "Z1 PRO" / Nordic 4K badge beside the mouse. It needs the mouse cropped out and the backdrop keyed to transparent. This is reseller-hosted vendor art with no stated licence, so it is a request pending licensing review.
Evidence
deviceImage(null, "Zaopin Z1 PRO")→unknown-device.pngAfter:
deviceImage(null, "Zaopin Z1 PRO")→zaopin-z1-pro.png;"Zaopin Z1 PRO MAX"→unknown-device.pngsrc/shared/device-images.test.ts: 63 of 63 pass.npm run check: typecheck and build pass. Tests: 807 pass, 0 fail, 6 cancelled. The 6 are the existing discord-card / feedback tests, which are also cancelled on main.Until the file is uploaded, the name resolves to a missing file and falls back at image-load time, like other pending art.
Merge Danger
Door: two-way
Blast Radius: narrow
One name rule, two test assertions and one README note. No device, protocol, string or UI changes.
🤖 Generated with Claude Code
Note
Add Zaopin Z1 PRO device image mapping
Adds a case-insensitive check in
computeDeviceImageFilenamefor display names ending in "Zaopin Z1 PRO". The end-of-string anchor keeps "Zaopin Z1 PRO MAX" and other longer model names from matching; those keep the unknown-device placeholder.Macroscope summarized a2a36cd.
Summary by CodeRabbit