Skip to content

feat: expand quality badge thresholds and scaffold 2K icon - #1158

Open
LongingForHome wants to merge 1 commit into
kaltura:masterfrom
LongingForHome:feature/flavor-detection-quality-thresholds
Open

feat: expand quality badge thresholds and scaffold 2K icon#1158
LongingForHome wants to merge 1 commit into
kaltura:masterfrom
LongingForHome:feature/flavor-detection-quality-thresholds

Conversation

@LongingForHome

Copy link
Copy Markdown

Summary

  • Lower HD threshold to 720pqualityHd badge now applies to any flavor with height >= 720 (covers both 720p and 1080p), down from the previous 1080-only threshold
  • Add 2K boundary at 1440p — heights >= 1440 && < 2160 are wired to a quality2k badge type but currently fall back to the HD badge pending a matching SVG icon from design (see TODO comment in getLabelBadgeType)
  • Scaffold quality2k / quality2kActive — entries added to BadgeType in icon.tsx and to the $icons map and CSS classes in icon.scss; SVG paths are geometric placeholders and should be replaced with final design assets before the 2K branch is activated
  • 4K (>= 2160) and 8K (>= 4320) thresholds unchanged

Test plan

  • Play a 720p stream — confirm HD badge appears
  • Play a 1080p stream — confirm HD badge appears
  • Play a 1440p stream — confirm HD badge appears (2K badge intentionally deferred)
  • Play a 2160p (4K) stream — confirm 4K badge appears
  • Play an 8K stream — confirm 8K badge appears
  • Play a sub-720p stream — confirm no badge appears
  • Verify auto-quality badge tracks the active track height correctly

🤖 Generated with Claude Code

- Lower HD threshold from 1080p to 720p (covers both 720p and 1080p)
- Add QHD (1440) boundary; heights >= 1440 && < 2160 fall back to HD
  badge until a matching quality2k SVG icon is available from design
- Add quality2k / quality2kActive entries to BadgeType and icon.scss
  as a scaffold (SVG paths are placeholders pending design delivery)
- 4K threshold unchanged at 2160, 8K unchanged at 4320

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant