-
Notifications
You must be signed in to change notification settings - Fork 25
Feat/course home tab carousel #638
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/course home tab carousel #638
Conversation
carousel in progress, first carousel slide finished
* feat: course progress tab without colors and analytics * feat: add new value assignmentColors to response * fix: grade completion calculation * fix: change NO_GRADED_ASSIGNMENTS localization * fix: update tests * feat: address feedback * fix: tests * feat: add assignment colors * feat: update accessibility strings * fix: change grade titile * feat: add more accessibility * fix: totalProblems calculation * feat: update grade points value * fix: update earnedPoints * feat: add bindings to subviews * feat: add default assignment colors * fix: remove development team * fix: address feedback * feat: update default colors
* feat: add content tab * feat: add segmented controll * feat: Implement AllContentView and section progress UI * feat: add Videos screen * feat: autoscroll to first non watched video * feat: Add toggle to show/hide completed videos in course view Introduces a toggle in the course progress view to show or hide completed videos. Updates VideoSectionView and VideosContentView to filter visible videos based on the toggle state. Adds new localization strings for the toggle and updates progress display to show watched videos. Refactors related UI and logic for improved user experience. * fix: navigation to selected video * feat: add local video thumbnail generation fallback * fix: load video thumbnail in offline mode * feat: save and show local video progress remove old video tab * feat: add course progress calculation and update views * feat: add course progress endpoint * feat: work in progress * feat: small fixes * feat: add pointer * feat: add routing * feat: add short_label value * feat: add short_label to cells * feat: update clearLabel logic * feat: refactor assignment status handling and UI logic * feat: add localizations * feat: refactor completed assignments toggle in progress section * feat: add assignment color support to grading policy * feat: update local progress applying to video * feat: load current progress for videos * feat: refactor assignment status logic and fix status usage * fix: address feedback * feat: before refactoring * fix: refactoring * feat: add grading policy button * feat: add accessibility * feat: update tests * feat: update view completed button logic * feat: refactoring * feat: address feedback * feat: address feedback * feat: add course progress offline * fix: offline loading * feat: add binding logic for videos * fix: move logic to vm * fix: update assignments to use bindings * fix: address feedback * fix: remove published from realDownloadedFilesSize * feat: move thumbnail logic to external service * fix: archive issue * fix: address feedback * fix: address feedback * feat: add dividers to assignments content view * feat: update analytics * feat: address feedback * fix: all tab address feedback * fix: update download icon color * feat: hide zero points * feat: update default colors * fix: address feedback * feat: update accessibility on videos tab * feat: add titles to videos * fix: completed sections order * feat: add section name to AssignmentDetailCard * fix: merge conflicts * fix: update xcode tests version
|
Thanks for the pull request, @IvanStepanok! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
This looks great @IvanStepanok For the Video card: if the video has not been started, the text should read "Next Video". Continue watching is for videos that are started but not yet finished. Thanks! |
|
@edschema hi!
|
* fix: address feedback * chore: update oexfoundation library
RawanMatar89
left a comment
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.
LGTM 👍🏻
| self.verificationData = verificationData | ||
| } | ||
|
|
||
| public func getAssignmentProgressForGrades1(for assignmentType: String) -> AssignmentProgressData { |
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.
I can't see so much differences between "getAssignmentProgressForGrades1" and "getAssignmentProgress" why we have two ?
| case continueLesson | ||
| case nextSection | ||
| case custom(String) | ||
| case continueLessonCustom(String) |
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.
maybe "customContinueLesson" will be better
| } | ||
|
|
||
|
|
||
| func chapterProgressDeep(for chapter: CourseChapter) -> Double { |
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.
I think "chapterCompletionProgress" is more discriptive than "chapterProgressDeep"
| return max(0.0, min(1.0, averageProgress)) | ||
| } | ||
|
|
||
| func chapterProgressDeepPercents(for chapter: CourseChapter) -> Int { |
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.
here also
I think "chapterCompletionPercentProgress" is more discriptive than "chapterProgressDeepPercents"
Or even we should have one function with parameter to return as percent or just the progress
|
@RawanMatar89 thanks for your review! All issues are fixed now. |
RawanMatar89
left a comment
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.
LGTM 👏🏻
657f067 to
b12024f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #638 +/- ##
========================================
Coverage ? 0
========================================
Files ? 0
Lines ? 0
Branches ? 0
========================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


Portrait
portrait.mov
Landscape
landscape.mov
iPad
iPad.mov
Dark Theme