Refine journal entry config
Polish the Journal Entry Config modal to match the desired section outline, hide alert messaging unless enabled, update the shared draft typing for entry flows, and replace deprecated privacy icons. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -24,8 +24,8 @@ import AE_Comp_Editor_CodeMirror from '$lib/elements/element_editor_codemirror.s
|
||||
|
||||
interface Props {
|
||||
// Core Props
|
||||
content: string; // The text to summarize/analyze
|
||||
summary: string; // The result (bindable)
|
||||
content: string | null | undefined; // The text to summarize/analyze
|
||||
summary: string | null | undefined; // The result (bindable)
|
||||
|
||||
// Configuration (Bindable for global settings persistence)
|
||||
model?: string;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
import {
|
||||
Siren,
|
||||
Fingerprint,
|
||||
FingerprintPattern,
|
||||
Globe,
|
||||
BookHeart,
|
||||
BriefcaseBusiness,
|
||||
@@ -14,11 +14,11 @@ import {
|
||||
Settings
|
||||
} from '@lucide/svelte';
|
||||
import { ae_loc } from '$lib/stores/ae_stores';
|
||||
import type { ae_JournalEntry } from '$lib/types/ae_types';
|
||||
import type { ae_JournalEntryDraft } from '$lib/types/ae_types';
|
||||
|
||||
interface Props {
|
||||
// The object containing the flags (bindable)
|
||||
obj: ae_JournalEntry;
|
||||
obj: ae_JournalEntryDraft;
|
||||
|
||||
// Visibility configuration (optional overrides)
|
||||
show_labels?: boolean;
|
||||
@@ -109,8 +109,8 @@ function toggle_template() {
|
||||
onclick={toggle_private}
|
||||
class="btn btn-sm flex items-center gap-2 px-3 transition preset-tonal-secondary hover:preset-filled-secondary-500"
|
||||
title="Toggle private or encrypted visibility">
|
||||
<Fingerprint size="1.2em" class={obj?.private ? 'text-success-500' : 'opacity-40'} />
|
||||
<span class="whitespace-nowrap text-[10px] font-bold uppercase tracking-wider">Private</span>
|
||||
<FingerprintPattern size="1.2em" class={obj?.private ? 'text-success-500' : 'opacity-40'} />
|
||||
<span class="whitespace-nowrap text-[10px] font-bold uppercase tracking-wider">Private or Encrypt</span>
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { ensure_CodeMirror_modules } from './codemirror_modules';
|
||||
// Icons (Standardized to Lucide where possible, or FontAwesome placeholders)
|
||||
import { Bold, Code, Italic, List } from '@lucide/svelte';
|
||||
interface Props {
|
||||
content?: string;
|
||||
content?: string | null;
|
||||
new_content?: string;
|
||||
placeholder?: string;
|
||||
theme_mode?: 'light' | 'dark';
|
||||
|
||||
@@ -230,6 +230,30 @@ export interface ae_JournalEntry extends ae_BaseObj {
|
||||
file_count?: number;
|
||||
}
|
||||
|
||||
export type ae_JournalEntryDraft = Omit<
|
||||
Partial<ae_JournalEntry>,
|
||||
| 'journal_entry_id'
|
||||
| 'journal_id'
|
||||
| 'name'
|
||||
| 'summary'
|
||||
| 'content'
|
||||
| 'content_md_html'
|
||||
| 'content_encrypted'
|
||||
| 'history'
|
||||
| 'history_encrypted'
|
||||
> & {
|
||||
journal_entry_id?: string;
|
||||
journal_id?: string;
|
||||
name?: string | null;
|
||||
summary?: string | null;
|
||||
content?: string | null;
|
||||
content_md_html?: string | null;
|
||||
content_encrypted?: string | null;
|
||||
history?: string | null;
|
||||
history_encrypted?: string | null;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
/**
|
||||
* Person - A human entity
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user