Repository navigation
[Payment due @QichenZhu] Add currencies to amount search filters - #104802
Conversation
|
@shawnborton I could use some of your magic to improve the currency selection on the amount filter. This is the current behavior Screen.Recording.2026-10-23.at.1.13.01.PM.mov |
Yeah same. Is there something specific you're wanting to improve/change? |
|
Cool, thanks for the input. Nah, it was mostly just checking if what I had made sense or if we wanted to change anything. |
|
What if you want to search for an amount in any currency? 🤔 |
This comment has been minimized.
This comment has been minimized.
|
I would probably put it atop the When selected, just display "Cur" for the ghost button in the |
|
Cool, this is what I have now Screen.Recording.2026-10-26.at.1.42.12.PM.mov |
|
Looks good to me, I wonder if we can shorten "Any currency" to just say "All" or something? |
|
Maybe to avoid the double All we could call the option |
|
I'm cool with |
|
No strong feelings though. Happy to let Tom decide! |
|
Works for me! 👍 |
🦜 Polyglot Parrot! 🦜Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues: View the translation diffdiff --git a/src/languages/es.ts b/src/languages/es.ts
index 6290e52c..7a344746 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -325,7 +325,7 @@ const translations: TranslationDeepObject<typeof en> = {
tbd: 'Por determinar',
selectCurrency: 'Selecciona una moneda',
any: 'Cualquiera',
- anyCurrency: 'Cualquier moneda',
+ anyCurrency: 'Cualquier divisa',
selectSymbolOrCurrency: 'Selecciona un símbolo o moneda',
card: 'Tarjeta',
mcc: 'MCC',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index bf8b6fa4..f9c53822 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -330,8 +330,8 @@ const translations: TranslationDeepObject<typeof en> = {
pm: 'PM',
tbd: 'À déterminer',
selectCurrency: 'Sélectionner une devise',
- any: 'Toutes',
- anyCurrency: 'N’importe quelle devise',
+ any: "N'importe lequel",
+ anyCurrency: 'N'importe quelle devise',
selectSymbolOrCurrency: 'Sélectionner un symbole ou une devise',
card: 'Carte',
mcc: 'MCC',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index f914e53b..32d5d494 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -331,7 +331,7 @@ const translations: TranslationDeepObject<typeof en> = {
tbd: '未定',
selectCurrency: '通貨を選択',
any: 'すべて',
- anyCurrency: 'すべての通貨',
+ anyCurrency: '任意の通貨',
selectSymbolOrCurrency: '記号または通貨を選択',
card: 'カード',
mcc: 'MCC',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 589e916d..dfeb0529 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -330,7 +330,7 @@ const translations: TranslationDeepObject<typeof en> = {
pm: 'PM',
tbd: 'Nader te bepalen',
selectCurrency: 'Selecteer een valuta',
- any: 'Alle',
+ any: 'Elke',
anyCurrency: 'Elke valuta',
selectSymbolOrCurrency: 'Selecteer een symbool of valuta',
card: 'Kaart',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index ec72d16f..e998536c 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -336,7 +336,7 @@ const translations: TranslationDeepObject<typeof en> = {
pm: 'PM',
tbd: 'Do ustalenia',
selectCurrency: 'Wybierz walutę',
- any: 'Dowolna',
+ any: 'Dowolny',
anyCurrency: 'Dowolna waluta',
selectSymbolOrCurrency: 'Wybierz symbol lub walutę',
card: 'Karta',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 188a72d0..1cea2b19 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -331,7 +331,7 @@ const translations: TranslationDeepObject<typeof en> = {
tbd: '待定',
selectCurrency: '选择货币',
any: '任意',
- anyCurrency: '任意货币',
+ anyCurrency: '任何货币',
selectSymbolOrCurrency: '选择符号或货币',
card: '卡片',
mcc: 'MCC',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
| onBackdropPress={Navigation.dismissModal} | ||
| onBackdropPress={hidePickerModal} |
There was a problem hiding this comment.
NAB: in the expense creation flow, clicking the backdrop currently exits the whole flow, while with this PR it only closes the currency picker. I think the new behaviour is better, or at least no worse.
Before
staging.mov
After
pr.mov
|
🎯 @QichenZhu, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Deploy Blocker #105807 was identified to be related to this PR. |
|
Deploy Blocker #105808 was identified to be related to this PR. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.5.31-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.5.31-0 🚀
|
|
Help site update needed: this PR adds non-beta currency comparisons to amount filters. The existing draft help site PR updates one search-operator row. It is labeled @luacmartins, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #105974 |




Explanation of Change
Add optional comparison currencies to Amount and Purchase amount using the Create money request controls. New operands use the default expense policy's output currency, or USD, while saved currencies and currency-less operands retain their existing meaning. Qualified values use decimal major units (
12.00 USD,11.99 GBP); selecting Any currency restores bare hundredths. Any currency appears under All unless selected, when it is pinned above Recents. The filter button shortens that selection to Any. Advanced filters, quick popups, ranges, chips, and saved searches preserve the selected currency. Total/reimbursement filters and required currencies in Create money request remain unchanged.Mobile web uses a decimal keypad with the existing Flip control. Between inputs stack on narrow layouts to keep both controls usable. The existing money-request input API is reused to preserve validation and selection behavior; converting that shared control to compound components is outside this fix.
Depends on https://github.com/Expensify/Auth/pull/25791. Deploy the backend first; older backends do not interpret the currency-qualified format correctly.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/694628
Tests
Open Expenses and More filters, then add a new Amount filter. Confirm the inline currency button defaults to the default workspace currency, or USD when no default workspace exists.
Enter
12.00, select USD, and apply the filter. Confirm the chip includes12.00 USDand the Search request contains an amount operand of12.00 USD, not1200 USD.Reopen Amount. Confirm the input remains
12.00and USD remains selected.Select
Any currencyin the currency picker and apply the filter. Confirm the filter button shows Any and the request returns to the bare operand1200without changing the displayed amount.Set Purchase amount to
11.99in GBP. Confirm the request contains11.99 GBPand the selected amount and currency survive reopening the filter.Set a Between range with lower bound
10.00 USDand upper bound20.00 GBP. Confirm both bounds retain their own currencies when applied and reopened.Reopen the currency picker with Any currency selected and recent currencies available. Confirm Any currency is pinned above Recents and appears only once.
Enter an amount, open the currency picker, and click its backdrop. Confirm only the picker closes and the filter retains its amount and currency.
On mobile web, focus Amount and Purchase amount. Confirm the decimal keypad opens and Flip toggles the amount's sign without changing its currency.
Open Between at a narrow width. Confirm both inputs and their Flip/currency controls remain visible without overlap, and the currency buttons have distinct Greater than and Less than accessible names.
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2026-10-27.at.10.54.42.AM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari