From 9f70539101d019ea92c3e5d728e27f3a4a07b6dd Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Thu, 1 Oct 2026 08:05:39 -0400 Subject: [PATCH] Improve Home Screen configuration UI and progressive section rendering performance --- configuration/homeScreen-configuration.css | 6 + configuration/homeScreen-configuration.js | 25 +- scripts/HomeScreenSection.ts | 8 +- scripts/cardBuilder.js | 4281 +++++++++------- scripts/homeScreen.css | 32 +- scripts/homeScreen3.js | 220 +- scripts/homeScreenConfig2.js | 5115 +++++++++++--------- scripts/homeScreenSectionConfigure.js | 25 +- 8 files changed, 5569 insertions(+), 4143 deletions(-) diff --git a/configuration/homeScreen-configuration.css b/configuration/homeScreen-configuration.css index 22a4a87..9d181db 100644 --- a/configuration/homeScreen-configuration.css +++ b/configuration/homeScreen-configuration.css @@ -332,6 +332,12 @@ span.listItemBodyText.secondary.seasonal-tag { [data-modal-id="kefin-homescreen-config-main"] #global-settings-content .hsc-settings-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } + .hsc-config-toolbar button > span:nth-child(2) { + display: none; + } + .hsc-config-toolbar button > span { + margin: 0 !important; + } } @media (max-width: 640px) { diff --git a/configuration/homeScreen-configuration.js b/configuration/homeScreen-configuration.js index cfb2f95..9199bc2 100644 --- a/configuration/homeScreen-configuration.js +++ b/configuration/homeScreen-configuration.js @@ -2165,10 +2165,10 @@ window.KefinTweaksConfig = ${JSON.stringify(configToBackup, null, 2)};`; */ function buildSectionNavigationHTML(activeType = 'home') { const types = [ - { id: 'home', label: 'Home Sections' }, - { id: 'seasonal', label: 'Seasonal Sections' }, - { id: 'discovery', label: 'Discovery Sections' }, - { id: 'custom', label: 'Custom Sections' } + { id: 'home', label: 'Home' }, + { id: 'seasonal', label: 'Seasonal' }, + { id: 'discovery', label: 'Discovery' }, + { id: 'custom', label: 'Custom' } ]; return ` @@ -2190,11 +2190,11 @@ window.KefinTweaksConfig = ${JSON.stringify(configToBackup, null, 2)};`; */ function buildGlobalSettingsNavigationHTML(activeSubTab = 'general') { const tabs = [ - { id: 'general', label: 'General Settings' }, - { id: 'spotlight', label: 'Spotlight Settings' }, - { id: 'discovery', label: 'Discovery Settings' }, - { id: 'categories', label: 'Category Settings' }, - { id: 'cache', label: 'Cache Settings' } + { id: 'general', label: 'General' }, + { id: 'spotlight', label: 'Spotlight' }, + { id: 'discovery', label: 'Discovery' }, + { id: 'categories', label: 'Category' }, + { id: 'cache', label: 'Cache' } ]; return `
@@ -2297,7 +2297,7 @@ window.KefinTweaksConfig = ${JSON.stringify(configToBackup, null, 2)};`; return `
Discovery Sections
-
Discovery sections will appear dynamically on the home screen as the user scrolls down. They are pre-fetched and cached in the background to ensure a smooth experience. You can customize their settings here.
+
Discovery sections will appear dynamically on the home screen as the user scrolls down.
${discoveryGroups.map(g => buildGroupHTML(g, 'discovery')).join('')}
@@ -2310,8 +2310,7 @@ window.KefinTweaksConfig = ${JSON.stringify(configToBackup, null, 2)};`; return `
Custom Sections
-
Customize your Custom Home Sections here. You can add, edit, and delete your own sections. You can also import community collections or a file you exported from the Import / Export tab.
-
+
Customize your Custom Home Sections here. You can add, edit, and delete your own sections.
${customGroups.map(g => buildGroupHTML(g, 'custom')).join('')}