-
Notifications
You must be signed in to change notification settings - Fork 291
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
Implement <PublicationOnboardingStateNotice>
component
#8838
Comments
Thank you for the excellent IB here, @ankitrox ! One small point about the CTA link. We should use the Thanks! |
@nfmohit Thank you for reviewing the IB. I've amended the suggested point. Assigning back to you. |
Thanks @ankitrox ! IB LGTM 👍 ✅ |
QA Update
|
As per the conversation in this slack thread, this issue will be on hold in Execution till #8840 is merged so that we can use |
Just a note here, that the existing work merged in (see PR #9037) was entirely self-contained and only affected Storybook/Jest tests; the actual component is not yet in use anywhere and there are no other changes. To simplify things I'm going to remove it from being tagged with the current release, since it's dependent on another issue (#8840), which won't be ready in time, and this issue will not be merged into this release ( Normally we'd revert this change from |
As discussed previously, I have created a follow-up PR #9177 for this issue which uses Moving this for code review. |
Hi @kelvinballoo . This is now back with you for a re-check.
This has been fixed.
It is 500.
This has been fixed. Please let us know if you have any other questions, thank you! |
QA Update ✅Thanks @nfmohit , Verified this and it's looking good. ITEM 1: ITEM 2: ITEM 3: |
Feature Description
A
<PublicationOnboardingStateNotice>
component should be implemented for the Reader Revenue Manager module that renders a notice based on the onboarding state of the current publication.Screenshot for reference
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
<PublicationOnboardingStateNotice>
component should be added to the Reader Revenue Manager module according to the Figma designs that renders a notice based on the onboarding state of the current publication.PENDING_VERIFICATION
.ONBOARDING_ACTION_REQUIRED
.Implementation Brief
Note:
PropertySelect
component in #8837 will be responsinble for setting the onboarding state in the settings using thesetPublicationOnboardingState
action. This has already described in IB for #8837.assets/js/module/reader-revenue-manager/components/common/PublicationOnboardingStateNotice
.useSelect
hook to check for thepublicationOnboardingState
and callgetPublicationOnboardingState
selector.PENDING_VERIFICATION
orONBOARDING_ACTION_REQUIRED
, return null.PENDING_VERIFICATION
orONBOARDING_ACTION_REQUIRED
, display the notice text and CTA text as per AC mentioned above.SettingsNotice
component to display the notice. Pass following props to it.Icon
- Passwarning
as we need to display the warning notice.notice
- This will be the notice text as per AC.OuterCTA
- This should be CTA which will open the publication center (https://publishercenter.google.com/) in a new tab. UseLink
component to display CTA link withexternal
prop set to true. We should usegetServiceURL
selector to get the URL for the CTA. Pass publication ID to the selector.PublicationOnboardingStateNotice
component to match the notice component with the design.Test Coverage
Add tests for component with different onboarding states.
QA Brief
Modules -> ReaderRevenueManager -> Common -> PublicationOnboardingStateNotice
Storybook story and verify that the notice looks according to the Figma designs and functions according to the ACs.Changelog entry
PublicationOnboardingStateNotice
component, rendering a notice based on the onboarding state of the current publication and presented in Storybook.The text was updated successfully, but these errors were encountered: