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 && ( -
+
-
- { - if (isMobile || isTablet) { - setNavOpen(false); - } - }} - /> -
+
setSearch(e.target.value)} onKeyDown={(e) => { diff --git a/frontend/src/settings/Prompts.tsx b/frontend/src/settings/Prompts.tsx index 7e7ab925..26f5b75d 100644 --- a/frontend/src/settings/Prompts.tsx +++ b/frontend/src/settings/Prompts.tsx @@ -14,7 +14,6 @@ import { import { Button } from '../components/ui/button'; import { Popover, - PopoverAnchor, PopoverContent, PopoverTrigger, } from '../components/ui/popover'; @@ -276,55 +275,62 @@ export default function Prompts({

- -
- - - + + -
+
- + + + + +
)} - + {currentTeam ? (