Restore Event Session search stability and advance platform-wide string ID standardization

- Restored Event Session search by standardizing on 'event_id' for Dexie queries and implementing dual-layer filtering (local + API guard) to prevent broad results from clobbering filtered views.
- Advanced String-Only ID Standardization (Phase 2) by updating generic object processors across all event library modules to support both base IDs and legacy '_random' variants.
- Refactored Event Presenter and Presentation components to support standardized '_id_li' props while maintaining backward compatibility.
- Standardized common helper identifiers to snake_case (e.g., 'prevent_default') in the Events module.
- Verified Staff and Poster email notification logic in the Bulletin Board module.
- Updated .gitignore and cleaned up test artifacts.
This commit is contained in:
Scott Idem
2026-02-04 19:32:17 -05:00
parent 46c30590ed
commit bd39fd3061
12 changed files with 134 additions and 32 deletions

View File

@@ -2,6 +2,7 @@
interface Props {
container_class_li?: string | Array<string>;
display_mode?: string; // 'default', 'compact', 'minimal', 'launcher'
event_presenter_id_li?: Array<string>;
event_presenter_id_random_li?: Array<string>;
link_to_type: string;
link_to_id: string;
@@ -12,6 +13,7 @@
let {
container_class_li = [],
display_mode = 'default',
event_presenter_id_li = [],
event_presenter_id_random_li = [],
link_to_type,
link_to_id,
@@ -33,8 +35,8 @@
// let ae_tmp: key_val = {};
// let ae_triggers: key_val = {};
let dq__where_type_id_val: string = `${link_to_type}_id_random`;
let dq__where_eq_id_val: string = link_to_id;
let dq__where_type_id_val = $derived(`${link_to_type}_id`);
let dq__where_eq_id_val = $derived(link_to_id);
// *** Functions and Logic
let lq__event_presenter_obj_li = $derived(
@@ -45,6 +47,10 @@
.equals(dq__where_eq_id_val)
.sortBy('full_name');
return results;
} else if (event_presenter_id_li.length > 0) {
let results = await db_events.presenter.bulkGet(event_presenter_id_li);
return results;
} else if (event_presenter_id_random_li.length > 0) {
let results = await db_events.presenter.bulkGet(event_presenter_id_random_li);