Repository navigation
[PM-24364] fix: [Android] Import logins card is not dismissed [bug-factory poc] - #7486
Conversation
…ctory poc] Automated fix from the AI-49 bug factory. Proof: ./gradlew :app:testStandardDebugUnitTest --tests "com.x8bit.bitwarden.ui.vault.feature.importlogins.ImportLoginsViewModelTest" must fail on base and pass with the fix.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7486 +/- ##
==========================================
- Coverage 86.80% 83.32% -3.48%
==========================================
Files 895 895
Lines 65676 68438 +2762
Branches 9384 9384
==========================================
+ Hits 57007 57027 +20
- Misses 5189 7931 +2742
Partials 3480 3480
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:
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This bugfix makes |
There was a problem hiding this comment.
🔵 Needs a closer look
No blocking findings remain, but the PR explicitly requires owning-team review before merge.
0 open findings
What changed in this PR
Fixes the vault’s import-logins card remaining visible after choosing “Import logins later” from the error dialog.
Changes:
- Persists card dismissal and enables the Settings badge before navigating back.
- Extends the existing regression test to verify both saved values.
| File | Description |
|---|---|
| app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/importlogins/ImportLoginsViewModelTest.kt | Verifies dismissal and badge persistence. |
| app/src/main/kotlin/com/x8bit/bitwarden/ui/vault/feature/importlogins/ImportLoginsViewModel.kt | Saves both preferences when acknowledging the sync failure. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
branch: PM-24364-import-logins-card-not-dismissed
base: main
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-24364
📔 Objective
Automated fix produced by the bug factory (AI-49 proof of concept). Needs review from the owning team before merge.
verified: genuine, live, unduplicated. On the device, "Import logins later" on the import Error dialog returns to My vault with the card still shown. The other "Import logins later" path, on the same build and account, hides the card and sets the Settings badge. The only difference between the two is the missing
storeShowImportLogins(false)inImportLoginsViewModel.kt:87-92.📸 Screenshots
The bug was reproduced on an emulator before the fix. The fix itself is proven by a JVM unit test.
🧪 Proof
./gradlew :app:testStandardDebugUnitTest --tests "com.x8bit.bitwarden.ui.vault.feature.importlogins.ImportLoginsViewModelTest"on the base code (must fail) exited 1; with the fix (must pass) exited 0.Base run
Fix run
🤖 Automated review
⏰ Reminders before merge