-
Notifications
You must be signed in to change notification settings - Fork 15
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: authentication flow views - On premise - WPB-15225 #2531
base: develop
Are you sure you want to change the base?
Conversation
…o feat/authentication-on-premise-WPB-15225
…o feat/authentication-on-premise-WPB-15225
Test Results32 tests 32 ✅ 9s ⏱️ Results for commit 504cbb4. ♻️ This comment has been updated with latest results. |
|
||
import Foundation | ||
|
||
public struct BackendEnvironment { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnxnguyen I'm not sure where we should define BackendEnvironment
, since we have it in WireAPI too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the one defined in WireAPI
rather than duplicating it. Did you try it?
}, label: { | ||
Text(L10n.OnPremUserLogin.title(viewModel.backendName) + " ") | ||
.foregroundColor(ColorTheme.Buttons.Secondary.onEnabled.color) | ||
+ Text(Image(systemName: "info.circle")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm struggling to fix this SwiftFormat issue
@State private var showPasswordRules: Bool = false | ||
@State private var showCustomBackendAlert = false | ||
|
||
private var proxyEmail: String = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: shouldn't this also be @State
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks goods, just want to continue the conversation about BackendEnvironment before approving.
|
||
@ViewBuilder private var submitButton: some View { | ||
Button(action: { | ||
viewModel.submitPassword(password) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect that we submit not only the account password but also the proxy credentials it there are any.
…o feat/authentication-on-premise-WPB-15225
Datadog ReportBranch report: ✅ 0 Failed, 27 Passed, 0 Skipped, 9.57s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heights of the text fields doesn't look right.
Probably @ScaledMetric
shouldn't be used.
Issue
Implement new authentication flow views -> Login -> On premise:
![Screenshot 2025-02-13 at 16 13 34](https://private-user-images.githubusercontent.com/57407805/412947881-dcab5383-baaf-4ff1-81b2-67680ff72e17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTUxMTIsIm5iZiI6MTczOTU5NDgxMiwicGF0aCI6Ii81NzQwNzgwNS80MTI5NDc4ODEtZGNhYjUzODMtYmFhZi00ZmYxLTgxYjItNjc2ODBmZjcyZTE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0NDY1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxZmM2NzVlZGVjNTE0NzNjNzE4ZjFlOTRkZDFkYjgyMzliOWU3OTVkY2U3ODM5MTViZTYzMmYxNGE2MTMwYjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lBI4L6I5XiSrS5xaDLc6FKzp_Lq8DWzpvcRMfGI3UgA)
Testing
Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: