Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8419,12 +8419,18 @@ const CONST = {
},
SELECTION_LIST: {
BASE_LIST_ITEM: 'SelectionList-BaseListItem',
SELECT_ALL: 'ListHeader-SelectAll',
SPLIT_LIST_ITEM_EDIT_BUTTON: 'SplitListItem-EditButton',
LIST_HEADER_SELECT_ALL: 'SelectionList-ListHeader-SelectAll',
},
SELECTION_LIST_WITH_SECTIONS: {
BASE_LIST_ITEM: 'SelectionListWithSections-BaseListItem',
SELECT_ALL: 'SelectionList-SelectAll',
SELECT_ALL: 'BaseSelectionListWithSections-SelectAll',
},
WORKSPACE_DUPLICATE_SELECT_FEATURES: {
SELECT_ALL: 'WorkspaceDuplicateSelectFeatures-SelectAll',
SPLIT_LIST_ITEM_EDIT_BUTTON: 'SplitListItem-EditButton',
LIST_HEADER_SELECT_ALL: 'SelectionList-ListHeader-SelectAll',
},
CONTEXT_MENU: {
REPLY_IN_THREAD: 'ContextMenu-ReplyInThread',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@
reportScrollManager.scrollToEnd();
readActionSkipped.current = false;
readNewestAction(report.reportID);
}, [setIsFloatingMessageCounterVisible, hasNewestReportAction, reportScrollManager, report.reportID]);

Check warning on line 677 in src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

React Hook useCallback has a missing dependency: 'introSelected'. Either include it or remove the dependency array

Check warning on line 677 in src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

React Hook useCallback has a missing dependency: 'introSelected'. Either include it or remove the dependency array

const scrollToNewTransaction = useCallback(
(pageY: number) => {
Expand Down Expand Up @@ -738,7 +738,7 @@
/>
<View style={[styles.alignItemsCenter, styles.userSelectNone, styles.flexRow, styles.pt6, styles.ph8, styles.pb3]}>
<Checkbox
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
isChecked={isSelectAllChecked}
isIndeterminate={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length !== transactionsWithoutPendingDelete.length}
onPress={() => {
Expand All @@ -758,7 +758,7 @@
setSelectedTransactions(transactionsWithoutPendingDelete.map((t) => t.transactionID));
}
}}
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
role="button"
accessibilityState={{checked: isSelectAllChecked}}
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
return groupTransactionsByTag(sortedTransactions, report, localeCompare);
}
return groupTransactionsByCategory(sortedTransactions, report, localeCompare);
}, [sortedTransactions, currentGroupBy, report?.reportID, report?.currency, localeCompare, shouldShowGroupedTransactions]);

Check warning on line 313 in src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

React Hook useMemo has a missing dependency: 'report'. Either include it or remove the dependency array

Check warning on line 313 in src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

React Hook useMemo has a missing dependency: 'report'. Either include it or remove the dependency array

const visualOrderTransactionIDs = useMemo(() => {
if (!shouldShowGroupedTransactions || groupedTransactions.length === 0) {
Expand Down Expand Up @@ -502,7 +502,7 @@
setSelectedTransactions(transactionsWithoutPendingDelete.map((t) => t.transactionID));
}
}}
accessibilityLabel={CONST.ROLE.CHECKBOX}
accessibilityLabel={translate('accessibilityHints.selectAllTransactions')}
isIndeterminate={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length !== transactionsWithoutPendingDelete.length}
isChecked={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length === transactionsWithoutPendingDelete.length}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Search/SearchList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function SearchList({
<View style={[styles.searchListHeaderContainerStyle, styles.listTableHeader]}>
{canSelectMultiple && (
<Checkbox
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
isChecked={isSelectAllChecked}
isIndeterminate={selectedItemsLength > 0 && (selectedItemsLength !== totalItems || !hasLoadedAllTransactions)}
onPress={() => {
Expand All @@ -556,7 +556,7 @@ function SearchList({
<PressableWithFeedback
style={[styles.userSelectNone, styles.alignItemsCenter]}
onPress={onAllCheckboxPress}
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
role="button"
accessibilityState={{checked: isSelectAllChecked}}
sentryLabel={CONST.SENTRY_LABEL.SEARCH.SELECT_ALL_BUTTON}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SelectionList/components/ListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ListHeader<TItem extends ListItem>({
<View style={[styles.flexRow, styles.alignItemsCenter]}>
<Checkbox
testID="selection-list-select-all-checkbox"
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
isChecked={dataDetails.allSelected}
isIndeterminate={dataDetails.someSelected}
onPress={onSelectAll}
Expand All @@ -76,8 +76,8 @@ function ListHeader<TItem extends ListItem>({
<PressableWithFeedback
style={[styles.userSelectNone, styles.flexRow, styles.alignItemsCenter]}
onPress={onSelectAll}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
sentryLabel={CONST.SENTRY_LABEL.SELECTION_LIST.LIST_HEADER_SELECT_ALL}
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityRole="button"
accessibilityState={{checked: dataDetails.allSelected, disabled: allDisabled}}
disabled={allDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function BaseSelectionListWithSections<TItem extends ListItem>({
<View style={[styles.flexRow, styles.alignItemsCenter]}>
<Checkbox
testID="selection-list-select-all-checkbox"
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
isChecked={flattenedSections.allSelected}
isIndeterminate={flattenedSections.someSelected}
onPress={selectAllRow}
Expand All @@ -631,7 +631,7 @@ function BaseSelectionListWithSections<TItem extends ListItem>({
<PressableWithFeedback
style={[styles.userSelectNone, styles.flexRow, styles.alignItemsCenter]}
onPress={selectAllRow}
accessibilityLabel={translate('workspace.people.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllItems')}
sentryLabel={CONST.SENTRY_LABEL.SELECTION_LIST_WITH_SECTIONS.SELECT_ALL}
role="button"
accessibilityState={{checked: flattenedSections.allSelected}}
Expand Down
3 changes: 3 additions & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7433,6 +7433,9 @@ Fordern Sie Spesendetails wie Belege und Beschreibungen an, legen Sie Limits und
scrollToNewestMessages: 'Zu neuesten Nachrichten scrollen',
preStyledText: 'Vorgestylter Text',
viewAttachment: 'Anhang anzeigen',
selectAllFeatures: 'Alle Funktionen auswählen',
selectAllTransactions: 'Alle Transaktionen auswählen',
selectAllItems: 'Alle Einträge auswählen',
},
parentReportAction: {
deletedReport: 'Gelöschter Bericht',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7381,6 +7381,9 @@ const translations = {
scrollToNewestMessages: 'Scroll to newest messages',
preStyledText: 'Pre-styled text',
viewAttachment: 'View attachment',
selectAllFeatures: 'Select all features',
selectAllTransactions: 'Select all transactions',
selectAllItems: 'Select all items',
},
parentReportAction: {
deletedReport: 'Deleted report',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7698,6 +7698,9 @@ ${amount} para ${merchant} - ${date}`,
scrollToNewestMessages: 'Desplázate a los mensajes más recientes',
preStyledText: 'texto preestilizado',
viewAttachment: 'Ver archivo adjunto',
selectAllFeatures: 'Seleccionar todas las características',
selectAllItems: 'Seleccionar todos los elementos',
selectAllTransactions: 'Seleccionar todas las transacciones',
},
parentReportAction: {
deletedReport: 'Informe eliminado',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7454,6 +7454,9 @@ Rendez obligatoires des informations de dépense comme les reçus et les descrip
scrollToNewestMessages: 'Aller au dernier message',
preStyledText: 'Texte pré-stylé',
viewAttachment: 'Afficher la pièce jointe',
selectAllFeatures: 'Sélectionner toutes les fonctionnalités',
selectAllTransactions: 'Sélectionner toutes les transactions',
selectAllItems: 'Sélectionner tous les éléments',
},
parentReportAction: {
deletedReport: 'Note de frais supprimée',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7419,6 +7419,9 @@ Richiedi dettagli sulle spese come ricevute e descrizioni, imposta limiti e valo
scrollToNewestMessages: 'Scorri ai messaggi più recenti',
preStyledText: 'Testo preformattato',
viewAttachment: 'Visualizza allegato',
selectAllFeatures: 'Seleziona tutte le funzionalità',
selectAllTransactions: 'Seleziona tutte le transazioni',
selectAllItems: 'Seleziona tutti gli elementi',
},
parentReportAction: {
deletedReport: 'Report eliminato',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7345,6 +7345,9 @@ ${reportName}
scrollToNewestMessages: '最新のメッセージまでスクロール',
preStyledText: '事前にスタイル設定されたテキスト',
viewAttachment: '添付ファイルを表示',
selectAllFeatures: 'すべての機能を選択',
selectAllTransactions: 'すべての取引を選択',
selectAllItems: 'すべての項目を選択',
},
parentReportAction: {
deletedReport: '削除されたレポート',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7398,6 +7398,9 @@ Vereis onkostendetails zoals bonnen en beschrijvingen, stel limieten en standaar
scrollToNewestMessages: 'Scroll naar nieuwste berichten',
preStyledText: 'Vooraf opgemaakte tekst',
viewAttachment: 'Bijlage bekijken',
selectAllFeatures: 'Selecteer alle functies',
selectAllTransactions: 'Selecteer alle transacties',
selectAllItems: 'Alle items selecteren',
},
parentReportAction: {
deletedReport: 'Verwijderd rapport',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7385,6 +7385,9 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i
scrollToNewestMessages: 'Przewiń do najnowszych wiadomości',
preStyledText: 'Wstępnie ostylowany tekst',
viewAttachment: 'Zobacz załącznik',
selectAllFeatures: 'Zaznacz wszystkie funkcje',
selectAllTransactions: 'Zaznacz wszystkie transakcje',
selectAllItems: 'Zaznacz wszystkie elementy',
},
parentReportAction: {
deletedReport: 'Usunięty raport',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7390,6 +7390,9 @@ Exija dados de despesas como recibos e descrições, defina limites e padrões e
scrollToNewestMessages: 'Rolar até as mensagens mais recentes',
preStyledText: 'Texto pré-formatado',
viewAttachment: 'Ver anexo',
selectAllFeatures: 'Selecionar todos os recursos',
selectAllTransactions: 'Selecionar todas as transações',
selectAllItems: 'Selecionar todos os itens',
},
parentReportAction: {
deletedReport: 'Relatório excluído',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7228,6 +7228,9 @@ ${reportName}
scrollToNewestMessages: '滚动到最新消息',
preStyledText: '预设样式文本',
viewAttachment: '查看附件',
selectAllFeatures: '选择所有功能',
selectAllTransactions: '选择所有交易',
selectAllItems: '全选所有项目',
},
parentReportAction: {
deletedReport: '已删除的报告',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ function WorkspaceDuplicateSelectFeaturesForm({policyID}: WorkspaceDuplicateForm
<View style={[styles.flex1]}>
<View style={[styles.searchListHeaderContainerStyle, styles.pv3, styles.ph5]}>
<Checkbox
accessibilityLabel={translate('workspace.common.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllFeatures')}
isChecked={isSelectAllChecked}
isIndeterminate={selectedItems.length > 0 && selectedItems.length !== items.length}
onPress={toggleAllItems}
Expand All @@ -367,7 +367,7 @@ function WorkspaceDuplicateSelectFeaturesForm({policyID}: WorkspaceDuplicateForm
<PressableWithFeedback
style={[styles.userSelectNone, styles.alignItemsCenter]}
onPress={toggleAllItems}
accessibilityLabel={translate('workspace.common.selectAll')}
accessibilityLabel={translate('accessibilityHints.selectAllFeatures')}
role="button"
accessibilityState={{checked: isSelectAllChecked}}
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.DUPLICATE_SELECT_FEATURES_SELECT_ALL}
Expand Down
Loading