From 35a061d188f9fbe6a1e37d80c2a8cee9ec81fc95 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sun, 11 Aug 2024 13:02:38 +0200 Subject: [PATCH] feat: Uncategorize bank transactions in bulk --- .../AccountTransactionsActionsBar.tsx | 16 +++++++++++- .../AccountTransactionsDataTable.tsx | 17 ++++++++++++- .../src/containers/CashFlow/withBanking.ts | 3 +++ .../containers/CashFlow/withBankingActions.ts | 18 +++++++++++++ .../src/store/banking/banking.reducer.ts | 25 +++++++++++++++++++ 5 files changed, 77 insertions(+), 2 deletions(-) diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx index cf267da57..c5428b9da 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx @@ -64,6 +64,7 @@ function AccountTransactionsActionsBar({ uncategorizedTransationsIdsSelected, excludedTransactionsIdsSelected, openMatchingTransactionAside, + categorizedTransactionsSelected, // #withBankingActions enableMultipleCategorization, @@ -194,7 +195,7 @@ function AccountTransactionsActionsBar({ // Handle multi select transactions for categorization or matching. const handleMultipleCategorizingSwitch = (event) => { enableMultipleCategorization(event.currentTarget.checked); - } + }; // Handle resume bank feeds syncing. const handleResumeFeedsSyncing = () => { openAlert('resume-feeds-syncing-bank-accounnt', { @@ -208,6 +209,9 @@ function AccountTransactionsActionsBar({ }); }; + // Handles uncategorize the categorized transactions in bulk. + const handleUncategorizeCategorizedBulkBtnClick = () => {}; + return ( @@ -297,6 +301,14 @@ function AccountTransactionsActionsBar({ disabled={isUnexcludingLoading} /> )} + {!isEmpty(categorizedTransactionsSelected) && ( +