From 329479f949d9d1f6dbcc0deff98e9980a2bf8fd6 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 31 Mar 2026 15:17:44 -0600 Subject: [PATCH 01/22] Fix selection mode --- .../Search/SearchList/ListItem/TransactionListItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Search/SearchList/ListItem/TransactionListItem.tsx b/src/components/Search/SearchList/ListItem/TransactionListItem.tsx index 39dc5f6983a3..50b7d77d8a01 100644 --- a/src/components/Search/SearchList/ListItem/TransactionListItem.tsx +++ b/src/components/Search/SearchList/ListItem/TransactionListItem.tsx @@ -181,7 +181,7 @@ function TransactionListItem({ onLongPressRow?.(item)} - onPress={isDeletedTransaction ? undefined : () => onSelectRow(item, transactionPreviewData)} + onPress={isDeletedTransaction && !canSelectMultiple ? undefined : () => onSelectRow(item, transactionPreviewData)} disabled={isDisabled && !item.isSelected} accessibilityLabel={item.text ?? ''} role={isDeletedTransaction ? getButtonRole(true) : 'none'} From 854b99f3e073b1951f4aba16ca9430a106b96150 Mon Sep 17 00:00:00 2001 From: jakubstec Date: Wed, 1 Apr 2026 11:43:46 +0200 Subject: [PATCH 02/22] fix misalignment in deleted expenses table column --- src/components/TransactionItemRow/index.tsx | 39 +++++++++++---------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/src/components/TransactionItemRow/index.tsx b/src/components/TransactionItemRow/index.tsx index 7086165862af..3b2ed3bf469b 100644 --- a/src/components/TransactionItemRow/index.tsx +++ b/src/components/TransactionItemRow/index.tsx @@ -802,24 +802,27 @@ function TransactionItemRow({ /> )} - {!!isLargeScreenWidth && !!onArrowRightPress && ( - onArrowRightPress?.()} - style={[styles.p3Half, styles.pl0half, styles.pr0half, styles.justifyContentCenter, styles.alignItemsEnd]} - accessibilityRole={CONST.ROLE.BUTTON} - accessibilityLabel={CONST.ROLE.BUTTON} - sentryLabel={CONST.SENTRY_LABEL.TRANSACTION_ITEM_ROW.ARROW_RIGHT} - > - - - )} + {!!isLargeScreenWidth && + (onArrowRightPress ? ( + onArrowRightPress?.()} + style={[styles.p3Half, styles.pl0half, styles.pr0half, styles.justifyContentCenter, styles.alignItemsEnd]} + accessibilityRole={CONST.ROLE.BUTTON} + accessibilityLabel={CONST.ROLE.BUTTON} + sentryLabel={CONST.SENTRY_LABEL.TRANSACTION_ITEM_ROW.ARROW_RIGHT} + > + + + ) : ( + + ))} {shouldShowErrors && ( Date: Wed, 1 Apr 2026 13:36:25 +0200 Subject: [PATCH 03/22] Show "Undelete" action in expanded group search results --- .../Search/SearchList/ListItem/ActionCell/index.tsx | 10 +++++----- .../SearchList/ListItem/ExpenseReportListItemRow.tsx | 4 ++-- .../SearchList/ListItem/ReportListItemHeader.tsx | 2 +- .../ListItem/TransactionGroupListExpanded.tsx | 9 +++++++-- .../SearchList/ListItem/TransactionGroupListItem.tsx | 2 ++ .../Search/SearchList/ListItem/TransactionListItem.tsx | 2 +- .../SearchList/ListItem/UserInfoAndActionButtonRow.tsx | 2 +- src/components/Search/SearchList/ListItem/types.ts | 8 +++++--- src/components/Search/SearchList/index.tsx | 2 +- src/components/TransactionItemRow/index.tsx | 7 ++++--- src/hooks/useSearchBulkActions.ts | 2 +- src/hooks/useUndeleteTransactions.ts | 8 +++++--- 12 files changed, 35 insertions(+), 23 deletions(-) diff --git a/src/components/Search/SearchList/ListItem/ActionCell/index.tsx b/src/components/Search/SearchList/ListItem/ActionCell/index.tsx index 1ab70eeac6ea..72f94c221f7c 100644 --- a/src/components/Search/SearchList/ListItem/ActionCell/index.tsx +++ b/src/components/Search/SearchList/ListItem/ActionCell/index.tsx @@ -11,7 +11,7 @@ import PayActionCell from './PayActionCell'; type ActionCellProps = { action?: SearchTransactionAction; isSelected?: boolean; - goToItem: () => void; + onButtonPress: () => void; isChildListItem?: boolean; isLoading?: boolean; policyID?: string; @@ -25,7 +25,7 @@ type ActionCellProps = { function ActionCell({ action = CONST.SEARCH.ACTION_TYPES.VIEW, isSelected = false, - goToItem, + onButtonPress, isChildListItem = false, isLoading = false, policyID = '', @@ -41,7 +41,7 @@ function ActionCell({ const shouldUseViewAction = action === CONST.SEARCH.ACTION_TYPES.VIEW || action === CONST.SEARCH.ACTION_TYPES.PAID || action === CONST.SEARCH.ACTION_TYPES.DONE; - if (shouldUseViewAction || isChildListItem) { + if (shouldUseViewAction || (isChildListItem && action !== CONST.SEARCH.ACTION_TYPES.UNDELETE)) { const text = translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW]); const buttonInnerStyles = isSelected ? styles.buttonDefaultSelected : {}; @@ -49,7 +49,7 @@ function ActionCell({