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-1211: Pass down pledge total to thank you page for new page copy #1965

Merged
merged 2 commits into from Mar 5, 2024

Conversation

amy-at-kickstarter
Copy link
Contributor

📲 What

Pass the pledge total into the thank you page.

🤔 Why

The new string for post-campaign backings on the thank-you page will reference the pledge amount, so we need it in the view model.

)
self.backedProjectText = self.configureWithDataProperty.signal
.skipNil()
.map { project, _, _, _ in
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fourth arg here will be the pledge total once I update the strings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the plan to then gate the string from within this output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@scottkicks Correct; this is just plumbing to get all the data where it needs to go.

@amy-at-kickstarter amy-at-kickstarter changed the title MBL-1211: Pass down pledge total to thank you page for new strings MBL-1211: Pass down pledge total to thank you page for new page copy Mar 4, 2024
@amy-at-kickstarter amy-at-kickstarter self-assigned this Mar 4, 2024
@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review March 4, 2024 21:56
@amy-at-kickstarter amy-at-kickstarter marked this pull request as draft March 4, 2024 22:09
@amy-at-kickstarter
Copy link
Contributor Author

Whoops, converting to draft while I fix tests.

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review March 4, 2024 23:05
@@ -905,7 +905,7 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge
isApplePay: isApplePay
)

return (data.project, baseReward, checkoutPropsData)
return (data.project, baseReward, checkoutPropsData, data.pledgeTotal)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One line to change it, another 40 lines to fix the tests about it 😆

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.

oops disregard this

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.

My bad. Misunderstood the intention at first

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/MBL-1211/pledge-total-plumbing branch from 5e62280 to fa0fbce Compare March 5, 2024 16:19
@amy-at-kickstarter amy-at-kickstarter merged commit 4a5bd09 into main Mar 5, 2024
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/MBL-1211/pledge-total-plumbing branch March 5, 2024 19:33
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