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
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
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.
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
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) | 5 | false | |
ink | v.nullable(v.picklist(BROADCAST_INK_COLORS.map((color) => color.key))) | null | false | In-game ink colors of the game scene, |
swapSides | v.boolean() | false | false | |
seeds | v.boolean() | true | false | |
logos | v.boolean() | true | false | Team logos, without them teams show their initial. |
placeholderLogos | v.boolean() | false | false | The tournament's logo standing in for the featured teams' real logos too. |
players | countBetween(1, BROADCAST_DESIGN_MAX_PLAYERS) | 4 | false | |
casters | countBetween(0, BROADCAST_MAX_CASTERS) | 2 | false | |
otherMatches | countBetween(0, BROADCAST_DESIGN_MAX_OTHER_MATCHES) | 4 | false | Other matches in the "elsewhere" ticker. |
headline | v.boolean() | true | false | |
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