Repository navigation
fix(settings): width-check the Playing Icon like the other fixed-cell icons - #644
Conversation
… icons The loader and the docs require playing_icon to be one terminal cell, but its Settings arm saved any value, so `>>` widened the playing row and was then dropped on the next launch. Move it into the one-cell group that already checks the gauge and sort icons, and say so in the row description. Fixes LargeModGames#597 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: LargeModGames/spotatui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughSettings validates ChangesPlaying icon validation
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Settings rejects empty or multi-cell playing icons while preserving the configured icon. The change appears ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Fixes #597.
"behavior.playing_icon"moves into the one-cell group inapply_settings_changes, with an inner arm above the existing_ => {}; the old separate arm is gone. The error path is unchanged (settings_error→set_status_message). The row description insettings_schema.rsnow reads "Single-cell icon for the playing row". A rejected value stays in the Settings row, like the gauge icons.Tests:
saving_a_two_cell_playing_icon_keeps_the_default_and_reports_it(">>"and""keep"▶", status message mentions "one terminal cell") andsaving_a_one_cell_playing_icon_applies_it("»"is saved, no status message).Testing
cargo fmt --all -- --check: cleancargo clippy --no-default-features --features telemetry,tui -- -D warnings: cleancargo test --no-default-features --features telemetry,tui: 1311 passed, 0 failedcargo test --no-default-features --features telemetry,tui settings_apply: 6 passed, including both new testsAdditional notes
This is one of five small PRs I opened together (for #606, #598, #597, #596 and #601). Each changelog entry sits at a different spot in
[Unreleased], and I test-merged all five in three orders without conflicts; together they pass the slim checks (1327 tests).Written with AI coding assistants: Codex drafted fixes for these issues, and Claude Code rebuilt each one on current main against the issue text and re-tested it.
🤖 Generated with Claude Code
Summary by CodeRabbit