-
Notifications
You must be signed in to change notification settings - Fork 2k
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
AnchorFM: Podcasting Card #47487
AnchorFM: Podcasting Card #47487
Conversation
Test live: https://calypso.live/?branch=anchorfm-card |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~124 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Sandbox the API and apply this diff.
I guess this refers to D52847-code?
`Easily turn your blog into a podcast with Anchor — the world's biggest podcasting platform.` | ||
) } | ||
actionText={ translate( 'Get started' ) } | ||
actionUrl={ `https://anchor.fm` } |
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.
Is this a temporary link? Similarly to the Stripe connection process on Earn blocks, I think this should redirect to a URL where users can connect their Anchor.fm account to their WP.com account and then they are redirected back to WP.com. But probably that process is still not implemented, in that case the temporary link is fine, but maybe we can include a TODO comment linking to the pending issue.
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 followed the description here: 310-gh-dotcom-manage
I agree -- the action URL as it stands doesn't make sense to me. I'll add a TODO
I took this for a quick spin and it worked! 👍 |
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.
Great start! As noted in D52847-code and in the comments of this PR, I think we still need to apply to some iterations, but it can be followed up later (we can create new issues or keep 310-gh-Automattic/dotcom-manage opened and note there the pending stuff).
`Easily turn your blog into a podcast with Anchor — the world's biggest podcasting platform.` | ||
) } | ||
actionText={ translate( 'Get started' ) } | ||
// TODO replace with more appropriate URL: https://github.com/Automattic/dotcom-manage/issues/320 |
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.
Nitpick: Since this is a private issue, it should use the shorthand. Also, the linked issue is for the inbound link (Anchor→WP.com), but the TODO here refers to the outbound link (WP.com→Anchor). We can maybe create a new follow-up issue.
actionText={ translate( 'Get started' ) } | ||
// TODO replace with more appropriate URL: https://github.com/Automattic/dotcom-manage/issues/320 | ||
actionUrl={ `https://anchor.fm` } | ||
completeOnStart={ false } |
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.
One more nitpick: completeOnStart
defaults to false so we can remove this altogether.
completeOnStart = false, |
I went ahead and added updates for the small issues mentioned in Miguel's comments above. :) This looks good to me too though. |
Thanks @blackjackkent ! |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/5219671 Thank you @krymson24 for including a screenshot in the description! This is really helpful for our translators. |
@sfougnier PR here: #47726 |
Translation for this Pull Request has now been finished. |
Changes proposed in this Pull Request
Testing instructions
wp-content/lib/home/views.php
Screenshots and GIFs
Fixes 310-gh-dotcom-manage