feat: Move upcoming recurring transactions in a dedicated tab (#771)

* feat: Move upcoming transactions in a dedicated tab

* Adjust formatting

* feat: adjust visibility on mobile

* feat: change translation label

* feat: show only upcoming transactions expected in the next 10 days

* feat: show upcoming transactions tab only when option enabled

* feat: render empty partial when there are no recurring transactions

* feat: align icon sizing and spacing between transactions and upcoming sections

* feat: add missing localitazion labels

* fix: move filter on upcoming transactions in controller

* fix: add missing localitazion labels
This commit is contained in:
Alessio Cappa
2026-01-27 12:32:35 +01:00
committed by GitHub
parent 33df3b781e
commit aef582f553
8 changed files with 129 additions and 94 deletions

View File

@@ -24,11 +24,11 @@ class TransactionsController < ApplicationController
@pagy, @transactions = pagy(base_scope, limit: safe_per_page)
# Load projected recurring transactions for next month
# Load projected recurring transactions for next 10 days
@projected_recurring = Current.family.recurring_transactions
.active
.where("next_expected_date <= ? AND next_expected_date >= ?",
1.month.from_now.to_date,
10.days.from_now.to_date,
Date.current)
.includes(:merchant)
end