8000 PM-10266: Master password guidance screen by shannon-livefront · Pull Request #828 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PM-10266: Master password guidance screen #828

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 21 commits into from
Sep 10, 2024

Conversation

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

🎟️ Tracking

PM-10266

📔 Objective

Create the "Master password guidance" informational screen.

This screen is not currently reachable in the app since we don't have the updated implementation of the "choose your master password" screen with the "what makes a password strong" button on it. To view this screen, you can call showMasterPasswordGuidance() from one of the other routes in AuthCoordinator.navigate(to:context:).

📸 Screenshots

⏰ 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
github-actions bot commented Aug 14, 2024

Logo
Checkmarx One – Scan Summary & Details00c84770-56f0-409b-ae5e-0158c1f1e1df

No New Or Fixed Issues Found

@shannon-livefront shannon-livefront force-pushed the PM-10266-master-password-guidance-screen branch from a85409f to 07790bd Compare August 14, 2024 18:39
@shannon-livefront shannon-livefront marked this pull request as draft August 15, 2024 19:19
@phil-livefront phil-livefront changed the base branch from main to phil/PM-10265-choose-master-password-screen August 22, 2024 20:01
Copy link
codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.60%. Comparing base (864ae8e) to head (76a5876).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #828      +/-   ##
==========================================
+ Coverage   88.59%   88.60%   +0.01%     
==========================================
  Files         618      620       +2     
  Lines       39070    39185     +115     
==========================================
+ Hits        34615    34721     +106     
- Misses       4455     4464       +9     

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

Base automatically changed from phil/PM-10265-choose-master-password-screen to main August 27, 2024 12:37
@phil-livefront phil-livefront marked this pull request as ready for review August 27, 2024 12:49
Comment on lines +107 to +117
/// Create a line of text with a bullet point in front of it.
///
private func bulletPoint(text: String) -> some View {
HStack(alignment: .top, spacing: 6) {
Text("•")

Text(text)
}
.styleGuide(.subheadline)
.foregroundStyle(Asset.Colors.textSecondary.swiftUIColor)
}
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ This is not taking into consideration RTL localization where the point should be to the right.

Copy link
Collaborator

Choose a reason for hiding this comment

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

good call out. im not sure i know how to get this to work with RTL. Do you have any idea or is there examples elsewhere in the app that you know of?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you confirm this doesn't work with RTL? I think SwiftUI might flip the UI by default.

Copy link
Collaborator
@phil-livefront phil-livefront Sep 10, 2024

Choose a reason for hiding this comment

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

Screenshot 2024-09-10 at 11 07 56 AM

this is what im seeing when i force the layout. since its english, the words arent RTL but the bullet point appears to work.

#Preview {
    MasterPasswordGuidanceView(
        store: Store(
            processor: StateProcessor(
                state: ()
            )
        )
    )
    .environment(\.layoutDirection, .rightToLeft)}

Copy link
Member

Choose a reason for hiding this comment

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

In the simulator (iPhone 15 Pro iOS 17.0.1), it's not currently changing. Although I see it doesn't change language correctly either. Testing on my device now.

Copy link
Member

Choose a reason for hiding this comment

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

Same behavior on Device, it seems that there's an issue on RTL languages. So I think we're good for this PR and we can tackle the RTL languages problem in another PR.

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 cb58ada into main Sep 10, 2024
8 checks passed
@phil-livefront phil-livefront deleted the PM-10266-master-password-guidance-screen branch September 10, 2024 18:47
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