@@ -39,7 +39,8 @@ const splashCard = {
39
39
kickerText : 'Kicker for splash card' ,
40
40
} ;
41
41
42
- /** This creates a list of 8 standard cards which contain:
42
+ /**
43
+ * This creates a list of 8 standard cards which contain:
43
44
* - a card with sublinks
44
45
* - a media card
45
46
* - a boosted card
@@ -173,13 +174,17 @@ export default meta;
173
174
type Story = StoryObj < typeof meta > ;
174
175
175
176
export const SplashWithStandards : Story = {
176
- name : 'Splash with standard cards' ,
177
+ name : 'Splash with big and standard cards' ,
177
178
args : {
178
- frontSectionTitle : 'Splash with stardards ' ,
179
+ frontSectionTitle : 'Splash with standards ' ,
179
180
groupedTrails : {
180
181
...emptyGroupedTrails ,
181
182
splash : [ { ...splashCard , supportingContent : [ ] } ] ,
182
- standard : standardCards ,
183
+ standard : standardCards . map ( ( card , index ) => ( {
184
+ ...card ,
185
+ isBoosted : index === 0 ,
186
+ boostLevel : index === 0 ? 'boost' : 'default' ,
187
+ } ) ) ,
183
188
} ,
184
189
} ,
185
190
} ;
@@ -373,12 +378,6 @@ export const SplashWithImageSupression: Story = {
373
378
374
379
export const SplashWithLiveUpdates : Story = {
375
380
name : 'Splash with live updates' ,
376
- args : {
377
- groupedTrails : {
378
- ...emptyGroupedTrails ,
379
- splash : [ { ...splashCard , image : undefined } ] ,
380
- } ,
381
- } ,
382
381
render : ( args ) => {
383
382
global . fetch = mockLatestLinksReqFetch ;
384
383
const Section = ( {
@@ -415,6 +414,42 @@ export const SplashWithLiveUpdates: Story = {
415
414
} ,
416
415
} ;
417
416
417
+ export const StandardBoostedWithLiveUpdates : Story = {
418
+ name : 'Standard boosted with live updates' ,
419
+ render : ( args ) => {
420
+ global . fetch = mockLatestLinksReqFetch ;
421
+ const Section = ( {
422
+ title,
423
+ boostLevel,
424
+ } : {
425
+ title : string ;
426
+ boostLevel : BoostLevel ;
427
+ } ) => (
428
+ < FrontSection
429
+ title = { title }
430
+ discussionApiUrl = { discussionApiUrl }
431
+ editionId = "UK"
432
+ showTopBorder = { true }
433
+ >
434
+ < FlexibleGeneral
435
+ { ...args }
436
+ groupedTrails = { {
437
+ ...emptyGroupedTrails ,
438
+ standard : [ { ...liveUpdatesCard , boostLevel } ] ,
439
+ } }
440
+ />
441
+ </ FrontSection >
442
+ ) ;
443
+
444
+ return (
445
+ < >
446
+ < Section title = "Boosted" boostLevel = "boost" />
447
+ < Section title = "Megaboosted" boostLevel = "megaboost" />
448
+ </ >
449
+ ) ;
450
+ } ,
451
+ } ;
452
+
418
453
const slideshowCard = {
419
454
...liveUpdatesCard ,
420
455
mainMedia : undefined ,
0 commit comments