Skip to content

Commit

Permalink
Merge branch 'feat/add-sourcelayer-studio-screen' into feat/R51-live-…
Browse files Browse the repository at this point in the history
…status-gateway-on-R50
  • Loading branch information
nytamin committed May 24, 2024
2 parents 3a8ef45 + f51bbbf commit 8d5b7d0
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions meteor/client/ui/PieceIcons/PieceCountdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface IPropsHeader {

const supportedLayers = new Set([
SourceLayerType.GRAPHICS,
SourceLayerType.STUDIO_SCREEN,
SourceLayerType.LIVE_SPEAK,
SourceLayerType.REMOTE,
SourceLayerType.SPLITS,
Expand Down
4 changes: 3 additions & 1 deletion meteor/client/ui/SegmentContainer/PieceMultistepChevron.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const PieceMultistepChevron = function PieceMultistepChevron({
const noraContent = piece.instance.piece.content as NoraContent | undefined

const hasStepChevron =
(piece.sourceLayer?.type === SourceLayerType.GRAPHICS || piece.sourceLayer?.type === SourceLayerType.LOWER_THIRD) &&
(piece.sourceLayer?.type === SourceLayerType.GRAPHICS ||
piece.sourceLayer?.type === SourceLayerType.LOWER_THIRD ||
piece.sourceLayer?.type === SourceLayerType.STUDIO_SCREEN) &&
noraContent?.payload?.step?.enabled

if (!hasStepChevron) return null
Expand Down
1 change: 1 addition & 0 deletions meteor/client/ui/SegmentList/PieceHoverInspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function PieceHoverInspector({
)
case SourceLayerType.GRAPHICS:
case SourceLayerType.LOWER_THIRD:
case SourceLayerType.STUDIO_SCREEN:
return (
<L3rdFloatingInspector
showMiniInspector={hovering}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function renderPieceInside(
return ScriptRenderer({ ...props, elementOffset, hovering, typeClass })
case SourceLayerType.GRAPHICS:
case SourceLayerType.LOWER_THIRD:
case SourceLayerType.STUDIO_SCREEN:
return GraphicsRenderer({ ...props, elementOffset, hovering, typeClass })
case SourceLayerType.SPLITS:
return SplitsRenderer({ ...props, elementOffset, hovering, typeClass })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function renderThumbnail(props: IProps): JSX.Element {
return SplitsThumbnailRenderer(props)
case SourceLayerType.GRAPHICS:
case SourceLayerType.LOWER_THIRD:
case SourceLayerType.STUDIO_SCREEN:

Check warning on line 43 in meteor/client/ui/SegmentStoryboard/StoryboardPartThumbnail/Renderers/ThumbnailRendererFactory.ts

View check run for this annotation

Codecov / codecov/patch

meteor/client/ui/SegmentStoryboard/StoryboardPartThumbnail/Renderers/ThumbnailRendererFactory.ts#L43

Added line #L43 was not covered by tests
return GraphicsThumbnailRenderer(props)
case SourceLayerType.LOCAL:
return LocalThumbnailRenderer(props)
Expand Down
1 change: 1 addition & 0 deletions meteor/client/ui/SegmentTimeline/SourceLayerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export const SourceLayerItem = withTranslation()(
)
case SourceLayerType.GRAPHICS:
case SourceLayerType.LOWER_THIRD:
case SourceLayerType.STUDIO_SCREEN:
return (
<L3rdSourceRenderer
key={unprotectString(this.props.piece.instance._id)}
Expand Down
2 changes: 2 additions & 0 deletions meteor/client/ui/Settings/ShowStyle/SourceLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function sourceLayerString(t: TFunction<'translation', undefined>, type: SourceL
// return t('Lights')
case SourceLayerType.LOCAL:
return t('Local')
case SourceLayerType.STUDIO_SCREEN:
return t('Studio Screen')
default:
assertNever(type)
return SourceLayerType[type]
Expand Down
3 changes: 2 additions & 1 deletion meteor/client/ui/Shelf/DashboardPieceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ export class DashboardPieceButtonBase<T = {}> extends MeteorReactComponent<
: this.props.layer.type === SourceLayerType.SPLITS
? this.renderSplits(isList && this.props.showThumbnailsInList)
: this.props.layer.type === SourceLayerType.GRAPHICS ||
this.props.layer.type === SourceLayerType.LOWER_THIRD
this.props.layer.type === SourceLayerType.LOWER_THIRD ||
this.props.layer.type === SourceLayerType.STUDIO_SCREEN
? this.renderGraphics(isButtons || (isList && this.props.showThumbnailsInList))
: null}

Expand Down
1 change: 1 addition & 0 deletions meteor/client/ui/Shelf/Renderers/ItemRendererFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function renderItem(props: ILayerItemRendererProps): JSX.Element
return React.createElement(VTListItemRenderer, props)
case SourceLayerType.GRAPHICS:
case SourceLayerType.LOWER_THIRD:
case SourceLayerType.STUDIO_SCREEN:

Check warning on line 30 in meteor/client/ui/Shelf/Renderers/ItemRendererFactory.ts

View check run for this annotation

Codecov / codecov/patch

meteor/client/ui/Shelf/Renderers/ItemRendererFactory.ts#L30

Added line #L30 was not covered by tests
return React.createElement(L3rdListItemRenderer, props)
}

Expand Down

0 comments on commit 8d5b7d0

Please sign in to comment.