[PM-42462] fix: Show Select as the vault item picker placeholder - #2992
[PM-42462] fix: Show Select as the vault item picker placeholder#2992andrebispo5 wants to merge 2 commits into
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This change replaces the Code Review DetailsNo findings. Notes considered and dismissed: the four |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2992 +/- ##
==========================================
+ Coverage 79.52% 81.82% +2.29%
==========================================
Files 1169 1046 -123
Lines 75095 67798 -7297
==========================================
- Hits 59723 55474 -4249
+ Misses 15372 12324 -3048 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Updates several Menuable.defaultValueLocalizedName implementations to match design expectations by showing the localized Select placeholder without surrounding dashes, and adds regression tests to prevent reintroducing the --Select-- format.
Changes:
- Replace
"--\(Localizations.select)--"withLocalizations.selectfor card brand, card expiration month, identity title, and bank account type placeholders. - Align/clarify doc comments for the affected
defaultValueLocalizedNameproperties. - Add/extend unit tests to assert the placeholder is
Localizations.selectfor each affected type.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| BitwardenShared/UI/Vault/VaultItem/AddEditItem/AddEditCardItem/CardComponent.swift | Updates card brand + expiration month placeholders to use Localizations.select directly and adjusts doc comments. |
| BitwardenShared/UI/Vault/VaultItem/AddEditItem/AddEditCardItem/CardComponentTests.swift | Adds XCTest coverage asserting the default placeholder for brand and month is Localizations.select. |
| BitwardenShared/UI/Vault/VaultItem/AddEditItem/AddEditBankAccountItem/AddEditBankAccountItemState.swift | Updates bank account type placeholder to Localizations.select. |
| BitwardenShared/Core/Vault/Models/Enum/TitleType.swift | Updates title placeholder to Localizations.select and clarifies its doc comment. |
| BitwardenShared/Core/Vault/Models/Enum/TitleTypeTests.swift | Adds Swift Testing coverage asserting the default placeholder is Localizations.select. |
| BitwardenShared/Core/Vault/Models/Enum/BankAccountTypeTests.swift | Adds Swift Testing coverage asserting the default placeholder is Localizations.select. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
fedemkr
left a comment
There was a problem hiding this comment.
Changes look good, although I left a comment on the Figma design as I'm not sure if leaving plain "Select" here is the best option as it could be a bit confusing IMO.
Totally agree on this one, having the Select option there makes it a bit confusing. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-42462
📔 Objective
--Select--instead ofSelectlike the designs ask for.📸 Screenshots