Skip to content
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

Open
wants to merge 2 commits into
base: release/2025.02-rc7
Choose a base branch
from

Conversation

matt-livefront
Copy link
Collaborator

@matt-livefront matt-livefront commented Feb 26, 2025

🎟️ 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

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 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

Copy link
Contributor

github-actions bot commented Feb 26, 2025

Logo
Checkmarx One – Scan Summary & Detailse0424091-9e7d-445a-95bd-068815901301

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release/2025.02-rc7@d3c2592). Learn more about missing BASE report.

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.
📢 Have feedback on the report? Share it here.

Comment on lines 20 to 31
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
}
}
}
Copy link
Member

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.

Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants