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-18068] feat: Updated View cipher view UI with favicon and header section #1484

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

fedemkr
Copy link
Member

@fedemkr fedemkr commented Apr 4, 2025

🎟️ Tracking

PM-18068

📔 Objective

Update View cipher view UI with favicon and new header section with organization, collections and folder.
This also includes adding card images for known brands that are displayed on the view cipher view instead of the favicon.
Additionally, split CipherItemStateTests so the file doesn't get huge.

📸 Screenshots

View Cipher screen header collapsed

desc

View Cipher screen header expanded

desc

View Cipher screen with visa card

The view cipher screen with a Visa card

⏰ 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

@fedemkr fedemkr requested review from matt-livefront and a team as code owners April 4, 2025 23:02
@fedemkr fedemkr changed the title [PM-18068] Updated View cipher view UI with favicon and header section [PM-18068] feat: Updated View cipher view UI with favicon and header section Apr 4, 2025
Copy link
Contributor

github-actions bot commented Apr 4, 2025

Logo
Checkmarx One – Scan Summary & Detailsfd05d828-3bca-4dca-bb12-5c95b70aecb2

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Apr 4, 2025

Codecov Report

Attention: Patch coverage is 98.21958% with 6 lines in your changes missing coverage. Please review.

Project coverage is 85.92%. Comparing base (86279ec) to head (2a7b9de).

Files with missing lines Patch % Lines
...Vault/VaultItem/ViewItem/ViewItemDetailsView.swift 96.40% 5 Missing ⚠️
...denShared/UI/Vault/VaultItem/CipherItemState.swift 99.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1484      +/-   ##
==========================================
- Coverage   89.63%   85.92%   -3.72%     
==========================================
  Files         779      989     +210     
  Lines       48751    59147   +10396     
==========================================
+ Hits        43698    50821    +7123     
- Misses       5053     8326    +3273     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines 126 to 129
for await value in await services.stateService.showWebIconsPublisher().values {
guard case var .data(cipherState) = state.loadingState else { continue }
cipherState.showWebIcons = value
state.loadingState = .data(cipherState)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Could this cause a race condition if showWebIconsPublisher publishes a value before the cipher data is loaded, then the showWebIcons value wouldn't be set? If so, could showWebIcons be moved into ViewItemState?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fedemkr One last question on this ☝️. When I tested it, the web icons were still loading with the show web icons toggle off so I'm guessing this data is loading before the cipher loads.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a really good catch! I'll look into it and fix it thanks Matt!

fedemkr added 4 commits April 7, 2025 18:21
# Conflicts:
#	BitwardenShared/UI/Vault/VaultItem/VaultItemCoordinator.swift
#	BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemProcessor.swift
#	BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemProcessorTests.swift
#	BitwardenShared/UI/Vault/VaultItem/ViewItem/ViewItemState.swift
…a, some comment fixes, refactor of cipher state collections naming and computed properties.
@fedemkr fedemkr requested a review from matt-livefront April 9, 2025 17:41
fedemkr added 2 commits April 9, 2025 18:36
…otten instead of using a publisher to avoid race condition issues. Fix lint warnings as well.
# Conflicts:
#	BitwardenShared/UI/Platform/Application/Support/Localizations/en.lproj/Localizable.strings
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.

2 participants