From 8221feec20b9bb7e5ffaa4910d070d78427346a0 Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 23 Oct 2025 00:08:25 +0200 Subject: [PATCH] Completes Phase 1 and updates UI Marks Phase 1 as complete in the documentation. Updates the transaction list in the UI to display transaction status flags and metadata, enhancing user understanding of each transaction. --- PHASE1_COMPLETE.md | 15 +++++++++------ templates/castle/index.html | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/PHASE1_COMPLETE.md b/PHASE1_COMPLETE.md index 8edf589..c152ef1 100644 --- a/PHASE1_COMPLETE.md +++ b/PHASE1_COMPLETE.md @@ -188,10 +188,13 @@ Display flag icons in transaction list: - **Performance:** No impact - added columns have defaults and indexes not needed yet - **Storage:** Minimal increase (meta typically < 200 bytes per entry) -## 🔜 Next Steps +## ✅ Phase 1 Complete! -Continue to Phase 1 completion: -1. Implement hierarchical account names -2. Update UI to show flags -3. Add UI for viewing meta information -4. Then move to Phase 2 (Core logic refactoring) +All Phase 1 tasks have been completed: +1. ✅ Decimal instead of float for fiat amounts +2. ✅ Meta field for journal entries (audit trail) +3. ✅ Flag field for transaction status +4. ✅ Hierarchical account naming (Beancount-style) +5. ✅ UI updated to display flags and metadata + +**Next:** Move to Phase 2 (Core logic refactoring) when ready. diff --git a/templates/castle/index.html b/templates/castle/index.html index 68ef696..3d788fb 100644 --- a/templates/castle/index.html +++ b/templates/castle/index.html @@ -251,6 +251,21 @@ + + + + Cleared + + + Pending + + + Flagged - needs review + + + Voided + + {% raw %}{{ entry.description }}{% endraw %} @@ -275,6 +290,11 @@ Ref: {% raw %}{{ entry.reference }}{% endraw %} + + + Source: {% raw %}{{ entry.meta.source }}{% endraw %} + Via: {% raw %}{{ entry.meta.created_via }}{% endraw %} + {% raw %}{{ formatSats(getTotalAmount(entry)) }} sats{% endraw %}