Fix Lead List filtering and resolve Svelte 5 subscription crash

- Refactored Lead List to use direct observable subscription for better reactivity.
- Implemented in-memory 'Hard Guard' filter to ensure licensee selection is strictly enforced.
- Fixed 'TypeError: s.subscribe is not a function' by removing legacy $ prefix from resolved props.
- Resolved TypeScript typing errors in Lead Detail and Search components.
- Migrated Badge Search icons to Lucide.
This commit is contained in:
Scott Idem
2026-02-08 23:03:35 -05:00
parent 8787f8c2ff
commit 111ef76d14
5 changed files with 63 additions and 29 deletions

View File

@@ -442,8 +442,8 @@ export async function search__exhibit_tracking({
log_lvl = 0
}: {
api_cfg: any;
event_id: string;
event_exhibit_id: string;
event_id: string | undefined;
event_exhibit_id: string | undefined;
fulltext_search_qry_str?: string | null;
qry_group?: string | null;
qry_external_person_id?: string | null;
@@ -460,6 +460,8 @@ export async function search__exhibit_tracking({
console.log(`*** search__exhibit_tracking() *** exhibit_id=${event_exhibit_id} ft=${fulltext_search_qry_str}`);
}
if (!event_id || !event_exhibit_id) return [];
const search_query: any = {
q: fulltext_search_qry_str || '',
and: [