-
Notifications
You must be signed in to change notification settings - Fork 25
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: Added webView based myPrograms #176
Conversation
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.
Points from manual & initial review:
- Please implement swipe refresh for Program screen
- Program WebView:
- Clicking on an enrolled course should redirect that course
- Clicking on an un-erolled course should redirect to Discover's course info screen
- Clicking on enroll button should enrol and redirect the user to that course
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Outdated
Show resolved
Hide resolved
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.
Features to look into:
- Swipe to refresh
- Snackbar after successful course enrollment
- "Explore new Courses" button in Programs WebView
discovery/src/main/java/org/openedx/discovery/presentation/WebViewDiscoveryFragment.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/org/openedx/core/presentation/catalog/CatalogWebView.kt
Outdated
Show resolved
Hide resolved
course/src/main/java/org/openedx/course/presentation/info/CourseInfoFragment.kt
Show resolved
Hide resolved
core/src/main/java/org/openedx/core/presentation/catalog/WebViewLink.kt
Outdated
Show resolved
Hide resolved
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.
Minor nits only.
dashboard/src/main/java/org/openedx/dashboard/notifier/DashboardEvent.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/dashboard/DashboardViewModel.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/org/openedx/core/presentation/catalog/CatalogWebView.kt
Outdated
Show resolved
Hide resolved
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.
only some nits
course/src/main/java/org/openedx/course/presentation/info/CourseInfoViewModel.kt
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramViewModel.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Outdated
Show resolved
Hide resolved
dashboard/src/main/java/org/openedx/dashboard/presentation/program/ProgramFragment.kt
Show resolved
Hide resolved
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.
Approved from my side, please proceed with the merge after addressing Kirill's feedback. 🚀
@@ -153,4 +157,6 @@ val appModule = module { | |||
factory { FacebookAuthHelper() } | |||
factory { GoogleAuthHelper(get()) } | |||
factory { MicrosoftAuthHelper() } | |||
|
|||
single<EnrollInCourseInteractor> { get<CourseInteractor>() } |
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.
Do we need to keep this dependency as a singleton?
CourseInteractor, by nature, does not keep any state or data, so it seems there is no reason to keep EnrollInCourseInteractor as singleton.
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.
updated
f787d22
to
9b7fbe4
Compare
- Add config dict for myPrograms - Move URI_SCHEME to file level fix: LEARNER-9715
- Move dashboard files to a separate directory - Updated test cases where needed fix: LEARNER-9715
- Added webView based myPrograms - Behavior reflects the current prod app behaviour fix: LEARNER-9715
The merge-base changed after approval.
9b7fbe4
to
950c925
Compare
Description:
Ref: Issue: 157