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

@@ -31,7 +31,7 @@
Tags,
TypeOutline,
X
} from '@lucide/svelte';
} from 'lucide-svelte';
// *** Import Aether specific variables and functions
import type { key_val } from '$lib/stores/ae_stores';
@@ -253,10 +253,12 @@
log_lvl: log_lvl
})
.then((result) => {
alert('Journal entry cloned successfully!');
goto(
`/journals/${result.journal_id_random}/entry/${result.journal_entry_id_random}`
);
if (result?.journal_id_random && result?.journal_entry_id_random) {
alert('Journal entry cloned successfully!');
goto(
`/journals/${result.journal_id_random}/entry/${result.journal_entry_id_random}`
);
}
})
.catch((error) => {
console.error(
@@ -551,8 +553,8 @@
bind:open={show_append_modal}
journal_entry={tmp_entry_obj}
journal_config={$lq__journal_obj?.cfg_json}
onClose={handle_modal_close}
onUpdate={handle_modal_update}
on_close={handle_modal_close}
on_update={handle_modal_update}
{log_lvl}
/>
{/if}