From 29f84b56011da98bf77f8b1fea75fcf83d451eb7 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Mon, 29 Jun 2026 16:13:51 -0700 Subject: [PATCH] discovery: add Settings -> Discovery -> Adventurousness slider + align config key A 0..1 range slider (Safe <-> Adventurous) in Settings -> Discovery with a live value readout. It auto-saves via the settings page existing range-input listener, persists to config under discover.adventurousness (matching the /api/settings "discover" section), and re-populates on load. The listening-recs route reads that key (fixed from discovery. -> discover. to match the settings section). Drag it up and "Based On Your Listening" leans harder toward obscure picks on the next load. 64 script-integrity tests green. --- web_server.py | 2 +- webui/index.html | 24 ++++++++++++++++++++++++ webui/static/settings.js | 14 ++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/web_server.py b/web_server.py index f0b4bfdc..585426ed 100644 --- a/web_server.py +++ b/web_server.py @@ -29608,7 +29608,7 @@ def get_discover_listening_recommendations(): # don't carry it inline, so this works on existing data), then push globally-popular picks # down per the user's dial. level 0 -> unchanged. Fail-soft: any hiccup leaves the order. try: - level = float(config_manager.get('discovery.adventurousness', 0.3) or 0) + level = float(config_manager.get('discover.adventurousness', 0.3) or 0) except (TypeError, ValueError): level = 0.0 if level > 0 and stored: diff --git a/webui/index.html b/webui/index.html index 630c6145..bf4e9d6f 100644 --- a/webui/index.html +++ b/webui/index.html @@ -6201,6 +6201,30 @@ + + + +