review duplicated BackgoundEffects files

One is now called backgroundEffectCatalog
This commit is contained in:
Timo K.
2026-11-05 10:39:57 +01:00
parent 33f4d5043f
commit cc994abeb3
7 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { combineLatest, map, type Observable, switchMap } from "rxjs";
import { supportsAudioOutputSelection } from "livekit-client";
import { supportsBackgroundProcessors } from "../tracks/backgroundProcessing";
import { parseEffect } from "../tracks/backgroundEffects";
import { parseEffect } from "../tracks/backgroundEffectCatalog";
import { type CallViewModel } from "../state/CallViewModel/CallViewModel";
import { type MenuOptions } from "./MediaMuteAndSwitchButton";
+4 -1
View File
@@ -28,7 +28,10 @@ import { PreferencesSettingsTab } from "./PreferencesSettingsTab";
import { Slider } from "../Slider";
import { DeviceSelection } from "./DeviceSelection";
import { useBackgroundEffects } from "../tracks/BackgroundEffectsContext";
import { parseEffect, serializeEffect } from "../tracks/backgroundEffects";
import {
parseEffect,
serializeEffect,
} from "../tracks/backgroundEffectCatalog";
import {
DeveloperSettingsTab,
type DeveloperSettingsSnapshot,
+1 -1
View File
@@ -13,7 +13,7 @@ import { type Behavior } from "../state/Behavior";
import { useBehavior } from "../useBehavior";
import { MatrixRTCMode } from "../config/ConfigOptions";
import { type UnstableLivekitTransport } from "matrix-js-sdk/lib/matrixrtc";
import { type EffectId } from "../tracks/backgroundEffects";
import { type EffectId } from "../tracks/backgroundEffectCatalog";
export class Setting<T> {
public constructor(
+1 -1
View File
@@ -15,7 +15,7 @@ import {
type BackgroundEffectsOptions,
type BackgroundEffectsState,
} from "./BackgroundEffects";
import { shippedBackgrounds } from "../tracks/backgroundEffects";
import { shippedBackgrounds } from "../tracks/backgroundEffectCatalog";
import { flushPromises, testScope, withTestScheduler } from "../utils/test";
/** A pipeline that records what it is switched to. */
+3 -2
View File
@@ -21,10 +21,11 @@ import { type Behavior } from "./Behavior";
import { type ObservableScope } from "./ObservableScope";
import {
type BackgroundEffect,
blurRadius,
imagePathFor,
parseEffect,
} from "../tracks/backgroundEffects";
} from "../tracks/backgroundEffectCatalog";
const blurRadius = 15;
export interface BackgroundEffectsState {
supported: boolean | undefined;
@@ -14,7 +14,7 @@ import {
parseEffect,
serializeEffect,
shippedBackgrounds,
} from "./backgroundEffects";
} from "./backgroundEffectCatalog";
describe("the chosen background effect", () => {
test("round-trips through its stored form", () => {
@@ -8,8 +8,6 @@ Please see LICENSE in the repository root for full details.
import arc from "../graphics/background-arc.jpg?url";
import glow from "../graphics/background-glow.jpg?url";
export const blurRadius = 15;
export interface ShippedBackground {
/** Stored in the user's settings when chosen, so it must not change. */
id: string;