Skip to content

[PM-43222] fix: Add supporting text to password Send access option - #7682

Open
andrebispo5 wants to merge 1 commit into
mainfrom
PM-43222/send-password-supporting-text
Open

andrebispo5 wants to merge 1 commit into
mainfrom
PM-43222/send-password-supporting-text

Conversation

@andrebispo5

@andrebispo5 andrebispo5 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

🎟️ Tracking

PM-43222

📔 Objective

Adds the missing supporting text under the "Who can view" drop-down when "Anyone with a password set by you" is selected on the add/edit Send screen: "Individuals will need to enter this password to view this Send". This matches the other access options and the iOS fix (PM-43220).

  • SendAuth.Password now provides supporting text, so SendAuth.supportingText is non-nullable.
  • The text also shows when an organization policy locks the option to password.
  • Adds the new string to :ui and Compose tests for both cases.

📸 Screenshots

before-after

🤖 AI-assisted review

Standard local review (code-review-local): APPROVE, no findings, none deferred.

The "Anyone with a password set by you" option in the Who can view
drop-down had no supporting text, unlike the other access options.
This also applies when an organization policy locks the option.
@andrebispo5 andrebispo5 added the ai-review Request a Claude code review label Dec 3, 2026
@github-actions github-actions Bot added app:password-manager Bitwarden Password Manager app context app:authenticator Bitwarden Authenticator app context t:bug Change Type - Bug labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds supporting text to the "Anyone with a password set by you" option on the add/edit Send screen. It makes SendAuth.supportingText non-nullable and updates the only call site, in AddEditSendAuthTypeChooser. It also adds a :ui string resource whose name comes from its own text, as the project convention requires. Compose tests cover the default password case and the case where an organization policy locks the option to password, and before/after screenshots are now attached.

Code Review Details

No findings.

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.04%. Comparing base (d513e06) to head (035ab75).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7682   +/-   ##
=======================================
  Coverage   87.04%   87.04%           
=======================================
  Files         900      900           
  Lines       65786    65786           
  Branches     9498     9497    -1     
=======================================
  Hits        57265    57265           
  Misses       5035     5035           
  Partials     3486     3486           
Flag Coverage Δ
app-data 19.16% <0.00%> (ø)
app-ui-auth-tools 18.68% <100.00%> (ø)
app-ui-platform 16.03% <0.00%> (ø)
app-ui-vault 27.11% <0.00%> (ø)
authenticator 6.06% <0.00%> (ø)
lib-core-network-bridge 4.12% <0.00%> (ø)
lib-data-ui 1.32% <0.00%> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrebispo5
andrebispo5 marked this pull request as ready for review December 3, 2026 14:07
@andrebispo5
andrebispo5 requested review from a team and david-livefront as code owners December 3, 2026 14:08
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the password-access guidance update.

No open issues 🎉

What changed in this PR

Adds missing password-access guidance to the add/edit Send screen, including when an organization policy requires password protection.

Changes:

  • Adds the supporting-text string and makes SendAuth.supportingText non-nullable.
  • Updates the chooser to render supporting text directly.
  • Adds Compose assertions for password-selected and policy-enforced cases.
File Description
ui/​src/​main/​res/​values/​strings.xml Adds password-access guidance text.
app/​src/​test/​kotlin/​com/​x8bit/​bitwarden/​ui/​tools/​feature/​send/​addedit/​AddEditSendScreenTest.kt Checks guidance visibility in both cases.
app/​src/​main/​kotlin/​com/​x8bit/​bitwarden/​ui/​tools/​feature/​send/​addedit/​model/​SendAuth.kt Provides non-null supporting text for password access.
app/​src/​main/​kotlin/​com/​x8bit/​bitwarden/​ui/​tools/​feature/​send/​addedit/​components/​AddEditSendAuthTypeChooser.kt Removes nullable handling when rendering supporting text.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context t:bug Change Type - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants