Repository navigation
fix(tv): let Down leave the search field after Back hides the keyboard - #561
Merged
Quick104 merged 1 commit intoOct 13, 2026
Merged
Conversation
On Android TV, typing a search query and then dismissing the on-screen keyboard with Back left the viewer stuck on the search field: D-pad Down did nothing, so the results and the "Available to request" row could only be reached by going up into the top menu and back down. The search screen tracked the keyboard with its own isKeyboardOpen flag, set on Select and cleared only by the keyboard's Search action, by focus leaving the field, or by the screen's BackHandler. Back pressed while the IME is up never reaches that BackHandler: the IME consumes the key to hide itself. The flag stayed true, the field stayed editable, and the text field swallowed Down as a caret move before the Down-to-chips handler (gated on the flag being false) could run. The screen now follows WindowInsets.isImeVisible: once the IME has appeared after Select and then goes away, the field returns to read-only and Down moves to the filter chips and results again. The flag ignores the frames between show() and the IME surfacing, so opening the keyboard and typing are unchanged.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
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 |
neurekadev
pushed a commit
to neurekadev/silo-android
that referenced
this pull request
Oct 14, 2026
Silo-Server#439) * feat(requests): make requests look and behave like the rest of the app Port the iOS and tvOS Requests redesign (silo-apple Silo-Server#558, Silo-Server#561, Silo-Server#540) to Android phone and Android TV. - Shared: the server's `state` decides display status; a four-step progress track; My Requests buckets; a session detail cache with prefetch; admin approve/decline/retry with a 60-second hold after a lost response; create, cancel and moderation are never resent. - Phone: large-title hub with a status summary, My Requests in grouped rows with a filter menu and swipe to cancel, a new Approvals page, and request detail on the library title hero. - TV: Requests becomes a top-bar tab in the Skyline layout, with a preview panel that shows status and progress, admin rows, and request detail on the library detail hero. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(requests): address review findings on request state and routing - Clear request session state on every feature reset (sign-in, sign-out, server and profile switches) and drop reads or mutation broadcasts that answer after a reset. - Approval reads: a newer read wins, and a read sent before a decision can't bring the decided row back. - Unconfirmed create and cancel holds now end only when a read shows the result, or after 60 seconds, like admin decisions. - A proxy's 502/503/504 without the server's problem body counts as an uncertain outcome. - Request detail reuses a /requests/mine read from the last 30 seconds, re-reading only to settle an uncertain action; the hub counts pending approvals from one page; a page's own decision no longer triggers a second read. - TV long-press actions are computed by the caller, so the dialog no longer writes parent state during composition. - RequestRouter moves to android-shared and handles every request tap on phone and TV, including both search screens. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(requests): address PR review findings - TV: each request detail opened from another one gets its own back-stack entry and view model, instead of reusing the current one. - TV: a failed action's message no longer replays when the page returns, and an approval queue that fails to load says so. - Request detail applies a create, cancel or decision result as soon as the server returns it, so a failed re-read can't bring back Request, Cancel or the decision buttons. - A failed or declined title the server calls requestable offers Request again instead of a blocking status. - A /requests/mine read that a create or cancel overtook keeps the patched list and doesn't count as fresh. - Phone: My Requests pull-to-refresh also refreshes the approvals card; grouped rows are separate lazy items; the row error text comes from the caller. - FEATURES.md no longer says the admin stats dashboard is exposed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: Silo-Server/silo-server#1201
Validation tasks: unblocks #339 C4
On Android TV, after typing in Search and hiding the keyboard with Back, pressing Down does nothing: focus stays in the search field, so a remote-only user can't reach the results or the "Available to request" section without going up to the top menu and back. This change lets Down leave the field once the keyboard is gone.
Approach
The screen tracked whether the keyboard was open with a flag it set and cleared itself. Back pressed while the keyboard is up is consumed by the keyboard and never reached the screen's handler, so the flag stayed set. The flag now follows
WindowInsets.isImeVisible: once the keyboard has appeared and then disappears, the field becomes read-only again, whatever closed it. Keyboards that never report insets behave as before.Validation
:androidTvAppsearch and usability tests: pass, including new tests for the keyboard state.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-561/
Risks
None identified.
Checklist
AI Disclosure
gh), Playwright, Xcodexcodebuild/simctl, Maestro, Android emulator/adbclaude-opus-5-5)