Repository navigation
Conversation
- Match the X2A by its reported name before the generic Pulsar fallback, so it stops borrowing the X2 V2 shell. - Resolve to pulsar-x2a.png; the art upload is tracked in discussion OpenMouse-Project#1673, since the artwork workflow keeps binaries out of the PR. - Cover the Wireless and Mini names in the device-image test.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Maps Pulsar X2A and X2A Mini names to dedicated artwork and documents the pending upload. The change is presentation-only, with existing image-error fallbacks covering the missing asset. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Summary
Adds the Pulsar X2A name rule before the generic Pulsar fallback, so the connected Pulsar X2A Wireless resolves to
pulsar-x2a.pnginstead of borrowing the X2 V2 shell.This is the mapping-only half of the artwork workflow: the render itself is not committed. Source, normalization and licensing are recorded in the artwork request discussion #1673. Once a maintainer uploads
pulsar-x2a.pngto theopenmouse-devicesbucket, the device panel shows it; until then the image fails gracefully and the panel keeps its placeholder.Changes
src/shared/device-images.ts:Pulsar X2A(Wireless and Mini) →pulsar-x2a.png, before the generic/pulsar/irule. The receiver-name fallback still resolves topulsar-x2-v2.pnguntil a model name is known.src/shared/device-images.test.ts: covers both names.public/devices/README.md: records the source and that the upload is pending.Testing
npm run check— build, size and 731 tests pass.Refs #1673.
Note
Add Pulsar X2A device image mapping to
computeDeviceImageFilenamepulsar-x2a.png, placed before the generic Pulsar match so other Pulsar names still map topulsar-x2-v2.pngpulsar-x2a.pngfile must be uploaded to the CDN; without it, matched devices will reference a missing imageMacroscope summarized 2ca0ece.
Summary by CodeRabbit