Skip to content

Conversation

@IamPekka058
Copy link
Member

This pull request includes several changes to improve the GitHub OAuth handling, enhance error messaging, and add unit tests for the TokenHandler class. The most important changes include adding a maximum login attempt limit, improving logging, and adding mock tests for the TokenHandler.

Enhancements to GitHub OAuth handling:

Error messaging improvements:

Unit tests:

Dependency updates:

  • pubspec.yaml: Added mocktail as a dependency for unit testing.

Minor changes:

@IamPekka058 IamPekka058 requested review from Ruby11235 and Copilot April 2, 2025 19:15
Copy link

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

Improves GitHub OAuth handling by limiting login attempts, enhancing logging and error messaging, and adding unit tests for the TokenHandler.

  • Added a new testing dependency (mocktail) for unit tests.
  • Updated OAuth handling and logging improvements.
  • Enhanced error handling in the GitHub login button.
Files not reviewed (4)
  • lib/utility/github_oauth_handler.dart: Language not supported
  • lib/utility/token_handler.dart: Language not supported
  • lib/widgets/github_login_button.dart: Language not supported
  • test/utiltiy/token_handler_test.dart: Language not supported

@Friedinger Friedinger self-requested a review April 2, 2025 19:31
Copy link
Member

@Ruby11235 Ruby11235 left a comment

Choose a reason for hiding this comment

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

  • When choosing to login with GitHub, you should not be sent to Browser when not clicking on 'copy code'
  • Change language of said button to english
  • Add max login attempts to login with token

@Friedinger Friedinger requested review from Ruby11235 and Copilot April 4, 2025 10:38
Copy link

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.

Copilot reviewed 3 out of 20 changed files in this pull request and generated no comments.

Files not reviewed (17)
  • lib/app.dart: Language not supported
  • lib/scheme/app_color.dart: Language not supported
  • lib/utility/github_oauth_handler.dart: Language not supported
  • lib/utility/token_handler.dart: Language not supported
  • lib/views/home_view.dart: Language not supported
  • lib/views/login_github_view.dart: Language not supported
  • lib/views/login_token_view.dart: Language not supported
  • lib/views/login_view.dart: Language not supported
  • lib/views/welcome_view.dart: Language not supported
  • lib/widgets/app_bar.dart: Language not supported
  • lib/widgets/app_title.dart: Language not supported
  • lib/widgets/github_code_dialog.dart: Language not supported
  • lib/widgets/github_login_button.dart: Language not supported
  • lib/widgets/login_toke_input.dart: Language not supported
  • lib/widgets/page_title.dart: Language not supported
  • lib/widgets/text_link.dart: Language not supported
  • test/utility/token_handler_test.dart: Language not supported

@Friedinger Friedinger added ♻️ Refactor Code improvements without changing function 🎨 UI/UX labels Apr 4, 2025
@Friedinger Friedinger self-requested a review April 4, 2025 10:41
@Friedinger Friedinger merged commit 5440ee7 into main Apr 5, 2025
@Friedinger Friedinger deleted the feature/improved-login-view branch April 5, 2025 12:36
IamPekka058 pushed a commit that referenced this pull request Aug 8, 2025
🔀♻️ Improve GitHub OAuth handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor Code improvements without changing function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants