fix(journals): standardize component naming, props, and libraries

- Renamed all Journal components to follow the ae_comp__* snake_case convention.
- Normalized all custom event handler props from PascalCase (onSave) to snake_case (on_save) across the module.
- Migrated all icon imports from @lucide/svelte to lucide-svelte for consistency.
- Resolved ReferenceErrors and file corruption issues in Journals config and entry views.
- Updated qry__journal_entry logic to support category filtering.
- Verified module integrity and component interop.
This commit is contained in:
Scott Idem
2026-01-26 20:18:39 -05:00
parent 6858052e7d
commit ae86d0aede
23 changed files with 437 additions and 465 deletions

View File

@@ -7,7 +7,7 @@
*/
import { Modal } from 'flowbite-svelte';
import { Download, Copy, FileJson, FileType, Code, Settings2 } from '@lucide/svelte';
import { Download, Copy, FileJson, FileType, Code, Settings2 } from 'lucide-svelte';
import { ae_util } from '$lib/ae_utils/ae_utils';
import type { ae_JournalEntry, ae_Journal } from '$lib/types/ae_types';
import { EXPORT_TEMPLATES, type ExportTemplate } from '$lib/ae_journals/ae_journals_export_templates';
@@ -16,10 +16,10 @@
open: boolean;
entries: ae_JournalEntry[];
journal?: ae_Journal;
onClose: () => void;
on_close: () => void;
}
let { open = $bindable(false), entries = [], journal, onClose }: Props = $props();
let { open = $bindable(false), entries = [], journal, on_close }: Props = $props();
// State
let selected_template_id: string = $state('standard_markdown');
@@ -144,7 +144,7 @@
<!-- Actions -->
<div class="modal-action flex justify-between items-center">
<button class="btn preset-tonal-secondary" onclick={onClose}>Close</button>
<button class="btn preset-tonal-secondary" onclick={on_close}>Close</button>
<div class="flex gap-2">
<button class="btn variant-soft-primary" onclick={handle_copy}>