Repository navigation
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…ils-rhp-biggest-changes
This comment has been minimized.
This comment has been minimized.
state for spenders when only it is empty
okie, the percentage is now hidden from +1,000% up and from -1,000% down, so those rows only show the amount change (also did the same for changes from a $0 average, which used to show "—")
|
🦜 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/de.ts b/src/languages/de.ts
index 583d4081..bf58109e 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -598,7 +598,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: 'Einreicher',
clearField: (fieldName: string) => `${fieldName} löschen`,
merchants: 'Händler',
- spenders: 'Ausgebende Personen',
+ spenders: 'Ausgabenverursacher',
previousExpense: 'Vorherige Ausgabe',
nextExpense: 'Nächste Ausgabe',
previousReport: 'Vorheriger Bericht',
@@ -1367,7 +1367,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `${count}-Monatsdurchschnitt`,
quarterAverage: (count: number) => `Durchschnitt der letzten ${count} Quartale`,
shareOfTotal: 'Anteil am Gesamtbetrag',
- versusSpenderAverage: (amount: string) => `${amount} im Vergleich zum Durchschnitt dieses Ausgebenden`,
+ versusSpenderAverage: (amount: string) => `${amount} vs. dem Durchschnitt dieses Ausgebenden`,
},
generatingAIInsights: 'KI-Einblicke werden erzeugt ...',
generatingAIInsightsSubtitle: 'Das sollte nicht länger als eine Minute dauern',
@@ -1391,6 +1391,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: 'Markierte Ausgaben',
noFlaggedExpensesInRange: 'Keine markierten Ausgaben in diesem Zeitraum',
biggestChanges: 'Größte Änderungen',
+ noSpenderData: 'Keine Ausgabendaten für diesen Zeitraum.',
},
allSettingsScreen: {
subscription: 'Abonnement',
diff --git a/src/languages/el.ts b/src/languages/el.ts
index a8485e4f..80fcb883 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -594,7 +594,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: 'Υποβάλλων',
clearField: (fieldName: string) => `Εκκαθαρίστε το πεδίο ${fieldName}`,
merchants: 'Έμποροι',
- spenders: 'Δαπανητές',
+ spenders: 'Δαπανώντες',
previousExpense: 'Προηγούμενη δαπάνη',
nextExpense: 'Επόμενη δαπάνη',
previousReport: 'Προηγούμενη αναφορά',
@@ -1413,7 +1413,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `μέσος όρος ${count} μηνών`,
quarterAverage: (count: number) => `μέσος όρος ${count} τριμήνων`,
shareOfTotal: 'Ποσοστό επί του συνόλου',
- versusSpenderAverage: (amount: string) => `${amount} σε σύγκριση με τον μέσο όρο αυτού του δαπανητή`,
+ versusSpenderAverage: (amount: string) => `${amount} έναντι του μέσου όρου αυτού του δαπανητή`,
},
generatingAIInsights: 'Δημιουργία AI Insights...',
generatingAIInsightsSubtitle: 'Αυτό δεν θα πάρει πάνω από ένα λεπτό',
@@ -1437,6 +1437,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: 'Επισημασμένες δαπάνες',
noFlaggedExpensesInRange: 'Δεν υπάρχουν επισημασμένες δαπάνες σε αυτό το εύρος',
biggestChanges: 'Οι μεγαλύτερες αλλαγές',
+ noSpenderData: 'Δεν υπάρχουν δεδομένα δαπανών για αυτήν την περίοδο.',
},
allSettingsScreen: {
subscription: 'Συνδρομή',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index dc0822d2..c459bece 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -581,7 +581,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: 'Remitente',
clearField: (fieldName: string) => `Borrar ${fieldName}`,
merchants: 'Comercios',
- spenders: 'Gastadores',
+ spenders: 'Personas que gastan',
previousExpense: 'Gasto anterior',
nextExpense: 'Gasto siguiente',
previousReport: 'Informe anterior',
@@ -1361,7 +1361,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `Promedio de ${count} meses`,
quarterAverage: (count: number) => `Promedio de ${count} trimestres`,
shareOfTotal: 'Porcentaje del total',
- versusSpenderAverage: (amount: string) => `${amount} frente a la media de este usuario`,
+ versusSpenderAverage: (amount: string) => `${amount} frente a la media de esta persona que gasta`,
},
generatingAIInsights: 'Generando información con IA...',
generatingAIInsightsSubtitle: 'Esto no debería llevar más de un minuto',
@@ -1385,6 +1385,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: 'Gastos marcados',
noFlaggedExpensesInRange: 'No hay gastos marcados en este intervalo',
biggestChanges: 'Cambios más importantes',
+ noSpenderData: 'No hay datos de gastos para este periodo.',
},
allSettingsScreen: {
subscription: 'Suscripcion',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 49fc2a42..ee245a5a 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -1374,7 +1374,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `Moyenne sur ${count} mois`,
quarterAverage: (count: number) => `Moyenne sur ${count} trimestres`,
shareOfTotal: 'Part du total',
- versusSpenderAverage: (amount: string) => `${amount} par rapport à la moyenne de ce déclarant`,
+ versusSpenderAverage: (amount: string) => `${amount} par rapport à la moyenne de cette personne qui dépense`,
},
generatingAIInsights: 'Génération d’analyses IA...',
generatingAIInsightsSubtitle: 'Cela ne devrait pas prendre plus d’une minute',
@@ -1397,7 +1397,8 @@ const translations: TranslationDeepObject<typeof en> = {
},
flaggedExpenses: 'Dépenses signalées',
noFlaggedExpensesInRange: 'Aucune dépense signalée dans cet intervalle',
- biggestChanges: 'Principaux changements',
+ biggestChanges: 'Changements les plus importants',
+ noSpenderData: 'Aucune donnée de dépense pour cette période.',
},
allSettingsScreen: {
subscription: 'Abonnement',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 5d7ccf42..b3cf0df3 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -597,7 +597,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: 'Mittente',
clearField: (fieldName: string) => `Cancella ${fieldName}`,
merchants: 'Esercenti',
- spenders: 'Utenti che spendono',
+ spenders: 'Utenti spenditori',
previousExpense: 'Spesa precedente',
nextExpense: 'Spesa successiva',
previousReport: 'Report precedente',
@@ -1370,7 +1370,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `media di ${count} mesi`,
quarterAverage: (count: number) => `Media di ${count} trimestri`,
shareOfTotal: 'Quota del totale',
- versusSpenderAverage: (amount: string) => `${amount} rispetto alla media di chi ha speso`,
+ versusSpenderAverage: (amount: string) => `${amount} rispetto alla media di questa persona che spende`,
},
generatingAIInsights: 'Generazione di approfondimenti IA in corso...',
generatingAIInsightsSubtitle: 'Non dovrebbe volerci più di un minuto',
@@ -1394,6 +1394,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: 'Spese contrassegnate',
noFlaggedExpensesInRange: 'Nessuna spesa contrassegnata in questo intervallo',
biggestChanges: 'Cambiamenti principali',
+ noSpenderData: 'Nessun dato di spesa per questo periodo.',
},
allSettingsScreen: {
subscription: 'Abbonamento',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 5d0ada81..9594ca66 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -596,7 +596,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: '申請者',
clearField: (fieldName: string) => `${fieldName}を消去`,
merchants: '加盟店',
- spenders: '利用者',
+ spenders: '支出者',
previousExpense: '前回の経費',
nextExpense: '次の経費',
previousReport: '前のレポート',
@@ -1378,7 +1378,8 @@ const translations: TranslationDeepObject<typeof en> = {
},
flaggedExpenses: 'フラグ付き経費',
noFlaggedExpensesInRange: 'この範囲にはフラグ付き経費はありません',
- biggestChanges: '最大の変更点',
+ biggestChanges: '主な変更点',
+ noSpenderData: 'この期間の利用者データはありません。',
},
allSettingsScreen: {
subscription: 'サブスクリプション',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index d47fe4ad..9db35548 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -1366,7 +1366,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `Gemiddelde over ${count} maanden`,
quarterAverage: (count: number) => `gemiddelde over ${count} kwartalen`,
shareOfTotal: 'Aandeel van totaal',
- versusSpenderAverage: (amount: string) => `${amount} vs het gemiddelde van deze gebruiker`,
+ versusSpenderAverage: (amount: string) => `${amount} vs het gemiddelde van deze betaler`,
},
generatingAIInsights: 'AI-inzichten genereren...',
generatingAIInsightsSubtitle: 'Dit duurt niet langer dan een minuut',
@@ -1389,7 +1389,8 @@ const translations: TranslationDeepObject<typeof en> = {
},
flaggedExpenses: 'Gemarkeerde uitgaven',
noFlaggedExpensesInRange: 'Geen gemarkeerde uitgaven in dit bereik',
- biggestChanges: 'Belangrijkste wijzigingen',
+ biggestChanges: 'Grootste veranderingen',
+ noSpenderData: 'Geen uitgavendata voor deze periode.',
},
allSettingsScreen: {
subscription: 'Abonnement',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index e6fd6c9e..1c4c909e 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -608,7 +608,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: 'Zgłaszający',
clearField: (fieldName: string) => `Wyczyść pole ${fieldName}`,
merchants: 'Sprzedawcy',
- spenders: 'Wydający',
+ spenders: 'Osoby wydające',
previousExpense: 'Poprzedni wydatek',
nextExpense: 'Następny wydatek',
previousReport: 'Poprzedni raport',
@@ -1408,7 +1408,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `średnia z ${count} miesięcy`,
quarterAverage: (count: number) => `Średnia z ${count} kwartałów`,
shareOfTotal: 'Udział w sumie',
- versusSpenderAverage: (amount: string) => `${amount} vs średnia tego wydającego`,
+ versusSpenderAverage: (amount: string) => `${amount} vs średnia wydatkującego`,
},
generatingAIInsights: 'Generowanie podpowiedzi AI...',
generatingAIInsightsSubtitle: 'To nie powinno zająć więcej niż minutę',
@@ -1432,6 +1432,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: 'Oznaczone wydatki',
noFlaggedExpensesInRange: 'Brak oznaczonych wydatków w tym zakresie',
biggestChanges: 'Największe zmiany',
+ noSpenderData: 'Brak danych wydatkującego za ten okres.',
},
allSettingsScreen: {
subscription: 'Subskrypcja',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 3d772210..9ce64f8c 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -595,8 +595,8 @@ const translations: TranslationDeepObject<typeof en> = {
amount: 'Valor',
submitter: 'Remetente',
clearField: (fieldName: string) => `Limpar ${fieldName}`,
- merchants: 'Estabelecimentos',
- spenders: 'Quem gasta',
+ merchants: 'Comerciantes',
+ spenders: 'Gastadores',
previousExpense: 'Despesa anterior',
nextExpense: 'Próxima despesa',
previousReport: 'Relatório anterior',
@@ -1369,7 +1369,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `média de ${count} meses`,
quarterAverage: (count: number) => `média de ${count} trimestres`,
shareOfTotal: 'Parcela do total',
- versusSpenderAverage: (amount: string) => `${amount} vs média deste gastador`,
+ versusSpenderAverage: (amount: string) => `${amount} vs a média deste usuário`,
},
generatingAIInsights: 'Gerando insights de IA...',
generatingAIInsightsSubtitle: 'Isso não deve levar mais de um minuto',
@@ -1392,7 +1392,8 @@ const translations: TranslationDeepObject<typeof en> = {
},
flaggedExpenses: 'Despesas sinalizadas',
noFlaggedExpensesInRange: 'Nenhuma despesa sinalizada neste intervalo',
- biggestChanges: 'Maiores mudanças',
+ biggestChanges: 'Principais mudanças',
+ noSpenderData: 'Nenhum dado de gasto para este período.',
},
allSettingsScreen: {
subscription: 'Assinatura',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 1df4b4ea..32593f9d 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -592,7 +592,7 @@ const translations: TranslationDeepObject<typeof en> = {
submitter: '提交人',
clearField: (fieldName: string) => `清除${fieldName}`,
merchants: '商户',
- spenders: '支出人',
+ spenders: '消费人',
previousExpense: '上一笔费用',
nextExpense: '下一笔报销',
previousReport: '上一份报表',
@@ -1321,7 +1321,7 @@ const translations: TranslationDeepObject<typeof en> = {
monthAverage: (count: number) => `${count} 个月平均值`,
quarterAverage: (count: number) => `${count} 个季度平均值`,
shareOfTotal: '总份额',
- versusSpenderAverage: (amount: string) => `${amount} 与此消费人平均值对比`,
+ versusSpenderAverage: (amount: string) => `${amount} 对比此消费人的平均值`,
},
generatingAIInsights: '正在生成 AI 洞察…',
generatingAIInsightsSubtitle: '这不会花费超过一分钟',
@@ -1345,6 +1345,7 @@ const translations: TranslationDeepObject<typeof en> = {
flaggedExpenses: '被标记的报销费用',
noFlaggedExpensesInRange: '此范围内没有被标记的报销费用',
biggestChanges: '最大变更',
+ noSpenderData: '此期间没有报销人数据。',
},
allSettingsScreen: {
subscription: '订阅',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
|
🚧 JmillsExpensify 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! 🧪🧪
|
@dannymcclain what are your thoughts on this one? I'm wavering a bit what the best way is to handle it. Maybe we just show the |
Agree we don't need to hold up the PR on this detail, but I'm genuinely not sure what the best way is. Do you think these types of high percentage deltas are common? If the numbers are accurate, is it better to just show them? I really don't know what will resonate with customers the best here. I agree that just including the |
|
Yeah not sure either. Maybe it's an exception, but this is basically bound to happen on most any day in |
Ah yeah ok I wasn't thinking about it like that. So they really aren't super helpful in that context. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
…biggest-changes # Conflicts: # src/languages/de.ts # src/languages/el.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts # src/libs/actions/Insights.ts # src/pages/Insights/details/InsightsDetailsPage.tsx
|
failing reassure performance tests are unrelated and will be fixed here: #108892 |
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |







Explanation of Change
Adds the Biggest changes section to the Details panel for Spend over time. It lists up to 5 categories, merchants or spenders whose spend in the clicked period moved furthest from their own average, with the change in amount and percent. Clicking a row opens that item's Details panel for the same period, which is now passed in the URL with start, end and period.
The grouping is picked from a dropdown and saved in the new
nvp_insightsBiggestChangesGroupByNVP. Spenders is only offered to people who can see Top spenders. When it isn't offered, the section shows Categories but still requests the picked grouping, and the backend falls back on its own, so the pick isn't overwritten. The panel's request sends the grouping inbiggestChangesGroupByand switching it fetches only thebiggestChangessection into the same panel. The panel reads the saved grouping once it loads, so a change made in another session doesn't switch it.Also splits
InsightsDetailsPageinto smaller pieces:useInsightsDetailsItemresolves the item from the URLuseBiggestChangesGroupByhandles the groupingbuildInsightsDetailsQueriesbuilds the requestsgetInsightsDetailsSectionStatesgives each section its state.Fixed Issues
$ #105763
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as tests.
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
Android: Native
Nagranie.z.ekranu.2026-12-1.o.13.38.42.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.iPhone.17.Pro.01-12-2026.at.13.46.13.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Nagranie.z.ekranu.2026-12-1.o.13.28.51.mov