Skip to content

[PM-32810] test: Cover Bank Account vault, listing, and search surfaces#6881

Merged
SaintPatrck merged 1 commit intomainfrom
new-item-types/PM-32810_bank-account-coverage
May 7, 2026
Merged

[PM-32810] test: Cover Bank Account vault, listing, and search surfaces#6881
SaintPatrck merged 1 commit intomainfrom
new-item-types/PM-32810_bank-account-coverage

Conversation

@SaintPatrck
Copy link
Copy Markdown
Contributor

@SaintPatrck SaintPatrck commented May 7, 2026

🎟️ Tracking

PM-32810

Follow-up to #6877.

📔 Objective

Closes the Bank Account coverage gaps surfaced by Codecov on #6877. Adds test coverage for the new BankAccount branches in the Search and Item Listing utility extensions, and excludes the affected navigation files from coverage at both file and class level — matching the convention used by other navigation files in the project.

  • SearchTypeDataExtensions: covers BankAccounts arms in updateWithAdditionalDataIfNecessary and filterAndOrganize.
  • VaultItemListingStateExtensions: covers BankAccount arms in toSearchType() and toVaultItemCipherType().
  • VaultItemListingDataExtensions: covers the BankAccount listing predicate, no-items state (message, button, header), and updateWithAdditionalDataIfNecessary.
  • SearchNavigation and VaultItemListingNavigation annotated with @file:OmitFromCoverage.

@SaintPatrck SaintPatrck added the ai-review-vnext Request a Claude code review using the vNext workflow label May 7, 2026
@github-actions github-actions Bot added app:password-manager Bitwarden Password Manager app context app:authenticator Bitwarden Authenticator app context t:tech-debt Change Type - Tech debt labels May 7, 2026
@SaintPatrck SaintPatrck removed the app:authenticator Bitwarden Authenticator app context label May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This is a tightly scoped follow-up to #6877 that closes the Codecov gaps for the new Bank Account surfaces. New unit tests cover the BankAccount branches added to SearchTypeDataExtensions (updateWithAdditionalDataIfNecessary, filterAndOrganize) and to VaultItemListingDataExtensions / VaultItemListingStateExtensions (determineListingPredicate, toViewState no-items state, updateWithAdditionalDataIfNecessary, toSearchType, toVaultItemCipherType). Two navigation files are annotated with @file:OmitFromCoverage, matching the established convention used by 15+ other navigation files in the project. Test assertions accurately reflect production behavior — including the intentional hasFab = false for BankAccount (with its existing TODO: [PM-32810] to re-enable once add/edit is wired) — and the new tests use suppressions consistent with the surrounding code style.

Code Review Details

No findings. The PR is narrowly scoped, the tests exercise real branches in production code, the assertions match the production logic, and there are no security, correctness, or breaking-change concerns.

Adds Bank Account coverage for the new branches introduced by the
discovery work and applies @file:OmitFromCoverage to the affected
navigation files so they are excluded from coverage at both file and
class level — matching the convention used by other navigation files
in the project.

- SearchTypeDataExtensions: BankAccounts updateWithAdditionalDataIfNecessary and filterAndOrganize cases.
- VaultItemListingStateExtensions: BankAccount toSearchType and toVaultItemCipherType cases.
- VaultItemListingDataExtensions: BankAccount listing predicate, no-items state, and updateWithAdditionalDataIfNecessary cases.
@SaintPatrck SaintPatrck force-pushed the new-item-types/PM-32810_bank-account-coverage branch from 13a3185 to bf6dc81 Compare May 7, 2026 18:14
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.25%. Comparing base (a9cc18e) to head (bf6dc81).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6881      +/-   ##
==========================================
+ Coverage   85.72%   86.25%   +0.53%     
==========================================
  Files         843      872      +29     
  Lines       60719    61571     +852     
  Branches     8915     8872      -43     
==========================================
+ Hits        52049    53108    +1059     
+ Misses       5606     5416     -190     
+ Partials     3064     3047      -17     
Flag Coverage Δ
app-data 17.56% <ø> (+0.05%) ⬆️
app-ui-auth-tools 19.89% <ø> (+0.05%) ⬆️
app-ui-platform 16.14% <ø> (+0.43%) ⬆️
app-ui-vault 26.92% <ø> (+0.64%) ⬆️
authenticator 6.49% <ø> (+0.01%) ⬆️
lib-core-network-bridge 4.18% <ø> (+0.02%) ⬆️
lib-data-ui 1.00% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@SaintPatrck SaintPatrck marked this pull request as ready for review May 7, 2026 19:21
@SaintPatrck SaintPatrck requested review from a team and david-livefront as code owners May 7, 2026 19:21
@SaintPatrck SaintPatrck added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit a52ab66 May 7, 2026
24 checks passed
@SaintPatrck SaintPatrck deleted the new-item-types/PM-32810_bank-account-coverage branch May 7, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review-vnext Request a Claude code review using the vNext workflow app:password-manager Bitwarden Password Manager app context t:tech-debt Change Type - Tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants