-
Notifications
You must be signed in to change notification settings - Fork 799
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
Premium content: Improve editing consistency #22626
Conversation
In the editor, viewing the content for people who don't have a subscription is sometimes referred to as 'Visitor view' and sometimes as 'Logged out view'. This change makes the interface more consistent by using 'Guest View'. Swap order of visitor/subscriber buttons in the editor to match the order of the added content. Fixes #22425
Caution: This PR has changes that must be merged to WordPress.com |
projects/plugins/jetpack/extensions/blocks/premium-content/edit.js
Outdated
Show resolved
Hide resolved
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Switch the content and menu order so that the default tab (Visitor view) is also the first menu item and the first content inserted.
Oh, good eye for detail 👏 @BogdanUngureanu I've made that change so that it's consistent. To me the subscriber content is the primary thing someone might want to work on next, so I thought about making the subscriber view the default and first one. The |
Works as expected! 🥳
Having the content as makes more sense to me too, but I think we should keep the current behaviour for now. |
I don't have anything against it, but is there a reason why we settled on "Guest" instead of picking one of the existing options? 😄 I'd say "guest" is a fairly reasonable label, although I wonder if by keeping, say, "Visitor" we'd also keep its translation instead of possibly needing a new one. (Randomly pinging @apeatling for opinions, because, as per tradition, all blames end with him. ) |
It's traditional when there are two competing standards to unify them by creating another "Logged Out view" seemed a bit unwieldy to me, I didn't like "Visitor view" because everywhere else on WPcom (stats, dashboard, repeat visitor block) 'Visitor' is just any website viewer, whether subscribed or not. Guest just seemed to get over the idea better to me. Though now I think about it, 'Guest' isn't strictly accurate as you could be contributing on one plan, but this premium content is gated behind a different plan 🤷♂️. Happy to go back to Visitor if that's preferred. |
Maybe changing to "Content" and something like "Payment prompt" or just "Paywall" makes more sense. |
@dsas Of all the suggestions, Guest View sounds best to me 😄 Either way, I think this is ready to go once we get the JP ✅ . |
Great news! One last step: head over to your WordPress.com diff, D74272-code, and commit it. Thank you! |
Changeset r239595-wpcom |
In the editor, viewing the content for people who don't have a
subscription is sometimes referred to as 'Visitor view' and sometimes as
'Logged out view'. This change makes the interface more consistent by using 'Guest View'.
Swap order of visitor/subscriber buttons in the editor to match the
order of the added content.
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Fixes #22425