1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Preserve transaction filters and transaction focus across page visits (#1733)

* Preserve transaction filters across page visits

* Preserve params when per_page is updated

* Autofocus selected transactions

* Lint fixes

* Fix syntax error

* Fix filter clearing

* Update e2e tests for new UI

* Consolidate focus behavior into concern

* Lint fixes
This commit is contained in:
Zach Gollwitzer 2025-01-30 14:12:01 -05:00 committed by GitHub
parent 0b17976256
commit 282c05345d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 310 additions and 243 deletions

View file

@ -6,16 +6,17 @@ en:
transfer:
attributes:
base:
inflow_cannot_be_in_multiple_transfers: Inflow transaction cannot be
part of multiple transfers
must_be_from_different_accounts: Transfer must have different accounts
must_be_from_same_family: Transfer must be from the same family
must_be_within_date_range: Transfer transaction dates must be within
4 days of each other
must_have_opposite_amounts: Transfer transactions must have opposite
amounts
must_have_single_currency: Transfer must have a single currency
must_be_from_same_family: Transfer must be from the same family
inflow_cannot_be_in_multiple_transfers: Inflow transaction cannot be part of multiple transfers
outflow_cannot_be_in_multiple_transfers: Outflow transaction cannot be part of multiple transfers
outflow_cannot_be_in_multiple_transfers: Outflow transaction cannot
be part of multiple transfers
transfer:
name: Transfer to %{to_account}
payment_name: Payment to %{to_account}

View file

@ -9,17 +9,6 @@ en:
empty:
description: Try adding an entry, editing filters or refining your search
title: No entries found
index:
amount: Amount
balance: Balance
date: Date
entries: entries
entry: entry
new: New
new_balance: New balance
new_transaction: New transaction
no_entries: No entries found
title: Activity
loading:
loading: Loading entries...
update:

View file

@ -34,6 +34,17 @@ en:
title: How would you like to add it?
title: What would you like to add?
show:
activity:
amount: Amount
balance: Balance
date: Date
entries: entries
entry: entry
new: New
new_balance: New balance
new_transaction: New transaction
no_entries: No entries found
title: Activity
chart:
balance: Balance
owed: Amount owed

View file

@ -1,8 +1,5 @@
---
en:
application:
pagination:
rows_per_page: Rows per page
number:
currency:
format:

View file

@ -15,10 +15,10 @@ en:
form:
placeholder: Category name
index:
categories: Categories
bootstrap: Use default categories
categories_incomes: Income categories
categories: Categories
categories_expenses: Expense categories
categories_incomes: Income categories
empty: No categories found
new: New category
menu:

View file

@ -15,8 +15,8 @@ en:
description: Issue Description
sidebar:
accounts: Accounts
budgeting: Budgeting
dashboard: Dashboard
new_account: New account
portfolio: Portfolio
transactions: Transactions
budgeting: Budgeting

View file

@ -82,8 +82,6 @@ Rails.application.routes.draw do
namespace :account do
resources :holdings, only: %i[index new show destroy]
resources :entries, only: :index
resources :transactions, only: %i[show new create update destroy] do
resource :transfer_match, only: %i[new create]
resource :category, only: :update, controller: :transaction_categories
@ -109,7 +107,11 @@ Rails.application.routes.draw do
end
end
resources :transactions, only: :index
resources :transactions, only: :index do
collection do
delete :clear_filter
end
end
# Convenience routes for polymorphic paths
# Example: account_path(Account.new(accountable: Depository.new)) => /depositories/123