Skip to content

Broadcast cast · Search params & storage

8 modules · 18 exports · 1 repository · 0 e2e tests · 9 routes

The state Broadcast cast keeps in the URL and in the browser's storage. Every param has a default and never fails to decode, see Search params, and each definition should have an assertRoundTrips test. The definitions of the whole app are listed in the reference.

Search params

URL broadcastDashboardSearchParams

app/features/broadcast-cast/broadcast-cast-search-params.ts:22

ParamValueDefaultLoaderDescription
tab v.picklist(BROADCAST_DASHBOARD_TABS)"setup"false

Used in to.$id.broadcast.$channel.tsx

URL broadcastDesignSearchParams

app/features/broadcast-cast/broadcast-cast-search-params.ts:33

The designer's scene and the mock scenario it shows, so a scenario can be linked to.

ParamValueDefaultLoaderDescription
scene v.picklist(BROADCAST_SCENES)"game"false
footage
v.picklist(
	Object.keys(BROADCAST_DESIGN_FOOTAGE) as Array<
		keyof typeof BROADCAST_DESIGN_FOOTAGE
	>,
)
"gameplay"false

Game feed screenshot under the overlay.

transition v.picklist(BROADCAST_TRANSITIONS)"stinger"false
names v.picklist(BROADCAST_DESIGN_NAME_LENGTHS)"typical"false
set v.picklist(BROADCAST_DESIGN_SET_STAGES)"ongoing"false
bestOf v.picklist(BROADCAST_DESIGN_BEST_OF)5false
ink v.nullable(v.picklist(BROADCAST_INK_COLORS.map((color) => color.key)))nullfalse

In-game ink colors of the game scene, null keeps the theme's team colors.

swapSides v.boolean()falsefalse
seeds v.boolean()truefalse
logos v.boolean()truefalse

Team logos, without them teams show their initial.

placeholderLogos v.boolean()falsefalse

The tournament's logo standing in for the featured teams' real logos too.

players countBetween(1, BROADCAST_DESIGN_MAX_PLAYERS)4false
casters countBetween(0, BROADCAST_MAX_CASTERS)2false
otherMatches countBetween(0, BROADCAST_DESIGN_MAX_OTHER_MATCHES)4false

Other matches in the "elsewhere" ticker.

headline v.boolean()truefalse
bracket v.picklist(BROADCAST_DESIGN_BRACKETS)"double_elimination"false
bracketFocus v.picklist(BROADCAST_BRACKET_FOCUSES)"remaining"false

Used in DesignScenario.tsto.$id.broadcast.$channel.design.tsx