Skip to content

Create a login page that redirects to the browser: #1237#1336

Open
Shafaatul-Islam wants to merge 28 commits intomasterfrom
feature/1237-login-page-that-redirects-to-the-browser
Open

Create a login page that redirects to the browser: #1237#1336
Shafaatul-Islam wants to merge 28 commits intomasterfrom
feature/1237-login-page-that-redirects-to-the-browser

Conversation

@Shafaatul-Islam
Copy link
Copy Markdown
Contributor

@Shafaatul-Islam Shafaatul-Islam commented Feb 27, 2026

⁉️ Related Issue

closes: #1237

📖 Description

Created a new page with a login button and FAQ button. At startup, it will redirect to this new page instead of sending the user to the authentication page.

🧪 How Has This Been Tested?

-Flutter analyze
-All unit tests
-On-device tests

☑️ Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • If needed, I added analytics.
  • Make sure to add either one of the following labels: version: Major,version: Minor or version: Patch.

🖼️ Screenshots (if useful):

image

@Shafaatul-Islam Shafaatul-Islam changed the title sgokuswag@gmail.com Pull request - Create a login page that redirects to the browser #1237 Feb 27, 2026
@Shafaatul-Islam Shafaatul-Islam changed the title Pull request - Create a login page that redirects to the browser #1237 Create a login page that redirects to the browser: #1237 Feb 27, 2026
Copy link
Copy Markdown
Member

@LouisPhilippeHeon LouisPhilippeHeon left a comment

Choose a reason for hiding this comment

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

Comments in bulk:

  • Buttons should have icons
  • We should add ÉTS's logo on top of the screen (instead of AppETS)
  • Login button should be bigger and styled differently
  • We should make a gradient for the background color
  • The loading indicator should be directly on the login button

@Shafaatul-Islam
Copy link
Copy Markdown
Contributor Author

image

Future authenticate() async {
AuthenticationResult? token;
int attempts = 0;
const maxAttempts = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should only make one attempt. We used to do 3 because the user had no way to retry. So for example if the user closed the browser page, it would re-open automatically. Now that we have a way button to retry, this behavior is not desirable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The linux folder should be deleted, as we don't target that platform.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The macos folder should be deleted, as we don't target that platform.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There should be a test for the view itself (test that the login button opens the webpage, test that the faq button works).

@sonarqubecloud
Copy link
Copy Markdown

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.

Create a login page that redirects to the browser

2 participants