Skip to content

feat: Native login UI#86

Draft
lebojo wants to merge 6 commits intomainfrom
feat/natiflogin
Draft

feat: Native login UI#86
lebojo wants to merge 6 commits intomainfrom
feat/natiflogin

Conversation

@lebojo
Copy link
Copy Markdown
Member

@lebojo lebojo commented Apr 27, 2026

This pull request introduces a new login sheet flow for the onboarding process in the Authenticator app, including both the UI and supporting assets.
The main changes are the addition of reusable SwiftUI components for presenting a login sheet and login view, as well as new icon assets to support the UI.

@lebojo lebojo requested a review from Copilot April 27, 2026 15:23
@lebojo lebojo self-assigned this Apr 27, 2026
@lebojo lebojo changed the title feat: Login natif feat: Native login Apr 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

PR Reviewer Guide 🔍

(Review updated until commit bc41d1c)

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Hardcoded Locale

The recoverPassword URL hardcodes the /fr/ path segment, forcing French on all users regardless of the device locale. Because the app supports many languages (e.g., English, German, Spanish), non-French users will be sent to a French password-recovery page. The URL should use a locale-agnostic path or dynamically include the user's current locale.

public static let recoverPassword = URLConstants(urlString: "https://login.infomaniak.com/fr/recover/password")

Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift Outdated
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginSheetViewModifier.swift Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new SwiftUI-based “native login” sheet for the onboarding flow in the Authenticator app, along with the icon assets required by the new UI.

Changes:

  • Added LoginView SwiftUI form for password entry and related actions (forgot password / continue).
  • Added a reusable loginSheet(...) view modifier to present the login flow in a sheet with a close button.
  • Added new vector icon assets (cross, circle-information.fill) to support the UI.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
AuthenticatorResources/Images.xcassets/Icons/cross.imageset/cross.svg Adds a new “cross/close” SVG icon.
AuthenticatorResources/Images.xcassets/Icons/cross.imageset/Contents.json Registers the cross icon as a vector template asset.
AuthenticatorResources/Images.xcassets/Icons/circle-information.fill.imageset/circle-information-fill.svg Adds a new filled “information” SVG icon.
AuthenticatorResources/Images.xcassets/Icons/circle-information.fill.imageset/Contents.json Registers the info icon as a vector template asset.
AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift Introduces the login form UI (account header, password field, forgot password link, continue button).
AuthenticatorFeatures/OnboardingView/LoginSheet/LoginSheetViewModifier.swift Adds a View extension + modifier to present the login flow as a sheet with navigation + close action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginSheetViewModifier.swift Outdated
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift Outdated
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift Outdated
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginView.swift Outdated
Comment thread AuthenticatorFeatures/OnboardingView/LoginSheet/LoginSheetViewModifier.swift Outdated
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@lebojo lebojo force-pushed the feat/natiflogin branch 2 times, most recently from 834469e to 213b4dc Compare April 28, 2026 08:27
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@lebojo lebojo force-pushed the feat/natiflogin branch 4 times, most recently from 40703f3 to c707b75 Compare April 28, 2026 09:59
@lebojo lebojo changed the title feat: Native login feat: Native login UI Apr 28, 2026
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@github-actions
Copy link
Copy Markdown

Persistent review updated to latest commit bc41d1c

Comment thread AuthenticatorCore/Constants.swift
@lebojo lebojo force-pushed the feat/natiflogin branch from bc41d1c to deb7242 Compare May 4, 2026 15:17
@lebojo lebojo marked this pull request as draft May 4, 2026 15:29
@lebojo
Copy link
Copy Markdown
Member Author

lebojo commented May 4, 2026

depends on #91

@lebojo lebojo force-pushed the feat/natiflogin branch from deb7242 to 55ce969 Compare May 5, 2026 06:58
@lebojo lebojo force-pushed the feat/natiflogin branch from 55ce969 to 388b93c Compare May 5, 2026 11:15
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants