Skip to content

PROD-2549 Add Course State to Course Cards -> dev #210

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
merged 4 commits into from
Jul 25, 2022

Conversation

brooketopcoder
Copy link
Contributor

@brooketopcoder brooketopcoder commented Jul 22, 2022

https://topcoder.atlassian.net/browse/PROD-2549

This PR updates the /learn landing page so the progress block on the top right of the page matches the course cards at the bottom of the page.

  • if the course is completed, View the Certificate
  • if there is no in-progress lesson for the course, Get Started by going to the course details
  • otherwise this course is in-progress, so Resume the course at the next lesson

Also, because this is the first UI work I've done in the Learn tool, I did a small bit of refactor to make some of the variable names, etc more clear to me and to simplify some of the methods.

Oh, and also some formatting mods to make it easier for me to read.

…ser id;

make function and variable names more explicit; lint fixes;
add user's course state to the course cards;
refactor progress block to use the same course state the cards use; #time 4h
@brooketopcoder brooketopcoder self-assigned this Jul 22, 2022
Copy link
Collaborator

@vas3a vas3a left a comment

Choose a reason for hiding this comment

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

Looks really good to me! Just the 1 question for the userId param.

@brooketopcoder
Copy link
Contributor Author

@vas3a I added the userId argument back and renamed everything User Certifications rather than My Certifications. I also renamed Certifications to All Certifications to be totally explicit.

Copy link
Collaborator

@vas3a vas3a left a comment

Choose a reason for hiding this comment

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

Awesome! Glad you did that! I'm not that good with choosing the best naming! 🙌

@brooketopcoder brooketopcoder merged commit 4cb96f3 into dev Jul 25, 2022
@brooketopcoder brooketopcoder deleted the PROD-2549_resume branch July 25, 2022 23:45
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.

3 participants