[PM-32808] feat: Add Driver's License vault, listing, and search surfaces#6909
Conversation
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR integrates the Driver's License cipher type across the vault landing page, item listing screens, search surfaces, and the listing-row overflow menu (copy license number). The implementation mirrors the established Bank Account integration pattern across every touched layer (state, view, navigation, search, overflow actions, and tests). All three prior review threads on this PR have been addressed — the obsolete Code Review DetailsNo new findings. The change is consistent with the sibling Bank Account pattern, the license group visibility is correctly gated on PR Metadata Assessment
|
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportWidth="24" | ||
| android:viewportHeight="24"> | ||
| <path | ||
| android:pathData="M20,4H4C2.9,4 2,4.9 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V6C22,4.9 21.1,4 20,4ZM20,18H4V6H20V18ZM8,12C9.1,12 10,11.1 10,10C10,8.9 9.1,8 8,8C6.9,8 6,8.9 6,10C6,11.1 6.9,12 8,12ZM8,9.5C8.28,9.5 8.5,9.72 8.5,10C8.5,10.28 8.28,10.5 8,10.5C7.72,10.5 7.5,10.28 7.5,10C7.5,9.72 7.72,9.5 8,9.5ZM4,16.5V15C4,13.67 6.67,13 8,13C9.33,13 12,13.67 12,15V16.5H4ZM5.85,15H10.15C9.61,14.57 8.62,14.5 8,14.5C7.38,14.5 6.39,14.57 5.85,15ZM13,9H18V10.5H13V9ZM13,12H17V13.5H13V12Z" | ||
| android:fillColor="#175DDC" | ||
| android:fillType="evenOdd"/> | ||
| </vector> |
There was a problem hiding this comment.
♻️ DEBT: New drawable is unused — driver's license rows are rendered with BitwardenDrawable.ic_id_card.
Details
VaultContent.kt:303-305 uses BitwardenDrawable.ic_id_card for the driver's license group icon (consistent with the PR description: "tappable row using the Identity icon"), and a repo-wide search finds no other references to ic_drivers_license. The new resource ships in the APK without being rendered anywhere.
Additionally, the asset hard-codes android:fillColor="#175DDC" rather than using the themed tint that sibling icons like ic_id_card rely on, so even if it were wired in it would not theme correctly across light/dark modes.
Either remove the drawable, or wire it into the driver's license group (VaultContent.kt) plus any other surfaces that should distinguish licenses from identities, and convert the fill to a theme attribute.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6909 +/- ##
==========================================
+ Coverage 86.07% 86.11% +0.04%
==========================================
Files 857 857
Lines 61557 61617 +60
Branches 8948 8982 +34
==========================================
+ Hits 52986 53064 +78
+ Misses 5504 5471 -33
- Partials 3067 3082 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3d25b0c to
1b2216c
Compare
82a1975 to
1eeba27
Compare
1eeba27 to
d4c07be
Compare
1b2216c to
8d936e5
Compare
02b74aa to
890aad2
Compare
Make License a first-class item type so users can browse licenses from the vault group, scope item-listing screens to licenses, search licenses in isolation, and quick-copy the license number from overflow menus.
8d936e5 to
0fae7af
Compare
1d52bc2 to
e8f5dfe
Compare
|
Thanks @david-livefront |
🎟️ Tracking
📔 Objective
Integrates the Driver's License cipher type into the broader vault surfaces so users can discover and act on license entries outside of direct navigation. Adds the License section on the vault landing (count + tappable row using the Identity icon), enables the Licenses listing screen, surfaces licenses in vault search results, and emits the "Copy license number" quick action in the listing-row overflow menu (driven by
CopyableCipherFields.DRIVERS_LICENSE_LICENSE_NUMBER).📸 Screenshots