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

AFE Call to Action Part 1 #35340

Merged
merged 10 commits into from
Jun 18, 2020
Merged

AFE Call to Action Part 1 #35340

merged 10 commits into from
Jun 18, 2020

Conversation

molly-moen
Copy link
Contributor

@molly-moen molly-moen commented Jun 16, 2020

Update AFE Call to Action based on spec for this year (this is Phase 2 in the spec). Changes made are:

  • Add our new form to /amazon-future-engineer and remove donor teacher banners that existed on that page
  • Remove consent checkbox (it is now covered by the full-length form)
  • Remove call to AFE from banner--instead redirect to /amazon-future-engineer and scroll to our new form
  • remove unnecessary API calls now that most of the work is done on the new form

The banner now looks like this:
Screen Shot 2020-06-16 at 9 06 41 AM

The new form is embedded at the bottom of /amazon-future-engineer (see Next Steps for details on this)
Screen Shot 2020-06-16 at 9 06 09 AM

Next Steps

For now I have just put the new form as-is on the /amazon-future-engineer page, which means it starts with "Am I Eligible?". We want to instead skip over this step. The ability to do that will be added to the new form soon so skipping over that step on /amazon-future-engineer will be done as a follow-up item.

Links

Testing story

Tested manually on different browsers for teachers who are and are not eligible for AFE.

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

@molly-moen molly-moen requested review from dju90, bencodeorg and a team June 16, 2020 16:39
@@ -226,11 +222,7 @@ export default class TeacherHomepage extends Component {
)}
{isEnglish && this.state.donorBannerName && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this component is already here, assuming this PR won't actually make it visible for anyone yet? Does this.state.donorBannerName control who sees the banner?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep donorBannerName will be null if the banner should not be shown

@bencodeorg
Copy link
Contributor

I can't wrap my head around how donorTeacherBanner.js and the new amazon_future_engineer.js files interact. Can you help me understand?

Copy link
Contributor

@bencodeorg bencodeorg left a comment

Choose a reason for hiding this comment

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

LGTM -- would maybe think about getting rid of donorTeacherBanner.js entirely if it's not used anywhere? Also may be worth having someone in @code-dot-org/plc look at least at the amazon_future_engineer.js file, asynchronous JS is not quite my jam yet :).

@molly-moen
Copy link
Contributor Author

LGTM -- would maybe think about getting rid of donorTeacherBanner.js entirely if it's not used anywhere? Also may be worth having someone in @code-dot-org/plc look at least at the amazon_future_engineer.js file, asynchronous JS is not quite my jam yet :).

removed the donorTeacherBanner since it's now not used anymore

@dju90
Copy link
Contributor

dju90 commented Jun 17, 2020

Is donorTeacherBanner.js not used in Phase 2 of the campaign (which is roughly similar in user flow to last year's campaign, where a donor teacher banner was shown on the dashboard, for select schools)?

@bencodeorg
Copy link
Contributor

@dju90 I think the name of this PR is maybe misleading you a bit, this PR represents "Phase 2" of the spec, but is a "Part 1" of that phase :). It's not using donorTeacherBanner.js. Correct me if I'm wrong @molly-moen.

@molly-moen
Copy link
Contributor Author

@dju90 I think the name of this PR is maybe misleading you a bit, this PR represents "Phase 2" of the spec, but is a "Part 1" of that phase :). It's not using donorTeacherBanner.js. Correct me if I'm wrong @molly-moen.

That's correct! We aren't using donorTeacherBanner anywhere but the homepage in phase 2 which means we don't need that wrapper anymore, which was used to embed the banner within markdown

@molly-moen molly-moen merged commit de40726 into staging Jun 18, 2020
@molly-moen molly-moen deleted the molly/afe-cta branch June 18, 2020 18:24
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

4 participants