[PM-32806] feat: Add Add/Edit support for Passport item type#6923
[PM-32806] feat: Add Add/Edit support for Passport item type#6923SaintPatrck wants to merge 4 commits into
Conversation
Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the Passport Add/Edit wiring across Code Review DetailsNo blocking findings. Implementation closely mirrors the License Add/Edit pattern, strings resolve to existing resources in |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6923 +/- ##
==========================================
- Coverage 86.29% 86.01% -0.28%
==========================================
Files 856 903 +47
Lines 62034 64067 +2033
Branches 9017 9072 +55
==========================================
+ Hits 53532 55109 +1577
- Misses 5404 5848 +444
- Partials 3098 3110 +12
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:
|
| .standardHorizontalMargin(), | ||
| ) | ||
| } | ||
| } |
There was a problem hiding this comment.
❓ QUESTION: Are screen tests for the new Passport Add/Edit Compose UI planned before this leaves draft?
Details
The sibling License Add/Edit PR (#6908) added ~148 lines of screen tests to VaultAddEditScreenTest.kt covering each field’s typing → action wiring (in ItemType_License changing ... should trigger ...TextChange). This PR adds 13 new input fields in vaultAddEditPassportItems plus a new VaultAddEditPassportTypeHandlers, but no corresponding entries were added to VaultAddEditScreenTest.kt.
ViewModel coverage for the PassportType actions is solid, but the screen-level coverage gap means a miswired handler (e.g., onPassportNumberTextChange accidentally hooked to a different field) would not be caught. Worth confirming whether these are deferred follow-up work or expected before promoting out of draft.
cafc904 to
e33e9ef
Compare
Replace the Passport stub in the Add/Edit flow with the full editor so people can create and update Passport items now that the View screen ships. Inputs cover the 13 fields exposed by the Passport SDK model; sensitive values reveal-toggle via the password field, and dates reuse the License date selection stub pending the shared native picker.
b3ac862 to
9aaa825
Compare
🎟️ Tracking
📔 Objective
Replace the Passport stub in the Add/Edit flow with the full editor so people can save Passport items through the normal create/edit flow. Inputs cover the 13 fields exposed by the SDK's
PassportView; sensitive values (passportNumber,nationalIdentificationNumber) reveal-toggle viaBitwardenPasswordField, and the three date fields reuse the License date selection stub pending the shared native picker. The Passport state'sisSdkSupportedoverride is removed so the normal save path runs end-to-end.📸 Screenshots