8000 [PM-8222] New device verification page fixes by andrebispo5 · Pull Request #1381 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-8222] New device verification page fixes #1381

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 3 commits into from
Feb 25, 2025

Conversation

andrebispo5
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-8222

📔 Objective

When device needs verification:

  • Change title to Verify your identity
  • Change continue button enabled to 8 chars instead of 6.
  • Show error message Invalid verification code when the verification code is invalid.

📸 Screenshots

Title fix:
Simulator Screenshot - iPhone 16 Pro - 2025-02-25 at 16 30 31 Medium

Continue button enabled:
Simulator Screenshot - iPhone 16 Pro - 2025-02-25 at 16 26 53 Medium
Simulator Screenshot - iPhone 16 Pro - 2025-02-25 at 16 26 58 Medium

Error message:
Simulator Screenshot - iPhone 16 Pro - 2025-02-25 at 16 27 11 Medium

⏰ 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

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details24e89fc9-ed86-473e-9fa8-3c9b17695722

Great job, no security vulnerabilities found in this Pull Request

Copy link
codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.66%. Comparing base (1b09179) to head (b35536e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1381      +/-   ##
==========================================
- Coverage   89.66%   89.66%   -0.01%     
==========================================
  Files         765      765              
  Lines       48016    48024       +8     
==========================================
+ Hits        43055    43061       +6     
- Misses       4961     4963       +2     

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

@@ -93,7 +93,7 @@ final class TwoFactorAuthProcessor: StateProcessor<TwoFactorAuthState, TwoFactor
state.toast = newValue
case let .verificationCodeChanged(newValue):
state.verificationCode = newValue
state.continueEnabled = (newValue.count >= 6)
state.continueEnabled = newValue.count >= (state.deviceVerificationRequired ? 8 : 6)
Copy link
Member
@fedemkr fedemkr Feb 25, 2025

Choose a reason for hiding this comment

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

♻️ Maybe for another PR and it's something really minor but I'd extract (state.deviceVerificationRequired ? 8 : 6) to a private computed property that returns the minimum characters so to keep the logic simple here.

@andrebispo5 andrebispo5 merged commit e29448f into main Feb 25, 2025
9 checks passed
@andrebispo5 andrebispo5 deleted the pm-8222/route-to-email-pin-bug branch February 25, 2025 20:21
andrebispo5 added a commit that referenced this pull request Feb 25, 2025
andrebispo5 added a commit that referenced this pull request Feb 25, 2025
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
0