Repository navigation
Conversation
…-todos-rhp-auto-advance # Conflicts: # src/libs/ExportOnyxState/masking.ts
|
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 |
🦜 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 618276df..b49e0af0 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -1140,6 +1140,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: 'Prüfen Sie 1 Domain-Admin-Anfrage',
other: `Prüfen Sie ${count} Domain-Admin-Anfragen`,
}),
+ reportSubmitted: 'Bericht eingereicht',
+ reportApproved: 'Bericht genehmigt',
+ reportPaid: 'Bericht bezahlt',
+ reportExported: 'Bericht exportiert',
},
upcomingTravel: 'Bevorstehende Reisen',
upcomingTravelSection: {
diff --git a/src/languages/el.ts b/src/languages/el.ts
index d28ed1fe..9c0c94da 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -1202,6 +1202,10 @@ const translations: TranslationDeepObject<typeof en> = {
f1FlagsTitle: 'Είστε καλυμμένος',
f1FlagsDescription: 'Έχετε ολοκληρώσει όλες τις εκκρεμείς εργασίες.',
},
+ reportSubmitted: 'Η αναφορά υποβλήθηκε',
+ reportApproved: 'Η αναφορά εγκρίθηκε',
+ reportPaid: 'Η έκθεση πληρώθηκε',
+ reportExported: 'Η αναφορά εξαχθεί',
},
recentlyAddedSection: {
title: 'Προστέθηκαν πρόσφατα',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index af35b81d..5cca77ee 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -1152,6 +1152,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: 'Revisa 1 solicitud de administrador de dominio',
other: `Revisa ${count} solicitudes de administrador de dominio`,
}),
+ reportSubmitted: 'Informe enviado',
+ reportApproved: 'Informe aprobado',
+ reportPaid: 'Informe pagado',
+ reportExported: 'Informe exportado',
},
gettingStartedSection: {
title: 'Primeros pasos',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 442c2726..27d03e51 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -1144,6 +1144,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: `Examiner ${count} demande d'administrateur de domaine`,
other: `Examiner ${count} demandes d'administrateur de domaine`,
}),
+ reportSubmitted: 'Note de frais soumise',
+ reportApproved: 'Note de frais approuvée',
+ reportPaid: 'Note de frais payée',
+ reportExported: 'Note de frais exportée',
},
upcomingTravel: 'Voyages à venir',
upcomingTravelSection: {
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 96b18092..ec60a3bc 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -1143,6 +1143,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: 'Esamina 1 richiesta di amministratore del dominio',
other: `Esamina ${count} richieste di amministratore del dominio`,
}),
+ reportSubmitted: 'Report inviato',
+ reportApproved: 'Report approvato',
+ reportPaid: 'Report pagato',
+ reportExported: 'Report esportato',
},
upcomingTravel: 'Prossimi viaggi',
upcomingTravelSection: {
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 6a30d184..2a60b664 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -1128,6 +1128,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: `${count} 件のドメイン管理者リクエストを確認`,
other: `${count} 件のドメイン管理者リクエストを確認`,
}),
+ reportSubmitted: 'レポートを送信しました',
+ reportApproved: 'レポートを承認しました',
+ reportPaid: 'レポートは支払済みです',
+ reportExported: 'レポートをエクスポートしました',
},
upcomingTravel: '今後の出張',
upcomingTravelSection: {
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index d1a6d17a..8761ccec 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -1139,6 +1139,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: 'Beoordeel 1 domeinbeheerdersverzoek',
other: `Beoordeel ${count} domeinbeheerdersverzoeken`,
}),
+ reportSubmitted: 'Declaratie ingediend',
+ reportApproved: 'Rapport goedgekeurd',
+ reportPaid: 'Rapport betaald',
+ reportExported: 'Rapport geëxporteerd',
},
upcomingTravel: 'Aankomende reizen',
upcomingTravelSection: {
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index dade32e2..2d39b6b1 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -1164,6 +1164,10 @@ const translations: TranslationDeepObject<typeof en> = {
many: `Przejrzyj ${count} próśb administratora domeny`,
other: `Przejrzyj ${count} prośby administratora domeny`,
}),
+ reportSubmitted: 'Raport wysłany',
+ reportApproved: 'Raport zatwierdzony',
+ reportPaid: 'Raport opłacony',
+ reportExported: 'Raport wyeksportowany',
},
upcomingTravel: 'Nadchodząca podróż',
upcomingTravelSection: {
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 8b18fc8f..cb8f6fa3 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -1142,6 +1142,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: `Revisar ${count} solicitação de administrador de domínio`,
other: `Revisar ${count} solicitações de administrador de domínio`,
}),
+ reportSubmitted: 'Relatório enviado',
+ reportApproved: 'Relatório aprovado',
+ reportPaid: 'Relatório pago',
+ reportExported: 'Relatório exportado',
},
upcomingTravel: 'Próximas viagens',
upcomingTravelSection: {
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 7fa02778..8582fecf 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -1102,6 +1102,10 @@ const translations: TranslationDeepObject<typeof en> = {
one: `审核 ${count} 个域管理员请求`,
other: `审核 ${count} 个域管理员请求`,
}),
+ reportSubmitted: '报表已提交',
+ reportApproved: '报销单已批准',
+ reportPaid: '报销单已支付',
+ reportExported: '报表已导出',
},
upcomingTravel: '即将出行',
upcomingTravelSection: {
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e3664de4b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
- Render the counter from MoneyReportHeader instead of toggling it with a prop - Record the auto-advance baseline before the report's actions load
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Ah, just realized I need some report to test this properly. I'll come back to it tomorrow. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Still waiting on some reports to give this a more real world test. |
|
Alright, sorry for the delay. I think I like the auto-advance. The toast helps quite a bit. @Expensify/design can you can take this PR for a spin and weigh in? We could probably do more, like animations, some celebration at the end, or similar. I'll defer to you all on what we should do, or nothing for now. |
|
Overall, what's nice is that:
|
|
This feels fine to me. When you do the last action in the lot though, should the report stay open or should it auto-close and go back to home? I think I would expect it to close at the end. Also, I tried this with two reports that needed to be submitted. I submitted them both. Then I retracted them to try the whole flow again. When I went to Submit, it did not auto-advance to the next one. |
|
Hmm, maybe something is different/odd/goofed in my account, but when I tried to go through and submit 4 reports nothing auto-advanced and I saw no toasts. I was able to cycle through them using the arrows in the top right. Ok update: I do think it was something with how my approval/pay workflow is configured because when I went through those same 4 reports for the Pay action, they auto-advanced and I saw the toasts properly.
When I went through it (the second time) the last report closed and left me back on Home, which is what I expected. |
|
Okay dang, so we're getting different results maybe based on our roles/how the workspace is set up/etc... |
|
Okay |
|
@ZhenjaHorbach done! |
|
@grgia did you want to jump in for the internal review on this one given the historical context? |
|
🚧 grgia 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.57-0 🚀
|
|
Help site update needed — “All work is still completed in Spend” conflicts with the new, non-beta report-review workflow from Home. Created a minimal draft help site PR, labeled @adamgrzybowski, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
Deploy Blocker #108579 was identified to be related to this PR. |
|
Deploy Blocker #108580 was identified to be related to this PR. |
|
Deploy Blocker #108587 was identified to be related to this PR. |
|
Deploy Blocker #108591 was identified to be related to this PR. |
|
Deploy Blocker #108597 was identified to be related to this PR. |
|
Deploy Blocker #108600 was identified to be related to this PR. |
Explanation of Change
Beginon a Home to-do row now opens the first report over Home (RHP on wide, full screen on narrow) with previous/next arrows, instead of a filtered Spend table.Fixed Issues
$ #106510
PROPOSAL:
Tests
Offline tests
QA Steps
Beginon theApproveto-do rowApproveon each report. Verify aReport approvedtoast appears and the next report opens, and that after the last one you return to Home and the row is gonePR 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
home-todo-review-approve.mp4