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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user