Repository navigation
[ryoku] Bound music backdrop memory to the visible widget - #850
Conversation
Note: Fixed: Music widgets use less memory for artwork and local GIFs.
neur0map
left a comment
There was a problem hiding this comment.
🔍 Review findings — 2 blocking issue(s): see the inline comments and the walkthrough for details.
| readonly property bool isVideo: /\.(mp4|webm|mkv|mov|m4v|avi)(\?|$)/.test(root.lc) | ||
| readonly property bool isGif: /\.gif(\?|$)/.test(root.lc) | ||
|
|
||
| readonly property bool displayed: root.visible && root.hasSource && width > 0 && height > 0 |
There was a problem hiding this comment.
🟡 minor · Maintainability · fix: low effort
The commit subject lacks the required scope: after [ryoku], so it does not follow the repository's commit format. Amend it to include a scope.
Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.
| source: root.displayed && root.isGif ? root.srcUrl : "" | ||
| sourceSize: root.decodeSize | ||
| playing: root.active && visible | ||
| cache: true | ||
| // Sequential network sources need cached frames to loop. | ||
| cache: /^https?:/i.test(root.source) |
There was a problem hiding this comment.
🟡 minor · Maintainability · fix: low effort
This user-facing memory improvement has no matching area CHANGELOG.md update in the diff. Add a note so users can find the change.
Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.
🦊 mika's reviewSummary
Estimated review effort: 1/5 · risk: low 📁 Walkthrough details
|
| Severity | Category | Fix effort | File | Issue |
|---|---|---|---|---|
| 🟡 minor | maintainability | low | ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml |
Maintainability — The commit subject lacks the required scope: after [ryoku], so it does not follow the repository's commit format. Amend it to include a scope. |
| 🟡 minor | maintainability | low | ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml |
Maintainability — This user-facing memory improvement has no matching area CHANGELOG.md update in the diff. Add a note so users can find the change. |
⚡ Quick fixes by effort
Low effort (apply from the diff):
ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml:23 — Maintainability — The commit subject lacks the requiredscope:after[ryoku], so it does not follow the repository's commit format. Amend it to include a scope.ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml:79 — Maintainability — This user-facing memory improvement has no matching areaCHANGELOG.mdupdate in the diff. Add a note so users can find the change.
🤖 Prompt for AI agents (click, copy, paste into Claude/Codex)
Fix the following issues found by mika-agent on Ryoku-dev/ryoku#850 (branch perf/music-backdrop-memory):
- ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml:23-23 — Maintainability (minor severity, low effort): The commit subject lacks the required `scope:` after `[ryoku]`, so it does not follow the repository's commit format. Amend it to include a scope.
- ryoku/shell/quickshell/shell/modules/desktop/music/MusicBackdrop.qml:79-83 — Maintainability (minor severity, low effort): This user-facing memory improvement has no matching area `CHANGELOG.md` update in the diff. Add a note so users can find the change.
For each: verify it is real in the current code, apply the smallest correct fix, and run the repo's tests. Skip anything already resolved and say why.
🧪 No relevant tests detected in the diff.
🚦 Merge recommendation: needs_review
🦊 Generated by Mika — the Ryoku org's self-hosted AI code reviewer. Machine findings: verify before merging.
|
Thanks for the work here, this needs to target unstable-dev instead of main |
|
Merged with a small tweak so resizing the widget doesn't restart the gif, thanks for this |
Note: Fixed: Music widgets use less memory for artwork and local GIFs.
What changed
Describe the change and why it is needed.
Area
How it was tested
Describe how you verified this on a running system, not only that it parses.
Checklist
[area] scope: summarycommit subject.CHANGELOG.mdupdated in the area I touched.--no-verify.luac -p), shell scripts passbash -n, and QML passesqmllintwhere applicable.