-
Notifications
You must be signed in to change notification settings - Fork 41
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-18594] [RC] Hide coach marks if user has existing login items #1390
base: release/2025.02-rc7
Are you sure you want to change the base?
Conversation
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/2025.02-rc7 #1390 +/- ##
======================================================
Coverage ? 89.71%
======================================================
Files ? 757
Lines ? 47810
Branches ? 0
======================================================
Hits ? 42891
Misses ? 4919
Partials ? 0 ☔ View full report in Codecov by Sentry. |
var hasLoginItems: Bool { | ||
flatMap(\.items) | ||
.contains { item in | ||
if case let .group(group, count) = item.itemType, group == .login { | ||
count > 0 // swiftlint:disable:this empty_count | ||
} else if case let .cipher(cipherView, _) = item.itemType, cipherView.type == .login { | ||
true | ||
} else { | ||
false | ||
} | ||
} | ||
} |
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.
🤔 I wonder if we should check .totp
here as well as a TOTP item is in fact a Login item. I mean I know the goal of the PR is actually achieved with the current logic but the purpose of hasLoginItems
of a vault list section should also be based given if in the section are all .totp
items.
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.
I can include that too.
🎟️ Tracking
PM-18594
📔 Objective
If a user has existing login items in their vault, the coach marks for add login and in the generator should be dismissed.
⏰ 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