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

feat: Pre-Login Experience enhancement by integrating webview discovery #215

Merged

Conversation

farhan-arshad-dev
Copy link
Contributor

Description

  • Integrate search to align with configured discovery settings.
  • “Explore All Courses" redirects based on the feature discovery flag.
  • Auth Panel (SignIn, Register) remains visible during pre-login WebView discovery.
  • Ensure Sign In & Enroll mirror Native Discovery & Market App functionality.
Screen_recording_20240201_162216.webm

@farhan-arshad-dev farhan-arshad-dev linked an issue Feb 1, 2024 that may be closed by this pull request
Copy link
Contributor

@HamzaIsrar12 HamzaIsrar12 left a comment

Choose a reason for hiding this comment

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

Initial Code Review; however, still need to perform an exhaustive manual review with all use cases.

Please use named parameters for the router with infoType or use default values, the plain null value is a bit confusing. (+1 for default value)

Copy link
Contributor

@HamzaIsrar12 HamzaIsrar12 left a comment

Choose a reason for hiding this comment

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

Test cases are failing ...

HamzaIsrar12
HamzaIsrar12 previously approved these changes Feb 4, 2024
Copy link
Contributor

@HamzaIsrar12 HamzaIsrar12 left a comment

Choose a reason for hiding this comment

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

LGTM ✨ Great work!!

Copy link
Contributor

@k1rill k1rill left a comment

Choose a reason for hiding this comment

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

Awesome job! Just a little question

requireArguments().apply {
this.getString(ARG_COURSE_ID, null)?.apply {
router.navigateToCourseDetail(parentFragmentManager, this)
requireArguments().run {
Copy link
Contributor

Choose a reason for hiding this comment

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

why we changed apply to run here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies for the oversight. Since we are not returning any value, we can proceed with using apply, as we are updating the bundle properties after processing them.

@k1rill thorughs?

k1rill
k1rill previously approved these changes Feb 14, 2024
Copy link
Contributor

@k1rill k1rill left a comment

Choose a reason for hiding this comment

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

Approved, please resolve conflicts

- Integrate search to align with configured discovery settings.
- “Explore All Courses" redirects based on the feature discovery flag.
- Auth Panel (SignIn, Register) remains visible during pre-login webview discovery.
- Ensure Sign In & Enroll mirror Native Discovery & Market App functionality.
- Clear edit text after submit Logistration.
- Fix test cases for View Models.

LEARNER-9798
Copy link
Contributor

@HamzaIsrar12 HamzaIsrar12 left a comment

Choose a reason for hiding this comment

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

LGTM 🏎️

@farhan-arshad-dev farhan-arshad-dev merged commit b771485 into openedx:develop Feb 14, 2024
3 checks passed
@farhan-arshad-dev farhan-arshad-dev deleted the farhan_ar/LEARNER-9798 branch February 14, 2024 09:35
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.

[Android] Webview Discovery Experience
3 participants