sensei
sensei copied to clipboard
Enable to show the course progress inside a Course List
Goal
The goal of this card is to enable the users to show the course progress inside a Course List.
Scope
- Review the current progress-bar block (Render and Editor) to make sure it works outside a Course Page
Tech Details
Currently, there is a progress-bar block, that was not planned to be used inside a query loop and outside a course page. We need to review whether it is possible/feasible to reuse the block or create a new one based on the same requirements.
Screenshots
Acceptance Criteria
Scenario 1: [Editor] Adding the progress block
Given I have a page with a course list When I add the course progress bar block Then I should see the course progress bar using fake data as a progress And I should see the progress bar settings
Scenario 2: [Render] Course with student progress
Given I am logged in as a student When I land on a page with the course list And there is a course that I have progress Then I should see my progress.
Scenario 3: [Render] Course without student progress
Given I am logged in as a student When I land on a page with the course list And there is a course that I don't have progress Then I should NOT see the progress bar
Scenario 4: User not logged in
Given I am a not logged-in user When I land on a page with the course list Then I should not see the progress bar.
Settings
@gabrielcaires I've checked a bit and it seems we are good to go with the current Course Progress block, do you think we need anything extra? Otherwise maybe we can close the ticket
@Imran92 I think that currently is not possible to use a progress bar inside a regular page, the block is only available inside a course page. Do we have any change regarding it?
Is possible to reach the design expectation with the current implementation?
@gabrielcaires you're right, we need to allow the block to load on regular Pages. And regarding the designs, as our current design spec does not specify/require a specific set of settings or any new setting for the Progress Bar, I think we should be good to go with the current one. Or as we've discussed before, we can also talk with Andrei to tweak the design if possible so that we can utilize our current progress block. But for now, I think allowing on pages can be the scope of this card, what do you think?
Fixed by #5443.