Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8335,6 +8335,7 @@ const CONST = {
IN: 'in',
SUBMITTED: 'submitted',
APPROVED: 'approved',
ANY_APPROVAL: 'anyApproval',
PAID: 'paid',
EXPORTED: 'exported',
POSTED: 'posted',
Expand Down Expand Up @@ -8428,6 +8429,7 @@ const CONST = {
IN: 'in',
SUBMITTED: 'submitted',
APPROVED: 'approved',
ANY_APPROVAL: 'any-approval',
PAID: 'paid',
EXPORTED: 'exported',
POSTED: 'posted',
Expand Down
1 change: 1 addition & 0 deletions src/components/Search/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ type SearchDateFilterKeys =
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.APPROVED
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.ANY_APPROVAL
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.POSTED
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useAdvancedSearchFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const typeFiltersKeys = {
[
CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED,
CONST.SEARCH.SYNTAX_FILTER_KEYS.APPROVED,
CONST.SEARCH.SYNTAX_FILTER_KEYS.ANY_APPROVAL,
CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED,
CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED_TO,
CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID,
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useAutocompleteSuggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ function useAutocompleteSuggestions({
mapKey: CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED_TO,
}));
Comment thread
nkdengineer marked this conversation as resolved.
}
case CONST.SEARCH.SYNTAX_FILTER_KEYS.ANY_APPROVAL:
Comment thread
nkdengineer marked this conversation as resolved.
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.APPROVED:
Expand All @@ -663,7 +664,7 @@ function useAutocompleteSuggestions({
.filter((datePreset) => datePreset.toLowerCase().includes(autocompleteValue.toLowerCase()) && !alreadyAutocompletedKeys.has(datePreset.toLowerCase()))
.sort()
.slice(0, 10);
return filteredDatePresets.map((datePreset) => ({filterKey: autocompleteKey, text: datePreset}));
return filteredDatePresets.map((datePreset) => ({filterKey: getUserFriendlyKey(autocompleteKey), text: datePreset}));
}
default: {
return [];
Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10222,6 +10222,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
past: 'Vergangenes',
submitted: 'Eingereicht',
approved: 'Genehmigt',
anyApproval: 'Jede Genehmigung',
firstApprover: 'Erste:r Genehmiger:in',
firstApproved: 'Zuerst genehmigt',
paidBy: 'Bezahlt von',
Expand Down
1 change: 1 addition & 0 deletions src/languages/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10425,6 +10425,7 @@ ${reportName}`,
past: 'Παρελθόν',
submitted: 'Υποβλήθηκε',
approved: 'Εγκρίθηκε',
anyApproval: 'Οποιαδήποτε έγκριση',
firstApprover: 'Πρώτος εγκρίνων',
firstApproved: 'Πρώτη έγκριση',
paidBy: 'Πληρώθηκε από',
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10467,6 +10467,7 @@ const translations = {
past: 'Past',
submitted: 'Submitted',
approved: 'Approved',
anyApproval: 'Any approval',
firstApprover: 'First approver',
firstApproved: 'First approved',
paidBy: 'Paid by',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10067,6 +10067,7 @@ ${reportName}`,
past: 'Anterior',
submitted: 'Envío',
approved: 'Aprobación',
anyApproval: 'Cualquier aprobación',
firstApprover: 'Primer aprobador',
firstApproved: 'Primera aprobación',
paidBy: 'Pagado por',
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10248,6 +10248,7 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
past: 'Passé',
submitted: 'Soumis',
approved: 'Approuvé',
anyApproval: 'Toute approbation',
firstApprover: 'Premier approbateur',
firstApproved: 'Approuvé en premier',
paidBy: 'Payé par',
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10174,6 +10174,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
past: 'Passato',
submitted: 'Inviato',
approved: 'Approvato',
anyApproval: 'Qualsiasi approvazione',
firstApprover: 'Primo approvatore',
firstApproved: 'Approvato per primo',
paidBy: 'Pagato da',
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10031,6 +10031,7 @@ ${reportName}`,
past: '過去',
submitted: '送信済み',
approved: '承認済み',
anyApproval: '任意の承認',
firstApprover: '最初の承認者',
firstApproved: '最初に承認済み',
paidBy: '支払者',
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10140,6 +10140,7 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
past: 'Verleden',
submitted: 'Ingediend',
approved: 'Goedgekeurd',
anyApproval: 'Elke goedkeuring',
firstApprover: 'Eerste gemachtigde',
firstApproved: 'Eerst goedgekeurd',
paidBy: 'Betaald door',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10157,6 +10157,7 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
past: 'Przeszłe',
submitted: 'Przesłano',
approved: 'Zatwierdzono',
anyApproval: 'Jakiekolwiek zatwierdzenie',
firstApprover: 'Pierwszy zatwierdzający',
firstApproved: 'Najpierw zatwierdzono',
paidBy: 'Zapłacone przez',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10138,6 +10138,7 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
past: 'Passado',
submitted: 'Enviado',
approved: 'Aprovado',
anyApproval: 'Qualquer aprovação',
firstApprover: 'Primeira pessoa aprovadora',
firstApproved: 'Primeira aprovada',
paidBy: 'Pago por',
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9762,6 +9762,7 @@ ${reportName}`,
past: '过去',
submitted: '已提交',
approved: '已批准',
anyApproval: '任意审批',
firstApprover: '首位审批人',
firstApproved: '首次批准',
paidBy: '付款人',
Expand Down
1 change: 1 addition & 0 deletions src/libs/SearchAutocompleteUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ function filterOutRangesWithCorrectValue(
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.APPROVED:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.ANY_APPROVAL:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.WITHDRAWN:
Expand Down
Loading
Loading