-
Notifications
You must be signed in to change notification settings - Fork 49
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
fix: donate block layout for NRH #2954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this for a test run, but not on a site that has NRH connected, just on a site set to use NRH as a donation platform.
Overall it looks good, but I ran into one issue: in the editor, the tiered layout of the block shows a $0 amount, even though it displays a proper dollar amount on the front end. The frequency view was fine and showed dollar amounts:
@laurelfulford I pushed a fix for this in the other repo: abf4dd9 Also applies some CSS so that the look matches the Woo-based block more closely: |
Whoops, looks like that last change broke things if the platform is set to NRH, but WooCommerce is active. Fixed that in 7fa0e66. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dkoo!
I'm just going to keep the feedback on this PR since it's easier to have it all in one place, though I think this is all still related to the block part of the changes.
Testing, I'm still getting a bit of weirdness in the editor:
- Both on localhost and on the JN site, I'm getting the currency locale (US) in the editor (not on the front-end).
- The buttons are also misaligned in the editor (sorry I missed that earlier!)
I also compared the block to how it used to look, and it's still not quite 1:1: the price should use the heading font as well (not the body) and be a bit bigger/bold; it should also be followed by the frequency amount:
When I switch back to Woo/NYP on this branch, some of these issues persist:
- The font is wrong on the prices on the front-end and in the editor
- The currency symbol is missing
- In the editor, the button text is also left-aligned:
Just let me know if you have any questions, or if I can help with any fixes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-tested these this PR and the block PR with the following combinations, attempting to check out with each:
- NRH as RR platform; Woo, NYP enabled
- NRH as RR platform; Woo enabled
- NRH as RR platform
- Newspack as RR platform; Woo, NYP enabled
- Newspack as RR platform; Woo enabled
... and compared them to a JN sites running a previous version. Outside of one small display issue I fixed (which existed before any of the NYP changes), things look good!
I also tested changing the button colours, and the theme's fonts -- both were picked up in expected ways with this PR.
The only thing I noticed is that if you don't have NYP enabled, you lose the ability to configure a block manually. Without tiers or custom pricing, this would only be the ability to enable/disable tabs on a specific block -- so if you have 'Once' turned off under Reader Revenue, you can't turn it on one an individual block. I think this could be changed as an enhancement to the non-NYP, non-NRH version of the block down the road if we wanted to -- it's not a regression.
Going to mark this and the related block PR as approved!
## [3.1.2](v3.1.1...v3.1.2) (2024-02-29) ### Bug Fixes * donate block layout for NRH ([#2954](#2954)) ([8595985](8595985))
🎉 This PR is included in version 3.1.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [3.2.0-alpha.2](v3.2.0-alpha.1...v3.2.0-alpha.2) (2024-02-29) ### Bug Fixes * donate block layout for NRH ([#2954](#2954)) ([8595985](8595985))
🎉 This PR is included in version 3.2.0-alpha.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Along with Automattic/newspack-blocks#1682, fixes a regression introduced by #2866.
How to test the changes in this Pull Request:
release
, set your Reader Revenue platform to NRH and disable WooCommerce.Other information: