Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
refactor(inbox): remove auto-archive countdown buffer and progress hairlines (MUL-9865) (#11219)
Jiayuan Zhang7a476d3f040b
diff --git a/apps/docs/content/docs/inbox.fr.mdx b/apps/docs/content/docs/inbox.fr.mdxindex 8a0de838b5..cd1b8b35b9 100644--- a/apps/docs/content/docs/inbox.fr.mdx+++ b/apps/docs/content/docs/inbox.fr.mdx@@ -137,7 +137,7 @@ Lire une notification ne la retire pas. Une ligne quitte la boîte de réception- quand c'est une notification **Exécution en échec** et que sa tâche passe à un statut qui la rend à une personne : `in_review`, un statut personnalisé de la catégorie `started`, ou n'importe quel statut des catégories `done` ou `closed`. Les notifications Exécution en échec de tout le monde sur cette tâche sont alors archivées, quelle que soit la personne qui a changé le statut, et indépendamment du réglage ci-dessus. `blocked` fait exception : il rend aussi la tâche, mais le travail reste bloqué, donc les échecs précédents méritent encore d'être lus.- quand votre boîte de réception dans l'espace de travail dépasse 2 000 notifications. Elle garde les 2 000 plus récentes et archive peu après les plus anciennes, lues ou non. Une notification revenue d'un report ou restaurée depuis l'archive compte à partir de son retour. Les notifications d'une tâche reportée ne comptent pas et restent en place.-Les fenêtres ouvertes retirent aussitôt une ligne archivée, sauf celle que vous avez ouverte. Quand sa notification quitte la boîte de réception autrement (vous passez la tâche à `done` depuis son statut, une autre fenêtre l'archive, ou une modification la sort des filtres de la section), la ligne reste en surbrillance à sa place et la barre de la boîte de réception indique ce qui s'est passé. Quand un changement fait depuis la barre archive la notification, la barre le nomme, par exemple *Statut passé à En cours · Notification archivée*, et garde **Statut**, **Assigné à** et **Actions rapides** pour la suite. **Annuler** (ou `Z`) fait revenir la notification, et **Suivante** (ou `E`) ouvre la ligne suivante. La ligne disparaît dès que vous passez à autre chose. Si c'était la dernière notification de votre boîte de réception, la barre affiche plutôt **Boîte de réception vide** avec le nombre de tâches reportées, et propose **Aller à Mon travail** à la place de **Suivante** ; `E` ouvre la boîte de réception vide. C'est le comportement de **Après l'archivage → Rester sur la tâche**, par défaut ; avec **Ouvrir la suivante**, un changement de votre part qui archive la notification ouverte marque une courte pause d'environ 1,4 seconde avant d'ouvrir la ligne suivante, ou la boîte de réception vide, et la confirmation propose **Annuler**. Pendant cette pause, cliquez sur **Rester ici**, appuyez sur `Esc`, faites défiler la page ou cliquez en dehors de la barre pour annuler et rester sur la tâche, ou appuyez sur `E` pour ouvrir la ligne suivante tout de suite.+Les fenêtres ouvertes retirent aussitôt une ligne archivée, sauf celle que vous avez ouverte. Quand sa notification quitte la boîte de réception autrement (vous passez la tâche à `done` depuis son statut, une autre fenêtre l'archive, ou une modification la sort des filtres de la section), la ligne reste en surbrillance à sa place et la barre de la boîte de réception indique ce qui s'est passé. Quand un changement fait depuis la barre archive la notification, la barre le nomme, par exemple *Statut passé à En cours · Notification archivée*, et garde **Statut**, **Assigné à** et **Actions rapides** pour la suite. **Annuler** (ou `Z`) fait revenir la notification, et **Suivante** (ou `E`) ouvre la ligne suivante. La ligne disparaît dès que vous passez à autre chose. Si c'était la dernière notification de votre boîte de réception, la barre affiche plutôt **Boîte de réception vide** avec le nombre de tâches reportées, et propose **Aller à Mon travail** à la place de **Suivante** ; `E` ouvre la boîte de réception vide. C'est le comportement de **Après l'archivage → Rester sur la tâche**, par défaut ; avec **Ouvrir la suivante**, un changement de votre part qui archive la notification ouverte ouvre aussitôt la ligne suivante, ou la boîte de réception vide, et la confirmation propose **Annuler**.Quand vous retirez vous-même la ligne ouverte, depuis la barre de la boîte de réception, sa ligne, la carte de survol ou une action groupée qui l'inclut, c'est la ligne suivante qui s'ouvre. S'il n'en reste aucune, la page de la boîte de réception s'ouvre sur **Boîte de réception vide**. Elle rappelle ce que vous venez de faire, avec **Annuler** (ou `Z`) pour revenir en arrière, et indique combien de tâches sont reportées et quand la prochaine revient. Quand des filtres masquaient le reste de votre boîte de réception, elle indique plutôt combien de notifications restent et propose **Effacer les filtres et continuer**. Revenir en arrière ramène à la tâche. L'archivage et les actions groupées proposent **Annuler**, qui fait revenir les notifications sans changer le statut de la tâche. Les confirmations qui proposent **Annuler**, pour l'archivage, le report comme le désabonnement, restent 10 secondes ; tant que l'une d'elles est affichée, `Z` annule cette dernière action.diff --git a/apps/docs/content/docs/inbox.ja.mdx b/apps/docs/content/docs/inbox.ja.mdxindex 2cade350e0..ecb8154e90 100644--- a/apps/docs/content/docs/inbox.ja.mdx+++ b/apps/docs/content/docs/inbox.ja.mdx@@ -137,7 +137,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w- 「実行失敗」の通知で、タスクが人に引き継がれるステータスになったとき。対象は `in_review`、`started` カテゴリのカスタムステータス、`done`・`closed` カテゴリのすべてのステータスです。誰がステータスを変えたかにかかわらず、そのタスクの全員分の「実行失敗」の通知がアーカイブされ、上の設定には左右されません。`blocked` は例外です。人に引き継がれはしますが作業は止まったままなので、それまでの失敗の記録はまだ確認する必要があります。- そのワークスペースのインボックスが 2,000 件を超えたとき。新しい 2,000 件を残し、それより古い通知は既読かどうかにかかわらず、少し後に自動でアーカイブされます。スヌーズから戻った通知やアーカイブから戻した通知は、戻った時点の新しさで数えます。スヌーズ中のタスクの通知は数えず、そのまま残ります。-アーカイブされた行は、開いているウィンドウからもすぐに消えます。ただし、いま開いている行は別です。その通知がほかの理由でインボックスから外れたとき(ステータスからタスクを `done` にした、別のウィンドウでアーカイブされた、編集でセクションのフィルターに合わなくなった)、行は元の位置でハイライトされたまま残り、インボックスバーに何が起きたかが表示されます。バーの **ステータス**、**担当者**、**クイックアクション** で変更して通知がアーカイブされたときは、「進行中 に変更 · 通知をアーカイブしました」のようにその操作が示され、これらの操作はバーに残るので続けて変更できます。**元に戻す**(または `Z`)で通知が戻り、**次へ**(または `E`)で次の行が開きます。行が消えるのは、ほかへ移ったときです。それがインボックスの最後の通知だった場合、バーには代わりに **インボックスは空です** とスヌーズ中のタスク数が表示され、**次へ** の代わりに **自分の作業へ** が出ます。`E` で空になったインボックスが開きます。これは既定の **アーカイブ後 → このタスクに留まる** の動きです。**次の通知を開く** にすると、あなたの操作で開いている通知がアーカイブされたとき、約 1.4 秒待ってから次の行(なければ空になったインボックス)が開き、確認メッセージに **元に戻す** が出ます。待っている間に **ここに留まる** をクリックするか、`Esc`、スクロール、インボックスバー以外のクリックでキャンセルしてこのタスクに留まれ、`E` を押すとすぐに次の行を開けます。+アーカイブされた行は、開いているウィンドウからもすぐに消えます。ただし、いま開いている行は別です。その通知がほかの理由でインボックスから外れたとき(ステータスからタスクを `done` にした、別のウィンドウでアーカイブされた、編集でセクションのフィルターに合わなくなった)、行は元の位置でハイライトされたまま残り、インボックスバーに何が起きたかが表示されます。バーの **ステータス**、**担当者**、**クイックアクション** で変更して通知がアーカイブされたときは、「進行中 に変更 · 通知をアーカイブしました」のようにその操作が示され、これらの操作はバーに残るので続けて変更できます。**元に戻す**(または `Z`)で通知が戻り、**次へ**(または `E`)で次の行が開きます。行が消えるのは、ほかへ移ったときです。それがインボックスの最後の通知だった場合、バーには代わりに **インボックスは空です** とスヌーズ中のタスク数が表示され、**次へ** の代わりに **自分の作業へ** が出ます。`E` で空になったインボックスが開きます。これは既定の **アーカイブ後 → このタスクに留まる** の動きです。**次の通知を開く** にすると、あなたの操作で開いている通知がアーカイブされたとき、すぐ次の行(なければ空になったインボックス)が開き、確認メッセージに **元に戻す** が出ます。開いている行を自分で処理したとき(インボックスバー、その行、ホバーカード、その行を含む一括操作)は、代わりに次の行が開きます。残りがなければ、インボックスのページが開き、**インボックスは空です** と表示されます。直前の操作が示されて **元に戻す**(または `Z`)で取り戻せるほか、スヌーズ中のタスク数と次に戻る時刻が表示されます。フィルターでほかの通知が隠れているだけのときは、残りの件数と **フィルターを解除して続ける** が代わりに表示されます。戻るとタスクに戻れます。アーカイブと一括操作の確認には **元に戻す** があり、通知は戻りますが、タスクのステータスはそのままです。**元に戻す** のある確認メッセージ(アーカイブ、スヌーズ、購読解除のいずれも)は 10 秒間表示され、表示中に `Z` を押すとその操作を取り消せます。diff --git a/apps/docs/content/docs/inbox.ko.mdx b/apps/docs/content/docs/inbox.ko.mdxindex 5acf29e217..29807f4662 100644--- a/apps/docs/content/docs/inbox.ko.mdx+++ b/apps/docs/content/docs/inbox.ko.mdx@@ -137,7 +137,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339, 30m, 3h, 1d, 1w; uns- "실행 실패함" 알림이고, 태스크가 사람에게 넘어가는 상태가 될 때. 해당 상태는 `in_review`, `started` 카테고리의 사용자 지정 상태, `done`·`closed` 카테고리의 모든 상태입니다. 누가 상태를 바꿨는지와 관계없이 그 태스크의 모든 사람의 "실행 실패함" 알림이 보관되며, 위 설정의 영향을 받지 않습니다. `blocked`는 예외입니다. 사람에게 넘어가기는 하지만 작업이 여전히 막혀 있으므로 지난 실패 기록을 계속 확인해야 합니다.- 그 워크스페이스의 인박스가 알림 2,000개를 넘을 때. 최신 2,000개를 남기고, 그보다 오래된 알림은 읽음 여부와 관계없이 잠시 후 자동으로 보관됩니다. 미루기에서 돌아온 알림과 보관함에서 복원한 알림은 돌아온 시점을 기준으로 셉니다. 미룬 태스크의 알림은 개수에 포함되지 않으며 그대로 남습니다.-보관된 행은 열려 있는 창에서도 바로 사라집니다. 단, 지금 열어 둔 행은 예외입니다. 그 알림이 다른 이유로 인박스에서 빠지면(상태에서 태스크를 `done`으로 바꿨거나, 다른 창에서 보관했거나, 편집으로 섹션 필터에 더 이상 맞지 않게 된 경우) 행은 제자리에서 강조된 채 남고, 인박스 바에 무슨 일이 있었는지 표시됩니다. 바의 **상태**, **담당자**, **퀵 액션**으로 바꿔서 알림이 보관되면 '상태 변경됨: 진행 중 · 알림이 보관됨'처럼 그 동작이 표시되고, 이 동작들은 바에 그대로 남아 이어서 바꿀 수 있습니다. **실행 취소**(또는 `Z`)로 알림을 되돌리고, **다음**(또는 `E`)으로 다음 행을 엽니다. 행은 다른 곳으로 이동할 때 사라집니다. 그것이 인박스의 마지막 알림이었다면 바에는 대신 **인박스가 비었습니다**와 미뤄 둔 태스크 수가 표시되고, **다음** 대신 **내 작업으로 이동**이 나옵니다. `E`를 누르면 비워진 인박스가 열립니다. 이는 기본값인 **보관한 뒤 → 이 태스크에 머무르기**의 동작입니다. **다음 알림 열기**를 고르면 내 동작으로 열어 둔 알림이 보관될 때 약 1.4초 잠시 머문 뒤 다음 행(없으면 비워진 인박스)이 열리고, 확인 알림에 **실행 취소**가 나옵니다. 대기하는 동안 **여기에 머무르기**를 누르거나 `Esc`, 스크롤, 인박스 바 바깥을 클릭하면 이동이 취소되어 현재 태스크에 머무르며, `E`를 누르면 바로 다음 행을 엽니다.+보관된 행은 열려 있는 창에서도 바로 사라집니다. 단, 지금 열어 둔 행은 예외입니다. 그 알림이 다른 이유로 인박스에서 빠지면(상태에서 태스크를 `done`으로 바꿨거나, 다른 창에서 보관했거나, 편집으로 섹션 필터에 더 이상 맞지 않게 된 경우) 행은 제자리에서 강조된 채 남고, 인박스 바에 무슨 일이 있었는지 표시됩니다. 바의 **상태**, **담당자**, **퀵 액션**으로 바꿔서 알림이 보관되면 '상태 변경됨: 진행 중 · 알림이 보관됨'처럼 그 동작이 표시되고, 이 동작들은 바에 그대로 남아 이어서 바꿀 수 있습니다. **실행 취소**(또는 `Z`)로 알림을 되돌리고, **다음**(또는 `E`)으로 다음 행을 엽니다. 행은 다른 곳으로 이동할 때 사라집니다. 그것이 인박스의 마지막 알림이었다면 바에는 대신 **인박스가 비었습니다**와 미뤄 둔 태스크 수가 표시되고, **다음** 대신 **내 작업으로 이동**이 나옵니다. `E`를 누르면 비워진 인박스가 열립니다. 이는 기본값인 **보관한 뒤 → 이 태스크에 머무르기**의 동작입니다. **다음 알림 열기**를 고르면 내 동작으로 열어 둔 알림이 보관될 때 바로 다음 행(없으면 비워진 인박스)이 열리고, 확인 알림에 **실행 취소**가 나옵니다.열어 둔 행을 직접 처리하면(인박스 바, 그 행, 호버 카드, 그 행을 포함한 일괄 작업) 대신 다음 행이 열립니다. 남은 행이 없으면 인박스 페이지가 열리고 **인박스가 비었습니다**가 표시됩니다. 방금 한 동작이 표시되고 **실행 취소**(또는 `Z`)로 되돌릴 수 있으며, 미뤄 둔 태스크 수와 다음으로 돌아오는 시각이 표시됩니다. 필터 때문에 나머지 알림이 가려진 경우에는 남은 알림 수와 **필터 지우고 계속하기**가 대신 표시됩니다. 뒤로 가면 태스크로 돌아갑니다. 보관과 일괄 작업의 확인에는 **실행 취소**가 있으며, 알림은 돌아오고 태스크 상태는 그대로 유지됩니다. **실행 취소**가 있는 확인 알림(보관, 미루기, 구독 해제 모두)은 10초 동안 표시되며, 표시되는 동안 `Z`를 누르면 그 동작을 취소합니다.diff --git a/apps/docs/content/docs/inbox.mdx b/apps/docs/content/docs/inbox.mdxindex aee2254dd1..0b927d5678 100644--- a/apps/docs/content/docs/inbox.mdx+++ b/apps/docs/content/docs/inbox.mdx@@ -137,7 +137,7 @@ Reading a notification doesn't remove it. A row leaves the inbox only when:- it's a **Run failed** notification and its issue moves to a status that hands it back to a person: `in_review`, a custom status in the `started` category, or any status in the `done` or `closed` category. This archives everyone's Run failed notifications on the issue, whoever moved it, and doesn't depend on the setting above. `blocked` is the exception: it hands the issue over too, but the work is still stuck, so the earlier failures are still worth reading.- your inbox in the workspace goes past 2,000 notifications. It keeps the newest 2,000 and shortly afterwards archives the older ones, read or not. A notification that comes back from a snooze or that you restore from the archive counts from when it came back. Notifications on a snoozed issue don't count and are left alone.-Open windows drop an archived row right away, except the one you have open. When its notification leaves the inbox some other way (you set the issue to `done` from its status, another window archived it, or an edit took it out of the section's filters), the row stays lit where it was and the inbox bar says what happened. When a change you make from the bar archives the notification, the bar names it, as in *Changed to In Progress · Notification archived*, and keeps **Status**, **Assignee** and **Quick actions** for the next change. **Undo** (or `Z`) brings the notification back, and **Next** (or `E`) opens the next row. The row leaves once you move on. When it was the last notification in your inbox, the bar says **Inbox cleared** instead, with how many issues are snoozed, and offers **Go to My work** in place of **Next**; `E` opens the cleared inbox. That is **After archiving → Stay on the issue**, the default; with **Open the next one**, a change you make that archives the open notification pauses for about 1.4 seconds before opening the next row (or the cleared inbox), and the confirmation offers **Undo**. During the pause, click **Stay here**, press `Esc`, scroll, or click outside the inbox bar to cancel and stay on the issue, or press `E` to open the next row right away.+Open windows drop an archived row right away, except the one you have open. When its notification leaves the inbox some other way (you set the issue to `done` from its status, another window archived it, or an edit took it out of the section's filters), the row stays lit where it was and the inbox bar says what happened. When a change you make from the bar archives the notification, the bar names it, as in *Changed to In Progress · Notification archived*, and keeps **Status**, **Assignee** and **Quick actions** for the next change. **Undo** (or `Z`) brings the notification back, and **Next** (or `E`) opens the next row. The row leaves once you move on. When it was the last notification in your inbox, the bar says **Inbox cleared** instead, with how many issues are snoozed, and offers **Go to My work** in place of **Next**; `E` opens the cleared inbox. That is **After archiving → Stay on the issue**, the default; with **Open the next one**, a change you make that archives the open notification opens the next row, or the cleared inbox, right away, and the confirmation offers **Undo**.When you take the open row out yourself, from the inbox bar, its row, the hover card, or a bulk action that includes it, the next row opens instead. With nothing left to open, the inbox page opens on **Inbox cleared**. It names what you just did, with **Undo** (or `Z`) to bring it back, and shows how many issues are snoozed and when the next one returns. When filters hid the rest of your inbox, it says how many notifications are left and offers **Clear filters and continue** instead. Going back returns to the issue. Archiving and the bulk actions confirm with **Undo**, which brings the notifications back and leaves the issue's status as it is. Confirmations that offer **Undo**, for archiving, snoozing and unsubscribing alike, stay for 10 seconds, and while one shows, `Z` undoes that latest action.diff --git a/apps/docs/content/docs/inbox.zh-Hant.mdx b/apps/docs/content/docs/inbox.zh-Hant.mdxindex df41ddd7a2..b627ca4105 100644--- a/apps/docs/content/docs/inbox.zh-Hant.mdx+++ b/apps/docs/content/docs/inbox.zh-Hant.mdx@@ -137,7 +137,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w- 它是"執行失敗"通知,且任務進入交回給人的狀態:`in_review`、`started` 分類下的自定義狀態,或 `done`、`closed` 分類下的任一狀態。這會歸檔所有人在該任務上的"執行失敗"通知,不論是誰改的狀態,也不受上面的開關影響。`blocked` 例外:它同樣交回給人,但工作還卡著,之前的失敗記錄還要看。- 你在該工作區的收件箱超過 2,000 條通知。收件箱保留最新的 2,000 條,隨後自動歸檔更早的通知,無論是否已讀。從延後中回來或從歸檔中還原的通知,按回來的時間算作新通知。已延後任務上的通知不計入,也不會被歸檔。-開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知因為其他原因離開收件箱時(你在狀態裡把任務改為 `done`、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,收件箱列會說明發生了什麼。在列裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,列會寫明是哪一項,例如「已改為進行中 · 通知已歸檔」,這幾個操作也留在列裡,可以接著改。**復原**(或按 `Z`)讓通知回來,**下一條**(或按 `E`)開啟下一列。你離開之後,這一列才會移出。如果這是收件箱裡的最後一條通知,列會改為顯示**收件箱已清空**和延後中的任務數,用**前往我的工作**代替**下一條**;按 `E` 會開啟已清空的收件箱。這是**歸檔後 → 停在目前任務**(預設)的行為;選**打開下一條**時,你的操作歸檔了正開著的通知後,會短暫停留約 1.4 秒再開啟下一列(沒有下一列時開啟已清空的收件箱),提示裡可以**復原**;停留期間點**留在這裡**、按 `Esc`、捲動頁面或點擊收件箱列以外的區域都會取消跳轉並留在目前任務,按 `E` 則立即開啟下一列。+開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知因為其他原因離開收件箱時(你在狀態裡把任務改為 `done`、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,收件箱列會說明發生了什麼。在列裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,列會寫明是哪一項,例如「已改為進行中 · 通知已歸檔」,這幾個操作也留在列裡,可以接著改。**復原**(或按 `Z`)讓通知回來,**下一條**(或按 `E`)開啟下一列。你離開之後,這一列才會移出。如果這是收件箱裡的最後一條通知,列會改為顯示**收件箱已清空**和延後中的任務數,用**前往我的工作**代替**下一條**;按 `E` 會開啟已清空的收件箱。這是**歸檔後 → 停在目前任務**(預設)的行為;選**打開下一條**時,你的操作歸檔了正開著的通知後,會直接開啟下一列(沒有下一列時開啟已清空的收件箱),提示裡可以**復原**。如果是你自己把正開著的這一列處理掉(在收件箱列、它所在的列、懸停卡片,或包含它的批次操作裡),會直接開啟下一列;沒有剩下的列時,會開啟收件箱頁面,顯示**收件箱已清空**:寫明你剛才的操作,可以**復原**(或按 `Z`)把它找回,並顯示延後中的任務數和下一條回來的時間。如果是篩選隱藏了收件箱裡的其餘通知,會改為說明還剩多少條,並提供**清除篩選,繼續處理**。返回上一頁可以回到任務。歸檔和批次操作的提示裡都可以**復原**:通知會回來,任務的狀態保持不變。帶**復原**的提示(歸檔、延後、取消訂閱都一樣)會停留 10 秒;提示還在時,按 `Z` 復原這次操作。diff --git a/apps/docs/content/docs/inbox.zh.mdx b/apps/docs/content/docs/inbox.zh.mdxindex b1f00fc5c3..ef335f696d 100644--- a/apps/docs/content/docs/inbox.zh.mdx+++ b/apps/docs/content/docs/inbox.zh.mdx@@ -137,7 +137,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w- 它是"运行失败"通知,且任务进入交回给人的状态:`in_review`、`started` 分类下的自定义状态,或 `done`、`closed` 分类下的任一状态。这会归档所有人在该任务上的"运行失败"通知,不论是谁改的状态,也不受上面的开关影响。`blocked` 例外:它同样交回给人,但工作还卡着,之前的失败记录还要看。- 你在该工作区的收件箱超过 2,000 条通知。收件箱保留最新的 2,000 条,随后自动归档更早的通知,无论是否已读。从延后中回来或从归档中还原的通知,按回来的时间算作新通知。已延后任务上的通知不计入,也不会被归档。-打开着的窗口会立即移除已归档的行,但你正打开的那一行除外。它的通知因为其他原因离开收件箱时(你在状态里把任务改为 `done`、别的窗口归档了它,或修改后不再符合分区的筛选),这一行会在原位保持高亮,收件箱栏会说明发生了什么。在栏里改**状态**、**负责人**或运行**快捷操作**后通知被归档时,栏会写明是哪一项,比如“已改为进行中 · 通知已归档”,这几个操作也留在栏里,可以接着改。**撤销**(或按 `Z`)让通知回来,**下一条**(或按 `E`)打开下一行。你离开之后,这一行才会移出。如果这是收件箱里的最后一条通知,栏会改为显示**收件箱已清空**和延后中的任务数,用**前往我的工作**代替**下一条**;按 `E` 会打开已清空的收件箱。这是**归档后 → 停在当前任务**(默认)的行为;选**打开下一条**时,你的操作归档了正打开的通知后,会短暂停留约 1.4 秒再打开下一行(没有下一行时打开已清空的收件箱),提示里可以**撤销**;停留期间点**留在这里**、按 `Esc`、滚动页面或点击收件箱栏以外的区域都会取消跳转并留在当前任务,按 `E` 则立即打开下一行。+打开着的窗口会立即移除已归档的行,但你正打开的那一行除外。它的通知因为其他原因离开收件箱时(你在状态里把任务改为 `done`、别的窗口归档了它,或修改后不再符合分区的筛选),这一行会在原位保持高亮,收件箱栏会说明发生了什么。在栏里改**状态**、**负责人**或运行**快捷操作**后通知被归档时,栏会写明是哪一项,比如“已改为进行中 · 通知已归档”,这几个操作也留在栏里,可以接着改。**撤销**(或按 `Z`)让通知回来,**下一条**(或按 `E`)打开下一行。你离开之后,这一行才会移出。如果这是收件箱里的最后一条通知,栏会改为显示**收件箱已清空**和延后中的任务数,用**前往我的工作**代替**下一条**;按 `E` 会打开已清空的收件箱。这是**归档后 → 停在当前任务**(默认)的行为;选**打开下一条**时,你的操作归档了正打开的通知后,会直接打开下一行(没有下一行时打开已清空的收件箱),提示里可以**撤销**。如果是你自己把正打开的这一行处理掉(在收件箱栏、它所在的行、悬停卡片,或包含它的批量操作里),会直接打开下一行;没有剩下的行时,会打开收件箱页面,显示**收件箱已清空**:写明你刚才的操作,可以**撤销**(或按 `Z`)把它找回,并显示延后中的任务数和下一条回来的时间。如果是筛选隐藏了收件箱里的其余通知,会改为说明还剩多少条,并提供**清除筛选,继续处理**。返回上一页可以回到任务。归档和批量操作的提示里都可以**撤销**:通知会回来,任务的状态保持不变。带**撤销**的提示(归档、延后、取消订阅都一样)会停留 10 秒;提示还在时,按 `Z` 撤销这次操作。diff --git a/packages/ui/styles/base.css b/packages/ui/styles/base.cssindex ca1197d723..86cd45f949 100644--- a/packages/ui/styles/base.css+++ b/packages/ui/styles/base.css@@ -174,15 +174,6 @@}}-@keyframes inbox-auto-advance-bar {- from {- transform: scaleX(0);- }- to {- transform: scaleX(1);- }-}-.animate-inbox-enter-next {animation: inbox-enter-next 160ms cubic-bezier(0.23, 1, 0.32, 1) backwards;}@@ -195,11 +186,6 @@animation: inbox-enter-fade 130ms ease-out backwards;}-.animate-inbox-auto-advance-bar {- transform-origin: left center;- animation: inbox-auto-advance-bar var(--inbox-advance-duration, 1400ms) linear forwards;-}-@media (prefers-reduced-motion: reduce) {.animate-inbox-enter-next,.animate-inbox-enter-prev {diff --git a/packages/views/inbox/components/inbox-bar.tsx b/packages/views/inbox/components/inbox-bar.tsxindex 340295318b..a829851ea1 100644--- a/packages/views/inbox/components/inbox-bar.tsx+++ b/packages/views/inbox/components/inbox-bar.tsx@@ -62,12 +62,6 @@ export function InboxBarSkeleton({ item }: { item?: InboxItem | null }) {<Skeleton className="h-6 w-14 rounded-md" /><Skeleton className="h-6 w-14 rounded-md" /></div>- <span- aria-hidden- className="pointer-events-none absolute inset-x-0 bottom-0 h-0.5 overflow-hidden bg-muted"- >- <span className="block h-full w-2/3 animate-pulse bg-brand/70" />- </span></InboxBar>);}diff --git a/packages/views/inbox/components/inbox-kept-actions.tsx b/packages/views/inbox/components/inbox-kept-actions.tsxindex 28ac64d91d..46c63716d0 100644--- a/packages/views/inbox/components/inbox-kept-actions.tsx+++ b/packages/views/inbox/components/inbox-kept-actions.tsx@@ -1,25 +1,21 @@"use client";-import type { CSSProperties, ReactNode } from "react";-import { Archive, ArrowDown, ArrowRight, CheckCircle2, Undo2, X } from "@multica/ui/icons";+import type { ReactNode } from "react";+import { Archive, ArrowDown, ArrowRight, CheckCircle2, Undo2 } from "@multica/ui/icons";import { Button } from "@multica/ui/components/ui/button";import { TooltipHint } from "@multica/ui/components/common/tooltip-hint";import { useIssueStatuses } from "@multica/core/issue-statuses/hooks";import type { InboxBarAction } from "@multica/core/inbox/auto-archive";import type { KeptInboxRow } from "@multica/core/inbox/open-row";-import { createShortcutChord } from "@multica/core/shortcuts";import { useActorName } from "@multica/core/workspace/hooks";import type { InboxItem } from "@multica/core/types";import { useLocale, useT } from "../../i18n";-import { ActionShortcutKeycaps, ShortcutKeycaps } from "../../common/shortcut-keycaps";+import { ActionShortcutKeycaps } from "../../common/shortcut-keycaps";import { useStatusLabel } from "../../issues/utils/status-label";import { formatSnoozeTime } from "./inbox-snooze-time";import { getInboxDisplayTitle, isAutopilotQuotaNotice } from "./inbox-display";import { InboxBar, InboxBarSeparator, InboxBarStatus } from "./inbox-bar";import { useInboxUndoShortcut } from "./use-inbox-shortcut";-import type { AutoAdvanceBuffer } from "./use-move-on-after-auto-archive";--const ESCAPE_SHORTCUT = createShortcutChord("Escape");/*** How a kept row (`keepOpenInboxRow`) says why it is settled: `line` in its@@ -84,7 +80,6 @@ export function InboxKeptActions({onUndo,next,onNext,- autoAdvance = null,inboxCleared = false,snoozedCount = 0,onSnoozedClick,@@ -98,8 +93,6 @@ export function InboxKeptActions({/** The notification `onNext` opens; without one there is nothing to move on to. */next: InboxItem | null;onNext: () => void;- /** Active auto-advance buffer after an auto-archive (`after_auto_archive = "next"`). */- autoAdvance?: AutoAdvanceBuffer | null;/** True when archiving this row emptied the entire unfiltered Inbox (stay-in-place mode). */inboxCleared?: boolean;snoozedCount?: number;@@ -128,14 +121,6 @@ export function InboxKeptActions({</>)}</span>- ) : autoAdvance ? (- <span className="flex min-w-0 items-center gap-1.5 truncate">- <span className="truncate">{label}</span>- <span aria-hidden className="text-faint-foreground @max-[38rem]/inbox-bar:hidden">·</span>- <span className="shrink-0 text-faint-foreground @max-[38rem]/inbox-bar:hidden">- {t(($) => $.kept.opening_next)}- </span>- </span>) : (label);@@ -144,16 +129,7 @@ export function InboxKeptActions({<InboxBar settled><InboxBarStatus icon={statusIcon} label={statusLabel} />{issueActions}- {issueActions && (autoAdvance || onUndo || next || (inboxCleared && onGoToMyWork)) && <InboxBarSeparator />}- {autoAdvance && (- <Button size="sm" variant="ghost" className="shrink-0 text-muted-foreground" onClick={autoAdvance.cancel}>- <X />- {t(($) => $.kept.stay_here)}- <span aria-hidden className="flex @max-[34rem]/inbox-bar:hidden">- <ShortcutKeycaps shortcut={ESCAPE_SHORTCUT} />- </span>- </Button>- )}+ {issueActions && (onUndo || next || (inboxCleared && onGoToMyWork)) && <InboxBarSeparator />}{onUndo && (<Button size="sm" variant="ghost" className="shrink-0 text-muted-foreground" onClick={onUndo}><Undo2 />@@ -171,14 +147,6 @@ export function InboxKeptActions({<ArrowRight /></Button>) : null}- {autoAdvance && (- <span- aria-hidden- data-inbox-auto-advance-bar=""- style={{ ["--inbox-advance-duration" as string]: `${autoAdvance.durationMs}ms` } as CSSProperties}- className="animate-inbox-auto-advance-bar pointer-events-none absolute inset-x-0 bottom-0 h-0.5 bg-brand"- />- )}</InboxBar>);}diff --git a/packages/views/inbox/components/inbox-page.tsx b/packages/views/inbox/components/inbox-page.tsxindex 64cbe6d4f5..7105305a0f 100644--- a/packages/views/inbox/components/inbox-page.tsx+++ b/packages/views/inbox/components/inbox-page.tsx@@ -678,7 +678,7 @@ export function InboxPage() {});};- const { cause: settledCause, autoAdvance: settledAutoAdvance } = useMoveOnAfterAutoArchive({+ const settledCause = useMoveOnAfterAutoArchive({settled: settledRow,next: settledRow ? nextInboxRow(listedItems, settledRow.key) : null,onNext: () => {@@ -1022,7 +1022,6 @@ export function InboxPage() {}next={nextInboxRow(listedItems, settledRow.key)}onNext={() => advanceSelectionPast(settledRow.item.id, listedItems)}- autoAdvance={settledAutoAdvance}/>) : null;diff --git a/packages/views/inbox/components/use-move-on-after-auto-archive.test.tsx b/packages/views/inbox/components/use-move-on-after-auto-archive.test.tsxindex 7d4b1d597b..906209902e 100644--- a/packages/views/inbox/components/use-move-on-after-auto-archive.test.tsx+++ b/packages/views/inbox/components/use-move-on-after-auto-archive.test.tsx@@ -13,7 +13,7 @@ import { notificationPreferenceKeys } from "@multica/core/notification-preferencimport { issueDetailOptions } from "@multica/core/issues/queries";import type { InboxItem, Issue } from "@multica/core/types";import { getTestResources } from "../../test/i18n";-import { AUTO_ARCHIVE_ADVANCE_DELAY_MS, useMoveOnAfterAutoArchive } from "./use-move-on-after-auto-archive";+import { useMoveOnAfterAutoArchive } from "./use-move-on-after-auto-archive";vi.mock("sonner", () => ({ toast: { success: vi.fn(), error: vi.fn() } }));vi.mock("@multica/core/hooks", () => ({ useWorkspaceId: () => "ws" }));@@ -66,120 +66,28 @@ function setup(return {onNext,settle: (row: KeptInboxRow | null) => view.rerender({ settled: row }),- cause: () => view.result.current.cause,- autoAdvance: () => view.result.current.autoAdvance,+ cause: () => view.result.current,qc,};}beforeEach(() => {- vi.useFakeTimers();vi.clearAllMocks();setApiInstance(api as unknown as ApiClient);vi.spyOn(document, "hasFocus").mockReturnValue(true);});afterEach(() => {cleanup();- vi.useRealTimers();vi.restoreAllMocks();});describe("useMoveOnAfterAutoArchive", () => {- it("buffers then opens the next notification when your action archived the open one", () => {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });+ it("opens the next notification right away when your action archived the open one", () => {+ const { onNext, settle } = setup({ after_auto_archive: "next" });noteInboxAutoArchive({ issue_id: "issue-a", reason: "actor_acted" });settle(archived("issue-a"));-- expect(onNext).not.toHaveBeenCalled();- expect(autoAdvance()).toMatchObject({ durationMs: AUTO_ARCHIVE_ADVANCE_DELAY_MS });-- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS); });expect(onNext).toHaveBeenCalledTimes(1);expect(toast.success).toHaveBeenCalledWith("Notification archived", expect.anything());- expect(autoAdvance()).toBeNull();- });-- it("cancels the auto-advance buffer on explicit cancel, Escape, wheel, outside pointerdown, or editable focus", () => {- // Explicit cancel- {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });- noteInboxAutoArchive({ issue_id: "issue-c1", reason: "actor_acted" });- settle(archived("issue-c1"));- act(() => autoAdvance()?.cancel());- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });- expect(onNext).not.toHaveBeenCalled();- cleanup();- }-- // Escape key- {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });- noteInboxAutoArchive({ issue_id: "issue-c2", reason: "actor_acted" });- settle(archived("issue-c2"));- act(() => {- window.dispatchEvent(new KeyboardEvent("keydown", { key: "Escape", bubbles: true }));- });- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });- expect(onNext).not.toHaveBeenCalled();- cleanup();- }-- // Wheel scroll- {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });- noteInboxAutoArchive({ issue_id: "issue-c3", reason: "actor_acted" });- settle(archived("issue-c3"));- act(() => {- window.dispatchEvent(new Event("wheel"));- });- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });- expect(onNext).not.toHaveBeenCalled();- cleanup();- }-- // Outside pointerdown cancels; pointerdown inside [data-inbox-bar] does not- {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });- const bar = document.createElement("div");- bar.setAttribute("data-inbox-bar", "settled");- document.body.appendChild(bar);- noteInboxAutoArchive({ issue_id: "issue-c4", reason: "actor_acted" });- settle(archived("issue-c4"));-- act(() => {- bar.dispatchEvent(new MouseEvent("pointerdown", { bubbles: true }));- });- expect(autoAdvance()).not.toBeNull();-- act(() => {- document.body.dispatchEvent(new MouseEvent("pointerdown", { bubbles: true }));- });- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });- expect(onNext).not.toHaveBeenCalled();- bar.remove();- cleanup();- }-- // Focusing an editable target cancels- {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });- const input = document.createElement("textarea");- document.body.appendChild(input);- noteInboxAutoArchive({ issue_id: "issue-c5", reason: "actor_acted" });- settle(archived("issue-c5"));-- act(() => {- input.dispatchEvent(new FocusEvent("focusin", { bubbles: true }));- });- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });- expect(onNext).not.toHaveBeenCalled();- input.remove();- }});it("undoes by restoring the notification and returning its row", async () => {@@ -187,7 +95,6 @@ describe("useMoveOnAfterAutoArchive", () => {const { settle } = setup({ after_auto_archive: "next" });noteInboxAutoArchive({ issue_id: "issue-b", reason: "issue_status_terminal" });settle(archived("issue-b"));- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS); });const action = (vi.mocked(toast.success).mock.calls.at(-1)?.[1] as unknown as { action: { onClick: () => void } }).action;await act(async () => action.onClick());expect(returnRow).toHaveBeenCalledWith("ws", "issue-b");@@ -195,19 +102,15 @@ describe("useMoveOnAfterAutoArchive", () => {});it("stays by default", () => {- const { onNext, settle, autoAdvance } = setup({});+ const { onNext, settle } = setup({});noteInboxAutoArchive({ issue_id: "issue-c", reason: "actor_acted" });settle(archived("issue-c"));- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });expect(onNext).not.toHaveBeenCalled();});it("stays when something other than your action archived it", () => {- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });+ const { onNext, settle } = setup({ after_auto_archive: "next" });settle(archived("issue-d"));- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });expect(onNext).not.toHaveBeenCalled();});@@ -215,18 +118,15 @@ describe("useMoveOnAfterAutoArchive", () => {const { onNext, settle } = setup({ after_auto_archive: "next" }, null, null);noteInboxAutoArchive({ issue_id: "issue-last", reason: "actor_acted" });settle(archived("issue-last"));- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS); });expect(onNext).toHaveBeenCalledTimes(1);expect(toast.success).toHaveBeenCalledWith("Notification archived", expect.anything());});it("stays when the action happened in another window", () => {vi.mocked(document.hasFocus).mockReturnValue(false);- const { onNext, settle, autoAdvance } = setup({ after_auto_archive: "next" });+ const { onNext, settle } = setup({ after_auto_archive: "next" });noteInboxAutoArchive({ issue_id: "issue-e", reason: "actor_acted" });settle(archived("issue-e"));- expect(autoAdvance()).toBeNull();- act(() => { vi.advanceTimersByTime(AUTO_ARCHIVE_ADVANCE_DELAY_MS * 2); });expect(onNext).not.toHaveBeenCalled();});diff --git a/packages/views/inbox/components/use-move-on-after-auto-archive.ts b/packages/views/inbox/components/use-move-on-after-auto-archive.tsindex a2b9e123d1..37c2d87106 100644--- a/packages/views/inbox/components/use-move-on-after-auto-archive.ts+++ b/packages/views/inbox/components/use-move-on-after-auto-archive.ts@@ -1,6 +1,6 @@"use client";-import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";+import { useLayoutEffect, useRef, useState } from "react";import { useQuery, useQueryClient } from "@tanstack/react-query";import { useWorkspaceId } from "@multica/core/hooks";import { type InboxBarAction, takeInboxAutoArchive, takeInboxBarAction } from "@multica/core/inbox/auto-archive";@@ -9,39 +9,23 @@ import { useInboxSelectionStore } from "@multica/core/inbox/selection-store";import { issueDetailOptions } from "@multica/core/issues/queries";import { notificationPreferenceOptions } from "@multica/core/notification-preferences/queries";import { notificationPreferenceValue } from "@multica/core/notification-preferences/patch";-import { isEditableShortcutTarget } from "@multica/core/shortcuts";import type { InboxItem, Issue } from "@multica/core/types";import { useT } from "../../i18n";import { toastInboxUndo } from "./inbox-undo-toast";import { useRestoreInbox } from "./use-leave-inbox-row";/**- * Brief confirmation beat before auto-advancing after an issue action- * auto-archived the open notification (MUL-9865). Long enough to see the- * status/comment take effect and read the settled InboxBar cause, short enough- * to keep hands-free triage moving; any interaction cancels it immediately.- */-export const AUTO_ARCHIVE_ADVANCE_DELAY_MS = 1_400;--export interface AutoAdvanceBuffer {- /** Total countdown length in milliseconds, driving the 2px progress line. */- durationMs: number;- /** Cancel the countdown and stay on the settled issue. */- cancel: () => void;-}--/**- * Opens the next notification after a brief, cancellable buffer once the open- * one is archived because the user handled its issue (`takeInboxAutoArchive`),- * when their `after_auto_archive` preference says "next", and confirms it with- * a toast that can undo it. Otherwise the row stays in place, settled, as+ * Opens the next notification right away once the open one is archived because+ * the user handled its issue (`takeInboxAutoArchive`), when their+ * `after_auto_archive` preference says "next", and confirms it with a toast+ * that can undo it. Otherwise the row stays in place, settled, as* `keepOpenInboxRow` keeps it.** Only the focused window moves on: acting in another window or tab must not* pull this one away from what it shows.*- * Returns the Inbox bar action that archived the settled row (when taken in- * this window) and the active `autoAdvance` buffer while the countdown runs.+ * Returns the Inbox bar action that archived the settled row, when taken in+ * this window.*/export function useMoveOnAfterAutoArchive({settled,@@ -51,7 +35,7 @@ export function useMoveOnAfterAutoArchive({settled: KeptInboxRow | null;next: InboxItem | null;onNext: () => void;-}): { cause: InboxBarAction | null; autoAdvance: AutoAdvanceBuffer | null } {+}): InboxBarAction | null {const { t } = useT("inbox");const wsId = useWorkspaceId();const { data } = useQuery(notificationPreferenceOptions(wsId));@@ -60,98 +44,34 @@ export function useMoveOnAfterAutoArchive({const qc = useQueryClient();const archivedKey = settled?.reason === "archived" ? settled.key : null;const [cause, setCause] = useState<{ key: string; action: InboxBarAction } | null>(null);- const [pendingKey, setPendingKey] = useState<string | null>(null);const latest = useRef({ settled, next, onNext, movesOn });useLayoutEffect(() => {latest.current = { settled, next, onNext, movesOn };});- // Before paint, so the settled bar shows the real action cause and starts- // the 2px progress hairline on its very first frame.+ // Before paint, so the settled bar never flashes before the next issue opens.useLayoutEffect(() => {- if (!archivedKey) {- setPendingKey(null);- return;- }- const { settled: row, movesOn: moves } = latest.current;+ if (!archivedKey) return;+ const { settled: row, onNext: moveOn, movesOn: moves } = latest.current;const own = takeInboxAutoArchive(archivedKey);const action = takeInboxBarAction(archivedKey);const shown = own && action && reflects(qc.getQueryData(issueDetailOptions(wsId, archivedKey).queryKey), action);setCause(shown ? { key: archivedKey, action } : null);- if (!own || !moves || !row || !document.hasFocus()) {- setPendingKey(null);- return;- }- setPendingKey(archivedKey);- }, [archivedKey, wsId, qc]);-- const cancel = useCallback(() => {- setPendingKey(null);- }, []);-- const activeKey = pendingKey && pendingKey === archivedKey ? archivedKey : null;-- // Run the 1.4s countdown and cancel immediately on any user interaction in- // the page (Escape, scrolling, clicking outside the InboxBar, or focusing an- // editable field) so auto-advance never pulls the rug out mid-reading.- useEffect(() => {- if (!activeKey) return;- const timer = window.setTimeout(() => {- const { settled: row, onNext: moveOn } = latest.current;- setPendingKey(null);- if (!row || row.key !== activeKey || !document.hasFocus()) return;- moveOn();- toastInboxUndo(t(($) => $.toasts.archived), {- label: t(($) => $.toasts.undo),- undo: () => {- const store = useInboxSelectionStore.getState();- store.returnRow(wsId, activeKey);- store.clearLastCleared(wsId, activeKey);- void restore(row.item.id, { quiet: true });- },- });- }, AUTO_ARCHIVE_ADVANCE_DELAY_MS);-- const onKeyDown = (event: KeyboardEvent) => {- if (event.key === "Escape") {- event.preventDefault();- setPendingKey(null);- }- };- const onWheel = () => setPendingKey(null);- const onPointerDown = (event: PointerEvent) => {- const el = event.target instanceof Element ? event.target : null;- if (el?.closest("[data-inbox-bar]")) return;- setPendingKey(null);- };- const onFocusIn = (event: FocusEvent) => {- if (isEditableShortcutTarget(event.target)) setPendingKey(null);- };-- window.addEventListener("keydown", onKeyDown);- window.addEventListener("wheel", onWheel, { passive: true });- document.addEventListener("pointerdown", onPointerDown, true);- document.addEventListener("focusin", onFocusIn, true);-- return () => {- window.clearTimeout(timer);- window.removeEventListener("keydown", onKeyDown);- window.removeEventListener("wheel", onWheel);- document.removeEventListener("pointerdown", onPointerDown, true);- document.removeEventListener("focusin", onFocusIn, true);- };- }, [activeKey, wsId, restore, t]);-- const autoAdvance = useMemo<AutoAdvanceBuffer | null>(- () => (activeKey ? { durationMs: AUTO_ARCHIVE_ADVANCE_DELAY_MS, cancel } : null),- [activeKey, cancel],- );+ if (!own || !moves || !row || !document.hasFocus()) return;+ moveOn();+ toastInboxUndo(t(($) => $.toasts.archived), {+ label: t(($) => $.toasts.undo),+ undo: () => {+ const store = useInboxSelectionStore.getState();+ store.returnRow(wsId, archivedKey);+ store.clearLastCleared(wsId, archivedKey);+ void restore(row.item.id, { quiet: true });+ },+ });+ }, [archivedKey, wsId, restore, t, qc]);- return {- cause: cause && cause.key === archivedKey ? cause.action : null,- autoAdvance,- };+ return cause && cause.key === archivedKey ? cause.action : null;}/**diff --git a/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx b/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsxindex f1df43ac52..a161665bd9 100644--- a/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx+++ b/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx@@ -584,7 +584,7 @@ describe("IssueInboxBar once an action is undone", () => {expect(document.querySelector("[data-inbox-bar]")).not.toBeNull();});- it("shows a cancellable auto-advance buffer with Stay here when after_auto_archive=next", async () => {+ it("opens the next notification immediately without a countdown when after_auto_archive=next", async () => {const focusSpy = vi.spyOn(document, "hasFocus").mockReturnValue(true);try {const nav = setup();@@ -598,14 +598,9 @@ describe("IssueInboxBar once an action is undone", () => {noteInboxAutoArchive({ issue_id: "issue-1", reason: "actor_acted" });act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, [ROWS[1]!]));- expect(await screen.findByRole("button", { name: "Stay here" })).toBeInTheDocument();- expect(document.querySelector("[data-inbox-auto-advance-bar]")).not.toBeNull();- expect(nav.push).not.toHaveBeenCalled();-- fireEvent.click(screen.getByRole("button", { name: "Stay here" }));- expect(screen.queryByRole("button", { name: "Stay here" })).toBeNull();+ await waitFor(() => expect(nav.push).toHaveBeenCalledWith("/acme/issues/issue-2#comment-c-9"));+ expect(toast.success).toHaveBeenCalledWith("Notification archived", expect.anything());expect(document.querySelector("[data-inbox-auto-advance-bar]")).toBeNull();- expect(nav.push).not.toHaveBeenCalled();} finally {focusSpy.mockRestore();}diff --git a/packages/views/issues/actions/issue-inbox-actions.tsx b/packages/views/issues/actions/issue-inbox-actions.tsxindex 135a25567a..bf0be1bbb8 100644--- a/packages/views/issues/actions/issue-inbox-actions.tsx+++ b/packages/views/issues/actions/issue-inbox-actions.tsx@@ -151,7 +151,7 @@ export function IssueInboxBar({ issueId, issueActions }: { issueId: string; issu: undefined;leave(issueId, next, cleared);};- const { cause, autoAdvance } = useMoveOnAfterAutoArchive({ settled, next, onNext: moveOn });+ const cause = useMoveOnAfterAutoArchive({ settled, next, onNext: moveOn });// Archived already, E moves on (to the next notification or Inbox Zero).useInboxShortcut("archiveInboxItem", item ? archiveItem : settled ? moveOn : null);@@ -192,7 +192,6 @@ export function IssueInboxBar({ issueId, issueActions }: { issueId: string; issuonUndo={() => restore(settled.item.id, { quiet: true })}next={next}onNext={moveOn}- autoAdvance={autoAdvance}inboxCleared={inboxCleared}snoozedCount={inboxCleared ? activeSnoozedCount : 0}onSnoozedClick={diff --git a/packages/views/locales/en/inbox.json b/packages/views/locales/en/inbox.jsonindex 32239b8eed..0b69eaa59e 100644--- a/packages/views/locales/en/inbox.json+++ b/packages/views/locales/en/inbox.json@@ -153,9 +153,7 @@"unassigned": "Unassigned","ran_quick_action": "Ran {{name}}","next": "Next",- "next_tooltip": "Open next: {{title}}",- "opening_next": "Opening next",- "stay_here": "Stay here"+ "next_tooltip": "Open next: {{title}}"},"errors": {"archived_lookup_failed": "Failed to load the linked notification",diff --git a/packages/views/locales/es/inbox.json b/packages/views/locales/es/inbox.jsonindex 7f59be3ccc..8cf0bd824d 100644--- a/packages/views/locales/es/inbox.json+++ b/packages/views/locales/es/inbox.json@@ -153,9 +153,7 @@"unassigned": "Desasignada","ran_quick_action": "Se ejecutó {{name}}","next": "Siguiente",- "next_tooltip": "Abrir la siguiente: {{title}}",- "opening_next": "Abriendo la siguiente",- "stay_here": "Quedarme aquí"+ "next_tooltip": "Abrir la siguiente: {{title}}"},"errors": {"archived_lookup_failed": "No se ha podido cargar la notificación enlazada",diff --git a/packages/views/locales/fr/inbox.json b/packages/views/locales/fr/inbox.jsonindex afc528e577..4c12b1bba1 100644--- a/packages/views/locales/fr/inbox.json+++ b/packages/views/locales/fr/inbox.json@@ -153,9 +153,7 @@"unassigned": "Désassigné","ran_quick_action": "Action lancée : {{name}}","next": "Suivante",- "next_tooltip": "Ouvrir la suivante : {{title}}",- "opening_next": "Passage à la suivante",- "stay_here": "Rester ici"+ "next_tooltip": "Ouvrir la suivante : {{title}}"},"errors": {"archived_lookup_failed": "Échec du chargement de la notification liée",diff --git a/packages/views/locales/ja/inbox.json b/packages/views/locales/ja/inbox.jsonindex 18c014ae43..78adf4c491 100644--- a/packages/views/locales/ja/inbox.json+++ b/packages/views/locales/ja/inbox.json@@ -150,9 +150,7 @@"unassigned": "割り当て解除","ran_quick_action": "{{name}} を実行","next": "次へ",- "next_tooltip": "次を開く:{{title}}",- "opening_next": "次を開きます",- "stay_here": "ここに留まる"+ "next_tooltip": "次を開く:{{title}}"},"errors": {"archived_lookup_failed": "リンク先の通知を読み込めませんでした",diff --git a/packages/views/locales/ko/inbox.json b/packages/views/locales/ko/inbox.jsonindex 3978f41d9a..4b005a04b9 100644--- a/packages/views/locales/ko/inbox.json+++ b/packages/views/locales/ko/inbox.json@@ -150,9 +150,7 @@"unassigned": "할당 해제됨","ran_quick_action": "{{name}} 실행됨","next": "다음",- "next_tooltip": "다음 열기: {{title}}",- "opening_next": "다음 항목 열기 예정",- "stay_here": "여기에 머무르기"+ "next_tooltip": "다음 열기: {{title}}"},"errors": {"archived_lookup_failed": "링크된 알림을 불러오지 못했습니다",diff --git a/packages/views/locales/ru/inbox.json b/packages/views/locales/ru/inbox.jsonindex 68edfc04e8..68e3104729 100644--- a/packages/views/locales/ru/inbox.json+++ b/packages/views/locales/ru/inbox.json@@ -159,9 +159,7 @@"unassigned": "Исполнитель снят","ran_quick_action": "Запущено: {{name}}","next": "Следующее",- "next_tooltip": "Открыть следующее: {{title}}",- "opening_next": "Открытие следующего",- "stay_here": "Остаться здесь"+ "next_tooltip": "Открыть следующее: {{title}}"},"errors": {"archived_lookup_failed": "Не удалось загрузить связанное уведомление",diff --git a/packages/views/locales/zh-Hans/inbox.json b/packages/views/locales/zh-Hans/inbox.jsonindex bbbc1e1793..ad6c5559f8 100644--- a/packages/views/locales/zh-Hans/inbox.json+++ b/packages/views/locales/zh-Hans/inbox.json@@ -150,9 +150,7 @@"unassigned": "已取消分配","ran_quick_action": "已运行 {{name}}","next": "下一条",- "next_tooltip": "打开下一条:{{title}}",- "opening_next": "即将打开下一条",- "stay_here": "留在这里"+ "next_tooltip": "打开下一条:{{title}}"},"errors": {"archived_lookup_failed": "无法加载链接指向的通知",diff --git a/packages/views/locales/zh-Hant/inbox.json b/packages/views/locales/zh-Hant/inbox.jsonindex 3db7133ffa..94bd5bfbe0 100644--- a/packages/views/locales/zh-Hant/inbox.json+++ b/packages/views/locales/zh-Hant/inbox.json@@ -150,9 +150,7 @@"unassigned": "已取消分配","ran_quick_action": "已執行 {{name}}","next": "下一條",- "next_tooltip": "開啟下一條:{{title}}",- "opening_next": "即將開啟下一條",- "stay_here": "留在這裡"+ "next_tooltip": "開啟下一條:{{title}}"},"errors": {"archived_lookup_failed": "無法載入連結指向的通知",