-
Notifications
You must be signed in to change notification settings - Fork 46
feat: [FC-0092] Course content tabs #450
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
Merged
volodymyr-chekyrta
merged 17 commits into
openedx:develop
from
raccoongang:feat/content_tab
Sep 1, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ab8111f
feat: all content tab
PavloNetrebchuk 8a48a24
feat: video content tab
PavloNetrebchuk 23d0352
feat: video tab progress
PavloNetrebchuk 9601f28
fix: video progress caching
PavloNetrebchuk f8c29fb
fix: changes according demo feedback
PavloNetrebchuk 1ac85bd
fix: assignment tab UI
PavloNetrebchuk 2939813
fix: connected data to assignment tab UI
PavloNetrebchuk 515a4d9
feat: color coding, detekt fixes
PavloNetrebchuk 7cc4182
feat: resume video
PavloNetrebchuk bf564c8
fix: changes according review
PavloNetrebchuk 9f0ae15
feat: changes according PR feedback
PavloNetrebchuk 0519fa9
feat: empty state view
PavloNetrebchuk e5311f5
fix: changes according PR review feedback
PavloNetrebchuk d8614c0
fix: changes according QA review feedback
PavloNetrebchuk 44f4f4e
feat: analytics
PavloNetrebchuk 98c7afe
fix: changes according QA review
PavloNetrebchuk 4d245e4
feat: db automigration
PavloNetrebchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1,236 changes: 1,236 additions & 0 deletions
1,236
app/schemas/org.openedx.app.room.AppDatabase/4.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
core/src/main/java/org/openedx/core/data/model/room/VideoProgressEntity.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package org.openedx.core.data.model.room | ||
|
|
||
| import androidx.room.ColumnInfo | ||
| import androidx.room.Entity | ||
| import androidx.room.PrimaryKey | ||
|
|
||
| @Entity(tableName = "video_progress_table") | ||
| data class VideoProgressEntity( | ||
| @PrimaryKey | ||
| @ColumnInfo("block_id") | ||
| val blockId: String, | ||
| @ColumnInfo("video_url") | ||
| val videoUrl: String, | ||
| @ColumnInfo("video_time") | ||
| val videoTime: Long, | ||
| @ColumnInfo("duration") | ||
| val duration: Long, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 19 additions & 3 deletions
22
core/src/main/java/org/openedx/core/domain/model/AssignmentProgress.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,27 @@ | ||
| package org.openedx.core.domain.model | ||
|
|
||
| import android.os.Parcelable | ||
| import kotlinx.parcelize.IgnoredOnParcel | ||
| import kotlinx.parcelize.Parcelize | ||
| import org.openedx.core.extension.safeDivBy | ||
|
|
||
| @Parcelize | ||
| data class AssignmentProgress( | ||
| val assignmentType: String, | ||
| val assignmentType: String?, | ||
| val numPointsEarned: Float, | ||
| val numPointsPossible: Float | ||
| ) : Parcelable | ||
| val numPointsPossible: Float, | ||
| val shortLabel: String | ||
| ) : Parcelable { | ||
|
|
||
| @IgnoredOnParcel | ||
| val value: Float = numPointsEarned.safeDivBy(numPointsPossible) | ||
|
|
||
| fun toPointString(separator: String = ""): String { | ||
| return "${numPointsEarned.toInt()}$separator/$separator${numPointsPossible.toInt()}" | ||
| } | ||
|
|
||
| @IgnoredOnParcel | ||
| val label = shortLabel | ||
| .replace(" ", "") | ||
| .replaceFirst(Regex("^(\\D+)(0*)(\\d+)$"), "$1$3") | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.