Skip to content

Commit f91ac7b

Browse files
authored
Merge pull request #14304 from guardian/doml/add-flexgen-story
Add an extra story to flexible general
2 parents 7156933 + 6cf74ec commit f91ac7b

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

dotcom-rendering/src/components/FlexibleGeneral.stories.tsx

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const standardCards = standards.map((card, index) => {
5454

5555
switch (index + 1) {
5656
case 2:
57-
return enhanceCardFields({ supportingContent: getSublinks(2) });
57+
return enhanceCardFields({
58+
supportingContent: getSublinks(2),
59+
});
5860
case 3:
5961
return enhanceCardFields({
6062
boostLevel: 'boost',
@@ -437,13 +439,13 @@ const slideshowCard = {
437439
],
438440
} satisfies DCRFrontCard;
439441

440-
export const DefaultSplashWithLiveUpdatesAndSlideshow: Story = {
441-
name: 'Standard splash with live updates and slideshow',
442+
// Boost level is ignored for slideshows
443+
export const SplashWithLiveUpdatesAndSlideshow: Story = {
444+
name: 'Splash with live updates and slideshow',
442445
args: {
443-
frontSectionTitle: 'Standard splash with live updates and slideshow',
446+
frontSectionTitle: 'Splash with live updates and slideshow',
444447
groupedTrails: {
445448
...emptyGroupedTrails,
446-
447449
splash: [{ ...slideshowCard }],
448450
},
449451
},
@@ -460,6 +462,21 @@ export const StandardCards: Story = {
460462
},
461463
};
462464

465+
export const StandardBoostedMediaCardWithSublinks: Story = {
466+
name: 'Standard boosted media card with sublinks',
467+
args: {
468+
frontSectionTitle: 'Standard boosted media card with sublinks',
469+
groupedTrails: {
470+
...emptyGroupedTrails,
471+
standard: [trails[1]].map((card) => ({
472+
...card,
473+
boostLevel: 'boost',
474+
supportingContent: getSublinks(2),
475+
})),
476+
},
477+
},
478+
};
479+
463480
export const OpinionStandardCards: Story = {
464481
name: 'Opinion standard cards',
465482
args: {

0 commit comments

Comments
 (0)