Standardize on Licensed Exhibit Leads User (licensee) terminology

- Renamed all staff-related fields and variables to 'licensee'.
- Implemented correct filtering logic for Aether Admins (default All, hide My).
- Implemented correct filtering for booth users (default My, show colleagues).
- Populated dropdown labels with Full Names from license_li_json.
- Removed 'Shared Passcode' from the Lead List filter.
This commit is contained in:
Scott Idem
2026-02-08 21:28:16 -05:00
parent 224e03405c
commit 68075d37a1
6 changed files with 106 additions and 23 deletions

View File

@@ -307,6 +307,7 @@ export async function create_ae_obj__exhibit_tracking({
exhibit_id,
event_badge_id,
external_person_id,
group,
try_cache = true,
log_lvl = 0
}: {
@@ -314,6 +315,7 @@ export async function create_ae_obj__exhibit_tracking({
exhibit_id: string;
event_badge_id: string;
external_person_id: string;
group?: string;
try_cache?: boolean;
log_lvl?: number;
}): Promise<ae_EventExhibitTracking | null> {
@@ -323,7 +325,8 @@ export async function create_ae_obj__exhibit_tracking({
fields: {
event_exhibit_id: exhibit_id,
event_badge_id: event_badge_id,
external_person_id
external_person_id,
group
},
log_lvl
});
@@ -427,6 +430,8 @@ export async function search__exhibit_tracking({
event_id,
event_exhibit_id,
fulltext_search_qry_str = null,
qry_group = null,
qry_external_person_id = null,
enabled = 'enabled',
hidden = 'all',
view = 'default',
@@ -440,6 +445,8 @@ export async function search__exhibit_tracking({
event_id: string;
event_exhibit_id: string;
fulltext_search_qry_str?: string | null;
qry_group?: string | null;
qry_external_person_id?: string | null;
enabled?: 'enabled' | 'all' | 'not_enabled';
hidden?: 'hidden' | 'all' | 'not_hidden';
view?: string;
@@ -461,6 +468,9 @@ export async function search__exhibit_tracking({
]
};
if (qry_group) search_query.and.push({ field: 'group', op: 'eq', value: qry_group });
if (qry_external_person_id) search_query.and.push({ field: 'external_person_id', op: 'eq', value: qry_external_person_id });
if (enabled === 'enabled') search_query.and.push({ field: 'enable', op: 'eq', value: 1 });
else if (enabled === 'not_enabled') search_query.and.push({ field: 'enable', op: 'eq', value: 0 });