8000 PM-10267: Generate master password view by shannon-livefront · Pull Request #831 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PM-10267: Generate master password view #831

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

Merged
merged 18 commits into from
Oct 1, 2024

Conversation

shannon-livefront
Copy link
Collaborator
@shannon-livefront shannon-livefront commented Aug 15, 2024

🎟️ Tracking

PM-10267
PM-10677

📔 Objective

  • Create the "Generate master password" screen.
  • Navigate to PreventAccountLockView from the "Generate master password" screen

📸 Screenshots

Simulator Screenshot - iPhone 15 Pro - 2024-09-27 at 14 15 59

⏰ 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

@shannon-livefront shannon-livefront force-pushed the PM-10267-master-password-generator-screen branch from 8f03e44 to cbfcd8e Compare August 15, 2024 19:30
Copy link
Contributor
github-actions bot commented Aug 15, 2024

Logo
Checkmarx One – Scan Summary & Detailsa1a8c763-3dfb-4e85-bf4e-29c01d75aeb0

No New Or Fixed Issues Found

Copy link
codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (7ac7177) to head (10cf810).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #831      +/-   ##
==========================================
+ Coverage   88.82%   88.86%   +0.03%     
==========================================
  Files         641      644       +3     
  Lines       40219    40342     +123     
==========================================
+ Hits        35725    35848     +123     
  Misses       4494     4494              

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


/// `receive(_:)` with `.preventAccountLock` shows the prevent account lock screen.
@MainActor
func test_receive_save() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

⛏️ This test should be renamed.

Suggested change
func test_receive_save() {
func test_receive_preventAccountLock() {

Comment on lines 49 to 53
BitwardenTextField(text: store.binding(
get: \.generatedPassword,
send: MasterPasswordGeneratorAction.masterPasswordChanged
))
.submitLabel(.done)
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤔 Should this be an actual text field that you can edit? I guess I assumed it would be read-only and use PasswordText.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah good catch! figma shows it with the PasswordText look as well. Making the update

} label: {
Text(Localizations.learnAboutOtherWaysToPreventAccountLockout)
.styleGuide(.footnote, weight: .semibold)
.foregroundStyle(Asset.Colors.textCodeBlue.swiftUIColor)
Copy link
Collaborator

Choose a reason for hiding this comment

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

⛏️ I think the intent behind the semantic colors would be to only use textCodeBlue for the cases where we're displaying a password and highlighting the different character cases. textInteraction would be a better fit for this button. They are both the same blue currently, but that could potentially change in the future.

Suggested change
.foregroundStyle(Asset.Colors.textCodeBlue.swiftUIColor)
.foregroundStyle(Asset.Colors.textInteraction.swiftUIColor)

func generateMasterPassword() async throws -> String {
try await clientService.generators().passphrase(
settings: PassphraseGeneratorRequest(
numWords: 3,
Copy link
Member

Choose a reason for hiding this comment

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

❓ Is product ok with this being fixed at 3? I'd use 4 (or customizable by the user) for a stronger master password but well 3 is easier to remember...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Per the figma design it was 3. I can confirm but I believe when Shannon did this work she was going off the figma doc that was provided.

Screenshot 2024-09-30 at 2 43 39 PM

Copy link
Collaborator

Choose a reason for hiding this comment

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

Confirmed that Android is using 3 words for their implementation.

Copy link
Collaborator
@matt-livefront matt-livefront left a comment

Choose a reason for hiding this comment

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

Looks good!

@phil-livefront phil-livefront merged commit 1b45969 into main Oct 1, 2024
9 checks passed
@phil-livefront phil-livefront deleted the PM-10267-master-password-generator-screen branch October 1, 2024 15:27
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.

4 participants
0