Skip to content

Commit e7a53c0

Browse files
committed
Merge branch 'develop' into 74-speakers-listing-view
2 parents dc3d95b + 4a3907b commit e7a53c0

File tree

21 files changed

+112
-22
lines changed

21 files changed

+112
-22
lines changed

cloud/functions/src/crawlers/bdxio/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export const BDXIO_CRAWLER: CrawlerKind<typeof BDXIO_PARSER> = {
268268
title: descriptor.title,
269269
days: descriptor.days as Day[],
270270
headingTitle: descriptor.headingTitle,
271+
headingSubTitle: descriptor.headingSubTitle,
271272
headingBackground: descriptor.headingBackground,
272273
description: descriptor.description,
273274
keywords: descriptor.keywords,

cloud/functions/src/crawlers/camping-des-speakers/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export const CAMPING_DES_SPEAKERS_CRAWLER: CrawlerKind<typeof CAMPING_DES_SPEAKE
144144
title: descriptor.title,
145145
days: descriptor.days,
146146
headingTitle: descriptor.headingTitle,
147+
headingSubTitle: descriptor.headingSubTitle,
147148
headingBackground: descriptor.headingBackground,
148149
description: descriptor.description || "",
149150
keywords: descriptor.keywords,

cloud/functions/src/crawlers/codeurs-en-seine/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export const CODEURS_EN_SEINE_CRAWLER: CrawlerKind<typeof CODEURS_EN_SEINE_PARSE
264264
title: descriptor.title,
265265
days: descriptor.days as Day[],
266266
headingTitle: descriptor.headingTitle,
267+
headingSubTitle: descriptor.headingSubTitle,
267268
headingBackground: descriptor.headingBackground,
268269
description: descriptor.description,
269270
keywords: descriptor.keywords,

cloud/functions/src/crawlers/crawler-parsers.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,17 @@ export const EVENT_THEME_PARSER = z.object({
5454
secondaryContrastHex: HEX_COLOR_PARSER,
5555
tertiaryHex: HEX_COLOR_PARSER,
5656
tertiaryContrastHex: HEX_COLOR_PARSER
57-
})
57+
}),
58+
headingCustomStyles: z.object({
59+
title: z.string().nullable(),
60+
subTitle: z.string().nullable(),
61+
banner: z.string().nullable(),
62+
}).optional().nullable().default(null),
63+
headingSrcSet: z.array(z.object({
64+
url: z.string(),
65+
descriptor: z.string().regex(/\d(?:w|x)/)
66+
})).min(1).optional().nullable().default(null),
67+
customGoogleFontFamilies: z.array(z.string()).optional().nullable().default(null),
5868
})
5969

6070
export const SOCIAL_MEDIA_TYPE = z.union([
@@ -179,6 +189,7 @@ export const EVENT_FEATURES_CONFIG_PARSER = z.object({
179189

180190
export const EVENT_DESCRIPTOR_PARSER = LISTABLE_EVENT_PARSER.extend({
181191
headingTitle: z.string(),
192+
headingSubTitle: z.string().optional().nullable().default(null),
182193
headingBackground: z.string().optional().nullable().default(null),
183194
features: EVENT_FEATURES_CONFIG_PARSER,
184195
talkFormats: z.array(THEMABLE_TALK_FORMAT_PARSER),

cloud/functions/src/crawlers/devoxx-scala/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export const DEVOXX_SCALA_CRAWLER: CrawlerKind<typeof DEVOXX_SCALA_DESCRIPTOR_PA
286286
const eventDescriptor: FullEvent['conferenceDescriptor'] = {
287287
...eventInfo,
288288
headingTitle: descriptor.headingTitle,
289+
headingSubTitle: descriptor.headingSubTitle,
289290
headingBackground: descriptor.headingBackground,
290291
features: descriptor.features,
291292
talkFormats: Array.from(themedTalkFormatsByIdAndDuration.values()),

cloud/functions/src/crawlers/devoxx/crawler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Please, unless event id is made configurable at cfp.dev level, you should rather
297297

298298
fullEventBuilder.usingInfosAndDescriptor(eventInfo, {
299299
headingTitle: descriptor.headingTitle,
300-
headingBackground: descriptor.headingBackground,
300+
headingSubTitle: descriptor.headingSubTitle,headingBackground: descriptor.headingBackground,
301301
features: {
302302
...descriptor.features,
303303
},

cloud/functions/src/crawlers/full-event.builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export class FullEventBuilder {
351351
};
352352
this.descriptor = {
353353
...pick(this.listableEventInfo, ['id', 'title', 'days', 'timezone', 'keywords', 'location', 'backgroundUrl', 'logoUrl', 'theming', 'buyTicketsUrl']),
354-
...pick(descriptor, ['headingTitle', 'headingBackground', 'features', 'formattings', 'infos']),
354+
...pick(descriptor, ['headingTitle', 'headingSubTitle', 'headingBackground', 'features', 'formattings', 'infos']),
355355
rooms: [...this.roomsById.values()],
356356
talkTracks: [...this.tracksById.values()],
357357
talkFormats: [...this.formatsById.values()],
@@ -411,7 +411,7 @@ export class FullEventBuilder {
411411
conferenceDescriptor: {
412412
...pick(this.descriptor, [
413413
'id', 'title', 'days', 'timezone', 'keywords', 'location', 'backgroundUrl',
414-
'logoUrl', 'theming', 'headingTitle', 'headingBackground', 'talkFormats',
414+
'logoUrl', 'theming', 'headingTitle', 'headingSubTitle', 'headingBackground', 'talkFormats',
415415
'talkTracks', 'supportedTalkLanguages', 'rooms', 'formattings', 'infos',
416416
]),
417417
features: {

cloud/functions/src/crawlers/jugsummercamp/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const JUG_SUMMERCAMP_CRAWLER: CrawlerKind<typeof JUG_SUMMERCAMP_PARSER> =
135135
title: descriptor.title,
136136
days: descriptor.days,
137137
headingTitle: descriptor.headingTitle,
138+
headingSubTitle: descriptor.headingSubTitle,
138139
headingBackground: descriptor.headingBackground,
139140
description: descriptor.description || "",
140141
keywords: descriptor.keywords,

cloud/functions/src/crawlers/la-product-conf/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export const LA_PRODUCT_CONF_CRAWLER: CrawlerKind<typeof LA_PRODUCT_CONF_DESCRIP
248248
title: descriptor.title,
249249
days: descriptor.days as Day[],
250250
headingTitle: descriptor.headingTitle,
251+
headingSubTitle: descriptor.headingSubTitle,
251252
headingBackground: descriptor.headingBackground,
252253
description: descriptor.description,
253254
keywords: descriptor.keywords,

cloud/functions/src/crawlers/openplanner/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
298298
logoUrl: descriptor.logoUrl || openPlannerSchedule.logoUrl,
299299
backgroundUrl: descriptor.backgroundUrl || openPlannerSchedule.backgroundUrl,
300300
headingTitle: descriptor.headingTitle || openPlannerSchedule.headingTitle,
301+
headingSubTitle: descriptor.headingSubTitle || openPlannerSchedule.headingSubTitle,
301302
headingBackground: descriptor.headingBackground || openPlannerSchedule.headingBackground,
302303
talkFormats: formats,
303304
talkTracks: tracks,

0 commit comments

Comments
 (0)