From d2c3e8ab8f1dcaec2b8be7ff9d1fb6c0df2d5296 Mon Sep 17 00:00:00 2001 From: Warry Date: Sat, 29 Nov 2025 12:10:06 +0100 Subject: feat(hover): add track details preview on hover + fix all ruff violations Implement comprehensive track information display on hover and resolve all code quality issues to achieve complete ruff compliance. MAJOR FEATURES: - Track details preview on hover with rich metadata display - Async BPM fetching with loading indicator - Enhanced metadata utilities with fuzzy matching - TIDAL API extras integration FILES MODIFIED: 15+ files (core, UI, tests, docs) RUFF COMPLIANCE: 0 errors (89+ violations resolved) - Fixed E999 syntax error in metadata_utils.py - Refactored 10+ complex functions (C901) - Updated error handling (S110, S112, SIM105) - Modernized type hints (UP038) - Fixed naming conflicts (A001, F811) BUG FIXES: - Added missing _on_update_cover() method (11 test failures) - Fixed BPM display and async loading - Improved thread safety TESTING: 30 passed, 1 skipped DOCUMENTATION: Windows PowerShell support, tox troubleshooting --- tidal_dl_ng/ui/main.ui | 288 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 269 insertions(+), 19 deletions(-) (limited to 'tidal_dl_ng/ui/main.ui') diff --git a/tidal_dl_ng/ui/main.ui b/tidal_dl_ng/ui/main.ui index 23d98e6..668b647 100644 --- a/tidal_dl_ng/ui/main.ui +++ b/tidal_dl_ng/ui/main.ui @@ -197,7 +197,7 @@ - -1 + 6 @@ -523,40 +523,290 @@ - + + + true + - + 0 0 - + - 280 - 280 + 300 + 300 - + - 0 - 0 + 600 + 16777215 - - QFrame::Shape::NoFrame + + 1 - - + + true + + + false - - default_album_image.png + + false - + true - - Qt::AlignmentFlag::AlignHCenter|Qt::AlignmentFlag::AlignTop + + false + + + Details + + + + 4 + + + + + Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter + + + 2 + + + 2 + + + + + Title + + + + + + + + + + true + + + + + + + Version + + + + + + + + + + + + + + Artists + + + + + + + + + + true + + + + + + + Track # + + + + + + + + + + + + + + Album + + + + + + + + + + + + + + Duration + + + + + + + + + + + + + + Codec + + + + + + + + + + + + + + Bitrate + + + + + + + + + + + + + + Release Date + + + + + + + + + + + + + + Popularity + + + + + + + + + + + + + + BPM + + + + + + + + + + + + + + ISRC + + + + + + + + + + + + + + + + + Cover Art + + + + 2 + + + + + + 0 + 0 + + + + + 280 + 280 + + + + + 280 + 280 + + + + QFrame::Shape::NoFrame + + + + + + default_album_image.png + + + true + + + Qt::AlignmentFlag::AlignHCenter|Qt::AlignmentFlag::AlignTop + + + + + @@ -706,7 +956,7 @@ 0 0 1200 - 24 + 33 -- cgit v1.3.1