Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Persist and clamp the settings list offset src/core/app/view.rs, src/tui/ui/settings.rs |
ViewState stores the settings scroll offset. draw_settings passes it to draw_settings_list, which clamps the offset before rendering and saves it afterward. A test checks persistence across frames and clamping when the list shrinks. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- LargeModGames/spotatui#935: Adds settings rows and button rendering in the same settings list renderer extended here.
Merge Risk: 
Minimal · up to eeb53
-
The settings scroll change is ready to merge after normal checks.
Pre-merge checks: 
4
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
✨ Simplify code
-
- Commit to this branch
- 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.
Comment @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Preserve the settings list’s scroll offset between frames and clamp it when the list shrinks. Adds regression coverage for both behaviors.
Testing
cargo fmt --allcargo clippy --no-default-features --features telemetry,tui -- -D warningscargo test --no-default-features --features telemetry,tuicargo test --no-default-features --features telemetry,tui settings_scroll_offset_survives_frames_and_clamps_when_the_list_shrinksAdditional notes
This fixes scrolling behavior without changing the settings screen’s appearance.
Summary by CodeRabbit