Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions public/devices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@ render for the X2 v2 [Red Edition] Gaming Mouse (top-down view of the Medium
shell), cropped to the mouse, resized, and centered on a transparent canvas.
Confirm redistribution terms before including it in a public release package.

`pulsar-x2a.png` is the top-down X2A render from Pulsar Gaming Gears' Shopify
product gallery
(`cdn.shopify.com/s/files/1/0455/0914/8840/products/X2AgamingMouse_top-234273.png`),
cropped to the mouse and centered on an 800×800 transparent canvas to match
`pulsar-x2-v2.png`. **Needs a maintainer upload** — the name mapping in
`src/shared/device-images.ts` is in place, so the panel falls back to its
placeholder until the file is in the bucket. Confirm redistribution terms
before including it in a public release package.

`wlmouse-beast-max.png` is the black colorway, extracted from WL Mouse Hub
(`gm.wlmouse.gg`, the official WLMouse configurator) after pairing a Beast Max
over WebHID — the driver only serves the connected device's own product
Expand Down
5 changes: 5 additions & 0 deletions src/shared/device-images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ test("Pulsar 4K receiver artwork follows the reported mouse name", () => {
assert.equal(deviceImage(null, "Pulsar X2 V2 Pro"), CDN + "pulsar-x2-v2.png");
});

test("Pulsar X2A resolves to its own render", () => {
assert.equal(deviceImage(null, "Pulsar X2A Wireless"), CDN + "pulsar-x2a.png");
assert.equal(deviceImage(null, "Pulsar X2A Mini Wireless"), CDN + "pulsar-x2a.png");
});

test("VXE R1 family resolves by name across every generation", () => {
// The series render was never uploaded to the bucket, so every R1
// generation falls back to the locally committed R1 SE art until it is.
Expand Down
3 changes: 3 additions & 0 deletions src/shared/device-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ function computeDeviceImageFilename(displayName: string): string {
if (/\bpro\s*intellimouse\b/i.test(displayName)) return "microsoft-pro-intellimouse.png";
if (/\bintellimouse\b/i.test(displayName)) return "microsoft-classic-intellimouse.png";
if (/\bpulsefire\s*haste\b/i.test(displayName)) return "hyperx-pulsefire-haste.png";
// The X2A shell is its own render; the generic Pulsar fallback below still
// covers the shared 4K receiver until a model name is known.
if (/\bpulsar\s*x2a\b/i.test(displayName)) return "pulsar-x2a.png";
// Pulsar 4K Wireless Receiver ships with the X2 V2 4K dongle kit; the receiver
// product id is not yet published, so match the name reported by WebHID.
if (/pulsar/i.test(displayName)) return "pulsar-x2-v2.png";
Expand Down