feat(library): allow opening options panel from search bar#1489
Conversation
- Expose an onOptionsClick callback from LibrarySearchBar. - Add a "Tune" icon button in the search bar input area. - Allow users to adjust filters and sorting without canceling their active search.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe search bar replaces the clear (X) control with an always-visible Tune (options) button and threads a new ChangesSearch Options Button Feature
🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs:
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Hey, recording please |
|
Sure, I've already attached the recording in the PR description. |
| val textColor = MaterialTheme.colorScheme.onSurface | ||
| val hintColor = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f) | ||
| val cursorColor = MaterialTheme.colorScheme.primary | ||
| // val cursorColor = MaterialTheme.colorScheme.primary |
There was a problem hiding this comment.
Just remove the line here if not used. We've got git history, so no need to comment out unused code :)
|
One suggestion, otherwise this looks pretty good! |
This pull request introduces a shortcut to access the library options and filters panel directly from the active search bar interface.
Why is this needed?
Previously, if a user had a restrictive filter active (such as "Installed" games) and searched for an uninstalled title, they had to exit the search bar, open the options panel, modify or clear the filter, re-trigger the search, and re-type their query.
Adding an options button directly inside the search bar input simplifies this process, allowing users to adjust active filters or sorting criteria on the fly without losing their current search context.
What changed?
LibrarySearchBar.kt: Added anonOptionsClickcallback parameter toLibrarySearchBarandSearchBarInput. Integrated an icon button (Icons.Default.Tune) next to the clear button to trigger this action.LibraryScreen.kt: Wired the new callback withinLibraryScreenContentto toggle the options panel visibility (onOptionsPanelToggle(true)).Note: Since this addresses an internal issue, the specific tracker ID is not referenced. This implementation was prepared with the assistance of an AI tool.
Recording
Grabacion.2026-05-30.093818.mp4
Grabacion.2026-05-30.124142.mp4
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by CodeRabbit