Skip to content

feat(devices): map Attack Shark RS3 Ultra artwork - #1669

Open
Rodtree wants to merge 3 commits into
OpenMouse-Project:mainfrom
Rodtree:attack-shark-rs3-pr
Open

Rodtree wants to merge 3 commits into
OpenMouse-Project:mainfrom
Rodtree:attack-shark-rs3-pr

Conversation

@Rodtree

@Rodtree Rodtree commented Dec 1, 2026 •

Copy link
Copy Markdown

Summary

  • Map the reported name Attack Shark RS3 Ultra to the reserved attackshark-rs3-ultra.png artwork filename.
  • Add a regression test and document the pending maintainer artwork upload.

The repository artwork guide asks contributors not to include binary images in code PRs. The transparent PNG based on the supplied photo is available separately for an artwork request; a maintainer can review its redistribution terms and upload it to the image bucket.

Verification

  • npm run build
  • npm test: 730 passing
  • npm run size: passing
  • Device image tests: 56 passing

The mapping can merge before the protocol package release; the artwork name resolves when the app receives that exact display name.

Note

Map Attack Shark RS3 Ultra display name to device artwork

Adds a case-insensitive name match in computeDeviceImageFilename in device-images.ts for the Attack Shark RS3 Ultra, allowing whitespace between "Attack" and "Shark." Matching display names resolve to attackshark-rs3-ultra.png.

  • Covers the case where the device identifier is null and only the display name is known
  • Adds a test in device-images.test.ts asserting the name resolves to the CDN URL
  • Documents in README.md that the artwork file is reserved and a maintainer must upload it after confirming redistribution rights; the panel shows a placeholder until then
  • Behavioral Change: names matching "Attack Shark RS3 Ultra" now show device artwork instead of the placeholder, once the image is uploaded

Macroscope summarized 1d1edbe.

Summary by CodeRabbit

  • New Features
    • Device image lookup now recognizes “Attack Shark RS3 Ultra” and maps it to its designated image. The device panel will continue to show a placeholder until the image is supplied and uploaded after redistribution rights are confirmed.
  • Documentation
    • Added guidance noting the image’s pending status and the conditions for making it available.

@github-actions github-actions Bot added the type: enhancement PR title category: enhancement label Dec 1, 2026
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The device image lookup now maps “Attack Shark RS3 Ultra” to attackshark-rs3-ultra.png. A test checks the resulting CDN image. The README notes that the image must be uploaded after redistribution rights are confirmed.

Changes: Device image mapping

Layer / File(s) Summary
Name fallback and supporting updates
src/shared/device-images.ts, src/shared/device-images.test.ts, public/devices/README.md
The lookup matches “Attack Shark RS3 Ultra” case-insensitively and returns attackshark-rs3-ultra.png. A test checks the CDN image. The README records that the image remains a placeholder until a maintainer uploads it after redistribution rights are confirmed.

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

Change: Feature

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

Suggested reviewers: snekxs, akinome, macroscopeapp

Merge Risk: Minimal · up to 1d1ed

This adds a name-to-artwork mapping for the Attack Shark RS3 Ultra. Until the image is uploaded the device panel shows the placeholder. The change is small, tested and easy to revert.

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): map Attack Shark RS3 Ultra artwork" names the main change. The changeset maps the display name Attack Shark RS3 Ultra to the reserved attackshark-rs3-ultra.png artwork in dev…
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): map Attack Shark RS3 Ultra artwork" names the main change. The changeset maps the display name Attack Shark RS3 Ultra to the reserved attackshark-rs3-ultra.png artwork in device-images.ts, adds a regression test, and documents the pending image upload in the README. The title is specific and concise, and it follows a conventional commit style.

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 1d1edbe.

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: documentation Documentation labels Dec 1, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved at 1d1edbe

Macroscope's review found this PR approvable — Adds an Attack Shark RS3 Ultra artwork mapping and documents that the image awaits redistribution clearance and upload. Existing placeholder fallback limits the impact of the currently unavailable asset to presentation.

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: 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