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

Tutorial explorer: preview mode on hourofcode.com #54711

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

breville
Copy link
Member

@breville breville commented Nov 6, 2023

This brings the Tutorial Explorer preview mode, first introduced in #43313, to https://staging.hourofcode.com/learn?preview=true, since the original URL for the mode was deprecated in #53916.

@breville breville requested review from Hamms, Erin007, a team and kelbyhawn November 6, 2023 04:38
Copy link
Contributor

@bethanyaconnor bethanyaconnor left a comment

Choose a reason for hiding this comment

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

a nit and a question but lgtm!

pegasus/sites.v3/hourofcode.com/public/learn/index.haml Outdated Show resolved Hide resolved
- tutorial[:string_detail_programming_languages] = hoc_s(prefix + "string_detail_programming_languages")
-# Unless showing a preview, look up localized versions of strings.
- unless request.params["preview"]
- tutorial[:name] = hoc_s(prefix + "name")
Copy link
Contributor

Choose a reason for hiding this comment

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

are these already set and being overwritten in this block? I guess I'm asking why there isn't an else

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. The cdo-tutorials gsheet should still have English versions of these strings, which we overwrite with localized versions unless using the preview.

@breville breville merged commit 0b11c23 into staging Nov 15, 2023
2 checks passed
@breville breville deleted the tutorial-explorer-preview-mode-hoc branch November 15, 2023 02:50
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.

None yet

2 participants