feat: add trust selection to drawer with filter wiring (Task 5.1)

This commit is contained in:
Andrew Charlwood
2026-02-06 14:09:36 +00:00
parent e8145867c1
commit f0505ee43e
10 changed files with 104 additions and 17 deletions
+12
View File
@@ -81,3 +81,15 @@ def get_all_drugs() -> list[str]:
data = load_initial_data()
return data.get("available_drugs", [])
def get_all_trusts() -> list[str]:
"""
Return a sorted flat list of all unique trust names from pathway_nodes level 1.
Delegates to load_initial_data() which already queries the database.
"""
from dash_app.data.queries import load_initial_data
data = load_initial_data()
return data.get("available_trusts", [])