Skip to content

Commit

Permalink
#79 introduced new conf descriptor feature flag: showRoomCapacityIndi…
Browse files Browse the repository at this point in the history
…cator, disabled by default
  • Loading branch information
fcamblor committed Apr 7, 2024
1 parent 5cb9fba commit 2f116d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cloud/functions/src/crawlers/crawler-parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const EVENT_DESCRIPTOR_PARSER = LISTABLE_EVENT_PARSER.extend({
showInfosTab: z.boolean().optional(),
// for multi-lang conferences, where we want to hide "default" (implicit) conference lang (ex: in devoxxfr, we'd hide FR)
hideLanguages: z.array(z.string()),
showRoomCapacityIndicator: z.boolean().optional(),
ratings: z.object({
bingo: z.object({
enabled: z.boolean(),
Expand Down
2 changes: 1 addition & 1 deletion mobile/src/components/rooms/RoomCapacityIndicator.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<transition>
<div v-if="capacityStatusRef && roomCapacityIndicatorShownRef" class="above-talkCard"
<div v-if="!!confDescriptorRef?.features.showRoomCapacityIndicator && capacityStatusRef && roomCapacityIndicatorShownRef" class="above-talkCard"
:style="{
'--status-level1-color': '#73a027',
'--status-level2-color': '#ff6a00',
Expand Down
1 change: 1 addition & 0 deletions shared/conference-descriptor.firestore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type ConferenceDescriptor = ListableEvent & {
showInfosTab?: boolean,
// for multi-lang conferences, where we want to hide "default" (implicit) conference lang (ex: in devoxxfr, we'd hide FR)
hideLanguages: string[],
showRoomCapacityIndicator?: boolean,
ratings: {
bingo: {
enabled: boolean,
Expand Down

0 comments on commit 2f116d5

Please sign in to comment.