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

Discount code bugs #19593

Merged
merged 11 commits into from Jan 2, 2018
Merged

Discount code bugs #19593

merged 11 commits into from Jan 2, 2018

Conversation

Bjvanminnen
Copy link
Contributor

This PR fixes a bunch of small bugs we discovered while walking through the discount code flow on staging-next.

  • Small fix to one of my helpers for faking eligible teachers
  • Made it so that once an admin has overriden a user's application status, they don't need a confirmed school to request a code
  • Made it so that we no longer update the User model when we confirm our school. This is because we're not actually guaranteed to have a SchoolInfo for every School in our dropdown.
  • We were hardcoding fullDiscount for some reason when passing to instructions
  • Poorva noticed that when a disabled Button was clicked, it's onClick was still fired. This fixes that.
  • A bunch of small UI polish to our instructions page (screenshot at end)
  • Instead of hard-coding expiration, get it from server.

image

@@ -144,11 +153,11 @@ export default class EligibilityChecklist extends Component {
According to our data, your school has fewer than 50% of students that are
eligible for free/reduced-price lunches. This means that we can bring down
the cost of the $325 kit to just $97.50.{" "}
<b>
Copy link

Choose a reason for hiding this comment

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

I agree with removing {b} but would it be possible to use {strong} rather than {div} here? Screenreaders are able to emphasize the strong tag, so it become perceivable by folks using screenreaders.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fwiw, the reason i removed the b is because for whatever reason, just bolding gotham 4r seemed to show very little difference in bold. i saw that we use gotham 7r where we want bold elsewhere, so switched to that.
will add a strong. thx for the pointer :)

@@ -129,7 +133,7 @@ export default class EligibilityConfirmDialog extends Component {
<label>
<div>{i18n.verifySignature()}</div>
<div style={styles.signature}>
<b>Electronic Signature</b> {i18n.typeName()}
Copy link

Choose a reason for hiding this comment

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

Same comment re: {strong}

@Bjvanminnen Bjvanminnen merged commit dedc5a9 into staging Jan 2, 2018
@Bjvanminnen Bjvanminnen deleted the discountCodeBugs branch January 2, 2018 17:34
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

3 participants