refactor(events, idaa): standardize on String-only IDs and remove '_random' suffix

Aligned the Events Badges, Templates, and IDAA Bulletin Board modules with
Aether UI/UX v3 standards by prioritizing semantic String IDs (e.g., event_id,
badge_id) over legacy '_random' variants in API helpers, Dexie processors,
and UI components.

- Refactored badge and template loaders to use clean ID field names.
- Updated search and LiveQuery logic in badge management views.
- Cleaned up unused imports and legacy code in +layout and +page components.
- Standardized ID mapping in generic object processors.
- Improved IDAA post creation UX with autofocus and empty title defaults.
This commit is contained in:
Scott Idem
2026-02-13 13:51:55 -05:00
parent de947c827a
commit 6bfd13f52c
16 changed files with 224 additions and 226 deletions

View File

@@ -94,7 +94,7 @@
{#if $lq__badge_templates.length > 0}
<div class="card p-4">
<ul class="list-group">
{#each $lq__badge_templates as template (template.event_badge_template_id_random)}
{#each $lq__badge_templates as template (template.event_badge_template_id)}
<li
class="list-group-item flex justify-between items-center"
>
@@ -105,7 +105,7 @@
class="btn btn-sm variant-filled-primary"
onclick={() =>
edit_template(
template.event_badge_template_id_random
template.event_badge_template_id
)}
>
<span class="fas fa-edit"></span> Edit
@@ -115,7 +115,7 @@
class="btn btn-sm variant-filled-error ml-2"
onclick={() =>
delete_template(
template.event_badge_template_id_random
template.event_badge_template_id
)}
>
<span class="fas fa-trash"></span> Delete