fix: remove other languages from subtitles select#8122
Conversation
WalkthroughFilters subtitle options to only video-available subtitle language IDs (SUBTITLE_LANGUAGE_IDS), removes Autocomplete grouping into "Available/Other Languages", tightens native-name display logic, and updates tests to use centralized language fixtures with ARIA-role-based assertions; locale keys for the removed groups were deleted. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User
participant Component as SubtitlesSelect
participant Hook as useLanguages()
participant Filter as SUBTITLE_LANGUAGE_IDS filter
participant Autocomplete as Autocomplete UI
User->>Component: open subtitles dropdown
Component->>Hook: fetch allLanguages / isLoading
Hook-->>Component: allLanguages, isLoading
Component->>Filter: filter allLanguages by SUBTITLE_LANGUAGE_IDS (useMemo)
Filter-->>Component: filteredLanguages
Component->>Autocomplete: render options from filteredLanguages
Autocomplete-->>User: show option list (no "Available/Other" groups)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit feab9e3
☁️ Nx Cloud last updated this comment at |
This comment has been minimized.
This comment has been minimized.
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
Updates to SubtitlesSelect component and its test file.
Summary by CodeRabbit
Bug Fixes
Refactor
Tests
Chores