Files
OSIT-AE-App-Svelte/src/routes/journals/ae_comp__journal_entry_ai_tools.svelte
Scott Idem ae86d0aede 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.
2026-01-26 20:18:39 -05:00

35 lines
835 B
Svelte

<script lang="ts">
/**
* ae_comp__journal_entry_ai_tools.svelte
* Journal-specific wrapper for the generic AE_AITools.
* Handles layout/positioning and specific save behavior for journal entries.
*/
import AE_AITools from '$lib/ae_elements/AE_AITools.svelte';
interface Props {
content: string;
summary: string; // Bindable
on_save: () => void;
log_lvl?: number;
}
let {
content,
summary = $bindable(),
on_save,
log_lvl = 0
}: Props = $props();
</script>
<div class="journal-entry-ai-tools absolute top-2 right-2 z-10">
<AE_AITools
{content}
bind:summary={summary}
onSave={(newSummary) => {
summary = newSummary;
on_save();
}}
{log_lvl}
/>
</div>