From 6486908716e563b3b8970b9ec7b73989d7ee72be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Tue, 9 Jun 2026 11:04:32 +0200 Subject: [PATCH] fix(transactions): tidy filter bar into two balanced rows (#510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Tidies the transactions filter bar so it lays out as **two balanced rows** — a control on the left and on the right of each — instead of wrapping awkwardly once **Transaction analysis** is enabled (the saved-filters button was crowding the row). - **Row 1:** `Filters` (left) · search input (grows, middle) · saved-filters bookmark (right) - **Row 2:** `Analysis / Categorize / + Transaction / ▾` (left) · `Columns` (right) Actions row dropped `flex-wrap` + `sm:justify-end` in favour of a clean `justify-between`; the saved-filters/clear group is now grouped to the right with `ml-auto`. ## Screenshots **Desktop** ![Desktop](https://github.com/whisper-money/whisper-money/blob/assets/transaction-filters-screenshots/screenshots/transactions-desktop.png?raw=true) **Mobile** ![Mobile](https://github.com/whisper-money/whisper-money/blob/assets/transaction-filters-screenshots/screenshots/transactions-mobile.png?raw=true) ## Notes - Screenshots are hosted on a throwaway `assets/transaction-filters-screenshots` branch so they render here without landing in `main`. Safe to delete after merge. --- .../transactions/transaction-actions-menu.tsx | 7 ++- .../transactions/transaction-filters.tsx | 50 ++++++++++--------- resources/js/pages/transactions/index.tsx | 2 +- 3 files changed, 32 insertions(+), 27 deletions(-) diff --git a/resources/js/components/transactions/transaction-actions-menu.tsx b/resources/js/components/transactions/transaction-actions-menu.tsx index 0570beb3..82faad76 100644 --- a/resources/js/components/transactions/transaction-actions-menu.tsx +++ b/resources/js/components/transactions/transaction-actions-menu.tsx @@ -132,16 +132,17 @@ export function TransactionActionsMenu({ (isMobile ? ( ) : ( @@ -224,7 +225,9 @@ export function TransactionActionsMenu({ aria-label={__('Add transaction')} > - {__('Transaction')} + + {__('Transaction')} + diff --git a/resources/js/components/transactions/transaction-filters.tsx b/resources/js/components/transactions/transaction-filters.tsx index 9e377898..08bfd125 100644 --- a/resources/js/components/transactions/transaction-filters.tsx +++ b/resources/js/components/transactions/transaction-filters.tsx @@ -239,13 +239,6 @@ export function TransactionFilters({
- setSearchText(e.target.value)} - className="hidden min-w-0 flex-1 md:block md:min-w-[350px]" - /> - - )} +
+ {enableSavedFilters && features.transactionAnalysis && ( + + )} + + {activeFilterCount > 0 && ( + + )} +
{actions ?
{actions}
: null} diff --git a/resources/js/pages/transactions/index.tsx b/resources/js/pages/transactions/index.tsx index c01b228d..a573704f 100644 --- a/resources/js/pages/transactions/index.tsx +++ b/resources/js/pages/transactions/index.tsx @@ -1167,7 +1167,7 @@ export default function Transactions({ isKeySet={true} enableSavedFilters={true} actions={ -
+