From eda60f9299427c92f35faf9687b5c54545e73c76 Mon Sep 17 00:00:00 2001 From: claude-dev Date: Sat, 9 May 2026 03:05:16 +0000 Subject: [PATCH] Phase 3b: Kategorien/Typen aus Backend (/api/sources/meta) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - src/source_meta.py NEU: SOURCE_CATEGORIES + SOURCE_TYPES als Single Source of Truth (Liste mit {key, label}). category_label/type_label Lookup-Funktionen, get_meta() liefert das gesamte Set. - src/routers/sources.py: GET /api/sources/meta ergänzt (admin-auth, liefert Kategorien + Typen) - src/static/js/app.js: window.META + loadMeta() + categoryLabel/typeLabel + populateSelect Helper. Beim DOMContentLoaded wird Meta geladen, befüllt globale CATEGORY_LABELS und TYPE_LABELS. - src/static/js/sources.js: hardcoded const CATEGORY_LABELS und TYPE_LABELS entfernt - werden jetzt aus app.js loadMeta() global gesetzt. loadGlobalSources() ruft populateSelect() für die Filter-Dropdowns auf. - src/static/js/source-health.js: gleiche hardcoded Listen entfernt. - src/static/dashboard.html: