From e06f4ec2c36666e2f6d2d5a12e0457c90495c14b Mon Sep 17 00:00:00 2001 From: blomios Date: Fri, 2 Oct 2026 09:57:20 +0200 Subject: [PATCH] feat: add settings option to hide Live TV categories (#11) Add a liveChannelListMode setting (default 'grouped') with a Settings toggle to display the Live TV channel list flat, without category group sections. When enabled, logical channels are listed directly with their stream variants still grouped as in #9/#10. Cover the setting default and flat-list behavior with tests. Co-Authored-By: Claude Opus 4.8 --- public/index.html | 22 ++++- public/js/components/ChannelList.js | 85 +++++++++++++++++++- public/js/components/VideoPlayer.js | 2 + public/js/pages/Settings.js | 11 +++ public/js/services/channelVariantGrouping.js | 15 +++- server/db.js | 1 + test/channelVariantGrouping.test.js | 17 ++++ test/settingsDefaults.test.js | 7 ++ 8 files changed, 153 insertions(+), 7 deletions(-) create mode 100644 test/settingsDefaults.test.js diff --git a/public/index.html b/public/index.html index 3239c7d..c65bf4e 100644 --- a/public/index.html +++ b/public/index.html @@ -454,6 +454,20 @@
+
+

Live TV

+
+ +
+ Group channels by category + Turn off to show all channels in a single list. Stream variants remain grouped by channel. +
+
+
+

Keyboard Controls

@@ -1124,10 +1138,10 @@ - + - - + + @@ -1135,7 +1149,7 @@ - +