From f148b35ab2ed9b54c8d608bbfe80b4a26ffa7f13 Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:12:50 -0500 Subject: [PATCH] Add payoff amount, fix dialog overlay and nav highlight for sub-routes - Show estimated payoff amount (balance + accrued interest) in loan summary - Display loan balances as absolute values in red - Fix dialog overlay blocking UI after edit by closing in finally with nextTick - Highlight parent nav item when viewing sub-routes (e.g. /loans/:id) Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/layout/AppLayout.vue | 2 + frontend/src/views/loans/LoansView.vue | 39 +++++++++++++++++--- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/layout/AppLayout.vue b/frontend/src/components/layout/AppLayout.vue index fd7092c..42a6104 100644 --- a/frontend/src/components/layout/AppLayout.vue +++ b/frontend/src/components/layout/AppLayout.vue @@ -159,6 +159,8 @@ const navItems = [ function isNavActive(navRoute: string) { if (route.path === navRoute) return true + // Highlight parent nav for sub-routes (e.g. /loans/:id highlights Loans) + if (navRoute !== '/' && route.path.startsWith(navRoute + '/')) return true // Highlight "Transactions" when viewing account-scoped transactions if (navRoute === '/transactions' && route.name === 'account-transactions') return true return false diff --git a/frontend/src/views/loans/LoansView.vue b/frontend/src/views/loans/LoansView.vue index a7e70e4..4adc79b 100644 --- a/frontend/src/views/loans/LoansView.vue +++ b/frontend/src/views/loans/LoansView.vue @@ -18,7 +18,7 @@
Balance - {{ formatCurrency(account.balance) }} + {{ formatCurrency(Math.abs(account.balance)) }}
Interest Rate @@ -69,7 +69,11 @@
Current Balance
-
{{ formatCurrency(loanDetail.currentBalance) }}
+
{{ formatCurrency(Math.abs(loanDetail.currentBalance)) }}
+
+ +
Est. Payoff Amount
+
{{ formatCurrency(payoffAmount) }}
Interest Rate
@@ -250,7 +254,7 @@