Set of filters and preferences that can be applied to content viewed in a content review tool.
by facebookTypeScript
Last 12 weeks · 7 commits
4 of 6 standards met
typo: renamed DEFAULT_PREFENCES_KEY to DEFAULT_PREFERENCES_KEY (kept old name as deprecated alias, bckwrds compat.) updateSettings was clamping all numbers to [0,1] so videoPlaybackSpeed and jump lengths would be corrupted with those settings (not currently in use, but this is a defensive fix for future use cases or library consumers). Replace useCallback (return val was never invoked or assignd) with useEffect, and so now it follows same videoPlayerImperativeRef pattern as videoPlaybackSpeed.
Summary\n- Add the correctly spelled DEFAULT_PREFERENCES_KEY export while preserving the old alias\n- Validate single-media video playback and skip settings using their own ranges instead of clamping every number to [0, 1]\n- Apply autoMute changes with an effect instead of an unused callback\n\nTask: T276531340\n\n## Test plan\n- npm run build:lib
Repository: facebook/content-review-filters. Description: Set of filters and preferences that can be applied to content viewed in a content review tool. Stars: 5, Forks: 5. Primary language: TypeScript. Languages: TypeScript (88.3%), JavaScript (11.3%), HTML (0.3%), CSS (0.2%). License: Apache-2.0. Open PRs: 1, open issues: 0. Last activity: 2d ago. Community health: 75%. Top contributors: dependabot[bot], lswartsenburg, stephen-barton, evank28, thestranger.