Repository navigation
[PM-36376] fix: Clear folder and owner dropdown lag after a card scan - #7353
Conversation
๐ค Bitwarden Claude Code ReviewOverall Assessment: APPROVE This is a narrowly scoped UI bug fix that clears focus before the folder and owner bottom sheets open in Code Review DetailsNo findings. Notes considered and intentionally not raised as findings:
|
There was a problem hiding this comment.
๐ข Approval recommended
The change is narrowly scoped to the reported UI issue and is backed by targeted regression tests that would fail without the focus-clearing behavior.
Pull request overview
Fixes a UI stutter on the Vault Add/Edit screen by clearing focus (and therefore dismissing the soft keyboard) before presenting the Folder and Owner selection UI, which is particularly noticeable after a card scan auto-focuses the cardholder name field.
Changes:
- Clear Compose focus before opening the Folder picker bottom sheet.
- Clear Compose focus before opening the Owner selector bottom sheet.
- Add regression tests asserting focus is cleared when tapping Folder/Owner selectors after focusing the cardholder name field.
File summaries
| File | Description |
|---|---|
| app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditItemContent.kt | Clears current focus before triggering folder/owner selection actions to avoid keyboard + bottom sheet animation contention. |
| app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditScreenTest.kt | Adds regression tests verifying the focused CardholderName field loses focus when Folder/Owner selectors are tapped. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
๐ก Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Reportโ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7353 +/- ##
==========================================
- Coverage 86.18% 85.99% -0.19%
==========================================
Files 900 982 +82
Lines 66138 68348 +2210
Branches 10144 10220 +76
==========================================
+ Hits 57001 58778 +1777
- Misses 5560 5971 +411
- Partials 3577 3599 +22
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Harness. ๐ New features to boost your workflow:
|
|
@david-livefront Thanks! |
๐๏ธ Tracking
https://bitwarden.atlassian.net/browse/PM-36376
๐ Objective
the folder dropdown then made the sheet stutter on its way in.
this screen already does.