Skip to content

feat(devices): add Redragon M991 artwork - #1652

Open
D3anDark wants to merge 1 commit into
OpenMouse-Project:mainfrom
D3anDark:feat/redragon-m991
Open

D3anDark wants to merge 1 commit into
OpenMouse-Project:mainfrom
D3anDark:feat/redragon-m991

Conversation

@D3anDark

@D3anDark D3anDark commented Nov 30, 2026 •

Copy link
Copy Markdown

Adds device artwork for the Redragon M991, whose driver support is in OpenMouse-Project/mouse-protocol#324.

  • public/devices/redragon-m991.png: top-down render of the original 2.4 GHz M991 (2022 listing, 25a7:fa07) from Redragon's product gallery (cdn.shopify.com/s/files/1/0012/4957/4961/products/WirelessGamingMouse_2.png, already transparent). Trimmed and centered at 644 px tall on a transparent 700x700 canvas, like attackshark-r2.png.
  • src/shared/device-images.ts: name rule Redragon M991 and a LOCAL_OVERRIDES entry, so it is served from the repo until a maintainer uploads it to the bucket.
  • public/devices/README.md: provenance note. It is vendor product art, so redistribution terms still need the usual confirmation.
  • Test: the M991 resolves to the render, the M719RGB-PRO does not.

The image only appears once the protocol PR is released, since the name comes from that driver.

npm test passes (the 6 Discord tests are cancelled on main too), npm run build passes.

Note

Add Redragon M991 device image and resolver mapping

Adds the redragon-m991.png asset under public/devices/ and documents its source and local serving path in README.md. The name resolver computeDeviceImageFilename in device-images.ts now matches "Redragon M991" case-insensitively and LOCAL_OVERRIDES maps the filename to /devices/redragon-m991.png. Tests in device-images.test.ts verify the M991 mapping and that the M719RGB-PRO does not resolve to this image. Risk: redistribution terms for the image are unconfirmed; README notes to verify before public release.

Macroscope summarized ea90e87.

Summary by CodeRabbit

  • New Features

    • Added an image for the Redragon M991 device.
  • Documentation

    • Added an image provenance note, including a reminder to confirm redistribution terms before public release.

Top-down render of the original 2.4 GHz M991 from Redragon's product
gallery, normalized to the 700x700 transparent canvas of the other mice.
Served from the repo through LOCAL_OVERRIDES until it is in the bucket.
@github-actions github-actions Bot added the type: enhancement PR title category: enhancement label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The device image mapping now resolves “Redragon M991” to a checked-in image served through LOCAL_OVERRIDES. A test checks the mapping and confirms that “Redragon M719RGB-PRO” does not resolve to that image. The device README adds provenance and licensing notes.

Changes: Redragon M991 image

Layer / File(s) Summary
Image name resolution and local serving
src/shared/device-images.ts, src/shared/device-images.test.ts, public/devices/README.md
The name rule maps Redragon M991 to redragon-m991.png, and LOCAL_OVERRIDES serves it from /devices/redragon-m991.png. Tests check the mapping and a non-matching device name. The README documents the image’s provenance and redistribution terms.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Possibly related issues

  • OpenMouse-Project/openmouse#1595: The PR uses the requested device-photo mechanism, but does not add the MX Master 4 image.
  • OpenMouse-Project/openmouse#1594: The PR extends the device-image mechanism, but does not add an SLX image or Finalmouse SLX support.

Suggested labels: area: devices, area: artwork, type: enhancement

Suggested reviewers: snekxs, akinome, 7eedle

Merge Risk: Minimal · up to ea90e · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(devices): add Redragon M991 artwork" names the main change: adding the Redragon M991 device image. The changeset adds public/devices/redragon-m991.png, a name rule and LOCAL_OVERRIDES …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(devices): add Redragon M991 artwork" names the main change: adding the Redragon M991 device image. The changeset adds public/devices/redragon-m991.png, a name rule and LOCAL_OVERRIDES entry in src/shared/device-images.ts, a test, and a provenance note in the devices README. The title is specific and concise and matches the PR objectives. It does not cover the README note or the test, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d81f493 and ea90e87.

Files ignored due to path filters: 1

  • public/devices/redragon-m991.png is excluded by !**/*.png
Files selected for processing: 3

  • public/devices/README.md
  • src/shared/device-images.test.ts
  • src/shared/device-images.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions github-actions Bot added area: ui Interface and styling area: artwork Device images area: documentation Documentation labels Nov 30, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 30, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved at ea90e87

Macroscope's review found this PR approvable — Adds locally served Redragon M991 artwork with a model-specific mapping, regression assertions, and provenance notes. The change is limited to image presentation and does not alter device behavior or customer data.

Notes:

  • Your repo's Minimum Blocking Severity is Off, so correctness findings do not automatically block approval.

You can add or adjust custom eligibility rules. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: artwork Device images area: documentation Documentation area: ui Interface and styling type: enhancement PR title category: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant