WS-2095: Add share function to video carousels (Productionised)#13628
Open
emilysaffron wants to merge 80 commits intolatestfrom
Open
WS-2095: Add share function to video carousels (Productionised)#13628emilysaffron wants to merge 80 commits intolatestfrom
emilysaffron wants to merge 80 commits intolatestfrom
Conversation
emilysaffron
commented
Jan 20, 2026
| @@ -0,0 +1,24 @@ | |||
| /* eslint-disable import/no-extraneous-dependencies */ | |||
Contributor
Author
There was a problem hiding this comment.
This is copied over from the webcore implementation, would question whether we need it once we progress with this a bit more but have copied everything over as 1-1 as possible for now to help debugging and eliminate possible sources of things going wrong.
emilysaffron
commented
Jan 21, 2026
emilysaffron
commented
Jan 21, 2026
emilysaffron
commented
Jan 21, 2026
emilysaffron
commented
Jan 21, 2026
hotinglok
reviewed
Feb 16, 2026
| >(); | ||
| const [controlsDisplayed, setControlsDisplayed] = useState(false); | ||
|
|
||
| const hasShareApi = typeof navigator !== 'undefined' && 'share' in navigator; |
Contributor
There was a problem hiding this comment.
Have opted to not use State or useEffect because it did not seem needed here.
hotinglok
approved these changes
Feb 16, 2026
HarveyPeachey
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves JIRA: https://bbc.atlassian.net/browse/WS-2095 (started off as a spike PR WS-1959)
Summary
Following webcores pattern for a share button within the player:
To be done
anys)Code changes
Developer Checklist
Testing
Ready-For-Test, Local)Ready-For-Test, Test)Ready-For-Test, Preview)Ready-For-Test, Live)Additional Testing Steps
You can see this on Preview2. You will see it on browsers that support navigator.share
See it in the PV Carousel on homepages and articles pages
https://simorgh2.belfrage-preview.test.api.bbc.com/portuguese?renderer_env=live
https://simorgh2.belfrage-preview.test.api.bbc.com/portuguese/articles/c3vev5q0pero?renderer_env=live
Check their is no regression to the Live Page share button:
https://simorgh2.belfrage-preview.test.api.bbc.com/hausa/live/c5yg31le621t?renderer_env=live
Useful Links