chore: minor updates across events, journals, elements, and shared components

Miscellaneous small changes to events (badges, launcher, leads, pres_mgmt,
settings), journals, reusable elements (crud, field editor), app components,
core components, and test README. Mostly 1-2 line changes per file.
This commit is contained in:
Scott Idem
2026-03-06 17:32:53 -05:00
parent 0c9b6a9f5b
commit dd5cf9b63b
51 changed files with 70 additions and 62 deletions

View File

@@ -206,7 +206,7 @@ Middle-click to open in new tab`}
.length}× Recent Entries...
</option>
<!-- loop through each key value -->
{#each Object.entries($journals_loc.entry_view_history_kv as Record<string, any>).reverse() as [journal_entry_id, journal_entry_obj]}
{#each Object.entries($journals_loc.entry_view_history_kv as Record<string, any>).reverse() as [journal_entry_id, journal_entry_obj] (journal_entry_id)}
<option value={journal_entry_obj.id}>
{(journal_entry_obj?.name ||
journal_entry_obj?.id) ??

View File

@@ -234,7 +234,7 @@
<!-- File Grid -->
{#if unified_file_li.length}
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3">
{#each unified_file_li as file}
{#each unified_file_li as file (file.hosted_file_id ?? file.id)}
{@const file_id =
file.hosted_file_id || file.id || file.hosted_file_id}
<div

View File

@@ -151,7 +151,7 @@
</div>
{/if}
{#each visible_journal_entry_obj_li as journals_journal_entry_obj, index}
{#each visible_journal_entry_obj_li as journals_journal_entry_obj, index (journals_journal_entry_obj.journal_entry_id)}
<div
class="
container journal journal_entry_obj
@@ -499,7 +499,7 @@
>Tags:</span
>
{#each journals_journal_entry_obj.tags.split(',') as tag}
{#each journals_journal_entry_obj.tags.split(',') as tag (tag)}
<span
class="btn btn-sm preset-tonal-tertiary hover:preset-tonal-tertiary border border-tertiary-500 transition py-1 px-2"
title={`Tag: ${tag.trim()}`}

View File

@@ -172,7 +172,7 @@
title="Filter by category"
>
<option value="">All Categories</option>
{#each $lq__journal_obj?.cfg_json?.category_li as category}
{#each $lq__journal_obj?.cfg_json?.category_li as category (category.code)}
<option value={category.code}>{category.name}</option>
{/each}
</select>

View File

@@ -109,7 +109,7 @@
<option value="" disabled selected={!target_journal_id}
>Select Target Journal...</option
>
{#each journals_li as journal}
{#each journals_li as journal (journal.id)}
<option value={journal.id}>{journal.name}</option>
{/each}
</select>

View File

@@ -307,7 +307,7 @@
bind:value={tmp__journal_obj.type_code}
class="select variant-form-material"
>
{#each $journals_loc.journal.type_code_li as type}
{#each $journals_loc.journal.type_code_li as type (type.code)}
<option value={type.code}
>{type.name}</option
>
@@ -339,7 +339,7 @@
<div
class="space-y-2 bg-surface-500/5 p-4 rounded-lg border border-surface-500/10"
>
{#each tmp__journal_obj?.cfg_json?.category_li ?? [] as category, i}
{#each tmp__journal_obj?.cfg_json?.category_li ?? [] as category, i (category.code ?? i)}
<div class="flex gap-2 items-center">
<input
type="text"

View File

@@ -27,7 +27,7 @@
class="journal_list grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 w-full max-w-7xl px-4"
>
{#if $lq__journal_obj_li && $lq__journal_obj_li.length}
{#each $lq__journal_obj_li as journal, index}
{#each $lq__journal_obj_li as journal, index (journal.journal_id)}
<div
class="
journal_card

View File

@@ -216,7 +216,7 @@
Quick Category
</h4>
<div class="flex flex-wrap gap-2">
{#each journal?.cfg_json?.category_li ?? [] as cat}
{#each journal?.cfg_json?.category_li ?? [] as cat (cat.code)}
<button
type="button"
class="btn btn-sm {tmp_entry_obj.category_code ===
@@ -248,7 +248,7 @@
}}
>
<option value="">None</option>
{#each journal?.cfg_json?.category_li ?? [] as cat}
{#each journal?.cfg_json?.category_li ?? [] as cat (cat.code)}
<option value={cat.code}>{cat.name}</option>
{/each}
</select>

View File

@@ -142,7 +142,7 @@
<span class="label-text font-bold">Select Export Template</span>
</label>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-2">
{#each templates as template}
{#each templates as template (template.id)}
<button
type="button"
class="btn variant-ringed-surface flex flex-col gap-1 p-2 h-24 items-center justify-center border-2 text-center {selected_template_id ===

View File

@@ -238,7 +238,7 @@
</tr>
</thead>
<tbody>
{#each parsed_entries as entry}
{#each parsed_entries as entry, i (i)}
<tr>
<td
class="truncate max-w-[200px]"
@@ -266,7 +266,7 @@
<div
class="bg-black text-green-400 p-2 rounded text-xs font-mono max-h-32 overflow-y-auto"
>
{#each import_log as log}
{#each import_log as log, i (i)}
<div>{log}</div>
{/each}
</div>

View File

@@ -375,7 +375,7 @@
title="Select a different journal for this entry"
>
<option value="">Select Journal</option>
{#each lq__journal_obj_li as journal}
{#each lq__journal_obj_li as journal (journal.journal_id)}
<option
value={journal.journal_id}
title={`Journal: ${journal.name}`}