Skip to content

Conversation

@david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Jan 20, 2026

🎟️ Tracking

PM-31042

📔 Objective

This PR adds the archive button the overflow menu of individual items of the Vault screen, item listing screen, and search screen. All functionality associated with the archive button has also been added.

⏰ 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

@david-livefront david-livefront requested a review from a team as a code owner January 20, 2026 20:43
@github-actions github-actions bot added app:password-manager Bitwarden Password Manager app context t:misc Change Type - ¯\_(ツ)_/¯ labels Jan 20, 2026
@david-livefront david-livefront added the ai-review Request a Claude code review label Jan 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2026

Logo
Checkmarx One – Scan Summary & Details60adf2d2-d4dd-4648-b080-af7cb4da5958

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 94.63415% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.56%. Comparing base (f79113a) to head (58e85b2).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ui/vault/feature/vault/util/VaultDataExtensions.kt 66.66% 3 Missing ⚠️
...rden/ui/platform/feature/search/SearchViewModel.kt 96.15% 1 Missing and 1 partial ⚠️
...t/feature/itemlisting/VaultItemListingViewModel.kt 96.22% 1 Missing and 1 partial ⚠️
...bitwarden/ui/vault/feature/vault/VaultViewModel.kt 95.12% 1 Missing and 1 partial ⚠️
...warden/ui/platform/feature/search/SearchContent.kt 0.00% 0 Missing and 1 partial ⚠️
...ult/feature/itemlisting/VaultItemListingContent.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6385      +/-   ##
==========================================
+ Coverage   85.52%   85.56%   +0.03%     
==========================================
  Files         764      764              
  Lines       55296    55501     +205     
  Branches     8016     8047      +31     
==========================================
+ Hits        47294    47488     +194     
- Misses       5233     5239       +6     
- Partials     2769     2774       +5     

☔ 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.

@claude
Copy link
Contributor

claude bot commented Jan 20, 2026

Claude finished @david-livefront's task in 3m 9s —— View job


Code Review Complete

  • Analyze PR changes and context
  • Review code for bugs, security issues, and best practices
  • Check test coverage and quality
  • Post comprehensive review feedback

Summary

This PR adds the Archive button to the overflow menu across Vault, Item Listing, and Search screens. The implementation follows established patterns and includes appropriate feature flag protection.

Previous Review Issues: The critical issues identified in the previous review (logic error in CipherListViewExtensions.kt:90-93 and corresponding test assertion bug in CipherListViewExtensionsTest.kt:427-450) have been marked as resolved. These issues involved:

  • takeUnless with AND logic that incorrectly showed Archive when feature flag was disabled
  • Test assertion using assertTrue when assertFalse was needed

Since the threads are marked resolved, I assume these have been addressed. If not, please ensure the suggested fixes are applied:

  • Change takeUnless { ... && ... && isArchiveEnabled } to takeIf { isArchiveEnabled && ... && ... }
  • Change assertTrue to assertFalse in the disabled archive test

What Looks Good:

  • Feature flag integration via FlagKey.ArchiveItems with reactive updates
  • Premium gating with upgrade dialog follows existing patterns
  • Consistent implementation across all three ViewModels
  • Handler wiring and Screen composable changes are correct
  • Error handling for archive failures is appropriate
  • Test coverage for new archive actions and dialogs (93.65% patch coverage)

No new issues found in this review pass.

@david-livefront david-livefront force-pushed the PM-31042-archive-list-overflow-button branch from 935f383 to b6e043c Compare January 20, 2026 21:42
@github-actions github-actions bot removed the ai-review Request a Claude code review label Jan 20, 2026
@david-livefront david-livefront added the ai-review Request a Claude code review label Jan 20, 2026
@david-livefront david-livefront force-pushed the PM-31042-archive-list-overflow-button branch from b6e043c to 58e85b2 Compare January 20, 2026 22:28
@github-actions github-actions bot removed the ai-review Request a Claude code review label Jan 20, 2026
@david-livefront
Copy link
Collaborator Author

Thanks @SaintPatrck

@david-livefront david-livefront added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit afc1ff4 Jan 21, 2026
16 checks passed
@david-livefront david-livefront deleted the PM-31042-archive-list-overflow-button branch January 21, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:password-manager Bitwarden Password Manager app context t:misc Change Type - ¯\_(ツ)_/¯

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants