-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-13029] Add copy button items to more fields #1063
Conversation
No New Or Fixed Issues Found |
action: @escaping () -> Void, | ||
accessibilityIdentifier: String = "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 Invert the order of this so the action
can be called using trailing closures.
action: @escaping () async -> Void, | ||
accessibilityIdentifier: String = "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 Invert the order of this so the action
can be called using trailing closures.
copyButtonAction: @escaping () -> Void, | ||
copyButtonAccessibilityIdentifier: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 Invert the order of this so the copyButtonAction
can be called using trailing closures, if needed.
valueAccessibilityIdentifier: "IdentitySsnEntry" | ||
value: socialSecurityNumber, | ||
valueAccessibilityIdentifier: "IdentitySsnEntry", | ||
copyButtonAction: { store.send(.copyPressed(value: socialSecurityNumber, field: .socialSecurityNumber)) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ Line length > 120.
value: socialSecurityNumber, | ||
valueAccessibilityIdentifier: "IdentitySsnEntry", | ||
copyButtonAction: { store.send(.copyPressed(value: socialSecurityNumber, field: .socialSecurityNumber)) }, | ||
copyButtonAccessibilityIdentifier: "IdentityCopySocialSecurityNumberButton" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 As the value accessibility identifier we're using IdentitySsnEntry
with "Social security number" as "Ssn", so unless QA automation folks think differently we should maintain the same approach here as well => "IdentityCopySsnButton".
title: Localizations.email, | ||
title: email, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
email
. Was there a product change for this?
/// The identity address field. | ||
case notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ It seems the comment is wrong.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1063 +/- ##
==========================================
+ Coverage 89.37% 89.39% +0.02%
==========================================
Files 672 672
Lines 42364 42455 +91
==========================================
+ Hits 37861 37954 +93
+ Misses 4503 4501 -2 ☔ View full report in Codecov by Sentry. |
# Conflicts: # BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemDetailsView.swift # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_identity_withAllValues_largeText.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_login_disabledViewPassword.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_login_hiddenTotp.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_login_withAllValues.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_login_withAllValues_exceptTotp_noPremium.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_login_withAllValues_noPremium.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_previews_login.1.png # BitwardenShared/UI/Vault/VaultItem/ViewItem/__Snapshots__/ViewItemViewTests/test_snapshot_previews_login_dark.1.png
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ Check automatic PR files annotations to fix warnings and also add missing tests.
0222ed1
to
ac1823b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🎉
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-13029
📔 Objective
Added copy button to itemview Identity and note fields
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes