Skip to content
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

Fix: Social auth banner #558

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Conversation

rnr
Copy link
Contributor

@rnr rnr commented Jan 9, 2025

This PR comes from edx#106 and fixes the display of the Social Auth Banner when What's new View is enabled. Prior to the fix, we were losing the Social Auth Banner because it was implemented with a .userAuthorised notification, which never happens for MainScreenViewModel

Co-Authored-By: Anton Yarmolenko <[email protected]>
@rnr rnr force-pushed the social-banner-fix branch from 3915363 to e375c0c Compare January 9, 2025 11:30
if case AuthMethod.socailAuth(let method) = authMethod {
socialAuthMethod = method.rawValue
var postLoginData: PostLoginData?
if case .socailAuth(let socialMethod) = authMethod {
Copy link
Contributor

Choose a reason for hiding this comment

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

socailAuth typo
socialAuth?

@@ -27,6 +27,18 @@ public enum LogistrationAction: Sendable {
case register
}

public struct PostLoginData: Sendable {
public var authMethod: String = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe replace var with let?

@rnr rnr requested a review from Stepanokdev January 13, 2025 17:38
Copy link
Contributor

@Stepanokdev Stepanokdev left a comment

Choose a reason for hiding this comment

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

LGTM🫶

@volodymyr-chekyrta volodymyr-chekyrta merged commit 315433f into openedx:develop Jan 14, 2025
8 checks passed
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@7e67397). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             develop   #558   +/-   ##
========================================
  Coverage           ?      0           
========================================
  Files              ?      0           
  Lines              ?      0           
  Branches           ?      0           
========================================
  Hits               ?      0           
  Misses             ?      0           
  Partials           ?      0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants