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

Teacher Homepage: HOC 2019 announcement #31821

Merged
merged 2 commits into from Nov 11, 2019
Merged

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented Nov 11, 2019

PLC-552 Adds the Hour of Code 2019 CS For Good announcement to the teacher dashboard homepage. We'd like to launch this today.

Also removes some old unreachable and partially nonfunctional special announcement code - looks like it wasn't removed cleanly at some point in the past, because the assets are missing.

image (16)

Links

Testing story

Tested manually on local machine. Believe I've done due diligence checking that code and translations being removed are unused; otherwise leaning on CI to catch issues. I expect some eyes tests to change because of this.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

Also remove old unreachable and nonfunctional special announcement code - looks like it
wasn't removed cleanly at some point in the past.
@islemaster islemaster requested a review from a team as a code owner November 11, 2019 21:38
@islemaster islemaster changed the title Add HOC 2019 announcement to the teacher homepage Teacher Homepage: HOC 2019 announcement Nov 11, 2019
"specialAnnouncementHeadingJoinProfessionalLearning2019Trophy": "Know an Awesome Teacher?",
"specialAnnouncementDescriptionJoinProfessionalLearning2019Trophy": "Let them know how amazing they are by nominating them for a Professional Learning Scholarship today!",
"specialAnnouncementHeadingHoc2019CsForGood": "The Hour of Code is coming",
"specialAnnouncementDescriptionHoc2019CsForGood": "Try one of the 100 NEW activities for the Hour of Code (Dec 9-15)! This year, encourage your students to think about ways of using CS for good. Sign up your class today.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It turns out we're not using any of these specialAnnouncement strings anyplace anymore. Seems like we should remove them and put them back next year if needed? (Also, special announcements are constrained to English locales right now so no translation lead time to worry about.)

Copy link
Contributor

Choose a reason for hiding this comment

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

That sounds good to me. Thanks for the extra clean-up here!

hocLaunch={hocLaunch}
hasIncompleteApplication={!!sessionStorage['TeacherApplication']}
/>
<SpecialAnnouncementActionBlock hocLaunch={hocLaunch} />
Copy link
Contributor

Choose a reason for hiding this comment

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

For US-centric stuff like teacher applications restricting to English makes sense. Do we want to remove the isEnglish check to show this HoC announcement in other languages too since it's relevant outside the US?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure - isn't CS Ed Week different in some other countries? I'll ask marketing.

@@ -214,49 +214,26 @@ export class AdministratorResourcesActionBlock extends Component {

export class SpecialAnnouncementActionBlock extends Component {
static propTypes = {
hocLaunch: PropTypes.string,
hasIncompleteApplication: PropTypes.bool
hocLaunch: PropTypes.string
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we still using this hocLaunch prop for anything? I have a vague idea that it was for when we were doing short promos in succession last year (aquatic, then dance, etc). Just double checking it's still relevant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm leaving it in for now even though it's unused, because I believe we'll be doing some similar short promos this year.

@islemaster islemaster merged commit 036c46b into staging Nov 11, 2019
@islemaster islemaster deleted the csforgood-announce branch November 11, 2019 22:55
@islemaster
Copy link
Contributor Author

Merged to get this change out for today. Am following up with Marketing re: making this visible to non-en locales.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants