-
Notifications
You must be signed in to change notification settings - Fork 234
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
WSTEAM1-623: Render VJ Embeds on .AMP #11148
Conversation
|
||
if (isAmp) { | ||
if (isVDJEmbed) { | ||
if (parameters) { |
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've included this so that we don't render nothing at the URL http://localhost:7080/pidgin/articles/c0nzj66vp65o.amp?renderer_env=test
An alternative would be to have if (!parameters) return null
. As I understand parameters will always be supplied. soo we could potentially remove this once the BFF changes are merged in.
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.
Looks really good, just a few comments
…s for local testing
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 work! Looks really good, just a couple of nitpick parts, but nothing stopping it being merged imo.
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.
LGTM
Resolves WSTEAM1-677: Render VJ embed on .amp
(Subtask of WSTEAM1-623: Embeds: Optimo VJ interactives embeds .amp)
Overall changes
Render VJ embeds on .amp for Optimo articles. Migrate legacy
VjAmp
container logic to newAmpIframe
component which uses our new component standards.Code changes
data/...
aresType
tooEmbed
in Riddle and Flourish fixture data. (Also update Riddle/Flourish articles to latest BFF output to check for any other changes.)AmpIframe/...
containers/include/amp/VJAmp
Embeds/...
AmpIframeEmbed
to handle VJ .amp embedsrc/app/components/Embeds/OEmbed/index.tsx
to render AmpIframeEmbed componentLegacy/containers/include/...
VjAmp
componentTesting
Pull down this PR and run Simorgh locally
Visit http://localhost:7080/pidgin/articles/c578zj113e9o.amp and see VJ embed asset
Visit http://localhost:7080/pidgin/articles/cqwq7dm61zeo.amp and see error message (Flourish)
Visit http://localhost:7080/pidgin/articles/c39rjygpmv1o.amp and see error message (Riddle)
Visit http://localhost:7080/ukrainian/news-russian-23333960.amp and see VJ embed asset (Story page VJ embed)
Before BFF changes are merged in:
Visit http://localhost:7080/pidgin/articles/c0nzj66vp65o.amp?renderer_env=test to see the error message (as no params are supplied)
After BFF changes are merged in:
Visit http://localhost:7080/pidgin/articles/c0nzj66vp65o.amp?renderer_env=test and see VJ embed asset
Helpful Links
Add Links to useful resources related to this PR if applicable.
UX Specs
Coding Standards
Repository use guidelines