[copilot] Front end build for new topic discovery component#13927
Open
Nabeel1276 wants to merge 74 commits intolatestfrom
Open
[copilot] Front end build for new topic discovery component#13927Nabeel1276 wants to merge 74 commits intolatestfrom
Nabeel1276 wants to merge 74 commits intolatestfrom
Conversation
… and CurationGrid
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new TopicDiscovery UI component to render topic-based related content using a tabbed interface, reusing existing curation promo/grid building blocks in Simorgh.
Changes:
- Introduces
TopicDiscoverycomponent, styles, and data/types to render a tabbed related-content section. - Adds a
ScrollableTabssubcomponent for horizontally scrollable, keyboard-navigable tabs with scroll controls. - Adds Storybook stories and fixtures for local development/visual testing.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/app/components/TopicDiscovery/types.ts | Adds TypeScript types for topic discovery payloads. |
| src/app/components/TopicDiscovery/index.tsx | Implements the main TopicDiscovery section, tab state, and mapping items to curation summaries. |
| src/app/components/TopicDiscovery/index.styles.ts | Emotion styles for the TopicDiscovery section layout. |
| src/app/components/TopicDiscovery/index.stories.tsx | Storybook stories for default, single-topic, and empty states. |
| src/app/components/TopicDiscovery/fixtures.ts | Fixture data for Storybook/dev testing. |
| src/app/components/TopicDiscovery/ScrollableTabs/index.tsx | Implements scrollable tab UI with overflow detection and keyboard interaction. |
| src/app/components/TopicDiscovery/ScrollableTabs/index.styles.ts | Emotion styles for ScrollableTabs and scroll buttons. |
…overy-component
…overy-component
…overy-component
…overy-component
…overy-component
…overy-component
…overy-component
LilyL0u
reviewed
May 1, 2026
LilyL0u
reviewed
May 1, 2026
LilyL0u
approved these changes
May 1, 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-2397
Summary
topicwithin each topic tag tab returned via the BFFTopicDiscoverycomponent which renders topic-based recommendations returned by the BFF, showing up to 4 related items per topic and supportingarticle,audioandvideopromosArticlerelated-contentsectionCode changes
Testing
The component can be viewed in Storybook:
https://ws-2397-front-end-build-for-new-topic--5d28eb3fe163f6002046d6fa.chromatic.com/iframe.html?id=pages-article-page--article-page-with-topic-discovery&viewMode=story
But also feel free to run
simorghusingyarn devto view the componentUseful Links