Skip to content

[Home Page] Show "Marked as done" copy in the Home to-do review - #108668

Open
adamgrzybowski wants to merge 4 commits into
Expensify:mainfrom
software-mansion-labs:@adamgrzybowski/home-todo-marked-as-done-copy
Open

adamgrzybowski wants to merge 4 commits into
Expensify:mainfrom
software-mansion-labs:@adamgrzybowski/home-todo-marked-as-done-copy

Conversation

@adamgrzybowski

@adamgrzybowski adamgrzybowski commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

  • When a report shows "Mark as done" instead of "Submit" (a workspace without approvals, after onboarding with a track intent), the Home to-do review confirmed it as a submission: the result button said "Submitted" and the toast said "Report submitted".
  • The result button now says "Marked as done" in that case, matching the report header's own submit animation.
  • The toast says "Report marked as done", and the celebration after the last report uses mark-as-done copy too.

Fixed Issues

$ #108580
PROPOSAL:

Tests

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

Precondition: an account onboarded with "Track expenses for my business".

  1. In the workspace chat, create two reports with one expense each.
  2. Go to Home, click the Submit to-do and press "Mark as done" on the first report.
  3. Verify the button changes to "Marked as done" and the toast says "Report marked as done".
  4. Press "Mark as done" on the second report and verify the "All done!" toast says "You've marked all your reports as done, nice work."
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
demo.mp4

@expensify-chore-bot

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

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 --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/hooks/useHomeTodoAutoAdvance.ts 98.68% <100.00%> (+4.74%) ⬆️
...ReportHeaderActions/HomeTodoActionResultButton.tsx 0.00% <0.00%> (ø)
... and 7452 files with indirect coverage changes

@adamgrzybowski
adamgrzybowski marked this pull request as ready for review December 2, 2026 15:48
@adamgrzybowski
adamgrzybowski requested review from a team as code owners December 2, 2026 15:48
@expensify-chore-bot
expensify-chore-bot Bot requested review from ZhenjaHorbach and garrettmknight and removed request for a team December 2, 2026 15:48
@expensify-chore-bot

Copy link
Copy Markdown

@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]

@expensify-chore-bot
expensify-chore-bot Bot removed the request for review from a team December 2, 2026 15:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T16:07:34.244558Z 0c8e71f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@OSBotify

OSBotify commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🦜 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 diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index 356cfdba..db010bfb 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -1183,6 +1183,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Sie haben alle Ihre Genehmigungsaufgaben erledigt. Gut gemacht.',
             allReportsPaid: 'Sie haben alle Ihre Zahlungsaufgaben erledigt. Gut gemacht.',
             allReportsExported: 'Sie haben alle Ihre Exportaufgaben erledigt. Gut gemacht.',
+            reportMarkedAsDone: 'Bericht als erledigt markiert',
+            allReportsMarkedAsDone: 'Sie haben alle Ihre Berichte als erledigt markiert, gute Arbeit.',
         },
         upcomingTravel: 'Bevorstehende Reisen',
         upcomingTravelSection: {
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 07c18517..2e05cee5 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -1245,6 +1245,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Ολοκληρώσατε όλες τις εκκρεμότητες έγκρισής σας. Μπράβο.',
             allReportsPaid: 'Ολοκληρώσατε όλες τις εκκρεμότητες πληρωμής σας. Μπράβο.',
             allReportsExported: 'Ολοκληρώσατε όλες τις εκκρεμότητες εξαγωγής σας. Μπράβο.',
+            reportMarkedAsDone: 'Η αναφορά σημειώθηκε ως ολοκληρωμένη',
+            allReportsMarkedAsDone: 'Μαρκάρατε όλες τις αναφορές σας ως ολοκληρωμένες, μπράβο.',
         },
         recentlyAddedSection: {
             title: 'Προστέθηκαν πρόσφατα',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index a614b74f..0292f6c0 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -1195,6 +1195,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Completaste todas tus tareas pendientes de aprobación. Bien hecho.',
             allReportsPaid: 'Completaste todas tus tareas pendientes de pago. Bien hecho.',
             allReportsExported: 'Completaste todas tus tareas pendientes de exportación. Bien hecho.',
+            reportMarkedAsDone: 'Informe marcado como hecho',
+            allReportsMarkedAsDone: 'Has marcado todos tus informes como listos, buen trabajo.',
         },
         gettingStartedSection: {
             title: 'Primeros pasos',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 4639c238..c37d7a72 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -1187,6 +1187,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Vous avez terminé toutes vos tâches d’approbation. Bien joué.',
             allReportsPaid: 'Vous avez terminé toutes vos tâches de paiement. Bien joué.',
             allReportsExported: 'Vous avez terminé toutes vos tâches d’exportation. Bien joué.',
+            reportMarkedAsDone: 'Note de frais marquée comme terminée',
+            allReportsMarkedAsDone: 'Vous avez marqué toutes vos notes de frais comme terminées, bon travail.',
         },
         upcomingTravel: 'Voyages à venir',
         upcomingTravelSection: {
diff --git a/src/languages/it.ts b/src/languages/it.ts
index a7afd730..a736887f 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -1186,6 +1186,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Hai completato tutte le tue attività di approvazione. Ottimo lavoro.',
             allReportsPaid: 'Hai completato tutte le tue attività di pagamento. Ottimo lavoro.',
             allReportsExported: 'Hai completato tutte le tue attività di esportazione. Ottimo lavoro.',
+            reportMarkedAsDone: 'Report contrassegnato come completato',
+            allReportsMarkedAsDone: 'Hai contrassegnato tutti i tuoi report come completati, bel lavoro.',
         },
         upcomingTravel: 'Prossimi viaggi',
         upcomingTravelSection: {
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 6692b7b7..853978ef 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -1171,6 +1171,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: '承認の To-do をすべて完了しました。お見事です。',
             allReportsPaid: '支払いの To-do をすべて完了しました。お見事です。',
             allReportsExported: 'エクスポートの To-do をすべて完了しました。お見事です。',
+            reportMarkedAsDone: 'レポートを完了済みにしました',
+            allReportsMarkedAsDone: 'すべてのレポートを完了済みにしました。お疲れさまでした。',
         },
         upcomingTravel: '今後の出張',
         upcomingTravelSection: {
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index e1f6b410..886d5bab 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -1182,6 +1182,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: "Je hebt al je goedkeurings-to-do's afgerond. Goed gedaan.",
             allReportsPaid: "Je hebt al je betalings-to-do's afgerond. Goed gedaan.",
             allReportsExported: "Je hebt al je export-to-do's afgerond. Goed gedaan.",
+            reportMarkedAsDone: 'Rapport als voltooid gemarkeerd',
+            allReportsMarkedAsDone: 'Je hebt al je rapporten als voltooid gemarkeerd, goed bezig.',
         },
         upcomingTravel: 'Aankomende reizen',
         upcomingTravelSection: {
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index adeda6d0..2bf4f125 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -1212,6 +1212,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Wszystkie zadania do zatwierdzenia są ukończone. Świetna robota.',
             allReportsPaid: 'Wszystkie zadania do opłacenia są ukończone. Świetna robota.',
             allReportsExported: 'Wszystkie zadania do eksportu są ukończone. Świetna robota.',
+            reportMarkedAsDone: 'Raport oznaczony jako ukończony',
+            allReportsMarkedAsDone: 'Oznaczyłeś wszystkie swoje raporty jako ukończone, dobra robota.',
         },
         upcomingTravel: 'Nadchodząca podróż',
         upcomingTravelSection: {
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 8713131a..7890ad13 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -1185,6 +1185,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: 'Você concluiu todas as suas pendências de aprovação. Muito bem.',
             allReportsPaid: 'Você concluiu todas as suas pendências de pagamento. Muito bem.',
             allReportsExported: 'Você concluiu todas as suas pendências de exportação. Muito bem.',
+            reportMarkedAsDone: 'Relatório marcado como concluído',
+            allReportsMarkedAsDone: 'Você marcou todos os seus relatórios como concluídos, bom trabalho.',
         },
         upcomingTravel: 'Próximas viagens',
         upcomingTravelSection: {
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index e9072c5b..fd8767e5 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -1150,6 +1150,8 @@ const translations: TranslationDeepObject<typeof en> = {
             allReportsApproved: '你已完成所有审批待办事项。干得漂亮。',
             allReportsPaid: '你已完成所有支付待办事项。干得漂亮。',
             allReportsExported: '你已完成所有导出待办事项。干得漂亮。',
+            reportMarkedAsDone: '报表已标记为完成',
+            allReportsMarkedAsDone: '你已将所有报销报告标记为完成,干得不错。',
         },
         upcomingTravel: '即将出行',
         upcomingTravelSection: {

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c8e71fcb6

ℹ️ 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".

Comment thread src/hooks/useHomeTodoAutoAdvance.ts Resolved
@ZhenjaHorbach

Copy link
Copy Markdown
Contributor

@adamgrzybowski
Should we cover this issue here also?
#108675

@ZhenjaHorbach

ZhenjaHorbach commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Screen.Recording.2026-12-03.at.13.53.01.mov
Android: mWeb Chrome
Screen.Recording.2026-12-03.at.13.53.01.mov
iOS: HybridApp
Screen.Recording.2026-12-03.at.13.48.25.mov
iOS: mWeb Safari
Screen.Recording.2026-12-03.at.13.43.59.mov
MacOS: Chrome / Safari
Screen.Recording.2026-12-03.at.13.35.11.mov

@melvin-bot
melvin-bot Bot requested a review from grgia December 3, 2026 12:54
@adamgrzybowski

Copy link
Copy Markdown
Contributor Author

@ZhenjaHorbach Already covered separately in #108677, so I'd keep it out of this one.

Comment thread src/languages/es.ts Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants