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

Update download page text when no resources found #1475

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

pt2302
Copy link
Contributor

@pt2302 pt2302 commented Dec 6, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/6189 and closes https://github.com/mitodl/hq/issues/6190.

Description (What does it do?)

This PR makes two changes to the Course Download page when no resources are found for a course:

  1. The No Resources Found. message is not displayed.
  2. The message next to the Download course button is updated to the following:

This package contains the same content as the online version of the course. Once downloaded, to open the homepage, click on the index.html file. For more help using these materials, read our FAQs.

How can this be tested?

Run yarn start course <course name> for a course with resources, such as 21w.758-spring-2013 and then repeat for a course without resources, such as 10.01-spring-2020. Confirm that the Download Course page at localhost:3000/download has been updated for courses with no resources.

@github-actions github-actions bot temporarily deployed to pull request December 6, 2024 20:56 Inactive
@github-actions github-actions bot temporarily deployed to pull request December 6, 2024 20:56 Inactive
Copy link

github-actions bot commented Dec 6, 2024

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@pdpinch pdpinch left a comment

Choose a reason for hiding this comment

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

TBH, I find this UX frustrating. I click download in the sidebar and then I have to click download again. The "download page" serves no value.

But, since this is already done and it is an incremental improvement, I guess we should go ahead an merge it. But to do things right, we should rethink this UX.

@pt2302 pt2302 merged commit af5ff64 into main Dec 10, 2024
7 of 8 checks passed
@odlbot odlbot mentioned this pull request Dec 13, 2024
1 task
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