Skip to content
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

Password Manager widget and app shortcut #2619

Merged
merged 25 commits into from
Apr 10, 2024

Conversation

amddg44
Copy link
Contributor

@amddg44 amddg44 commented Mar 20, 2024

Task/Issue URL: https://app.asana.com/0/42792087274227/1206508535741153/f
Tech Design URL:
CC:

Description:
Adds home screen widget, lock screen widget & app shortcut to quickly access passwords

Steps to test this PR:

  1. Long press on app icon and confirm there is a new app shortcut to Search Passwords
  2. Tap and confirm you are taken to the Passwords screen, with the search bar selected
  3. On the home screen, add the new password widget and confirming tapping on it behaves the same as step 2
  4. On the lock screen, add the new password widget and again confirm it behaves as in step 2
  5. There are also some minor styling updates to the existing home screen widgets including updating the fonts and colors to use DesignResourceKit + I've removed deprecated colors. Regression test adding each of the other home screen widgets (search, both variations of favorites) to confirm they still render correctly in light and dark mode.

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@amddg44 amddg44 changed the title Anya/hackdays password mgr shortcut Password Manager widget and app shortcut Mar 20, 2024
@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Mar 20, 2024
@amddg44 amddg44 removed the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Mar 20, 2024
@amddg44 amddg44 requested a review from aataraxiaa March 22, 2024 14:11
Copy link
Contributor

@aataraxiaa aataraxiaa left a comment

Choose a reason for hiding this comment

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

Validated and working as expected. Looks really awesome @amddg44, nice job! 🚀 Just left too super minor suggestions.

@@ -349,6 +356,20 @@ final class AutofillLoginSettingsListViewController: UIViewController {
}
}

private func openSearchIfRequired() {
// Don't auto open search if user has selected an account
if selectedAccount != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor suggestion - If you preferred, we could use a guard here, e.g:

Suggested change
if selectedAccount != nil {
guard selectedAccount == nil else { return }


VStack(alignment: .center, spacing: 14) {

Image("WidgetPasswordIllustration")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Image("WidgetPasswordIllustration")
Image(.widgetPasswordIllustration)

Think you could use that here (and other places too if so inclined)

Copy link

github-actions bot commented Mar 25, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 9aea7e4

Copy link
Contributor

@aataraxiaa aataraxiaa left a comment

Choose a reason for hiding this comment

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

Translations LGTM

@amddg44 amddg44 merged commit 6134ca7 into main Apr 10, 2024
13 checks passed
@amddg44 amddg44 deleted the anya/hackdays-password-mgr-shortcut branch April 10, 2024 14:12
samsymons added a commit that referenced this pull request Apr 12, 2024
# By Mariusz Śpiewak (4) and others
# Via Chris Brind (1) and others
* main:
  Reverting accidental push to main (#2718)
  Add SubscriptionContainerViewModel and
  Manually hide loader + Pixel (#2687)
  Release 7.115.0-2 (#2712)
  soft revert history suggestions (#2711)
  Bring back accessibility identifiers for onboarding buttons (#2709)
  BSK release 133.1.0 (#2708)
  Password Manager widget and app shortcut (#2619)
  Release 7.115.0-1 (#2707)
  Update set-as-default onboarding illustration for dark mode (#2694)
  update app store prompt logic (#2678)
  Fix status bar color on regular width size class (#2705)
  Updated settings (#2603)
  Update BSK with autofill 11.0.1 (#2704)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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