fix: add missing each-block keys (svelte/require-each-key)

Fixed all 27 remaining instances across 19 files. Keys used:
- Object ID fields where available (e.g. account_id_random, event_file_id)
- index for logger lists with no reliable unique key
- Property name for Object.entries() loops
This commit is contained in:
Scott Idem
2026-03-06 17:54:50 -05:00
parent dd5cf9b63b
commit 48d5fe8995
19 changed files with 163 additions and 163 deletions

View File

@@ -6,9 +6,9 @@
* Supports General, AI, Performance, and IDAA-specific configurations.
*/
import { Modal } from 'flowbite-svelte';
import {
Palette, Mail, Brain, Timer,
ShieldCheck, CodeXml, Save,
import {
Palette, Mail, Brain, Timer,
ShieldCheck, CodeXml, Save,
Plus, Minus, Globe, ExternalLink
} from 'lucide-svelte';
import AE_Comp_Editor_CodeMirror from '$lib/elements/AE_Comp_Editor_CodeMirror.svelte';
@@ -97,7 +97,7 @@
<!-- Scrollable Content Area -->
<div class="grow overflow-y-auto p-1 pr-2 space-y-6 max-h-[60vh]">
{#if active_tab === 'visuals'}
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 animate-in fade-in duration-200">
<label class="label">
@@ -221,7 +221,7 @@
{ key: 'novi_trusted_li', label: 'Novi Trusted', color: 'text-warning-500' },
{ key: 'novi_jitsi_mod_li', label: 'Jitsi Moderators', color: 'text-primary-500' },
{ key: 'novi_idaa_group_guid_li', label: 'Member Group GUIDs', color: 'text-secondary-500' }
] as list}
] as list (list.key)}
<div class="space-y-2 p-3 bg-surface-500/5 rounded-lg">
<header class="flex justify-between items-center">
<span class="text-[10px] font-black uppercase tracking-wider {list.color}">{list.label}</span>
@@ -280,7 +280,7 @@
{:else if active_tab === 'raw'}
<div class="h-[50vh] animate-in fade-in duration-200">
<AE_Comp_Editor_CodeMirror
<AE_Comp_Editor_CodeMirror
content={raw_json_str}
bind:new_content={raw_json_str}
language="json"

View File

@@ -415,7 +415,7 @@
<th>Hash</th>
</tr>
</thead>
{#each input_file_list_processed as file_list_item, file_index}
{#each input_file_list_processed as file_list_item, file_index (file_index)}
<tbody>
<tr>
<td class="file_remove">

View File

@@ -355,7 +355,7 @@
<th>Hash</th>
</tr>
</thead>
{#each processed_file_list as file_list_item, file_index}
{#each processed_file_list as file_list_item, file_index (file_index)}
<tbody>
<tr>
<td class="file_remove">

View File

@@ -127,7 +127,7 @@
<ol class="list-decimal list-inside">
{#each [...$lq__hosted_file_obj_li]
.reverse()
.slice(0, max_file_count) as hosted_file_obj}
.slice(0, max_file_count) as hosted_file_obj (hosted_file_obj.hosted_file_id)}
<li>
<button
type="button"

View File

@@ -34,7 +34,7 @@
<tr>
{#if obj != null && typeof obj == 'object'}
{#each Object.entries(obj) as [obj_prop_name, obj_prop_value]}
{#each Object.entries(obj) as [obj_prop_name, obj_prop_value] (obj_prop_name)}
<!-- NEED TO ADD A CHECK IF:
NOTE and WARNING: