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

[Learner] Call to action on course card should change if the learner has already started the course #15

Open
BbrSofiane opened this issue Mar 9, 2022 · 4 comments
Assignees
Labels

Comments

@BbrSofiane
Copy link
Member

Expected Behavior

The call to action on the course card should change if the learner has already started the course.

In the legacy dashboard, the button changes from "View course" to "Resume Course" and to "View Archived Course"
image
image

Current Behavior

The call to action displays "Start now" even when the learner has started the courses.

image

Possible Solutions

@BbrSofiane BbrSofiane self-assigned this Mar 9, 2022
@Salik-Rafiq
Copy link
Contributor

Ah! OK. Will have to look into how the system knows this. Hopefully it's in the API results.

@Salik-Rafiq
Copy link
Contributor

There is this API, per course, which contains some data on "Progress". I'm guessing that we can use this.
/course_home/v1/progress/{course_key_string}

It returns back a whole ton of data - we only need to know that there is progress!

I think if you look at the section

"completion_summary": { "complete_count": 2, "incomplete_count": 37, "locked_count": 0 },

This can be used I think to work out that the student has started the cours.

Will be a good test to use some functions to drop the correct text in.

@Salik-Rafiq
Copy link
Contributor

What's interesting is that if you click on "view archived course" then screen than shows "start course" in the top right.

@BbrSofiane
Copy link
Member Author

This is not as high on the priority list, I'm happy to make the dashboard live without it.

@BbrSofiane BbrSofiane added this to the 2022-08-08 Sprint milestone Aug 2, 2022
@BbrSofiane BbrSofiane removed this from the 2022-08-29 Sprint milestone Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants