From 0c16649cb4b8eed3c470fa46d80d9ef364c2ebc1 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 8 Jan 2026 17:51:36 -0500 Subject: [PATCH] Modularize AI Tools and perform third cleanup pass on Journal Entry view - Extracted AI summarization logic and Modal into standalone JournalEntry_AITools component. - Applied Prettier formatting to main component for consistent structure. - Removed further blocks of legacy script and template code. - Re-verified stability of core features (decryption, saving, metadata). --- .../ae_comp__journal_entry_obj_id_view.svelte | 268 +----------------- 1 file changed, 3 insertions(+), 265 deletions(-) diff --git a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte index fea2222c..ff62af75 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte @@ -90,6 +90,7 @@ import { journals_func } from '$lib/ae_journals/ae_journals_functions'; import Comp_journal_entry_file_li from './ae_comp__journal_entry_obj_file_li.svelte'; import Comp_hosted_files_download_button from '$lib/ae_core/ae_comp__hosted_files_download_button.svelte'; + import JournalEntry_AITools from './JournalEntry_AITools.svelte'; // *** Configuration let llm_api_token = @@ -1865,108 +1866,7 @@ $lq__journal_entry_obj?.journal_entry_id ] == 'current'} > - {#if $journals_sess?.entry?.ai_summary} - - {:else if !$journals_sess?.entry?.show__ai_summary && $journals_sess?.entry?.ai_summary} - - {:else if !$journals_sess?.entry?.show__ai_summary && $lq__journal_entry_obj?.summary} - - {/if} + {#if !$journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id]} {#if $lq__journal_obj?.cfg_json?.pref_viewer == 'codemirror'} @@ -2346,169 +2246,7 @@ - {#if $journals_sess?.entry?.show__ai_summary && $journals_sess?.entry?.ai_summary} - - - - {/if} + {:else}