Repository navigation
Description
Background
On Home, the To-dos group lists one row per required action, e.g. Approve 5 reports, each with a Begin button. Where Begin goes depends on the count. With one report, we open it in the RHP on top of Home. With two or more, we navigate away to the matching to-do search on Spend.
That jump breaks the flow Home is built for. The user leaves the page they started on and lands on a filtered table that is more complicated than where they started. Review X expenses already avoids this: at any count, it opens the first flagged expense on top of Home and lets the user page through the rest.
This issue makes Begin open the first report in the RHP for all to-dos. After each successful report action, we confirm that with a toast and move the user to the next report automatically, so they can finish every report to-do without leaving Home.
Product and design details
Home with the report RHP open from Approve 5 reports, header showing 1 of 5 and the previous/next arrows
Report 2 of 5 after auto-advance, with the Report approved toast
Mobile, report opened full screen from Approve 5 reports, same header
Rows covered
This applies to four rows:
Submit X reportsApprove X reportsPay X reportsExport X reports
Row copy, icon, count, and the Begin button don't change.
Review X domain admin requests is out of scope because it opens a domain's Admins page rather than a report.
What Begin opens
- One report: no change. We open the report in the RHP on wide layouts, and full screen on narrow layouts.
- Two or more reports: we open the first report the same way, with the report navigation we already show when a report is opened from
Spend>Reports: previous and next arrows plus a1 of 5counter in the header. We reuse that navigation as is; no new component.
The arrows move through the row’s reports:
- Which reports: the same number the row counts, no more.
- Order: the same order as the matching to-do search on Spend.
- When the count is set: when the user presses Begin. If another report needs the action after that, we don’t add it to the open list. It shows up in the row’s count once the user is back on Home.
On narrow layouts, the arrows sit in the report header, as they do today when a report is opened from Spend on mobile.
Auto-advance and confirmation toast
When the user completes the row's action on the open report, we do two things:
- Show a success toast confirming the action. We reuse the existing success toast, the one that shows
Report shared. On wide layouts it sits in the bottom-right corner, as the company cards success toast does, so it doesn't cover the report header and its arrows. On narrow layouts it shows at the top, as usual. - Open the next report in the list that still needs this action.
Toast copy, one per row:
| Row | Toast |
|---|---|
Submit X reports |
Report submitted |
Approve X reports |
Report approved |
Pay X reports |
Report paid |
Export X reports |
Report exported |
Rules for what triggers it and where it goes:
- Only the row's action triggers auto-advance. Approving from the
Approvelist advances; holding, rejecting, or deleting a report doesn't. For those, the user stays on the report and uses the arrows. A partial approval counts asApprove, and marking a report as paid elsewhere counts asPay. - "Next" means the next report after the current one that still needs this action. Reports the user skipped with the arrows are revisited after the end of the list. For example, with five reports to approve, a user who skips report 1 and approves reports 2 to 5 lands back on report 1 (
1 of 5). - When an action opens a step first, like adding a bank account before paying, we advance only once the action is complete. If the user cancels that step, they stay on the report.
- We advance as soon as the action is taken, without waiting for the server, like every other action in the app. If it later fails, the report shows its existing error and stays in the row's count.
- If another approver acts on a report in the list first, we skip it when advancing. Paging onto it with the arrows opens it in its current state.
This applies only to reports opened from a Home To-dos row. Opening a report from Spend or Inbox works as it does today.
We use the existing transition between reports for now. Design will review it once built and may add a simple fade between reports.
Returning to Home
When no report in the list still needs the action, we close the report and return the user to Home, where the toast stays on screen. This includes the one-report case: completing the action now returns the user to Home instead of leaving the report open.
This is part of an internal initiative; it'll be worked on by the Home project team.
Issue Owner
Current Issue Owner: @adamgrzybowskiMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
adamgrzybowski commentedon Nov 10, 2026
👋 I will be working on that
mitarachim commentedon Dec 1, 2026
Deploy Blocker #108579 was identified to be related to the PR #107110 that attempted to fix this issue.
Chandkia24 commentedon Dec 1, 2026
Deploy Blocker #108580 was identified to be related to the PR #107110 that attempted to fix this issue.
melvin-bot commentedon Dec 1, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
mitarachim commentedon Dec 2, 2026
Deploy Blocker #108587 was identified to be related to the PR #107110 that attempted to fix this issue.
Chandkia24 commentedon Dec 2, 2026
Deploy Blocker #108597 was identified to be related to the PR #107110 that attempted to fix this issue.
melvin-bot commentedon Dec 2, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
Chandkia24 commentedon Dec 2, 2026
Deploy Blocker #108600 was identified to be related to the PR #107110 that attempted to fix this issue.