feat(journals): implement centralized export templates and bulk interop

- Added 'ae_journals_export_templates.ts' with Markdown, HTML, and JSON support
- Refactored 'ae_comp__modal_journal_export.svelte' to use the new template system
- Optimized bulk export with automated template selection based on Journal type
- Integrated 'Import Entries' action directly into the Journal menu
- Updated project documentation to reflect portability features and implementation status
This commit is contained in:
Scott Idem
2026-01-14 12:55:15 -05:00
parent b80cbb7c2b
commit 56fa003382
6 changed files with 258 additions and 79 deletions

View File

@@ -1,7 +1,7 @@
# Aether Journals UI Update (2026)
> **Status:** Active
> **Last Updated:** 2026-01-13
> **Last Updated:** 2026-01-14
> **Primary Agent:** Frontend SvelteKit Agent
## 1. Project Overview
@@ -33,6 +33,7 @@ This document outlines the modernization of the Journals module UI in the Svelte
* **State Management:** `src/lib/ae_journals/ae_journals_stores.ts`
* **Local Storage:** Dexie.js (`db_journals`)
* **API Client:** `src/lib/api/api.ts` -> `get_ae_obj_v3`
* **Export Engine:** Centralized templates in `src/lib/ae_journals/ae_journals_export_templates.ts`.
---
@@ -61,8 +62,8 @@ This document outlines the modernization of the Journals module UI in the Svelte
### 🔄 Interop (Markdown/HTML)
* **Goal:** Bulk export/import for data portability.
* **Format:** JSON container vs. Raw Markdown files.
* **Integration:** potential drag-and-drop zone for Nextcloud Note files.
* **Format:** Optimized templates for different journal types (Standard, Personal Log, Amazon Vine).
* **Integration:** drag-and-drop zone for Nextcloud Note files and bulk parser logic in `ae_journals_parsers.ts`.
---
@@ -82,11 +83,12 @@ This document outlines the modernization of the Journals module UI in the Svelte
- [x] Implement Append/Prepend logic in `ae_comp__journal_entry_obj_id_view.svelte`.
- [x] Implement Bulk Export (Markdown/HTML/JSON) via `ae_comp__modal_journal_export.svelte`.
- [x] Implement Bulk Import with Drag-and-Drop via `ae_comp__modal_journal_import.svelte`.
- [x] Establish centralized Export Template system (`ae_journals_export_templates.ts`).
### Phase 4: Polish & Security (Active)
- [x] Implement Auto-Save toggle and visual status indicators.
- [ ] Audit encryption flow for Quick Added and Imported entries.
- [ ] Styling and Mobile responsiveness check.
- [x] Styling and Mobile responsiveness check for Import/Export modals.
- [ ] Integrate Outbound Email sharing.
---