CMM-1160: Fix WP Media Library search overlap#22531
Conversation
When searching the WP Media Library with no results, the empty view is shown and keyboard is hidden. If the user taps to continue typing, the empty view is now hidden immediately to prevent the keyboard from covering it. The empty view reappears after search completes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Generated by 🚫 Danger |
This comment was marked as outdated.
This comment was marked as outdated.
|
| App Name | WordPress | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22531-48dd1d3 | |
| Commit | 48dd1d3 | |
| Direct Download | wordpress-prototype-build-pr22531-48dd1d3.apk |
|
| App Name | Jetpack | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22531-48dd1d3 | |
| Commit | 48dd1d3 | |
| Direct Download | jetpack-prototype-build-pr22531-48dd1d3.apk |
Position the empty search results view at the top of the screen so it remains visible when the soft keyboard appears. This is done by adding vertical bias of 0 to the ConstraintLayout. Also removed the code that was hiding the keyboard when empty results were shown. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
Claude finished @nbradbury's task in 51s —— View job Code Review Complete
Review SummaryThis PR effectively solves the keyboard overlay issue by repositioning the empty view to the top of the container and removing unnecessary image elements from the search empty state. The changes are clean, focused, and well-aligned with the existing codebase patterns. Positive Observations✅ Clean removal of unused functionality - The PR removes image handling code ( ✅ Simple, effective layout solution - Using ✅ Consistent with existing patterns - As noted in the PR description, this approach matches the existing media search behavior ✅ Proper cleanup - Removed unused import ( ✅ Maintains separation of concerns - ViewModel changes are kept separate from Fragment UI logic changes Minor ObservationsCode StructureThe changes maintain good architectural patterns:
Testing ConsiderationThe PR includes clear testing instructions and a demo video. Consider verifying these scenarios:
Edge Cases to VerifyWhile the implementation looks solid, ensure these scenarios work correctly:
No Issues FoundNo bugs, security issues, performance problems, or code quality concerns identified. The implementation is straightforward and appropriate for the problem being solved. Overall Assessment: ✅ Approved - Well-executed fix with clean code removal and proper architectural separation. |





Description
Fixes CMM-1160
Previously, when creating a post and searching the WP Media Library with no results, the empty view is shown and the keyboard is hidden, but if the user tapped to continue typing, the keyboard would cover the empty view.
This PR fixes the problem by moving the empty view to the top so the keyboard won't cover it. I initially wasn't wild about this solution, but it turns out we already do this in the existing media search so it seemed like the right thing to do.
I also removed the image from the empty search results view as part of CMM-1037.
Testing instructions
Media picker search empty state:
search.mp4