diff --git a/application/storage/db/repositories/admin_stats.py b/application/storage/db/repositories/admin_stats.py index a78fa316..7c9b5811 100644 --- a/application/storage/db/repositories/admin_stats.py +++ b/application/storage/db/repositories/admin_stats.py @@ -94,7 +94,7 @@ class AdminStatsRepository: where = "" count_params: dict = {} if user_id_filter is not None: - where = "WHERE lower(u.user_id) = lower(:uid)" + where = "WHERE u.user_id ILIKE '%' || :uid || '%'" count_params["uid"] = user_id_filter total = self._conn.execute( text(f"SELECT count(*) FROM users u {where}"), count_params diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index ff431964..3cd144db 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -318,7 +318,9 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { {/* Icon rail (desktop only, when sidebar collapsed) */} {!navOpen && !isMobile && !isTablet && ( -