replace client-side tab toggling with server-side tab routing

Each settings tab is now a separate page load via ?tab= query param.
Flask renders only the active panel - no CSS or JS visibility logic needed.
Tab bar uses <a> links instead of buttons. Eliminates the display:none
cascade issue that was preventing Import and Maintenance tabs from showing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-20 17:06:11 -04:00
parent e37ce27256
commit 52d783546e
3 changed files with 18 additions and 34 deletions
+5 -1
View File
@@ -594,7 +594,11 @@ def artist_gallery(artist_name):
@main.route('/settings')
def settings():
return render_template('settings.html')
valid_tabs = {'overview', 'import', 'maintenance'}
tab = request.args.get('tab', 'overview')
if tab not in valid_tabs:
tab = 'overview'
return render_template('settings.html', active_tab=tab)
# ----------------------------