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

feat: open password reset link in browser - WPB-11685 #2095

Open
wants to merge 2 commits into
base: release/cycle-3.112
Choose a base branch
from

Conversation

El-Fitz
Copy link
Contributor

@El-Fitz El-Fitz commented Oct 25, 2024

BugWPB-11685 [iOS] Wire app ignores default browser setting for static links - C builds

Issue

The password reset & forgot password links should be opened in the selected browser instead of a Safari web view.

Testing

Go to account -> settings -> account -> reset password.
Tap the button. The password reset page should open in your selected browser.

Logout
Log in -> Forgot password?
Tap the link. The password reset page should open in your selected browser.


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@El-Fitz El-Fitz self-assigned this Oct 25, 2024
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Oct 25, 2024
Copy link
Contributor

Test Results

    2 files    305 suites   3m 23s ⏱️
1 866 tests 1 866 ✅ 0 💤 0 ❌
1 874 runs  1 874 ✅ 0 💤 0 ❌

Results for commit 4d19499.

@datadog-wireapp
Copy link

Datadog Report

Branch report: feat/open-password-reset-link-in-browser
Commit report: 40a455e
Test service: wire-ios-mono

✅ 0 Failed, 1866 Passed, 0 Skipped, 16.34s Total Time

@@ -501,18 +501,9 @@ extension AuthenticationCoordinator {

// MARK: - Modals

/// Opens the browser and reopens the current alert upon dismissal if needed.
/// Opens the URL in the selected browser
private func openURL(_ url: URL) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it only password reset that uses this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I can tell, only the password reset uses the AuthenticationCoordinatorAction.openURL(_:) action, and only the AuthenticationCoordinatorAction.executeActions(_:) method calls it.
Screenshot 2024-10-28 at 12 07 01

Copy link
Contributor

This PR is stale because it has been open 30 days with no activity. Please update it or close it in case is not relevant anymore.

@github-actions github-actions bot added the stale label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants