Skip to content

chore: Move making destination views in factory for WireAuth - WPB-19090 #3176

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 11 commits into from
Aug 4, 2025

Conversation

dmitrysimkin
Copy link
Contributor

@dmitrysimkin dmitrysimkin commented Jun 12, 2025

TaskWPB-19090 [IOS] Move creating of views in DI in WireAuthentication

Issue

Improve DI in WireAuthentication by moving creating destination views to factory.
Views not wrapped in AnyView, instead created method to create each of destination view in the factory

Testing

Describe how to test.

Optional: attachments like images, videos, etc.


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.

# Conflicts:
#	WireAuthentication/Sources/WireAuthentication/Components/DetermineAuthMethodComponent.swift
#	WireAuthentication/Sources/WireAuthentication/Components/LoginViaEmailComponent.swift
#	WireAuthentication/Sources/WireAuthenticationUI/Mocks/FakeLoginViaEmailFactory.swift
#	WireAuthentication/Sources/WireAuthenticationUI/Views/Login/LoginViaEmail/LoginViaEmailView.swift
#	WirePreviewApps/WireAuthenticationApp/ContentView.swift
@dmitrysimkin dmitrysimkin marked this pull request as ready for review July 14, 2025 09:33
@dmitrysimkin dmitrysimkin requested review from samwyndham and netbe July 14, 2025 09:33
Copy link
Contributor

github-actions bot commented Jul 14, 2025

Test Results

87 tests   87 ✅  21s ⏱️
20 suites   0 💤
 1 files     0 ❌

Results for commit 2354a66.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

Datadog Report

Branch report: chore/improve-ID-wire-auth
Commit report: 24e001f
Test service: wire-ios-mono

✅ 0 Failed, 88 Passed, 0 Skipped, 7.14s Total Time

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

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

Nice work. I agree it makes sense to move the view creation itself to the factories. Did you see any tradeoffs here?

@dmitrysimkin dmitrysimkin changed the title chore: Move making destination views in factory for WireAuth chore: Move making destination views in factory for WireAuth - WPB-19090 Jul 28, 2025
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

left a question before approving

@dmitrysimkin dmitrysimkin requested a review from netbe July 30, 2025 11:05
Copy link
Contributor

@jullianm jullianm left a comment

Choose a reason for hiding this comment

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

LGTM

@dmitrysimkin dmitrysimkin added this pull request to the merge queue Aug 4, 2025
Merged via the queue into develop with commit 556a8ed Aug 4, 2025
8 checks passed
@dmitrysimkin dmitrysimkin deleted the chore/improve-ID-wire-auth branch August 4, 2025 08:15
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