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

[MBL-1675] Update add-ons CTA #2142

Merged
merged 7 commits into from
Sep 3, 2024
Merged

[MBL-1675] Update add-ons CTA #2142

merged 7 commits into from
Sep 3, 2024

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Sep 3, 2024

📲 What

Update the add-ons CTA to include the pledge amount (in the no shipping at pledge flow). For simplicity, this also moves some pledge-flow CTA styles to be shared.

👀 See

Jira

See snapshots for the before/after.

✅ Acceptance criteria

  • Total pledge amount shows by continue cta on "customize reward" page
  • The pledge amount updates dynamically as bonus amount or add-on selection is changed
  • The old pledge flow is unchanged

@ifosli ifosli self-assigned this Sep 3, 2024
self.configureContinueCTAViewWithDataQuantity.assertLastValue(5)
self.configureContinueCTAViewWithDataIsValid.assertLastValue(true)
self.configureContinueCTAViewWithDataIsLoading.assertLastValue(false)
XCTAssertEqual(self.configureContinueCTAViewWithDataPledgeAmount.lastValue??.string, "$60.00")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: I've updated these and similar tests to only check the last value instead of asserting all values, since adding the total here about doubles the amount of value changes (any time bonus support or add-ons change, so does the total). I found just checking the last value to be more useful and more clear.

@ifosli ifosli marked this pull request as ready for review September 3, 2024 16:04
@ifosli ifosli requested a review from scottkicks September 3, 2024 16:04
Copy link
Contributor

@scottkicks scottkicks left a comment

Choose a reason for hiding this comment

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

Looks good! just noticing some slight differences in font sizing and the amount needing to be rounded.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the label and amount font sizes might be slightly off from the designs. And also I think the amount should be rounded to the nearest dollar.

from the designs
Screenshot 2024-09-03 at 9 09 17 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I asked Alison about this and she said to match the current styling for the total so I'm pretty sure we want to do that for the font as well!

@ifosli ifosli requested a review from scottkicks September 3, 2024 19:30
@ifosli ifosli merged commit f086c56 into main Sep 3, 2024
5 checks passed
@ifosli ifosli deleted the updateAddOnsCTA branch September 3, 2024 20:08
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.

2 participants