Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(inbox): keep the settled bar about its own notification when the last one leaves (MUL-10018) (#11354)

Jiayuan Zhang7d857a5be5a4
diff --git a/apps/docs/content/docs/inbox.fr.mdx b/apps/docs/content/docs/inbox.fr.mdx
index b7d88689af..770e052745 100644
--- a/apps/docs/content/docs/inbox.fr.mdx
+++ b/apps/docs/content/docs/inbox.fr.mdx
@@ -143,7 +143,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 d'elle-même (vous passez la tâche à `done` depuis son statut, vous déclenchez un agent, une autre fenêtre l'archive, ou une modification la sort des filtres de la section), la ligne reste en surbrillance à sa place et le groupe au-dessus de la tâche indique **Archivée**. Survolez-le pour savoir pourquoi et ce qui suit, par exemple *Statut passé à En cours · Revient dans la boîte de réception en cas de nouvelle activité*. Quand vous déclenchez un agent, l'en-tête de la tâche montre qu'il est au travail, tandis que la ligne de la barre latérale se met à jour sur place jusqu'à votre départ. Quand un changement fait depuis le groupe archive la notification, le groupe garde **Statut**, **Assigné à** et **Actions rapides** pour la suite. **Annuler** (`Z`) fait revenir la notification, et **Suivante** (`E`), devenu le bouton plein, ouvre la ligne suivante. La ligne disparaît dès que vous passez à autre chose, et la tâche en cours reste visible sous **Vues → En cours**. Si c'était la dernière notification de votre boîte de réception, le groupe 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.
+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 d'elle-même (vous passez la tâche à `done` depuis son statut, vous déclenchez un agent, une autre fenêtre l'archive, ou une modification la sort des filtres de la section), la ligne reste en surbrillance à sa place et le groupe au-dessus de la tâche indique **Archivée**. Survolez-le pour savoir pourquoi et ce qui suit, par exemple *Statut passé à En cours · Revient dans la boîte de réception en cas de nouvelle activité*. Quand vous déclenchez un agent, l'en-tête de la tâche montre qu'il est au travail, tandis que la ligne de la barre latérale se met à jour sur place jusqu'à votre départ. Quand un changement fait depuis le groupe archive la notification, le groupe garde **Statut**, **Assigné à** et **Actions rapides** pour la suite. **Annuler** (`Z`) fait revenir la notification, et **Suivante** (`E`), devenu le bouton plein, ouvre la ligne suivante. La ligne disparaît dès que vous passez à autre chose, et la tâche en cours reste visible sous **Vues → En cours**. Si c'était la dernière notification de votre boîte de réception, il n'y a pas de **Suivante** ; `E` ouvre la boîte de réception vide.
Quand vous retirez vous-même la ligne ouverte, depuis le groupe au-dessus de la tâche, 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.mdx
index 9966d243a9..962b94df53 100644
--- a/apps/docs/content/docs/inbox.ja.mdx
+++ b/apps/docs/content/docs/inbox.ja.mdx
@@ -143,7 +143,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` で空になったインボックスが開きます。
+アーカイブされた行は、開いているウィンドウからもすぐに消えます。ただし、いま開いている行は別です。その通知が自動でインボックスから外れたとき(ステータスからタスクを `done` にした、エージェントを起動した、別のウィンドウでアーカイブされた、編集でセクションのフィルターに合わなくなった)、行は元の位置でハイライトされたまま残り、操作グループに **アーカイブ済み** と表示されます。カーソルを合わせると、理由とこの先どうなるかが「進行中 に変更 · 新しい動きがあるとインボックスに戻ります」のように表示されます。エージェントを起動したときは、タスクのヘッダーに作業中であることが表示され、サイドバーの行も移動するまでその場で更新されます。操作グループの **ステータス**、**担当者**、**クイックアクション** で変更して通知がアーカイブされたときも、これらの操作はグループに残るので続けて変更できます。**元に戻す**(`Z`)で通知が戻り、塗りつぶしボタンになった **次へ**(`E`)で次の行が開きます。行が消えるのはほかへ移ったときで、実行中のタスクは **ビュー → 実行中** で引き続き確認できます。それがインボックスの最後の通知だった場合、**次へ** は出ません。`E` で空になったインボックスが開きます。
開いている行を自分で処理したとき(操作グループ、その行、ホバーカード、その行を含む一括操作)は、代わりに次の行が開きます。残りがなければ、インボックスのページが開き、**インボックスは空です** と表示されます。直前の操作が示されて **元に戻す**(または `Z`)で取り戻せるほか、スヌーズ中のタスク数と次に戻る時刻が表示されます。フィルターでほかの通知が隠れているだけのときは、残りの件数と **フィルターを解除して続ける** が代わりに表示されます。戻るとタスクに戻れます。アーカイブと一括操作の確認には **元に戻す** があり、通知は戻りますが、タスクのステータスはそのままです。**元に戻す** のある確認メッセージ(アーカイブ、スヌーズ、購読解除のいずれも)は 10 秒間表示され、表示中に `Z` を押すとその操作を取り消せます。
diff --git a/apps/docs/content/docs/inbox.ko.mdx b/apps/docs/content/docs/inbox.ko.mdx
index 4cdf2dd613..008cbdc7a0 100644
--- a/apps/docs/content/docs/inbox.ko.mdx
+++ b/apps/docs/content/docs/inbox.ko.mdx
@@ -143,7 +143,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`를 누르면 비워진 인박스가 열립니다.
+보관된 행은 열려 있는 창에서도 바로 사라집니다. 단, 지금 열어 둔 행은 예외입니다. 그 알림이 자동으로 인박스에서 빠지면(상태에서 태스크를 `done`으로 바꿨거나, 에이전트를 실행했거나, 다른 창에서 보관했거나, 편집으로 섹션 필터에 더 이상 맞지 않게 된 경우) 행은 제자리에서 강조된 채 남고, 작업 그룹에 **보관됨**이 표시됩니다. 마우스를 올리면 '상태 변경됨: 진행 중 · 새 활동이 있으면 인박스로 돌아옵니다'처럼 이유와 이후에 일어날 일이 표시됩니다. 에이전트를 실행하면 태스크 헤더에 작업 중임이 표시되고, 사이드바 행도 이동할 때까지 제자리에서 갱신됩니다. 작업 그룹의 **상태**, **담당자**, **퀵 액션**으로 바꿔서 알림이 보관된 경우에도 이 동작들은 그룹에 그대로 남아 이어서 바꿀 수 있습니다. **실행 취소**(`Z`)로 알림을 되돌리고, 이제 채워진 버튼이 된 **다음**(`E`)으로 다음 행을 엽니다. 행은 다른 곳으로 이동할 때 사라지며, 실행 중인 태스크는 **뷰 → 작업 중**에서 계속 확인할 수 있습니다. 그것이 인박스의 마지막 알림이었다면 **다음**은 나오지 않습니다. `E`를 누르면 비워진 인박스가 열립니다.
열어 둔 행을 직접 처리하면(작업 그룹, 그 행, 호버 카드, 그 행을 포함한 일괄 작업) 대신 다음 행이 열립니다. 남은 행이 없으면 인박스 페이지가 열리고 **인박스가 비었습니다**가 표시됩니다. 방금 한 동작이 표시되고 **실행 취소**(또는 `Z`)로 되돌릴 수 있으며, 미뤄 둔 태스크 수와 다음으로 돌아오는 시각이 표시됩니다. 필터 때문에 나머지 알림이 가려진 경우에는 남은 알림 수와 **필터 지우고 계속하기**가 대신 표시됩니다. 뒤로 가면 태스크로 돌아갑니다. 보관과 일괄 작업의 확인에는 **실행 취소**가 있으며, 알림은 돌아오고 태스크 상태는 그대로 유지됩니다. **실행 취소**가 있는 확인 알림(보관, 미루기, 구독 해제 모두)은 10초 동안 표시되며, 표시되는 동안 `Z`를 누르면 그 동작을 취소합니다.
diff --git a/apps/docs/content/docs/inbox.mdx b/apps/docs/content/docs/inbox.mdx
index 03939c82b5..1c36ff7492 100644
--- a/apps/docs/content/docs/inbox.mdx
+++ b/apps/docs/content/docs/inbox.mdx
@@ -143,7 +143,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 on its own (you set the issue to `done` from its status, trigger an agent on it, another window archived it, or an edit took it out of the section's filters), the row stays lit where it was and the group over the issue says **Archived**. Hover it for why and what happens next, as in *Changed to In Progress · Returns to Inbox on new activity*. When you trigger an agent, the issue's header shows it at work, while the sidebar row updates in place until you move on. When a change you made from the group archived the notification, the group keeps **Status**, **Assignee** and **Quick actions** for the next change. **Undo** (`Z`) brings the notification back, and **Next** (`E`), now the filled button, opens the next row. The row leaves once you move on, and any running issue stays visible under **Views → Working**. When it was the last notification in your inbox, the group 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.
+Open windows drop an archived row right away, except the one you have open. When its notification leaves the inbox on its own (you set the issue to `done` from its status, trigger an agent on it, another window archived it, or an edit took it out of the section's filters), the row stays lit where it was and the group over the issue says **Archived**. Hover it for why and what happens next, as in *Changed to In Progress · Returns to Inbox on new activity*. When you trigger an agent, the issue's header shows it at work, while the sidebar row updates in place until you move on. When a change you made from the group archived the notification, the group keeps **Status**, **Assignee** and **Quick actions** for the next change. **Undo** (`Z`) brings the notification back, and **Next** (`E`), now the filled button, opens the next row. The row leaves once you move on, and any running issue stays visible under **Views → Working**. When it was the last notification in your inbox, there is no **Next**; `E` opens the cleared inbox.
When you take the open row out yourself, from the group over the issue, 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.mdx
index c23bf3a0c9..65edeb9d03 100644
--- a/apps/docs/content/docs/inbox.zh-Hant.mdx
+++ b/apps/docs/content/docs/inbox.zh-Hant.mdx
@@ -143,7 +143,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- 它是"執行失敗"通知,且任務進入交回給人的狀態:`in_review`、`started` 分類下的自定義狀態,或 `done`、`closed` 分類下的任一狀態。這會歸檔所有人在該任務上的"執行失敗"通知,不論是誰改的狀態,也不受上面的開關影響。`blocked` 例外:它同樣交回給人,但工作還卡著,之前的失敗記錄還要看。
- 你在該工作區的收件箱超過 2,000 條通知。收件箱保留最新的 2,000 條,隨後自動歸檔更早的通知,無論是否已讀。從延後中回來或從歸檔中還原的通知,按回來的時間算作新通知。已延後任務上的通知不計入,也不會被歸檔。
-開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知自動離開收件箱時(你在狀態裡把任務改為 `done`、觸發了 AI 代理、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,操作組會顯示**已歸檔**;懸停可以看到原因和之後會怎樣,例如「已改為進行中 · 有新動態時會回到收件箱」。觸發 AI 代理時,任務頁首會顯示它正在工作,側邊欄列也會原位更新直到你離開。在操作組裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,這幾個操作仍留在組裡,可以接著改。**復原**(`Z`)讓通知回來,**下一條**(`E`)此時是實心按鈕,開啟下一列。你離開之後,這一列才會移出,仍在執行中的任務會繼續顯示在**檢視 → 執行中**裡。如果這是收件箱裡的最後一條通知,操作組會改為顯示**收件箱已清空**和延後中的任務數,用**前往我的工作**代替**下一條**;按 `E` 會開啟已清空的收件箱。
+開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知自動離開收件箱時(你在狀態裡把任務改為 `done`、觸發了 AI 代理、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,操作組會顯示**已歸檔**;懸停可以看到原因和之後會怎樣,例如「已改為進行中 · 有新動態時會回到收件箱」。觸發 AI 代理時,任務頁首會顯示它正在工作,側邊欄列也會原位更新直到你離開。在操作組裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,這幾個操作仍留在組裡,可以接著改。**復原**(`Z`)讓通知回來,**下一條**(`E`)此時是實心按鈕,開啟下一列。你離開之後,這一列才會移出,仍在執行中的任務會繼續顯示在**檢視 → 執行中**裡。如果這是收件箱裡的最後一條通知,就沒有**下一條**;按 `E` 會開啟已清空的收件箱。
如果是你自己把正開著的這一列處理掉(在操作組、它所在的列、懸停卡片,或包含它的批次操作裡),會直接開啟下一列;沒有剩下的列時,會開啟收件箱頁面,顯示**收件箱已清空**:寫明你剛才的操作,可以**復原**(或按 `Z`)把它找回,並顯示延後中的任務數和下一條回來的時間。如果是篩選隱藏了收件箱裡的其餘通知,會改為說明還剩多少條,並提供**清除篩選,繼續處理**。返回上一頁可以回到任務。歸檔和批次操作的提示裡都可以**復原**:通知會回來,任務的狀態保持不變。帶**復原**的提示(歸檔、延後、取消訂閱都一樣)會停留 10 秒;提示還在時,按 `Z` 復原這次操作。
diff --git a/apps/docs/content/docs/inbox.zh.mdx b/apps/docs/content/docs/inbox.zh.mdx
index 35bef65d31..2df74da230 100644
--- a/apps/docs/content/docs/inbox.zh.mdx
+++ b/apps/docs/content/docs/inbox.zh.mdx
@@ -143,7 +143,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` 会打开已清空的收件箱。
+打开着的窗口会立即移除已归档的行,但你正打开的那一行除外。它的通知自动离开收件箱时(你在状态里把任务改为 `done`、触发了智能体、别的窗口归档了它,或修改后不再符合分区的筛选),这一行会在原位保持高亮,操作组会显示**已归档**;悬停可以看到原因和之后会怎样,比如"已改为进行中 · 有新动态时会回到收件箱"。触发智能体时,任务页头会显示它正在工作,侧边栏行也会原位更新直到你离开。在操作组里改**状态**、**负责人**或运行**快捷操作**后通知被归档时,这几个操作仍留在组里,可以接着改。**撤销**(`Z`)让通知回来,**下一条**(`E`)此时是实心按钮,打开下一行。你离开之后,这一行才会移出,仍在运行中的任务会继续显示在**视图 → 运行中**里。如果这是收件箱里的最后一条通知,就没有**下一条**;按 `E` 会打开已清空的收件箱。
如果是你自己把正打开的这一行处理掉(在操作组、它所在的行、悬停卡片,或包含它的批量操作里),会直接打开下一行;没有剩下的行时,会打开收件箱页面,显示**收件箱已清空**:写明你刚才的操作,可以**撤销**(或按 `Z`)把它找回,并显示延后中的任务数和下一条回来的时间。如果是筛选隐藏了收件箱里的其余通知,会改为说明还剩多少条,并提供**清除筛选,继续处理**。返回上一页可以回到任务。归档和批量操作的提示里都可以**撤销**:通知会回来,任务的状态保持不变。带**撤销**的提示(归档、延后、取消订阅都一样)会停留 10 秒;提示还在时,按 `Z` 撤销这次操作。
diff --git a/packages/views/inbox/components/inbox-kept-actions.tsx b/packages/views/inbox/components/inbox-kept-actions.tsx
index 3d8b6b1d97..dc411203b3 100644
--- a/packages/views/inbox/components/inbox-kept-actions.tsx
+++ b/packages/views/inbox/components/inbox-kept-actions.tsx
@@ -1,7 +1,7 @@
"use client";
import type { ReactNode } from "react";
-import { Archive, ArrowDown, ArrowRight, CheckCircle2, Undo2 } from "@multica/ui/icons";
+import { Archive, ArrowDown, 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";
@@ -113,53 +113,27 @@ export function InboxKeptActions({
onUndo,
next,
onNext,
- inboxCleared = false,
- snoozedCount = 0,
- onSnoozedClick,
- onGoToMyWork,
}: {
/** What happened, in a word ("Archived"); `hint` says the rest on hover. */
label: ReactNode;
hint?: ReactNode;
- /** Defaults to the archive icon (or a success check when the Inbox is cleared). */
+ /** Defaults to the archive icon. */
icon?: ReactNode;
issueActions?: ReactNode;
onUndo?: () => void;
/** The notification `onNext` opens; without one there is nothing to move on to. */
next: InboxItem | null;
onNext: () => void;
- /** True when archiving this row emptied the entire unfiltered Inbox (stay-in-place mode). */
- inboxCleared?: boolean;
- snoozedCount?: number;
- onSnoozedClick?: () => void;
- onGoToMyWork?: () => void;
}) {
const { t } = useT("inbox");
useInboxUndoShortcut(onUndo ?? null);
- const statusIcon =
- icon ?? (inboxCleared ? <CheckCircle2 className="text-success" /> : <Archive />);
const undoLabel = t(($) => $.toasts.undo);
- const goToMyWorkLabel = t(($) => $.zero.go_to_my_work);
return (
<InboxBar settled>
{issueActions}
{issueActions && <InboxBarSeparator />}
- <InboxBarStatus
- icon={statusIcon}
- label={inboxCleared ? t(($) => $.zero.cleared_title) : label}
- hint={hint}
- />
- {inboxCleared && snoozedCount > 0 && onSnoozedClick && (
- <Button
- size="sm"
- variant="ghost"
- className="shrink-0 text-muted-foreground @max-[32rem]/inbox-bar:hidden"
- onClick={onSnoozedClick}
- >
- {t(($) => $.zero.bar_snoozed, { count: snoozedCount })}
- </Button>
- )}
+ <InboxBarStatus icon={icon ?? <Archive />} label={label} hint={hint} />
{onUndo && (
<TooltipHint label={undoLabel} shortcut={<ActionShortcutKeycaps action="undoInboxAction" />} side="top">
<Button size="sm" variant="ghost" aria-label={undoLabel} className="shrink-0 text-muted-foreground" onClick={onUndo}>
@@ -169,16 +143,7 @@ export function InboxKeptActions({
</Button>
</TooltipHint>
)}
- {next ? (
- <InboxNextButton next={next} onNext={onNext} />
- ) : inboxCleared && onGoToMyWork ? (
- <TooltipHint label={goToMyWorkLabel} side="top">
- <Button size="sm" aria-label={goToMyWorkLabel} className="shrink-0" onClick={onGoToMyWork}>
- <span className="@max-[32rem]/inbox-bar:hidden">{goToMyWorkLabel}</span>
- <ArrowRight />
- </Button>
- </TooltipHint>
- ) : null}
+ {next && <InboxNextButton next={next} onNext={onNext} />}
</InboxBar>
);
}
diff --git a/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx b/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx
index d2943f3cbd..9f02677767 100644
--- a/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx
+++ b/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx
@@ -185,7 +185,7 @@ describe("IssueInboxBar", () => {
// Still reading the issue (now still in Inbox), a later side-effect archive keeps it.
act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, []));
- expect(await screen.findByText("Inbox cleared")).toBeInTheDocument();
+ expect(await screen.findByText("Archived")).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Undo" })).toBeInTheDocument();
});
@@ -204,7 +204,7 @@ describe("IssueInboxBar", () => {
expect(await screen.findByRole("button", { name: "Archive" })).toBeInTheDocument();
act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, []));
- expect(await screen.findByText("Inbox cleared")).toBeInTheDocument();
+ expect(await screen.findByText("Archived")).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Undo" })).toBeInTheDocument();
});
@@ -489,7 +489,7 @@ describe("IssueInboxBar", () => {
await waitFor(() => expect(state.archiveInbox).toHaveBeenCalledWith("n-1"));
});
- it("shows an Inbox cleared bar with My work and moves to Inbox Zero on E when the last row auto-archives in place", async () => {
+ it("says only that the last row was archived when it auto-archives in place, and moves to Inbox Zero on E", async () => {
const until = new Date(Date.now() + 2 * 60 * 60 * 1000).toISOString();
const nav = setup({
rows: [{ ...ROWS[0]!, issue_identifier: "MUL-9790" }],
@@ -497,10 +497,11 @@ describe("IssueInboxBar", () => {
});
act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, []));
- expect(await screen.findByText("Inbox cleared")).toBeInTheDocument();
- expect(screen.getByText("Returns to Inbox on new activity")).toBeInTheDocument();
- expect(screen.getByRole("button", { name: "1 snoozed" })).toBeInTheDocument();
- expect(screen.getByRole("button", { name: "Go to My work" })).toBeInTheDocument();
+ const bar = await screen.findByRole("status");
+ expect(bar).toHaveTextContent("Archived");
+ expect(bar).not.toHaveTextContent("Inbox cleared");
+ expect(bar).not.toHaveTextContent("snoozed");
+ expect(within(bar).getAllByRole("button").map((button) => button.getAttribute("aria-label"))).toEqual(["Undo"]);
fireEvent.keyDown(document, { key: "e", code: "KeyE" });
expect(nav.push).toHaveBeenCalledWith("/acme/inbox");
@@ -511,16 +512,6 @@ describe("IssueInboxBar", () => {
});
});
- it("does not show Inbox cleared on the settled bar when filters are active", async () => {
- useInboxFilterStore.getState().toggleUnreadOnly("ws");
- const nav = setup({ rows: [{ ...ROWS[0]!, read: false }] });
- act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, []));
-
- expect(await screen.findByText("Archived")).toBeInTheDocument();
- expect(screen.queryByText("Inbox cleared")).toBeNull();
- expect(screen.queryByRole("button", { name: "Go to My work" })).toBeNull();
- });
-
it("moves on to the next notification the Work panel lists under its filters", () => {
useInboxFilterStore.getState().toggleUnreadOnly("ws");
const nav = setup({
@@ -606,7 +597,7 @@ describe("IssueInboxBar once an action is undone", () => {
await screen.findByRole("button", { name: "Archive" });
// The user continues reading the same issue; a later status change archives it.
act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, []));
- expect(await screen.findByText("Inbox cleared")).toBeInTheDocument();
+ expect(await screen.findByText("Archived")).toBeInTheDocument();
});
it("keeps the group up while handing off to the next notification", async () => {
diff --git a/packages/views/issues/actions/issue-inbox-actions.tsx b/packages/views/issues/actions/issue-inbox-actions.tsx
index 68854046d2..41bb8cbb63 100644
--- a/packages/views/issues/actions/issue-inbox-actions.tsx
+++ b/packages/views/issues/actions/issue-inbox-actions.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useMemo, useRef, type ReactNode, useState } from "react";
+import { useRef, type ReactNode, useState } from "react";
import { useQuery } from "@tanstack/react-query";
import { AlarmClock, Archive, CalendarClock } from "@multica/ui/icons";
import { toast } from "sonner";
@@ -18,7 +18,6 @@ import type { InboxItem } from "@multica/core/types";
import { findSnoozedInboxIssue, snoozedInboxOptions } from "@multica/core/inbox/queries";
import { nextInboxRow } from "@multica/core/inbox/open-row";
import { useWorkspacePaths } from "@multica/core/paths";
-import { useIsGuest } from "@multica/core/permissions";
import { InboxArchiveButton, InboxBar, InboxBarButton, InboxBarStatus, InboxOpenBar } from "../../inbox/components/inbox-bar";
import { inboxRowHref } from "../../inbox/components/inbox-display";
import { InboxKeptActions, InboxNextButton, useKeptInboxRowText } from "../../inbox/components/inbox-kept-actions";
@@ -28,7 +27,6 @@ import { formatSnoozeTime } from "../../inbox/components/inbox-snooze-time";
import { useInboxShortcut } from "../../inbox/components/use-inbox-shortcut";
import { useInboxSnooze } from "../../inbox/components/use-inbox-snooze";
import { useFilteredInboxRows } from "../../inbox/components/use-filtered-inbox-rows";
-import { inboxTabHref } from "../../inbox/components/inbox-view";
import { useUnsubscribeArchive } from "../../inbox/components/use-unsubscribe-archive";
import { useAutoArchiveCause } from "../../inbox/components/use-auto-archive-cause";
import {
@@ -37,8 +35,6 @@ import {
useLeaveInboxRow,
useRestoreInbox,
} from "../../inbox/components/use-leave-inbox-row";
-import { useBuiltinViewNavigation } from "../../issue-views/builtin-views";
-import { useNavigation } from "../../navigation";
import { useLocale, useT } from "../../i18n";
/**
@@ -74,10 +70,7 @@ export function IssueInboxBar({
const { t } = useT("inbox");
const wsId = useWorkspaceId();
const p = useWorkspacePaths();
- const { push } = useNavigation();
- const builtinNav = useBuiltinViewNavigation();
- const guest = useIsGuest(wsId);
- const { rows, kept, filtered } = useFilteredInboxRows(wsId, isSnoozedView ? null : issueId, !isSnoozedView);
+ const { rows, kept } = useFilteredInboxRows(wsId, isSnoozedView ? null : issueId, !isSnoozedView);
const index = rows.findIndex((row) => row.issue_id === issueId);
const row = index >= 0 ? rows[index]! : null;
// A row kept after it left the Inbox on its own is no longer there to act on.
@@ -99,10 +92,6 @@ export function IssueInboxBar({
const { snooze, unsnooze } = useInboxSnooze();
const { data: snoozedList } = useQuery(snoozedInboxOptions(wsId));
const snoozed = item ? undefined : findSnoozedInboxIssue(snoozedList, issueId);
- const activeSnoozedCount = useMemo(() => {
- const now = Date.now();
- return (snoozedList ?? []).filter((entry) => new Date(entry.snoozed_until).getTime() > now).length;
- }, [snoozedList]);
const keptText = useKeptInboxRowText(wsId);
const [snoozeOpen, setSnoozeOpen] = useState(false);
@@ -206,7 +195,6 @@ export function IssueInboxBar({
}
return null;
}
- const inboxCleared = !next && !filtered;
// An agent at work says so in the header (`IssueAgentHeaderChip`), not here.
const status = keptText.status(settled, cause, archiveReason === "agent_triggered");
return (
@@ -217,17 +205,6 @@ export function IssueInboxBar({
onUndo={() => restore(settled.item.id, { quiet: true })}
next={next}
onNext={moveOn}
- inboxCleared={inboxCleared}
- snoozedCount={inboxCleared ? activeSnoozedCount : 0}
- onSnoozedClick={inboxCleared ? () => push(inboxTabHref(p, "snoozed")) : undefined}
- onGoToMyWork={
- inboxCleared && !guest
- ? () => {
- builtinNav.prepare("my_work");
- push(builtinNav.hrefFor("my_work"));
- }
- : undefined
- }
/>
);
}
diff --git a/packages/views/locales/en/inbox.json b/packages/views/locales/en/inbox.json
index 8f3adf42ca..d050af8ecb 100644
--- a/packages/views/locales/en/inbox.json
+++ b/packages/views/locales/en/inbox.json
@@ -251,9 +251,6 @@
"just_archived_many_other": "Archived {{count}} notifications",
"snoozed_summary_one": "{{count}} snoozed · returns {{time}}",
"snoozed_summary_other": "{{count}} snoozed · next returns {{time}}",
- "bar_snoozed_one": "{{count}} snoozed",
- "bar_snoozed_other": "{{count}} snoozed",
- "go_to_my_work": "Go to My work",
"filtered_title": "All caught up for this filter",
"filtered_remaining_one": "{{count}} other notification in your inbox",
"filtered_remaining_other": "{{count}} other notifications in your inbox",
diff --git a/packages/views/locales/es/inbox.json b/packages/views/locales/es/inbox.json
index 4ce9f4c1bc..74819dbdc8 100644
--- a/packages/views/locales/es/inbox.json
+++ b/packages/views/locales/es/inbox.json
@@ -251,9 +251,6 @@
"just_archived_many_other": "Se archivaron {{count}} notificaciones",
"snoozed_summary_one": "{{count}} pospuesta · vuelve {{time}}",
"snoozed_summary_other": "{{count}} pospuestas · la próxima vuelve {{time}}",
- "bar_snoozed_one": "{{count}} pospuesta",
- "bar_snoozed_other": "{{count}} pospuestas",
- "go_to_my_work": "Ir a Mi trabajo",
"filtered_title": "Todo al día para este filtro",
"filtered_remaining_one": "Hay {{count}} otra notificación en tu bandeja",
"filtered_remaining_other": "Hay {{count}} otras notificaciones en tu bandeja",
diff --git a/packages/views/locales/fr/inbox.json b/packages/views/locales/fr/inbox.json
index 8fa80a498f..bb249d121a 100644
--- a/packages/views/locales/fr/inbox.json
+++ b/packages/views/locales/fr/inbox.json
@@ -251,9 +251,6 @@
"just_archived_many_other": "{{count}} notifications archivées",
"snoozed_summary_one": "{{count}} reportée · retour {{time}}",
"snoozed_summary_other": "{{count}} reportées · prochain retour {{time}}",
- "bar_snoozed_one": "{{count}} reportée",
- "bar_snoozed_other": "{{count}} reportées",
- "go_to_my_work": "Aller à Mon travail",
"filtered_title": "Tout est traité pour ce filtre",
"filtered_remaining_one": "{{count}} autre notification dans votre boîte de réception",
"filtered_remaining_other": "{{count}} autres notifications dans votre boîte de réception",
diff --git a/packages/views/locales/ja/inbox.json b/packages/views/locales/ja/inbox.json
index 5aa0ccc739..49791b0b09 100644
--- a/packages/views/locales/ja/inbox.json
+++ b/packages/views/locales/ja/inbox.json
@@ -243,8 +243,6 @@
"just_unsubscribed": "{{label}} の購読を解除してアーカイブしました",
"just_archived_many_other": "{{count}} 件の通知をアーカイブしました",
"snoozed_summary_other": "スヌーズ中 {{count}} 件 · 最短 {{time}} に復帰",
- "bar_snoozed_other": "スヌーズ中 {{count}} 件",
- "go_to_my_work": "自分の作業へ",
"filtered_title": "このフィルターの通知はすべて処理済みです",
"filtered_remaining_other": "インボックスに他の通知が {{count}} 件あります",
"clear_and_continue": "フィルターを解除して続ける",
diff --git a/packages/views/locales/ko/inbox.json b/packages/views/locales/ko/inbox.json
index 6f22cf9b52..8103554901 100644
--- a/packages/views/locales/ko/inbox.json
+++ b/packages/views/locales/ko/inbox.json
@@ -243,8 +243,6 @@
"just_unsubscribed": "{{label}} 구독을 취소하고 보관했습니다",
"just_archived_many_other": "알림 {{count}}개를 보관했습니다",
"snoozed_summary_other": "미룬 알림 {{count}}개 · 가장 빠른 복귀 {{time}}",
- "bar_snoozed_other": "미룸 {{count}}개",
- "go_to_my_work": "내 작업으로 이동",
"filtered_title": "현재 필터의 알림을 모두 처리했습니다",
"filtered_remaining_other": "인박스에 다른 알림 {{count}}개가 남아 있습니다",
"clear_and_continue": "필터 지우고 계속하기",
diff --git a/packages/views/locales/ru/inbox.json b/packages/views/locales/ru/inbox.json
index facb64f398..adab40c191 100644
--- a/packages/views/locales/ru/inbox.json
+++ b/packages/views/locales/ru/inbox.json
@@ -267,11 +267,6 @@
"snoozed_summary_few": "Отложено {{count}} · ближайшее вернётся {{time}}",
"snoozed_summary_many": "Отложено {{count}} · ближайшее вернётся {{time}}",
"snoozed_summary_other": "Отложено {{count}} · ближайшее вернётся {{time}}",
- "bar_snoozed_one": "{{count}} отложено",
- "bar_snoozed_few": "{{count}} отложено",
- "bar_snoozed_many": "{{count}} отложено",
- "bar_snoozed_other": "{{count}} отложено",
- "go_to_my_work": "Перейти к «Моей работе»",
"filtered_title": "По этому фильтру всё разобрано",
"filtered_remaining_one": "Во входящих осталось ещё {{count}} уведомление",
"filtered_remaining_few": "Во входящих осталось ещё {{count}} уведомления",
diff --git a/packages/views/locales/zh-Hans/inbox.json b/packages/views/locales/zh-Hans/inbox.json
index 6cb64c86e3..39f88f1d81 100644
--- a/packages/views/locales/zh-Hans/inbox.json
+++ b/packages/views/locales/zh-Hans/inbox.json
@@ -243,8 +243,6 @@
"just_unsubscribed": "已取消订阅并归档 {{label}}",
"just_archived_many_other": "已归档 {{count}} 条通知",
"snoozed_summary_other": "{{count}} 条延后通知 · 最早 {{time}} 回来",
- "bar_snoozed_other": "{{count}} 条已延后",
- "go_to_my_work": "前往我的工作",
"filtered_title": "当前筛选下的通知已处理完",
"filtered_remaining_other": "收件箱里还有 {{count}} 条其他通知待处理",
"clear_and_continue": "清除筛选,继续处理",
diff --git a/packages/views/locales/zh-Hant/inbox.json b/packages/views/locales/zh-Hant/inbox.json
index 3362625fd8..78636223c5 100644
--- a/packages/views/locales/zh-Hant/inbox.json
+++ b/packages/views/locales/zh-Hant/inbox.json
@@ -243,8 +243,6 @@
"just_unsubscribed": "已取消訂閱並歸檔 {{label}}",
"just_archived_many_other": "已歸檔 {{count}} 則通知",
"snoozed_summary_other": "{{count}} 則延後通知 · 最早 {{time}} 回來",
- "bar_snoozed_other": "{{count}} 則已延後",
- "go_to_my_work": "前往我的工作",
"filtered_title": "目前篩選下的通知已處理完",
"filtered_remaining_other": "收件箱裡還有 {{count}} 則其他通知待處理",
"clear_and_continue": "清除篩選,繼續處理",