Skip to content

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

Go

fix(inbox): keep triage out of auto-archive, longer undo toasts and Z to undo (MUL-9788) (#11156)

Jiayuan Zhang55cbaddd6cb7
diff --git a/apps/docs/content/docs/inbox.fr.mdx b/apps/docs/content/docs/inbox.fr.mdx
index 0722bc6207..1733b0fe3e 100644
--- a/apps/docs/content/docs/inbox.fr.mdx
+++ b/apps/docs/content/docs/inbox.fr.mdx
@@ -98,7 +98,7 @@ Une tâche ouverte depuis la boîte de réception affiche une barre sous son en-
- **Statut**, **Assigné à** et **Actions rapides** modifient la tâche elle-même, comme ses propriétés. Les actions rapides apparaissent dès que l'espace de travail en a.
- **Reporter** (`H`) retire la tâche de votre boîte de réception jusqu'à l'heure choisie et ouvre la suivante. Voir « Reporter une tâche » ci-dessous.
-- **Archiver** (`E`) archive la notification et ouvre la suivante. L'archivage ne modifie ni ne supprime la tâche. Pour clore la tâche, changez plutôt son statut ; si **Archiver les tâches que vous terminez** est activé, sa notification est archivée elle aussi.
+- **Archiver** (`E`) archive la notification et ouvre la suivante. L'archivage ne modifie ni ne supprime la tâche. Pour clore la tâche, changez plutôt son statut ; par défaut, sa notification est archivée elle aussi (voir plus bas quand une notification quitte la boîte de réception).
- **Se désabonner et archiver** (`⇧E`) est proposé sur les tâches qui ne sont pas les vôtres : assignées ni à vous, ni à un agent qui vous appartient. L'action vous désabonne de la tâche, archive la notification et ouvre la suivante. Les mises à jour ordinaires n'arrivent plus dans votre boîte de réception, mais les @mentions, si. Sur une tâche avec des sous-tâches, vous choisissez entre cette tâche seulement et cette tâche avec toutes ses sous-tâches. Pour cette tâche seulement, la confirmation propose **Annuler**, qui rétablit l'abonnement tel qu'il était. Le désabonnement des sous-tâches ne s'annule pas ici ; réabonnez-vous depuis la page de la tâche. La même action se trouve dans la carte au survol et dans le menu contextuel d'une ligne.
La suivante est la ligne suivante que la section affiche avec ses filtres actuels : vous parcourez ainsi la boîte de réception sans revenir à la liste.
@@ -116,13 +116,13 @@ Le menu ⋯ de la section regroupe **Voir les archivées** et les actions group
## Reporter une tâche
-Reporter retire une tâche de votre boîte de réception jusqu'à l'heure choisie, puis la fait revenir en haut, non lue. Reportez depuis **Reporter** dans la barre de la boîte de réception (ou avec `H`), depuis le bouton à côté d'Archiver au survol d'une ligne, ou depuis la carte de survol d'une ligne. Choisissez **1 heure**, **3 heures**, **1 jour**, **3 jours** ou **1 semaine**, ou **Choisir une date et une heure…** pour n'importe quel moment dans l'année. Un report d'un jour ou plus garde l'heure actuelle, sauf s'il est fait entre 22:00 et 6:00 : la tâche revient alors à 9:00. La confirmation permet d'annuler ; annuler un changement d'heure rétablit l'heure précédente.
+Reporter retire une tâche de votre boîte de réception jusqu'à l'heure choisie, puis la fait revenir en haut, non lue. Reportez depuis **Reporter** dans la barre de la boîte de réception (ou avec `H`), depuis le bouton à côté d'Archiver au survol d'une ligne, ou depuis la carte de survol d'une ligne. Choisissez **1 heure**, **3 heures**, **1 jour**, **3 jours** ou **1 semaine**, ou **Choisir une date et une heure…** pour n'importe quel moment dans l'année. Un report d'un jour ou plus garde l'heure actuelle, sauf s'il est fait entre 22:00 et 6:00 : la tâche revient alors à 9:00. La confirmation permet d'annuler (`Z`) ; annuler un changement d'heure rétablit l'heure précédente.
Tant qu'une tâche est reportée :
- ses nouvelles notifications attendent avec elle et ne comptent pas dans le badge non lu. À son retour, la ligne indique **Report terminé** et le nombre de nouveautés arrivées entre-temps ;
- elle revient plus tôt si quelqu'un vous mentionne nommément, si elle vous est assignée, si une exécution échoue, si une app demande votre action ou si toutes ses sous-tâches sont terminées. Les mentions `@all` ne la réveillent pas ;
-- **Tout marquer comme lu** et les actions d'archivage groupé l'ignorent. L'archiver met fin au report, tout comme terminer vous-même la tâche quand **Archiver les tâches que vous terminez** est activé ;
+- **Tout marquer comme lu** et les actions d'archivage groupé l'ignorent. L'archiver met fin au report, tout comme terminer vous-même la tâche quand **Archiver les tâches que vous traitez** compte la fin de la tâche (c'est le cas par défaut) ;
- ouvrir la tâche depuis ailleurs ne la marque pas comme lue et ne met pas fin au report. Sa barre de la boîte de réception indique quand elle revient ; **Changer l'heure** la fait revenir maintenant (`H`) ou choisit une autre heure.
Le report est personnel : il ne change que votre boîte de réception. Tout ce que vous avez reporté se trouve dans la vue **Reportés** sous Vues, aussi accessible via **Voir les reportés** dans le menu de la boîte de réception.
@@ -133,17 +133,17 @@ Lire une notification ne la retire pas. Une ligne quitte la boîte de réception
- quand vous l'archivez, depuis sa ligne, la carte de survol, la barre de la boîte de réception ou une action groupée ;
- quand vous reportez sa tâche. C'est temporaire : la tâche revient à l'heure choisie, ou plus tôt si quelque chose a besoin de vous. Voir « Reporter une tâche » ci-dessus ;
-- quand vous passez vous-même sa tâche à n'importe quel statut des catégories `done` ou `closed`, tant que **Archiver les tâches que vous terminez** est activé (c'est le cas par défaut). Seules vos propres notifications sur cette tâche sont archivées, lues ou non. Quand quelqu'un d'autre ou un agent termine une tâche, ses notifications restent dans votre boîte de réception, pour que vous voyiez la nouvelle ;
+- quand vous traitez vous-même sa tâche, selon le réglage **Archiver les tâches que vous traitez** dans **Paramètres → Notifications**. Le choix par défaut, **Après une réponse, une avancée de statut ou une réattribution**, compte un commentaire, le passage de la tâche à un statut des catégories `started`, `done` ou `closed`, et un changement d'assigné. La passer à `backlog`, `todo` ou un autre statut `unstarted`, réouverture comprise, relève du tri et n'archive rien : vous pouvez trier une tâche puis l'assigner. **Quand vous la terminez** ne compte que `done` et `closed`, **Jamais** désactive l'archivage automatique, et **Personnalisé** choisit les actions une à une, y compris les changements de priorité, de projet, de dates ou de libellés, désactivés par défaut. Seules vos propres notifications sur cette tâche sont archivées, lues ou non. Quand quelqu'un d'autre ou un agent fait de même, ses notifications restent dans votre boîte de réception, pour que vous voyiez la nouvelle ;
- 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** fait revenir la notification, et **Suivante** (ou `E`) ouvre la ligne suivante. La ligne disparaît dès que vous passez à autre chose.
+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. 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, 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 tâche reste ouverte. L'archivage et les actions groupées proposent **Annuler**, qui fait revenir les notifications sans changer le statut de la tâche.
+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 tâche reste ouverte. 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.
Une notification ultérieure sur la tâche revient dans la boîte de réception.
-**Paramètres → Notifications → Sortir de la boîte de réception** contient l'interrupteur **Archiver les tâches que vous terminez** et renvoie vers les notifications archivées.
+**Paramètres → Notifications → Sortir de la boîte de réception** contient **Archiver les tâches que vous traitez** (**Jamais**, **Quand vous la terminez**, **Après une réponse, une avancée de statut ou une réattribution** ou **Personnalisé**), **Après l'archivage** (**Rester sur la tâche** ou **Ouvrir la suivante**) et un lien vers les notifications archivées.
## Affichage et types de notification
diff --git a/apps/docs/content/docs/inbox.ja.mdx b/apps/docs/content/docs/inbox.ja.mdx
index bb617e96bc..7310a86d7d 100644
--- a/apps/docs/content/docs/inbox.ja.mdx
+++ b/apps/docs/content/docs/inbox.ja.mdx
@@ -98,7 +98,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- **ステータス**、**担当者**、**クイックアクション** はタスクそのものを変更します。プロパティと同じです。クイックアクションはワークスペースにあるときだけ表示されます。
- **スヌーズ**(`H`)は、指定した時間までタスクをインボックスから外し、次の通知を開きます。詳しくは下の「タスクをスヌーズする」を参照してください。
-- **アーカイブ**(`E`)は、通知をアーカイブして次の通知を開きます。アーカイブしてもタスクは変更・削除されません。タスクを終えるときはステータスを変えます。**自分が完了したタスクをアーカイブ** がオンなら、その通知もアーカイブされます。
+- **アーカイブ**(`E`)は、通知をアーカイブして次の通知を開きます。アーカイブしてもタスクは変更・削除されません。タスクを終えるときはステータスを変えます。既定ではそれで通知もアーカイブされます(下の「通知がインボックスから外れるとき」を参照)。
- **購読解除してアーカイブ**(`⇧E`)は、自分のタスクではないとき(担当者が自分でも自分のエージェントでもない)に表示されます。タスクの購読を解除し、通知をアーカイブして次の通知を開きます。以降の通常の更新はインボックスに届きませんが、@メンションは引き続き通知されます。サブタスクがある場合は、このタスクのみか、すべてのサブタスクを含めるかを選べます。このタスクのみの場合は確認メッセージの **元に戻す** で購読を元どおりに戻せます。サブタスクごと解除した場合はここでは戻せないので、タスクのページで購読し直してください。ホバーカードと行の右クリックメニューにも同じ操作があります。
次の通知とは、セクションが現在のフィルターで表示している次の行のことです。リストに戻らずにインボックスを順に片付けられます。
@@ -116,13 +116,13 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## タスクをスヌーズする
-スヌーズすると、タスクは指定した時間までインボックスから外れ、その時間になると未読のまま一番上に戻ります。インボックスバーの **スヌーズ**(または `H`)、行にカーソルを合わせたときにアーカイブの横に出るボタン、または行のホバーカードからスヌーズできます。**1 時間**、**3 時間**、**1 日**、**3 日**、**1 週間** のほか、**日時を選択…** で 1 年以内の任意の日時を選べます。1 日以上のスヌーズは今の時刻のまま戻りますが、22:00〜6:00 にスヌーズした場合は朝 9:00 に戻ります。確認メッセージから元に戻せます。時間を変更した場合は、元の時間に戻ります。
+スヌーズすると、タスクは指定した時間までインボックスから外れ、その時間になると未読のまま一番上に戻ります。インボックスバーの **スヌーズ**(または `H`)、行にカーソルを合わせたときにアーカイブの横に出るボタン、または行のホバーカードからスヌーズできます。**1 時間**、**3 時間**、**1 日**、**3 日**、**1 週間** のほか、**日時を選択…** で 1 年以内の任意の日時を選べます。1 日以上のスヌーズは今の時刻のまま戻りますが、22:00〜6:00 にスヌーズした場合は朝 9:00 に戻ります。確認メッセージから元に戻せます(`Z`)。時間を変更した場合は、元の時間に戻ります。
スヌーズ中のタスクは次のように扱われます。
- 新しい通知も一緒に待機し、未読バッジには数えられません。戻ってきた行には **スヌーズ終了** と、その間に届いた更新の数が表示されます。
- 名指しでメンションされたとき、自分に割り当てられたとき、実行が失敗したとき、アプリが操作を求めたとき、すべてのサブタスクが完了したときは早めに戻ります。`@all` へのメンションでは戻りません。
-- **すべて既読にする** や一括アーカイブはスヌーズ中のタスクをスキップします。アーカイブするとスヌーズは終了します。**自分が完了したタスクをアーカイブ** がオンのときに自分でタスクを完了した場合も同じです。
+- **すべて既読にする** や一括アーカイブはスヌーズ中のタスクをスキップします。アーカイブするとスヌーズは終了します。**自分が対応したタスクをアーカイブ** が完了を含む(既定で含む)ときに自分でタスクを完了した場合も同じです。
- ほかの場所からタスクを開いても既読にはならず、スヌーズも終了しません。インボックスバーに戻る時間が表示され、**時間を変更** から今すぐ戻す(`H`)か別の時間を選べます。
スヌーズは自分のインボックスだけに影響します。スヌーズ中のタスクは Views の **スヌーズ中** ビュー、またはインボックスメニューの **スヌーズ中を表示** から確認できます。
@@ -133,17 +133,17 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- 行、ホバーカード、インボックスバー、または一括操作から、あなたがアーカイブしたとき
- タスクをスヌーズしたとき。これは一時的で、指定した時間になるか、対応が必要な通知が届くと戻ります。上の「タスクをスヌーズする」を参照してください。
-- **自分が完了したタスクをアーカイブ** がオン(既定でオン)の状態で、あなた自身がタスクを `done` または `closed` カテゴリのいずれかのステータスにしたとき。アーカイブされるのは、そのタスクに届いたあなた自身の通知だけで、既読かどうかは問いません。ほかの人やエージェントがタスクを完了した場合、その通知はあなたのインボックスに残るので、変化を見逃しません。
+- あなた自身がタスクに対応したとき。何を対応とみなすかは **設定 → 通知** の **自分が対応したタスクをアーカイブ** で決まります。既定の **返信・ステータス前進・担当変更の後** では、コメント、タスクを `started`・`done`・`closed` カテゴリのステータスにすること、担当者の変更が対象です。`backlog`・`todo` などの `unstarted` ステータスへの変更(完了したタスクを戻す場合も含む)は整理とみなされアーカイブされないので、整理してから担当者を決められます。**完了したとき** は `done` と `closed` だけ、**しない** で自動アーカイブはオフ、**カスタム** では操作を 1 つずつ選べ、既定では対象外の優先度・プロジェクト・日付・ラベルの変更も選べます。アーカイブされるのは、そのタスクに届いたあなた自身の通知だけで、既読かどうかは問いません。ほかの人やエージェントが同じ操作をした場合、その通知はあなたのインボックスに残るので、変化を見逃しません。
- 「実行失敗」の通知で、タスクが人に引き継がれるステータスになったとき。対象は `in_review`、`started` カテゴリのカスタムステータス、`done`・`closed` カテゴリのすべてのステータスです。誰がステータスを変えたかにかかわらず、そのタスクの全員分の「実行失敗」の通知がアーカイブされ、上の設定には左右されません。`blocked` は例外です。人に引き継がれはしますが作業は止まったままなので、それまでの失敗の記録はまだ確認する必要があります。
- そのワークスペースのインボックスが 2,000 件を超えたとき。新しい 2,000 件を残し、それより古い通知は既読かどうかにかかわらず、少し後に自動でアーカイブされます。スヌーズから戻った通知やアーカイブから戻した通知は、戻った時点の新しさで数えます。スヌーズ中のタスクの通知は数えず、そのまま残ります。
-アーカイブされた行は、開いているウィンドウからもすぐに消えます。ただし、いま開いている行は別です。その通知がほかの理由でインボックスから外れたとき(ステータスからタスクを `done` にした、別のウィンドウでアーカイブされた、編集でセクションのフィルターに合わなくなった)、行は元の位置でハイライトされたまま残り、インボックスバーに何が起きたかが表示されます。バーの **ステータス**、**担当者**、**クイックアクション** で変更して通知がアーカイブされたときは、「進行中 に変更 · 通知をアーカイブしました」のようにその操作が示され、これらの操作はバーに残るので続けて変更できます。**元に戻す** で通知が戻り、**次へ**(または `E`)で次の行が開きます。行が消えるのは、ほかへ移ったときです。
+アーカイブされた行は、開いているウィンドウからもすぐに消えます。ただし、いま開いている行は別です。その通知がほかの理由でインボックスから外れたとき(ステータスからタスクを `done` にした、別のウィンドウでアーカイブされた、編集でセクションのフィルターに合わなくなった)、行は元の位置でハイライトされたまま残り、インボックスバーに何が起きたかが表示されます。バーの **ステータス**、**担当者**、**クイックアクション** で変更して通知がアーカイブされたときは、「進行中 に変更 · 通知をアーカイブしました」のようにその操作が示され、これらの操作はバーに残るので続けて変更できます。**元に戻す**(または `Z`)で通知が戻り、**次へ**(または `E`)で次の行が開きます。行が消えるのは、ほかへ移ったときです。これは既定の **アーカイブ後 → このタスクに留まる** の動きです。**次の通知を開く** にすると、あなたの操作で開いている通知がアーカイブされたとき、すぐ次の行が開き、確認メッセージに **元に戻す** が出ます。
-開いている行を自分で処理したとき(インボックスバー、その行、ホバーカード、その行を含む一括操作)は、代わりに次の行が開きます。残りがなければ、タスクは開いたままです。アーカイブと一括操作の確認には **元に戻す** があり、通知は戻りますが、タスクのステータスはそのままです。
+開いている行を自分で処理したとき(インボックスバー、その行、ホバーカード、その行を含む一括操作)は、代わりに次の行が開きます。残りがなければ、タスクは開いたままです。アーカイブと一括操作の確認には **元に戻す** があり、通知は戻りますが、タスクのステータスはそのままです。**元に戻す** のある確認メッセージ(アーカイブ、スヌーズ、購読解除のいずれも)は 10 秒間表示され、表示中に `Z` を押すとその操作を取り消せます。
その後に届いた通知は、再びインボックスに入ります。
-**設定 → 通知 → インボックスから外れるとき** には、**自分が完了したタスクをアーカイブ** のスイッチと、アーカイブ済みの通知へのリンクがあります。
+**設定 → 通知 → インボックスから外れるとき** には、**自分が対応したタスクをアーカイブ**(**しない**、**完了したとき**、**返信・ステータス前進・担当変更の後**、**カスタム**)と **アーカイブ後**(**このタスクに留まる** または **次の通知を開く**)、アーカイブ済みの通知へのリンクがあります。
## 表示と通知タイプ
diff --git a/apps/docs/content/docs/inbox.ko.mdx b/apps/docs/content/docs/inbox.ko.mdx
index dda8e8339b..e61ddfb459 100644
--- a/apps/docs/content/docs/inbox.ko.mdx
+++ b/apps/docs/content/docs/inbox.ko.mdx
@@ -98,7 +98,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339, 30m, 3h, 1d, 1w; uns
- **상태**, **담당자**, **퀵 액션**은 태스크 자체를 바꾸며, 속성에서 바꾸는 것과 같습니다. 퀵 액션은 워크스페이스에 있을 때만 나타납니다.
- **다시 알림**(`H`)은 지정한 시간까지 태스크를 인박스에서 빼고 다음 알림을 엽니다. 자세한 내용은 아래 '태스크 미루기'를 참고하세요.
-- **보관**(`E`)은 알림을 보관하고 다음 알림을 엽니다. 보관해도 태스크는 변경되거나 삭제되지 않습니다. 태스크를 끝내려면 상태를 바꾸세요. **내가 완료한 태스크 보관**이 켜져 있으면 그 알림도 보관됩니다.
+- **보관**(`E`)은 알림을 보관하고 다음 알림을 엽니다. 보관해도 태스크는 변경되거나 삭제되지 않습니다. 태스크를 끝내려면 상태를 바꾸세요. 기본적으로 그 알림도 함께 보관됩니다(아래 '알림이 인박스에서 빠지는 경우' 참고).
- **구독 해제 후 보관**(`⇧E`)은 내 태스크가 아닐 때(담당자가 나도, 내 에이전트도 아닐 때) 표시됩니다. 태스크 구독을 해제하고 알림을 보관한 뒤 다음 알림을 엽니다. 이후 일반 업데이트는 인박스에 오지 않지만 @멘션은 계속 알림을 받습니다. 하위 태스크가 있으면 이 태스크만 또는 모든 하위 태스크까지 해제할지 고를 수 있습니다. 이 태스크만 해제했다면 확인 메시지의 **실행 취소**로 구독을 원래대로 되돌릴 수 있습니다. 하위 태스크까지 해제한 경우에는 여기서 되돌릴 수 없으니 태스크 페이지에서 다시 구독하세요. 호버 카드와 행의 우클릭 메뉴에도 같은 동작이 있습니다.
다음 알림은 섹션이 현재 필터로 보여 주는 다음 행입니다. 목록으로 돌아가지 않고 인박스를 차례로 처리할 수 있습니다.
@@ -116,13 +116,13 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339, 30m, 3h, 1d, 1w; uns
## 태스크 미루기
-미루기를 하면 태스크가 지정한 시간까지 인박스에서 빠졌다가, 그 시간이 되면 읽지 않은 상태로 맨 위에 돌아옵니다. 인박스 바의 **다시 알림**(또는 `H`), 행에 마우스를 올렸을 때 보관 버튼 옆에 나타나는 버튼, 또는 행의 호버 카드에서 미룰 수 있습니다. **1시간**, **3시간**, **1일**, **3일**, **1주** 중에서 고르거나, **날짜와 시간 선택…** 메뉴에서 1년 이내의 원하는 시간을 고를 수 있습니다. 하루 이상 미루면 지금 시각 그대로 돌아오지만, 22:00~6:00 사이에 미루면 아침 9:00에 돌아옵니다. 확인 알림에서 실행 취소할 수 있으며, 시간을 바꾼 경우에는 이전 시간으로 되돌아갑니다.
+미루기를 하면 태스크가 지정한 시간까지 인박스에서 빠졌다가, 그 시간이 되면 읽지 않은 상태로 맨 위에 돌아옵니다. 인박스 바의 **다시 알림**(또는 `H`), 행에 마우스를 올렸을 때 보관 버튼 옆에 나타나는 버튼, 또는 행의 호버 카드에서 미룰 수 있습니다. **1시간**, **3시간**, **1일**, **3일**, **1주** 중에서 고르거나, **날짜와 시간 선택…** 메뉴에서 1년 이내의 원하는 시간을 고를 수 있습니다. 하루 이상 미루면 지금 시각 그대로 돌아오지만, 22:00~6:00 사이에 미루면 아침 9:00에 돌아옵니다. 확인 알림에서 실행 취소(`Z`)할 수 있으며, 시간을 바꾼 경우에는 이전 시간으로 되돌아갑니다.
태스크를 미뤄둔 동안에는:
- 새 알림도 함께 기다리며 읽지 않음 배지에 포함되지 않습니다. 돌아온 행에는 **다시 알림 종료**와 그동안 쌓인 업데이트 수가 표시됩니다.
- 누군가 이름으로 멘션하거나, 나에게 할당되거나, 실행이 실패하거나, 앱이 작업을 요청하거나, 모든 하위 태스크가 끝나면 일찍 돌아옵니다. `@all` 멘션으로는 돌아오지 않습니다.
-- **모두 읽음으로 표시**와 일괄 보관은 미뤄둔 태스크를 건너뜁니다. 보관하면 미루기가 끝나며, **내가 완료한 태스크 보관**이 켜진 상태에서 직접 태스크를 완료한 경우도 마찬가지입니다.
+- **모두 읽음으로 표시**와 일괄 보관은 미뤄둔 태스크를 건너뜁니다. 보관하면 미루기가 끝나며, **내가 처리한 태스크 보관**에 완료가 포함된 상태(기본값)에서 직접 태스크를 완료한 경우도 마찬가지입니다.
- 다른 곳에서 태스크를 열어도 읽음으로 바뀌지 않고 미루기도 끝나지 않습니다. 인박스 바에 돌아올 시간이 표시되며, **시간 변경**에서 지금 되돌리거나(`H`) 다른 시간을 고를 수 있습니다.
미루기는 내 인박스에만 영향을 줍니다. 미뤄둔 태스크는 Views의 **미뤄둔 항목** 뷰나 인박스 메뉴의 **미뤄둔 항목 보기**에서 볼 수 있습니다.
@@ -133,17 +133,17 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339, 30m, 3h, 1d, 1w; uns
- 행, 마우스 오버 카드, 인박스 바, 일괄 작업에서 직접 보관할 때
- 태스크를 미룰 때. 이 경우는 일시적이며, 지정한 시간이 되거나 내가 처리해야 할 알림이 오면 다시 돌아옵니다. 위의 '태스크 미루기'를 참고하세요.
-- **내가 완료한 태스크 보관**이 켜져 있는 상태(기본값)에서 내가 직접 태스크를 `done` 또는 `closed` 카테고리의 어떤 상태로 바꿀 때. 그 태스크에 온 내 알림만 읽음 여부와 관계없이 보관됩니다. 다른 사람이나 에이전트가 태스크를 완료하면 그 알림은 내 인박스에 남으므로 변화를 놓치지 않습니다.
+- 내가 직접 태스크를 처리했을 때. 무엇을 처리로 볼지는 **설정 → 알림**의 **내가 처리한 태스크 보관**이 정합니다. 기본값인 **답글, 상태 진행, 담당자 변경 후**는 댓글, 태스크를 `started`·`done`·`closed` 카테고리의 상태로 바꾸는 것, 담당자 변경을 포함합니다. `backlog`, `todo` 같은 `unstarted` 상태로 바꾸는 것(완료한 태스크를 다시 여는 경우 포함)은 정리로 보고 보관하지 않으므로, 먼저 정리한 뒤 담당자를 지정할 수 있습니다. **완료했을 때**는 `done`과 `closed`만, **안 함**은 자동 보관을 끄고, **사용자 지정**은 동작을 하나씩 고르며 기본으로는 꺼져 있는 우선순위·프로젝트·날짜·라벨 변경도 고를 수 있습니다. 그 태스크에 온 내 알림만 읽음 여부와 관계없이 보관됩니다. 다른 사람이나 에이전트가 같은 동작을 하면 그 알림은 내 인박스에 남으므로 변화를 놓치지 않습니다.
- "실행 실패함" 알림이고, 태스크가 사람에게 넘어가는 상태가 될 때. 해당 상태는 `in_review`, `started` 카테고리의 사용자 지정 상태, `done`·`closed` 카테고리의 모든 상태입니다. 누가 상태를 바꿨는지와 관계없이 그 태스크의 모든 사람의 "실행 실패함" 알림이 보관되며, 위 설정의 영향을 받지 않습니다. `blocked`는 예외입니다. 사람에게 넘어가기는 하지만 작업이 여전히 막혀 있으므로 지난 실패 기록을 계속 확인해야 합니다.
- 그 워크스페이스의 인박스가 알림 2,000개를 넘을 때. 최신 2,000개를 남기고, 그보다 오래된 알림은 읽음 여부와 관계없이 잠시 후 자동으로 보관됩니다. 미루기에서 돌아온 알림과 보관함에서 복원한 알림은 돌아온 시점을 기준으로 셉니다. 미룬 태스크의 알림은 개수에 포함되지 않으며 그대로 남습니다.
-보관된 행은 열려 있는 창에서도 바로 사라집니다. 단, 지금 열어 둔 행은 예외입니다. 그 알림이 다른 이유로 인박스에서 빠지면(상태에서 태스크를 `done`으로 바꿨거나, 다른 창에서 보관했거나, 편집으로 섹션 필터에 더 이상 맞지 않게 된 경우) 행은 제자리에서 강조된 채 남고, 인박스 바에 무슨 일이 있었는지 표시됩니다. 바의 **상태**, **담당자**, **퀵 액션**으로 바꿔서 알림이 보관되면 '상태 변경됨: 진행 중 · 알림이 보관됨'처럼 그 동작이 표시되고, 이 동작들은 바에 그대로 남아 이어서 바꿀 수 있습니다. **실행 취소**로 알림을 되돌리고, **다음**(또는 `E`)으로 다음 행을 엽니다. 행은 다른 곳으로 이동할 때 사라집니다.
+보관된 행은 열려 있는 창에서도 바로 사라집니다. 단, 지금 열어 둔 행은 예외입니다. 그 알림이 다른 이유로 인박스에서 빠지면(상태에서 태스크를 `done`으로 바꿨거나, 다른 창에서 보관했거나, 편집으로 섹션 필터에 더 이상 맞지 않게 된 경우) 행은 제자리에서 강조된 채 남고, 인박스 바에 무슨 일이 있었는지 표시됩니다. 바의 **상태**, **담당자**, **퀵 액션**으로 바꿔서 알림이 보관되면 '상태 변경됨: 진행 중 · 알림이 보관됨'처럼 그 동작이 표시되고, 이 동작들은 바에 그대로 남아 이어서 바꿀 수 있습니다. **실행 취소**(또는 `Z`)로 알림을 되돌리고, **다음**(또는 `E`)으로 다음 행을 엽니다. 행은 다른 곳으로 이동할 때 사라집니다. 이는 기본값인 **보관한 뒤 → 이 태스크에 머무르기**의 동작입니다. **다음 알림 열기**를 고르면 내 동작으로 열어 둔 알림이 보관될 때 바로 다음 행이 열리고, 확인 알림에 **실행 취소**가 나옵니다.
-열어 둔 행을 직접 처리하면(인박스 바, 그 행, 호버 카드, 그 행을 포함한 일괄 작업) 대신 다음 행이 열립니다. 남은 행이 없으면 태스크는 열린 채로 있습니다. 보관과 일괄 작업의 확인에는 **실행 취소**가 있으며, 알림은 돌아오고 태스크 상태는 그대로 유지됩니다.
+열어 둔 행을 직접 처리하면(인박스 바, 그 행, 호버 카드, 그 행을 포함한 일괄 작업) 대신 다음 행이 열립니다. 남은 행이 없으면 태스크는 열린 채로 있습니다. 보관과 일괄 작업의 확인에는 **실행 취소**가 있으며, 알림은 돌아오고 태스크 상태는 그대로 유지됩니다. **실행 취소**가 있는 확인 알림(보관, 미루기, 구독 해제 모두)은 10초 동안 표시되며, 표시되는 동안 `Z`를 누르면 그 동작을 취소합니다.
이후 그 태스크에 새 알림이 오면 다시 인박스에 들어옵니다.
-**설정 → 알림 → 인박스에서 빠지는 경우**에 **내가 완료한 태스크 보관** 스위치와 보관된 알림으로 가는 링크가 있습니다.
+**설정 → 알림 → 인박스에서 빠지는 경우**에 **내가 처리한 태스크 보관**(**안 함**, **완료했을 때**, **답글, 상태 진행, 담당자 변경 후**, **사용자 지정**)과 **보관한 뒤**(**이 태스크에 머무르기** 또는 **다음 알림 열기**), 보관된 알림으로 가는 링크가 있습니다.
## 표시와 알림 유형
diff --git a/apps/docs/content/docs/inbox.mdx b/apps/docs/content/docs/inbox.mdx
index 0856f837ff..fcf5e9df5e 100644
--- a/apps/docs/content/docs/inbox.mdx
+++ b/apps/docs/content/docs/inbox.mdx
@@ -98,7 +98,7 @@ An issue opened from the inbox shows a bar under its header. It says who did wha
- **Status**, **Assignee** and **Quick actions** change the issue itself, as its properties do. Quick actions appear once your workspace has some.
- **Snooze** (`H`) takes the issue out of your inbox until a time you pick, and opens the next one. See [Snooze an issue](#snooze-an-issue) below.
-- **Archive** (`E`) archives the notification and opens the next one. Archiving doesn't modify or delete the issue. To finish the issue, change its status instead; with **Archive issues you complete** on, that archives its notification too.
+- **Archive** (`E`) archives the notification and opens the next one. Archiving doesn't modify or delete the issue. To finish the issue, change its status instead; by default that archives its notification too (see [When a notification leaves the inbox](#when-a-notification-leaves-the-inbox)).
- **Unsubscribe & archive** (`⇧E`) is offered on issues that aren't yours: not assigned to you or to an agent you own. It unsubscribes you from the issue, archives the notification and opens the next one. Ordinary updates stop reaching your inbox, while @mentions still do. On an issue with sub-issues you choose between this issue only and this issue with all its sub-issues. For this issue only, the confirmation offers **Undo**, which restores the subscription as it was. Leaving the sub-issues as well can't be undone there; subscribe again on the issue page instead. The same action is on the hover card and in a row's right-click menu.
The next one is the next row the section lists under its current filters, so you can work through the inbox without going back to the list.
@@ -116,13 +116,13 @@ The section's ⋯ menu holds **View archived** and the bulk actions:
## Snooze an issue
-Snooze takes an issue out of your inbox until a time you pick, then brings it back on top, unread. Snooze from **Snooze** in the issue's inbox bar (or press `H`), from the button beside Archive when you hover a row, or from a row's hover card. Pick **1 hour**, **3 hours**, **1 day**, **3 days** or **1 week**, or **Pick a date and time…** for any time within a year. A day or more keeps the current time of day, except that one chosen between 22:00 and 6:00 comes back at 9:00. The confirmation lets you undo; undoing a change of time puts back the previous one.
+Snooze takes an issue out of your inbox until a time you pick, then brings it back on top, unread. Snooze from **Snooze** in the issue's inbox bar (or press `H`), from the button beside Archive when you hover a row, or from a row's hover card. Pick **1 hour**, **3 hours**, **1 day**, **3 days** or **1 week**, or **Pick a date and time…** for any time within a year. A day or more keeps the current time of day, except that one chosen between 22:00 and 6:00 comes back at 9:00. The confirmation lets you undo (`Z`); undoing a change of time puts back the previous one.
While an issue is snoozed:
- new notifications on it wait with it and don't count toward the unread badge. When it comes back, the row says **Snooze ended** and how many updates arrived meanwhile;
- it comes back early when someone mentions you by name, it is assigned to you, a run fails, an app asks for your action, or all its sub-issues finish. `@all` mentions don't wake it;
-- **Mark all as read** and the archive-all actions leave it alone. Archiving it ends the snooze, and so does completing the issue yourself while **Archive issues you complete** is on;
+- **Mark all as read** and the archive-all actions leave it alone. Archiving it ends the snooze, and so does completing the issue yourself while **Archive issues you handle** counts completing (it does by default);
- opening the issue from anywhere else doesn't read it or end the snooze. Its inbox bar shows when it comes back; **Change time** there brings it back now (`H`) or picks another time.
Snooze is personal: it only changes your own inbox. Everything you've snoozed is in the **Snoozed** view under Views, also reachable from **View snoozed** in the inbox menu.
@@ -133,17 +133,17 @@ Reading a notification doesn't remove it. A row leaves the inbox only when:
- you archive it, from its row, the hover card, the inbox bar, or a bulk action;
- you snooze its issue. This one is temporary: the issue comes back at the time you picked, or earlier when something needs you. See [Snooze an issue](#snooze-an-issue);
-- you move its issue to any status in the `done` or `closed` category yourself, while **Archive issues you complete** is on (it is by default). Only your own notifications on that issue are archived, read or not. When someone else or an agent completes an issue, its notifications stay in your inbox, so you still see the news;
+- you handle its issue yourself, as **Archive issues you handle** in **Settings → Notifications** says. The default, **After you reply, move it forward or reassign**, counts commenting, moving the issue to a status in the `started`, `done` or `closed` category, and changing its assignee. Moving it to `backlog`, `todo` or another `unstarted` status, a reopened issue included, is triage and doesn't count, so you can triage an issue and then assign it. **When you complete it** counts only `done` and `closed`, **Never** turns this off, and **Custom** picks the actions one by one, including changing priority, project, dates or labels, which are off by default. Only your own notifications on that issue are archived, read or not. When someone else or an agent does the same, its notifications stay in your inbox, so you still see the news;
- 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** brings the notification back, and **Next** (or `E`) opens the next row. The row leaves once you move on.
+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. 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 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 issue stays open. Archiving and the bulk actions confirm with **Undo**, which brings the notifications back and leaves the issue's status as it is.
+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 issue stays open. 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.
A later notification on the issue lands in the inbox again.
-**Settings → Notifications → Leaving the Inbox** has the **Archive issues you complete** switch and links to the archived notifications.
+**Settings → Notifications → Leaving the Inbox** holds **Archive issues you handle** (**Never**, **When you complete it**, **After you reply, move it forward or reassign**, or **Custom**), **After archiving** (**Stay on the issue** or **Open the next one**), and a link to the archived notifications.
## Display and notification types
diff --git a/apps/docs/content/docs/inbox.zh-Hant.mdx b/apps/docs/content/docs/inbox.zh-Hant.mdx
index 22ded18ae6..f533264302 100644
--- a/apps/docs/content/docs/inbox.zh-Hant.mdx
+++ b/apps/docs/content/docs/inbox.zh-Hant.mdx
@@ -98,7 +98,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- **狀態**、**負責人**和**快捷操作**直接修改任務本身,和屬性裡一樣;工作區有快捷操作時才會出現。
- **延後**(`H`)把任務移出收件箱,到你選的時間再回來,並開啟下一條。詳見下方的「延後任務」。
-- **歸檔**(`E`)會歸檔這條通知並開啟下一條。歸檔不會修改或刪除任務。要結束任務,請修改它的狀態;開著**自動歸檔我完成的任務**時,這也會歸檔它的通知。
+- **歸檔**(`E`)會歸檔這條通知並開啟下一條。歸檔不會修改或刪除任務。要結束任務,請修改它的狀態;預設情況下這也會歸檔它的通知(見下文「通知何時離開收件箱」)。
- **取消訂閱並歸檔**(`⇧E`):任務不是你的(負責人不是你,也不是你擁有的 AI 代理)時出現。它取消你對這個任務的訂閱,歸檔這條通知並開啟下一條;之後一般動態不再進入收件箱,@你仍會通知。有子任務時可以選擇只退訂這個任務,或連同全部子任務一起退訂。只退訂這個任務時,提示裡可以**復原**,訂閱會按原來的方式恢復;連同子任務一起退訂無法在這裡復原,可以在任務頁面重新訂閱。懸停卡片和列的右鍵選單裡也有這個操作。
"下一條"是分區在當前篩選下列出的下一列,因此不用回到列表,就能把收件箱一條條處理完。
@@ -116,13 +116,13 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## 延後任務
-延後會把一個任務暫時移出你的收件箱,到你選的時間再回到最上面,並標為未讀。可以點收件箱列裡的**延後**(或按 `H`),也可以在懸停收件箱列時點歸檔旁邊的按鈕,或在懸停卡片裡點 **延後**。可選 **1 小時**、**3 小時**、**1 天**、**3 天**、**1 週**,或點 **選擇日期和時間…** 選一年內的任意時間。按天延後時保留目前的鐘點;在 22:00 到 6:00 之間延後的,會在早上 9:00 回來。延後後的提示裡可以復原;如果是改了時間,復原會恢復原本的時間。
+延後會把一個任務暫時移出你的收件箱,到你選的時間再回到最上面,並標為未讀。可以點收件箱列裡的**延後**(或按 `H`),也可以在懸停收件箱列時點歸檔旁邊的按鈕,或在懸停卡片裡點 **延後**。可選 **1 小時**、**3 小時**、**1 天**、**3 天**、**1 週**,或點 **選擇日期和時間…** 選一年內的任意時間。按天延後時保留目前的鐘點;在 22:00 到 6:00 之間延後的,會在早上 9:00 回來。延後後的提示裡可以復原(`Z`);如果是改了時間,復原會恢復原本的時間。
任務延後期間:
- 它的新通知會跟著一起等,不計入未讀角標。回來時,這一列會顯示 **延後到期** 以及期間有多少則動態;
- 有人點名 @ 你、它被指派給你、執行失敗、應用程式請求你操作,或全部子任務完成時,它會提前回來。`@all` 提及不會喚醒它;
-- **全部標為已讀** 和各種全部歸檔操作會跳過它。歸檔它會結束延後;開著 **自動歸檔我完成的任務** 時你自己完成這個任務,也一樣;
+- **全部標為已讀** 和各種全部歸檔操作會跳過它。歸檔它會結束延後;**自動歸檔我處理過的任務**包含完成(預設包含)時,你自己完成這個任務也一樣;
- 從別處開啟這個任務不會把它標為已讀,也不會結束延後。收件箱列會顯示它何時回來,點**修改時間**可以讓它現在回來(`H`)或換個時間。
延後只影響你自己的收件箱。所有延後的任務都在檢視裡的 **已延後** 中,也可以從收件箱選單的 **查看已延後** 進入。
@@ -133,17 +133,17 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- 你手動歸檔它:在它所在的列、懸停卡片、收件箱列,或透過批次操作;
- 你延後了它的任務。這是暫時的:到你選的時間,或有需要你處理的通知時,它會回來。見上方的「延後任務」;
-- 你親自把它的任務改為 `done` 或 `closed` 分類下的任一狀態,且**自動歸檔我完成的任務**處於開啟狀態(預設開啟)。只歸檔你自己在該任務上的通知,無論是否已讀。別人或 AI 代理完成的任務,通知會留在你的收件箱裡,你仍能看到這個變化;
+- 你親自處理了它的任務,按**設定 → 通知**裡**自動歸檔我處理過的任務**的選擇來算。預設的**回覆、推進狀態或轉交後**包括:留言、把任務改為 `started`、`done` 或 `closed` 分類下的狀態、更換負責人。改為 `backlog`、`todo` 或其他 `unstarted` 狀態(包括重新開啟已完成的任務)只算整理,不會歸檔,所以可以先整理再指派。**完成任務時**只算 `done` 和 `closed`,**從不**會關掉自動歸檔,**自訂**可以逐項勾選,包括預設不算的改優先級、改專案、改日期和改標籤。只歸檔你自己在該任務上的通知,無論是否已讀。別人或 AI 代理做同樣的操作時,通知會留在你的收件箱裡,你仍能看到這個變化;
- 它是"執行失敗"通知,且任務進入交回給人的狀態:`in_review`、`started` 分類下的自定義狀態,或 `done`、`closed` 分類下的任一狀態。這會歸檔所有人在該任務上的"執行失敗"通知,不論是誰改的狀態,也不受上面的開關影響。`blocked` 例外:它同樣交回給人,但工作還卡著,之前的失敗記錄還要看。
- 你在該工作區的收件箱超過 2,000 條通知。收件箱保留最新的 2,000 條,隨後自動歸檔更早的通知,無論是否已讀。從延後中回來或從歸檔中還原的通知,按回來的時間算作新通知。已延後任務上的通知不計入,也不會被歸檔。
-開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知因為其他原因離開收件箱時(你在狀態裡把任務改為 `done`、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,收件箱列會說明發生了什麼。在列裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,列會寫明是哪一項,例如「已改為進行中 · 通知已歸檔」,這幾個操作也留在列裡,可以接著改。**復原**讓通知回來,**下一條**(或按 `E`)開啟下一列。你離開之後,這一列才會移出。
+開著的視窗會立即移除已歸檔的列,但你正開著的那一列除外。它的通知因為其他原因離開收件箱時(你在狀態裡把任務改為 `done`、別的視窗歸檔了它,或修改後不再符合分區的篩選),這一列會在原位保持高亮,收件箱列會說明發生了什麼。在列裡改**狀態**、**負責人**或執行**快捷操作**後通知被歸檔時,列會寫明是哪一項,例如「已改為進行中 · 通知已歸檔」,這幾個操作也留在列裡,可以接著改。**復原**(或按 `Z`)讓通知回來,**下一條**(或按 `E`)開啟下一列。你離開之後,這一列才會移出。這是**歸檔後 → 停在目前任務**(預設)的行為;選**打開下一條**時,你的操作歸檔了正開著的通知後,會直接開啟下一列,提示裡可以**復原**。
-如果是你自己把正開著的這一列處理掉(在收件箱列、它所在的列、懸停卡片,或包含它的批次操作裡),會直接開啟下一列;沒有剩下的列時,任務保持開啟。歸檔和批次操作的提示裡都可以**復原**:通知會回來,任務的狀態保持不變。
+如果是你自己把正開著的這一列處理掉(在收件箱列、它所在的列、懸停卡片,或包含它的批次操作裡),會直接開啟下一列;沒有剩下的列時,任務保持開啟。歸檔和批次操作的提示裡都可以**復原**:通知會回來,任務的狀態保持不變。帶**復原**的提示(歸檔、延後、取消訂閱都一樣)會停留 10 秒;提示還在時,按 `Z` 復原這次操作。
之後該任務再有新通知,會重新進入收件箱。
-**設定 → 通知 → 移出收件箱**裡有**自動歸檔我完成的任務**開關,並提供已歸檔通知的入口。
+**設定 → 通知 → 移出收件箱**裡有**自動歸檔我處理過的任務**(**從不**、**完成任務時**、**回覆、推進狀態或轉交後**、**自訂**)和**歸檔後**(**停在目前任務**或**打開下一條**),並提供已歸檔通知的入口。
## 顯示與通知類型
diff --git a/apps/docs/content/docs/inbox.zh.mdx b/apps/docs/content/docs/inbox.zh.mdx
index 828d22d507..374b7a5e17 100644
--- a/apps/docs/content/docs/inbox.zh.mdx
+++ b/apps/docs/content/docs/inbox.zh.mdx
@@ -98,7 +98,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- **状态**、**负责人**和**快捷操作**直接修改任务本身,和属性里一样;工作区有快捷操作时才会出现。
- **延后**(`H`)把任务移出收件箱,到你选的时间再回来,并打开下一条。详见下方的「延后任务」。
-- **归档**(`E`)会归档这条通知并打开下一条。归档不会修改或删除任务。要结束任务,请修改它的状态;开着**自动归档我完成的任务**时,这也会归档它的通知。
+- **归档**(`E`)会归档这条通知并打开下一条。归档不会修改或删除任务。要结束任务,请修改它的状态;默认情况下这也会归档它的通知(见下文「通知何时离开收件箱」)。
- **取消订阅并归档**(`⇧E`):任务不是你的(负责人不是你,也不是你拥有的智能体)时出现。它取消你对这个任务的订阅,归档这条通知并打开下一条;之后普通动态不再进入收件箱,@你仍会通知。有子任务时可以选择只退订这个任务,或连同全部子任务一起退订。只退订这个任务时,提示里可以**撤销**,订阅会按原来的方式恢复;连同子任务一起退订无法在这里撤销,可以在任务页面重新订阅。悬停卡片和行的右键菜单里也有这个操作。
"下一条"是分区在当前筛选下列出的下一行,因此不用回到列表,就能把收件箱一条条处理完。
@@ -116,13 +116,13 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## 延后任务
-延后会把一个任务暂时移出你的收件箱,到你选的时间再回到最上面,并标为未读。可以点收件箱栏里的**延后**(或按 `H`),也可以在悬停收件箱行时点归档旁边的按钮,或在悬停卡片里点 **延后**。可选 **1 小时**、**3 小时**、**1 天**、**3 天**、**1 周**,或点 **选择日期和时间…** 选一年内的任意时间。按天延后时保留当前的钟点;在 22:00 到 6:00 之间延后的,会在早上 9:00 回来。延后后的提示里可以撤销;如果是改了时间,撤销会恢复原来的时间。
+延后会把一个任务暂时移出你的收件箱,到你选的时间再回到最上面,并标为未读。可以点收件箱栏里的**延后**(或按 `H`),也可以在悬停收件箱行时点归档旁边的按钮,或在悬停卡片里点 **延后**。可选 **1 小时**、**3 小时**、**1 天**、**3 天**、**1 周**,或点 **选择日期和时间…** 选一年内的任意时间。按天延后时保留当前的钟点;在 22:00 到 6:00 之间延后的,会在早上 9:00 回来。延后后的提示里可以撤销(`Z`);如果是改了时间,撤销会恢复原来的时间。
任务延后期间:
- 它的新通知会跟着一起等,不计入未读角标。回来时,这一行会显示 **延后到期** 以及期间有多少条动态;
- 有人点名 @ 你、它被指派给你、运行失败、应用请求你操作,或全部子任务完成时,它会提前回来。`@all` 提及不会唤醒它;
-- **全部标为已读** 和各种全部归档操作会跳过它。归档它会结束延后;开着 **自动归档我完成的任务** 时你自己完成这个任务,也一样;
+- **全部标为已读** 和各种全部归档操作会跳过它。归档它会结束延后;**自动归档我处理过的任务**包含完成(默认包含)时,你自己完成这个任务也一样;
- 从别处打开这个任务不会把它标为已读,也不会结束延后。收件箱栏会显示它何时回来,点**修改时间**可以让它现在回来(`H`)或换个时间。
延后只影响你自己的收件箱。所有延后的任务都在视图里的 **已延后** 中,也可以从收件箱菜单的 **查看已延后** 进入。
@@ -133,17 +133,17 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
- 你手动归档它:在它所在的行、悬停卡片、收件箱栏,或通过批量操作;
- 你延后了它的任务。这是暂时的:到你选的时间,或有需要你处理的通知时,它会回来。见上方的「延后任务」;
-- 你亲自把它的任务改为 `done` 或 `closed` 分类下的任一状态,且**自动归档我完成的任务**处于开启状态(默认开启)。只归档你自己在该任务上的通知,无论是否已读。别人或智能体完成的任务,通知会留在你的收件箱里,你仍能看到这个变化;
+- 你亲自处理了它的任务,按**设置 → 通知**里**自动归档我处理过的任务**的选择来算。默认的**回复、推进状态或转交后**包括:评论、把任务改为 `started`、`done` 或 `closed` 分类下的状态、更换负责人。改为 `backlog`、`todo` 或其他 `unstarted` 状态(包括重新打开已完成的任务)只算整理,不会归档,所以可以先整理再指派。**完成任务时**只算 `done` 和 `closed`,**从不**会关掉自动归档,**自定义**可以逐项勾选,包括默认不算的改优先级、改项目、改日期和改标签。只归档你自己在该任务上的通知,无论是否已读。别人或智能体做同样的操作时,通知会留在你的收件箱里,你仍能看到这个变化;
- 它是"运行失败"通知,且任务进入交回给人的状态:`in_review`、`started` 分类下的自定义状态,或 `done`、`closed` 分类下的任一状态。这会归档所有人在该任务上的"运行失败"通知,不论是谁改的状态,也不受上面的开关影响。`blocked` 例外:它同样交回给人,但工作还卡着,之前的失败记录还要看。
- 你在该工作区的收件箱超过 2,000 条通知。收件箱保留最新的 2,000 条,随后自动归档更早的通知,无论是否已读。从延后中回来或从归档中还原的通知,按回来的时间算作新通知。已延后任务上的通知不计入,也不会被归档。
-打开着的窗口会立即移除已归档的行,但你正打开的那一行除外。它的通知因为其他原因离开收件箱时(你在状态里把任务改为 `done`、别的窗口归档了它,或修改后不再符合分区的筛选),这一行会在原位保持高亮,收件箱栏会说明发生了什么。在栏里改**状态**、**负责人**或运行**快捷操作**后通知被归档时,栏会写明是哪一项,比如“已改为进行中 · 通知已归档”,这几个操作也留在栏里,可以接着改。**撤销**让通知回来,**下一条**(或按 `E`)打开下一行。你离开之后,这一行才会移出。
+打开着的窗口会立即移除已归档的行,但你正打开的那一行除外。它的通知因为其他原因离开收件箱时(你在状态里把任务改为 `done`、别的窗口归档了它,或修改后不再符合分区的筛选),这一行会在原位保持高亮,收件箱栏会说明发生了什么。在栏里改**状态**、**负责人**或运行**快捷操作**后通知被归档时,栏会写明是哪一项,比如“已改为进行中 · 通知已归档”,这几个操作也留在栏里,可以接着改。**撤销**(或按 `Z`)让通知回来,**下一条**(或按 `E`)打开下一行。你离开之后,这一行才会移出。这是**归档后 → 停在当前任务**(默认)的行为;选**打开下一条**时,你的操作归档了正打开的通知后,会直接打开下一行,提示里可以**撤销**。
-如果是你自己把正打开的这一行处理掉(在收件箱栏、它所在的行、悬停卡片,或包含它的批量操作里),会直接打开下一行;没有剩下的行时,任务保持打开。归档和批量操作的提示里都可以**撤销**:通知会回来,任务的状态保持不变。
+如果是你自己把正打开的这一行处理掉(在收件箱栏、它所在的行、悬停卡片,或包含它的批量操作里),会直接打开下一行;没有剩下的行时,任务保持打开。归档和批量操作的提示里都可以**撤销**:通知会回来,任务的状态保持不变。带**撤销**的提示(归档、延后、取消订阅都一样)会停留 10 秒;提示还在时,按 `Z` 撤销这次操作。
之后该任务再有新通知,会重新进入收件箱。
-**设置 → 通知 → 移出收件箱**里有**自动归档我完成的任务**开关,并提供已归档通知的入口。
+**设置 → 通知 → 移出收件箱**里有**自动归档我处理过的任务**(**从不**、**完成任务时**、**回复、推进状态或转交后**、**自定义**)和**归档后**(**停在当前任务**或**打开下一条**),并提供已归档通知的入口。
## 显示与通知类型
diff --git a/apps/docs/content/docs/shortcuts.fr.mdx b/apps/docs/content/docs/shortcuts.fr.mdx
index 05cb99df30..60fdd1e4ba 100644
--- a/apps/docs/content/docs/shortcuts.fr.mdx
+++ b/apps/docs/content/docs/shortcuts.fr.mdx
@@ -38,12 +38,13 @@ Choisir un résultat l'ouvre. Maintenez `⌘` (`Ctrl` sous Windows et Linux) en
| Rechercher dans la tâche | `⌘F` | `Ctrl+F` | Voir plus bas. |
| Archiver la notification | `E` | `E` | Sur une tâche ouverte depuis la boîte de réception, archive sa notification et ouvre la suivante. Dans les notifications archivées, restaure celle qui est ouverte. Voir [Boîte de réception](/inbox#traiter-les-notifications). |
| Reporter la notification | `H` | `H` | Sur une tâche ouverte depuis la boîte de réception, la reporte et ouvre la suivante. Sur une tâche reportée, la fait revenir maintenant. |
+| Annuler l'action de la boîte de réception | `Z` | `Z` | Tant qu'une confirmation d'archivage, de report ou de désabonnement est affichée, annule cette action. Sinon, remet dans la boîte de réception la notification ouverte une fois archivée. |
| Envoyer | `⌘↵` | `Ctrl+Enter` | Envoie commentaires et messages de discussion, et sert aussi à créer des tâches. |
| Saisie vocale | Non défini | Non défini | Desktop uniquement ; activez-la d’abord dans Paramètres → Saisie vocale. Voir [Saisie vocale](/desktop-app#saisie-vocale). |
| Revenir en arrière | `⌘[` | `Ctrl+[` | |
| Avancer | `⌘]` | `Ctrl+]` | |
-Les raccourcis à une seule touche (`C`, `E`, `H`) et Revenir en arrière / Avancer ne réagissent pas pendant que vous tapez dans un champ.
+Les raccourcis à une seule touche (`C`, `E`, `H`, `Z`) et Revenir en arrière / Avancer ne réagissent pas pendant que vous tapez dans un champ.
Le groupe **Navigation** propose aussi d'aller à la boîte de réception, aux discussions, à Mes tâches, aux tâches, aux projets, aux automatisations, aux agents, aux squads, aux statistiques, aux runtimes, aux skills et aux paramètres. Aucune de ces actions n'a de touche par défaut : attribuez-en à celles que vous utilisez. Aller à la boîte de réception ouvre la page Boîte de réception ; la liste des notifications elle-même est une section du panneau Travail, juste sous les épingles. Aller à Mes tâches ouvre la page Mes tâches, qui n'est pas la vue **Mon travail** du panneau Travail.
diff --git a/apps/docs/content/docs/shortcuts.ja.mdx b/apps/docs/content/docs/shortcuts.ja.mdx
index a7a897953b..288d9e479f 100644
--- a/apps/docs/content/docs/shortcuts.ja.mdx
+++ b/apps/docs/content/docs/shortcuts.ja.mdx
@@ -38,12 +38,13 @@ import { Step, Steps } from "fumadocs-ui/components/steps";
| タスク内を検索 | `⌘F` | `Ctrl+F` | 後述。 |
| 通知をアーカイブ | `E` | `E` | インボックスから開いたタスクで、その通知をアーカイブして次の通知を開きます。アーカイブ済みの通知を表示中は、開いている通知のアーカイブを解除します。[インボックス](/inbox#通知の処理)を参照してください。 |
| 通知をスヌーズ | `H` | `H` | インボックスから開いたタスクをスヌーズして、次の通知を開きます。スヌーズ中のタスクでは今すぐ戻します。 |
+| インボックスの操作を取り消す | `Z` | `Z` | アーカイブ・スヌーズ・購読解除の確認メッセージが表示されている間は、その操作を取り消します。表示がなければ、アーカイブ済みの開いている通知をインボックスに戻します。 |
| 送信 | `⌘↵` | `Ctrl+Enter` | コメントやチャットのメッセージを送信します。新しいタスクの作成にも使います。 |
| 音声入力 | 未設定 | 未設定 | Desktop のみ。先に設定 → 音声入力でオンにしてください。[音声入力](/desktop-app#音声入力)を参照。 |
| 戻る | `⌘[` | `Ctrl+[` | |
| 進む | `⌘]` | `Ctrl+]` | |
-1 キーだけのショートカット(`C`、`E`、`H`)と「戻る」「進む」は、入力欄で文字を打っている間は反応しません。
+1 キーだけのショートカット(`C`、`E`、`H`、`Z`)と「戻る」「進む」は、入力欄で文字を打っている間は反応しません。
**ナビゲーション**には、インボックス、チャット、自分のタスク、タスク、プロジェクト、自動化、エージェント、Squads、使用量、ランタイム、Skills、設定へ移動する操作もあります。どれも既定ではキーが割り当てられていないので、よく使うものに設定してください。インボックスへの移動で開くのはインボックスページで、通知のリスト自体は作業パネルの、ピン留め済みのすぐ下のセクションにあります。自分のタスクへの移動で開くのはマイタスクのページで、作業パネルの **自分の作業** ビューとは別のものです。
diff --git a/apps/docs/content/docs/shortcuts.ko.mdx b/apps/docs/content/docs/shortcuts.ko.mdx
index f2c62fa1ec..2909446a8b 100644
--- a/apps/docs/content/docs/shortcuts.ko.mdx
+++ b/apps/docs/content/docs/shortcuts.ko.mdx
@@ -38,12 +38,13 @@ import { Step, Steps } from "fumadocs-ui/components/steps";
| 태스크에서 찾기 | `⌘F` | `Ctrl+F` | 아래 설명 참고. |
| 알림 보관 | `E` | `E` | 인박스에서 연 태스크에서 그 알림을 보관하고 다음 알림을 엽니다. 보관된 알림을 보는 중에는 열어 둔 알림의 보관을 해제합니다. [인박스](/inbox#알림-처리)를 참고하세요. |
| 알림 미루기 | `H` | `H` | 인박스에서 연 태스크를 미루고 다음 알림을 엽니다. 미뤄둔 태스크에서는 지금 되돌립니다. |
+| 인박스 작업 실행 취소 | `Z` | `Z` | 보관, 미루기, 구독 해제 확인 알림이 보이는 동안 그 동작을 취소합니다. 확인 알림이 없으면 보관된 현재 알림을 인박스로 되돌립니다. |
| 보내기 | `⌘↵` | `Ctrl+Enter` | 댓글과 채팅 메시지를 보내고, 새 태스크를 만들 때도 씁니다. |
| 음성 입력 | 지정 안 됨 | 지정 안 됨 | Desktop 전용. 먼저 설정 → 음성 입력에서 켜세요. [음성 입력](/desktop-app#음성-입력)을 참고하세요. |
| 뒤로 가기 | `⌘[` | `Ctrl+[` | |
| 앞으로 가기 | `⌘]` | `Ctrl+]` | |
-키 하나짜리 단축키(`C`, `E`, `H`)와 뒤로 가기·앞으로 가기는 입력란에서 글을 쓰는 동안에는 동작하지 않습니다.
+키 하나짜리 단축키(`C`, `E`, `H`, `Z`)와 뒤로 가기·앞으로 가기는 입력란에서 글을 쓰는 동안에는 동작하지 않습니다.
**탐색** 그룹에는 인박스, 채팅, 내 태스크, 태스크, 프로젝트, 자동화, 에이전트, 스쿼드, 사용량, 런타임, Skills, 설정으로 이동하는 동작도 있습니다. 모두 기본 키가 없으니 자주 쓰는 것에 직접 지정하세요. 인박스로 이동하면 인박스 페이지가 열리며, 알림 목록 자체는 작업 패널에서 고정됨 바로 아래 섹션에 있습니다. 내 태스크로 이동하면 내 태스크 페이지가 열리며, 작업 패널의 **내 작업** 뷰와는 다릅니다.
diff --git a/apps/docs/content/docs/shortcuts.mdx b/apps/docs/content/docs/shortcuts.mdx
index ec749cd2b4..121a2a2242 100644
--- a/apps/docs/content/docs/shortcuts.mdx
+++ b/apps/docs/content/docs/shortcuts.mdx
@@ -38,12 +38,13 @@ Selecting a result opens it. Hold `⌘` (`Ctrl` on Windows and Linux) while clic
| Find in issue | `⌘F` | `Ctrl+F` | See below. |
| Archive notification | `E` | `E` | On an issue opened from the inbox, archives its notification and opens the next one. In archived notifications, restores the open one. See [Inbox](/inbox#handle-notifications). |
| Snooze notification | `H` | `H` | On an issue opened from the inbox, snoozes it and opens the next one. On a snoozed issue, brings it back now. See [Inbox](/inbox#snooze-an-issue). |
+| Undo inbox action | `Z` | `Z` | While an archive, snooze or unsubscribe confirmation shows, undoes that action. Without one, puts back the open notification once it is archived. See [Inbox](/inbox#when-a-notification-leaves-the-inbox). |
| Send | `⌘↵` | `Ctrl+Enter` | Sends comments and chat messages, and also submits new issues. |
| Voice input | Unassigned | Unassigned | Desktop only; turn it on first under Settings → Voice input. See [Voice input](/desktop-app#voice-input). |
| Go back | `⌘[` | `Ctrl+[` | |
| Go forward | `⌘]` | `Ctrl+]` | |
-Single-key shortcuts (`C`, `E`, `H`) and Go back / Go forward don't fire while you're typing in an input.
+Single-key shortcuts (`C`, `E`, `H`, `Z`) and Go back / Go forward don't fire while you're typing in an input.
The **Navigation** group also has Go to Inbox, Chat, My Issues, Issues, Projects, Autopilot, Agents, Squads, Usage, Runtimes, Skills, and Settings. None of them has a key by default; bind the ones you use. Go to Inbox opens the Inbox page; the notification list itself is a section of the Work panel, right below Pinned. Go to My Issues opens the My Issues page, which is not the same as the **My work** view in the Work panel.
diff --git a/apps/docs/content/docs/shortcuts.zh-Hant.mdx b/apps/docs/content/docs/shortcuts.zh-Hant.mdx
index 9862eba122..84144c2ba1 100644
--- a/apps/docs/content/docs/shortcuts.zh-Hant.mdx
+++ b/apps/docs/content/docs/shortcuts.zh-Hant.mdx
@@ -38,12 +38,13 @@ import { Step, Steps } from "fumadocs-ui/components/steps";
| 在任務中查詢 | `⌘F` | `Ctrl+F` | 見下文。 |
| 歸檔通知 | `E` | `E` | 在從收件箱開啟的任務上,歸檔它的通知並開啟下一條;檢視已歸檔時則取消歸檔當前開啟的通知。見[收件箱](/inbox#處理通知)。 |
| 延後通知 | `H` | `H` | 在從收件箱開啟的任務上,延後它並開啟下一條;已延後的任務則讓它現在回來。 |
+| 復原收件箱操作 | `Z` | `Z` | 歸檔、延後或取消訂閱的提示還在時,復原這次操作;沒有提示時,把已歸檔的目前通知放回收件箱。 |
| 傳送 | `⌘↵` | `Ctrl+Enter` | 傳送評論和聊天訊息,也用於提交新任務。 |
| 語音輸入 | 未設定 | 未設定 | 僅 Desktop;先在設定 → 語音輸入中啟用。見[語音輸入](/desktop-app#語音輸入)。 |
| 後退 | `⌘[` | `Ctrl+[` | |
| 前進 | `⌘]` | `Ctrl+]` | |
-單鍵快捷鍵(`C`、`E`、`H`)和後退、前進在輸入框裡不起作用,避免打字時誤觸。
+單鍵快捷鍵(`C`、`E`、`H`、`Z`)和後退、前進在輸入框裡不起作用,避免打字時誤觸。
**導航**類操作還有前往收件箱、聊天、我的任務、任務、專案、自動化、AI 代理、小隊、統計、執行時、Skills 和設定,預設都沒有設定按鍵,需要時自己繫結。前往收件箱開啟的是收件箱頁面,通知列表本身是工作面板裡的一個分區,就在固定下面。前往我的任務開啟的是"我的任務"頁面,和工作面板裡的**我的工作**檢視不是一回事。
diff --git a/apps/docs/content/docs/shortcuts.zh.mdx b/apps/docs/content/docs/shortcuts.zh.mdx
index 54ece0d43a..443a7ef7d8 100644
--- a/apps/docs/content/docs/shortcuts.zh.mdx
+++ b/apps/docs/content/docs/shortcuts.zh.mdx
@@ -38,12 +38,13 @@ import { Step, Steps } from "fumadocs-ui/components/steps";
| 在任务中查找 | `⌘F` | `Ctrl+F` | 见下文。 |
| 归档通知 | `E` | `E` | 在从收件箱打开的任务上,归档它的通知并打开下一条;查看已归档时则取消归档当前打开的通知。见[收件箱](/inbox#处理通知)。 |
| 延后通知 | `H` | `H` | 在从收件箱打开的任务上,延后它并打开下一条;已延后的任务则让它现在回来。 |
+| 撤销收件箱操作 | `Z` | `Z` | 归档、延后或取消订阅的提示还在时,撤销这次操作;没有提示时,把已归档的当前通知放回收件箱。 |
| 发送 | `⌘↵` | `Ctrl+Enter` | 发送评论和聊天消息,也用于提交新任务。 |
| 语音输入 | 未设置 | 未设置 | 仅 Desktop;先在设置 → 语音输入中开启。见[语音输入](/desktop-app#语音输入)。 |
| 后退 | `⌘[` | `Ctrl+[` | |
| 前进 | `⌘]` | `Ctrl+]` | |
-单键快捷键(`C`、`E`、`H`)和后退、前进在输入框里不起作用,避免打字时误触。
+单键快捷键(`C`、`E`、`H`、`Z`)和后退、前进在输入框里不起作用,避免打字时误触。
**导航**类操作还有前往收件箱、聊天、我的任务、任务、项目、自动化、智能体、小队、统计、运行时、Skills 和设置,默认都没有设置按键,需要时自己绑定。前往收件箱打开的是收件箱页面,通知列表本身是工作面板里的一个分区,就在固定下面。前往我的任务打开的是"我的任务"页面,和工作面板里的**我的工作**视图不是一回事。
diff --git a/packages/core/shortcuts/definitions.ts b/packages/core/shortcuts/definitions.ts
index d08a1ed357..5415a3be5c 100644
--- a/packages/core/shortcuts/definitions.ts
+++ b/packages/core/shortcuts/definitions.ts
@@ -16,6 +16,7 @@ export type ShortcutActionId =
| "archiveInboxItem"
| "unsubscribeArchiveInboxItem"
| "snoozeInboxItem"
+ | "undoInboxAction"
| "send"
| "voiceInput"
| "goBack"
@@ -125,6 +126,12 @@ export const SHORTCUT_ACTIONS: readonly ShortcutActionDefinition[] = [
defaultShortcut: createShortcutChord("H"),
allowInEditable: false,
},
+ {
+ id: "undoInboxAction",
+ category: "general",
+ defaultShortcut: createShortcutChord("Z"),
+ allowInEditable: false,
+ },
{ id: "send", category: "general", defaultShortcut: primary("Enter"), allowInEditable: true },
// Voice input works where the caret is, so it must fire inside editors. It
// is matched on keydown AND keyup (holding it is push-to-talk), so the voice
diff --git a/packages/core/types/notification-preference.ts b/packages/core/types/notification-preference.ts
index 509c867410..6d2fd9c54c 100644
--- a/packages/core/types/notification-preference.ts
+++ b/packages/core/types/notification-preference.ts
@@ -14,7 +14,8 @@ export type NotificationGroupKey =
/**
* Each action you take on an issue that can archive your own notifications on
* it. `auto_archive_completed` is moving it to a done or closed status;
- * `auto_archive_on_status` is any other status change.
+ * `auto_archive_on_status` is moving it to a started status; moving it to an
+ * unstarted one (backlog, todo) archives nothing.
*/
export type AutoArchiveKey =
| "auto_archive_completed"
diff --git a/packages/views/inbox/components/auto-archive-prompt-dialog.test.tsx b/packages/views/inbox/components/auto-archive-prompt-dialog.test.tsx
index 0ee7dc434b..cafc2f454f 100644
--- a/packages/views/inbox/components/auto-archive-prompt-dialog.test.tsx
+++ b/packages/views/inbox/components/auto-archive-prompt-dialog.test.tsx
@@ -59,7 +59,7 @@ describe("AutoArchivePromptDialog", () => {
expect(screen.getByRole("dialog", { name: "Archive notifications once you've handled them" })).toBeInTheDocument();
const choices = screen.getAllByRole("radio").map((radio) => [radio.textContent, radio.getAttribute("aria-checked")]);
expect(choices).toEqual([
- ["After you reply, change status or reassignRecommendedIssues you've dealt with leave your Inbox", "true"],
+ ["After you reply, move it forward or reassignRecommendedIssues you've dealt with leave your Inbox", "true"],
["When you complete itOnly completing or cancelling an issue archives it", "false"],
["NeverYou archive notifications yourself", "false"],
]);
diff --git a/packages/views/inbox/components/inbox-kept-actions.tsx b/packages/views/inbox/components/inbox-kept-actions.tsx
index 4fd36dbba3..b0698de635 100644
--- a/packages/views/inbox/components/inbox-kept-actions.tsx
+++ b/packages/views/inbox/components/inbox-kept-actions.tsx
@@ -1,12 +1,20 @@
"use client";
-import type { ReactNode } from "react";
+import { type ReactNode, useEffect, useRef } from "react";
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";
import type { InboxBarAction } from "@multica/core/inbox/auto-archive";
import type { KeptInboxRow } from "@multica/core/inbox/open-row";
+import { useModalStore } from "@multica/core/modals";
+import {
+ getShortcut,
+ isEditableShortcutTarget,
+ isPortalLayerShortcutTarget,
+ shortcutMatchesEvent,
+} from "@multica/core/shortcuts";
+import { isImeComposing } from "@multica/core/utils";
import { useActorName } from "@multica/core/workspace/hooks";
import type { InboxItem } from "@multica/core/types";
import { useLocale, useT } from "../../i18n";
@@ -15,6 +23,7 @@ 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 { hasInboxUndo } from "./inbox-undo-toast";
/**
* How a kept row (`keepOpenInboxRow`) says why it is settled: `line` in its
@@ -70,7 +79,7 @@ export function useKeptInboxRowText(wsId: string) {
* own (its issue reached Done, another window archived it) and stays on
* screen until the user moves on: what happened, the issue's own actions
* when it was archived, so the next change needs no trip to its properties,
- * then the way to undo it and the next notification.
+ * then the way to undo it (Z) and the next notification.
*/
export function InboxKeptActions({
label,
@@ -90,6 +99,27 @@ export function InboxKeptActions({
onNext: () => void;
}) {
const { t } = useT("inbox");
+ const undoRef = useRef(onUndo);
+ useEffect(() => {
+ undoRef.current = onUndo;
+ });
+ useEffect(() => {
+ const onKeyDown = (event: KeyboardEvent) => {
+ // A showing undo toast is the latest action, and the shortcut is its.
+ if (hasInboxUndo()) return;
+ if (event.defaultPrevented || event.repeat || isImeComposing(event)) return;
+ if (isEditableShortcutTarget(event.target)) return;
+ if (isPortalLayerShortcutTarget(event.target)) return;
+ if (useModalStore.getState().modal) return;
+ if (!shortcutMatchesEvent(getShortcut("undoInboxAction"), event)) return;
+ const undo = undoRef.current;
+ if (!undo) return;
+ event.preventDefault();
+ undo();
+ };
+ document.addEventListener("keydown", onKeyDown);
+ return () => document.removeEventListener("keydown", onKeyDown);
+ }, []);
return (
<InboxBar settled>
<InboxBarStatus icon={icon ?? <Archive />} label={label} />
@@ -99,6 +129,9 @@ export function InboxKeptActions({
<Button size="sm" variant="ghost" className="shrink-0 text-muted-foreground" onClick={onUndo}>
<Undo2 />
{t(($) => $.toasts.undo)}
+ <span className="flex @max-[30rem]/inbox-bar:hidden">
+ <ActionShortcutKeycaps action="undoInboxAction" />
+ </span>
</Button>
)}
{next && <InboxNextButton next={next} onNext={onNext} />}
diff --git a/packages/views/inbox/components/inbox-page.test.tsx b/packages/views/inbox/components/inbox-page.test.tsx
index 8352035c21..647570c808 100644
--- a/packages/views/inbox/components/inbox-page.test.tsx
+++ b/packages/views/inbox/components/inbox-page.test.tsx
@@ -1240,7 +1240,10 @@ describe("InboxPage", () => {
renderWithActiveItem();
act(() => rowActions?.onAction("inbox-a"));
await settle(archiveMutate, "success");
- expect(toast.success).toHaveBeenCalledWith("Inbox", { action: { label: "Inbox", onClick: expect.any(Function) } });
+ expect(toast.success).toHaveBeenCalledWith(
+ "Inbox",
+ expect.objectContaining({ duration: 10_000, action: { label: "Inbox", onClick: expect.any(Function) } }),
+ );
expect(toast.success).toHaveBeenCalledTimes(1);
});
diff --git a/packages/views/inbox/components/inbox-undo-toast.test.ts b/packages/views/inbox/components/inbox-undo-toast.test.ts
new file mode 100644
index 0000000000..27406d63f3
--- /dev/null
+++ b/packages/views/inbox/components/inbox-undo-toast.test.ts
@@ -0,0 +1,70 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { fireEvent } from "@testing-library/react";
+import { toast } from "sonner";
+import { hasInboxUndo, INBOX_UNDO_TOAST_DURATION, toastInboxUndo } from "./inbox-undo-toast";
+
+vi.mock("sonner", () => {
+ let next = 0;
+ return { toast: { success: vi.fn(() => ++next), dismiss: vi.fn() } };
+});
+
+type Options = {
+ duration: number;
+ action: { label: string; onClick: () => void };
+ onAutoClose: () => void;
+};
+const lastOptions = () => vi.mocked(toast.success).mock.calls.at(-1)![1] as unknown as Options;
+const pressZ = (target: Element = document.body) => fireEvent.keyDown(target, { key: "z", code: "KeyZ" });
+
+describe("toastInboxUndo", () => {
+ beforeEach(() => vi.clearAllMocks());
+ afterEach(() => {
+ if (hasInboxUndo()) lastOptions().onAutoClose();
+ });
+
+ it("shows the toast long enough to reach its undo", () => {
+ toastInboxUndo("Notification archived", { label: "Undo", undo: vi.fn() });
+ expect(lastOptions().duration).toBe(INBOX_UNDO_TOAST_DURATION);
+ expect(INBOX_UNDO_TOAST_DURATION).toBe(10_000);
+ });
+
+ it("undoes the latest action with Z once, and closes its toast", () => {
+ const first = vi.fn();
+ const latest = vi.fn();
+ toastInboxUndo("Notification archived", { label: "Undo", undo: first });
+ toastInboxUndo("Snoozed", { label: "Undo", undo: latest });
+
+ pressZ();
+ pressZ();
+
+ expect(latest).toHaveBeenCalledOnce();
+ expect(first).not.toHaveBeenCalled();
+ expect(toast.dismiss).toHaveBeenCalledOnce();
+ expect(hasInboxUndo()).toBe(false);
+ });
+
+ it("ignores Z once the toast is gone or its button undid it", () => {
+ const closed = vi.fn();
+ toastInboxUndo("Notification archived", { label: "Undo", undo: closed });
+ lastOptions().onAutoClose();
+ pressZ();
+ expect(closed).not.toHaveBeenCalled();
+
+ const clicked = vi.fn();
+ toastInboxUndo("Notification archived", { label: "Undo", undo: clicked });
+ lastOptions().action.onClick();
+ pressZ();
+ expect(clicked).toHaveBeenCalledOnce();
+ });
+
+ it("leaves Z to a text field being typed in", () => {
+ const undo = vi.fn();
+ toastInboxUndo("Notification archived", { label: "Undo", undo });
+ const input = document.createElement("input");
+ document.body.appendChild(input);
+ pressZ(input);
+ input.remove();
+ expect(undo).not.toHaveBeenCalled();
+ expect(hasInboxUndo()).toBe(true);
+ });
+});
diff --git a/packages/views/inbox/components/inbox-undo-toast.ts b/packages/views/inbox/components/inbox-undo-toast.ts
new file mode 100644
index 0000000000..315be4756c
--- /dev/null
+++ b/packages/views/inbox/components/inbox-undo-toast.ts
@@ -0,0 +1,73 @@
+import { toast } from "sonner";
+import { useModalStore } from "@multica/core/modals";
+import {
+ getShortcut,
+ isEditableShortcutTarget,
+ isPortalLayerShortcutTarget,
+ shortcutMatchesEvent,
+} from "@multica/core/shortcuts";
+import { isImeComposing } from "@multica/core/utils";
+
+/** Long enough to read the toast and reach for its undo. */
+export const INBOX_UNDO_TOAST_DURATION = 10_000;
+
+let pending: { id: string | number; undo: () => void } | null = null;
+
+const clear = (id: string | number) => {
+ if (pending?.id !== id) return;
+ pending = null;
+ document.removeEventListener("keydown", onKeyDown);
+};
+
+function onKeyDown(event: KeyboardEvent) {
+ if (event.defaultPrevented || event.repeat || isImeComposing(event)) return;
+ if (isEditableShortcutTarget(event.target)) return;
+ if (isPortalLayerShortcutTarget(event.target)) return;
+ if (useModalStore.getState().modal) return;
+ if (!shortcutMatchesEvent(getShortcut("undoInboxAction"), event)) return;
+ const undo = takeInboxUndo();
+ if (!undo) return;
+ event.preventDefault();
+ undo();
+}
+
+/**
+ * Confirm an Inbox action with a toast that can undo it, from its button or
+ * the undo shortcut (Z) for as long as the toast shows. Only the latest
+ * action's toast answers the shortcut.
+ */
+export function toastInboxUndo(
+ message: string,
+ { label, undo, description }: { label: string; undo: () => void; description?: string },
+) {
+ if (pending) clear(pending.id);
+ const id = toast.success(message, {
+ description,
+ duration: INBOX_UNDO_TOAST_DURATION,
+ action: {
+ label,
+ onClick: () => {
+ clear(id);
+ undo();
+ },
+ },
+ onDismiss: () => clear(id),
+ onAutoClose: () => clear(id),
+ });
+ pending = { id, undo };
+ document.addEventListener("keydown", onKeyDown);
+}
+
+/** Whether an undo toast is showing, so the undo shortcut is its. */
+export function hasInboxUndo() {
+ return pending !== null;
+}
+
+/** Take the showing toast's undo and close the toast. */
+export function takeInboxUndo(): (() => void) | null {
+ if (!pending) return null;
+ const { id, undo } = pending;
+ clear(id);
+ toast.dismiss(id);
+ return undo;
+}
diff --git a/packages/views/inbox/components/use-inbox-snooze.ts b/packages/views/inbox/components/use-inbox-snooze.ts
index 6a62ec67d8..f2779c1f5b 100644
--- a/packages/views/inbox/components/use-inbox-snooze.ts
+++ b/packages/views/inbox/components/use-inbox-snooze.ts
@@ -8,6 +8,7 @@ import { cachedInboxSnoozedUntil, useSnoozeInbox, useUnsnoozeInbox } from "@mult
import { useInboxSelectionStore } from "@multica/core/inbox/selection-store";
import { useLocale, useT } from "../../i18n";
import { formatSnoozeTime } from "./inbox-snooze-time";
+import { toastInboxUndo } from "./inbox-undo-toast";
/**
* Snooze and bring back, with the toasts every surface shows alike. A snooze
@@ -57,8 +58,9 @@ export function useInboxSnooze() {
};
snoozeAsync({ id: item.id, until }).then(
() =>
- toast.success(t(($) => $.snooze.toast_snoozed, { time: formatSnoozeTime(until, new Date(), locale) }), {
- action: { label: t(($) => $.snooze.undo), onClick: undo },
+ toastInboxUndo(t(($) => $.snooze.toast_snoozed, { time: formatSnoozeTime(until, new Date(), locale) }), {
+ label: t(($) => $.snooze.undo),
+ undo,
}),
(err: unknown) => {
returnRow(key);
diff --git a/packages/views/inbox/components/use-leave-inbox-row.test.tsx b/packages/views/inbox/components/use-leave-inbox-row.test.tsx
index 98351a0ba7..9b1511ac1a 100644
--- a/packages/views/inbox/components/use-leave-inbox-row.test.tsx
+++ b/packages/views/inbox/components/use-leave-inbox-row.test.tsx
@@ -100,9 +100,10 @@ describe("useArchiveInboxBatchWithUndo", () => {
it("says how many it archived, and its undo restores each row it took", async () => {
const archiveBatch = setup(useArchiveInboxBatchWithUndo, items);
await act(() => archiveBatch.current(async () => ({ count: 3 }), isRead, "Failed", "issue-a"));
- expect(toast.success).toHaveBeenCalledWith("3 notifications archived", {
- action: { label: "Undo", onClick: expect.any(Function) },
- });
+ expect(toast.success).toHaveBeenCalledWith(
+ "3 notifications archived",
+ expect.objectContaining({ duration: 10_000, action: { label: "Undo", onClick: expect.any(Function) } }),
+ );
await act(async () => undoOf().onClick());
expect(api.unarchiveInbox.mock.calls.map(([id]) => id)).toEqual(["n-a1", "n-notice"]);
diff --git a/packages/views/inbox/components/use-leave-inbox-row.ts b/packages/views/inbox/components/use-leave-inbox-row.ts
index cc896bdb71..a1ac9b4dda 100644
--- a/packages/views/inbox/components/use-leave-inbox-row.ts
+++ b/packages/views/inbox/components/use-leave-inbox-row.ts
@@ -13,6 +13,7 @@ import type { InboxItem } from "@multica/core/types";
import { useNavigation } from "../../navigation";
import { useT } from "../../i18n";
import { inboxRowHref } from "./inbox-display";
+import { toastInboxUndo } from "./inbox-undo-toast";
/**
* Leave the open notification for `next`, as every Inbox action on it does:
@@ -61,13 +62,11 @@ export function useArchiveInboxWithUndo() {
const returnRow = () => useInboxSelectionStore.getState().returnRow(wsId, key);
return archiveAsync(id).then(
() =>
- toast.success(t(($) => $.toasts.archived), {
- action: {
- label: t(($) => $.toasts.undo),
- onClick: () => {
- returnRow();
- void restore(id, { quiet: true });
- },
+ toastInboxUndo(t(($) => $.toasts.archived), {
+ label: t(($) => $.toasts.undo),
+ undo: () => {
+ returnRow();
+ void restore(id, { quiet: true });
},
}),
(err: unknown) => {
@@ -108,15 +107,13 @@ export function useArchiveInboxBatchWithUndo() {
return archive().then(
({ count }) => {
if (count === 0) return;
- toast.success(t(($) => $.toasts.archived_many, { count }), {
- action: {
- label: t(($) => $.toasts.undo),
- onClick: () => {
- returnRow();
- undoArchiveInboxBatch(qc, wsId, [...taken.values()]).catch((err: unknown) =>
- toast.error(errorMessage(err, t(($) => $.errors.unarchive_failed))),
- );
- },
+ toastInboxUndo(t(($) => $.toasts.archived_many, { count }), {
+ label: t(($) => $.toasts.undo),
+ undo: () => {
+ returnRow();
+ undoArchiveInboxBatch(qc, wsId, [...taken.values()]).catch((err: unknown) =>
+ toast.error(errorMessage(err, t(($) => $.errors.unarchive_failed))),
+ );
},
});
},
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.ts
index 83396d3f96..0c68fe2a2e 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
@@ -2,7 +2,6 @@
import { useLayoutEffect, useRef, useState } from "react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
-import { toast } from "sonner";
import { useWorkspaceId } from "@multica/core/hooks";
import { type InboxBarAction, takeInboxAutoArchive, takeInboxBarAction } from "@multica/core/inbox/auto-archive";
import type { KeptInboxRow } from "@multica/core/inbox/open-row";
@@ -12,6 +11,7 @@ import { notificationPreferenceOptions } from "@multica/core/notification-prefer
import { notificationPreferenceValue } from "@multica/core/notification-preferences/patch";
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";
/**
@@ -59,13 +59,11 @@ export function useMoveOnAfterAutoArchive({
setCause(shown ? { key: archivedKey, action } : null);
if (!own || !moves || !row || !nextRow || !document.hasFocus()) return;
moveOn();
- toast.success(t(($) => $.toasts.archived), {
- action: {
- label: t(($) => $.toasts.undo),
- onClick: () => {
- useInboxSelectionStore.getState().returnRow(wsId, archivedKey);
- void restore(row.item.id, { quiet: true });
- },
+ toastInboxUndo(t(($) => $.toasts.archived), {
+ label: t(($) => $.toasts.undo),
+ undo: () => {
+ useInboxSelectionStore.getState().returnRow(wsId, archivedKey);
+ void restore(row.item.id, { quiet: true });
},
});
}, [archivedKey, wsId, qc, restore, t]);
diff --git a/packages/views/inbox/components/use-unsubscribe-archive.ts b/packages/views/inbox/components/use-unsubscribe-archive.ts
index fa766674e4..33881c02b6 100644
--- a/packages/views/inbox/components/use-unsubscribe-archive.ts
+++ b/packages/views/inbox/components/use-unsubscribe-archive.ts
@@ -14,6 +14,7 @@ import {
type InboxUnsubscribeScope,
} from "@multica/core/inbox/mutations";
import { useT } from "../../i18n";
+import { toastInboxUndo } from "./inbox-undo-toast";
/**
* Whether a list row offers "unsubscribe & archive": it is about an issue
@@ -66,27 +67,23 @@ export function useUnsubscribeArchive() {
toast.error(err instanceof Error && err.message ? err.message : fallback);
const returnRow = (issueId: string) => useInboxSelectionStore.getState().returnRow(wsId, issueId);
const { mutate } = useUnsubscribeArchiveInbox({
- onSuccess: ({ id, issueId, scope }) =>
- toast.success(
- scope === "subtree"
- ? t(($) => $.toasts.unsubscribed_archived_subtree)
- : t(($) => $.toasts.unsubscribed_archived),
- {
- description: t(($) => $.toasts.unsubscribed_hint),
- action:
- scope === "issue"
- ? {
- label: t(($) => $.toasts.undo),
- onClick: () => {
- returnRow(issueId);
- undoUnsubscribeArchiveInbox(qc, wsId, { id, issueId }).catch(
- failed(t(($) => $.errors.undo_unsubscribe_failed)),
- );
- },
- }
- : undefined,
+ onSuccess: ({ id, issueId, scope }) => {
+ const description = t(($) => $.toasts.unsubscribed_hint);
+ if (scope === "subtree") {
+ toast.success(t(($) => $.toasts.unsubscribed_archived_subtree), { description });
+ return;
+ }
+ toastInboxUndo(t(($) => $.toasts.unsubscribed_archived), {
+ description,
+ label: t(($) => $.toasts.undo),
+ undo: () => {
+ returnRow(issueId);
+ undoUnsubscribeArchiveInbox(qc, wsId, { id, issueId }).catch(
+ failed(t(($) => $.errors.undo_unsubscribe_failed)),
+ );
},
- ),
+ });
+ },
onError: (err, { issueId }) => {
returnRow(issueId);
failed(t(($) => $.errors.unsubscribe_archive_failed))(err);
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 0fdb0bc3bb..e1b82ee086 100644
--- a/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx
+++ b/packages/views/issues/actions/__tests__/issue-inbox-actions.test.tsx
@@ -15,6 +15,7 @@ import { agentListOptions } from "@multica/core/workspace/queries";
import type { Agent, InboxItem, Issue, SnoozedInboxIssue } from "@multica/core/types";
import { renderWithI18n } from "../../../test/i18n";
import { NavigationProvider, type NavigationAdapter } from "../../../navigation";
+import { takeInboxUndo } from "../../../inbox/components/inbox-undo-toast";
import { IssueInboxBar } from "../issue-inbox-actions";
const state = vi.hoisted(() => ({
@@ -25,7 +26,7 @@ const state = vi.hoisted(() => ({
unsnooze: vi.fn(() => Promise.resolve()),
}));
-vi.mock("sonner", () => ({ toast: { success: vi.fn(), error: vi.fn() } }));
+vi.mock("sonner", () => ({ toast: { success: vi.fn(), error: vi.fn(), dismiss: vi.fn() } }));
vi.mock("@multica/core/hooks", () => ({ useWorkspaceId: () => "ws" }));
vi.mock("@multica/core/paths", async (importOriginal) => {
const actual = await importOriginal<typeof import("@multica/core/paths")>();
@@ -162,7 +163,11 @@ beforeEach(() => {
});
useInboxFilterStore.getState().clearFilters("ws");
});
-afterEach(cleanup);
+afterEach(() => {
+ cleanup();
+ // Mocked toasts never close, so the last one's undo would answer Z in the next test.
+ takeInboxUndo();
+});
describe("IssueInboxBar", () => {
it("keeps the last row on a later side-effect archive after snooze fails", async () => {
@@ -343,6 +348,15 @@ describe("IssueInboxBar", () => {
expect(toast.success).not.toHaveBeenCalled();
});
+ it("undoes the settled archive with Z", async () => {
+ const nav = setup();
+ act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, [ROWS[1]!]));
+ expect(await screen.findByText("Notification archived")).toBeInTheDocument();
+
+ await act(async () => fireEvent.keyDown(document, { key: "z", code: "KeyZ" }));
+ expect(state.unarchiveInbox).toHaveBeenCalledWith("n-1");
+ });
+
it("names the status that archived it, and opens the next one", async () => {
const nav = setup({ rows: [{ ...ROWS[0]!, issue_status: "done" }, ROWS[1]!] });
act(() => nav.qc.setQueryData(inboxListOptions("ws").queryKey, [ROWS[1]!]));
@@ -391,9 +405,10 @@ describe("IssueInboxBar", () => {
nav.leave();
await archive.resolve();
- expect(toast.success).toHaveBeenCalledWith("Notification archived", {
- action: { label: "Undo", onClick: expect.any(Function) },
- });
+ expect(toast.success).toHaveBeenCalledWith(
+ "Notification archived",
+ expect.objectContaining({ duration: 10_000, action: { label: "Undo", onClick: expect.any(Function) } }),
+ );
expect(toast.error).not.toHaveBeenCalled();
const undo = vi.mocked(toast.success).mock.calls.at(-1)?.[1] as unknown as { action: { onClick: () => void } };
await act(async () => undo.action.onClick());
diff --git a/packages/views/locales/en/settings.json b/packages/views/locales/en/settings.json
index df80f24581..0108a26a51 100644
--- a/packages/views/locales/en/settings.json
+++ b/packages/views/locales/en/settings.json
@@ -439,6 +439,10 @@
"label": "Snooze notification",
"description": "Snooze the open inbox issue, or bring it back now if it is snoozed."
},
+ "undoInboxAction": {
+ "label": "Undo inbox action",
+ "description": "Undo the last archive, snooze or unsubscribe while its toast shows, or put the open notification back once it is archived."
+ },
"send": {
"label": "Send",
"description": "Also submits new issues."
@@ -865,7 +869,7 @@
"auto_presets": {
"never": "Never",
"completed": "When you complete it",
- "handled": "After you reply, change status or reassign",
+ "handled": "After you reply, move it forward or reassign",
"custom": "Custom",
"custom_item": "Custom..."
},
@@ -877,7 +881,7 @@
"auto_actions": {
"completed": "Complete",
"comment": "Reply",
- "status": "Change status",
+ "status": "Move it forward",
"assignee": "Reassign",
"priority": "Change priority",
"project": "Change project",
diff --git a/packages/views/locales/es/settings.json b/packages/views/locales/es/settings.json
index e27f10ba82..e5e43a94e3 100644
--- a/packages/views/locales/es/settings.json
+++ b/packages/views/locales/es/settings.json
@@ -439,6 +439,10 @@
"label": "Posponer notificación",
"description": "Pospone el issue abierto de la bandeja, o lo recupera ahora si ya está pospuesto."
},
+ "undoInboxAction": {
+ "label": "Deshacer acción de la bandeja",
+ "description": "Deshace el último archivado, posposición o baja mientras se ve su aviso, o restaura la notificación abierta una vez archivada."
+ },
"send": {
"label": "Enviar",
"description": "También envía nuevas tareas."
@@ -865,7 +869,7 @@
"auto_presets": {
"never": "Nunca",
"completed": "Cuando la completas",
- "handled": "Al responder, cambiar el estado o reasignar",
+ "handled": "Al responder, avanzar el estado o reasignar",
"custom": "Personalizado",
"custom_item": "Personalizado..."
},
@@ -877,7 +881,7 @@
"auto_actions": {
"completed": "Completar",
"comment": "Responder",
- "status": "Cambiar estado",
+ "status": "Avanzar el estado",
"assignee": "Reasignar",
"priority": "Cambiar prioridad",
"project": "Cambiar proyecto",
diff --git a/packages/views/locales/fr/settings.json b/packages/views/locales/fr/settings.json
index 86efd42399..f82dee6c9b 100644
--- a/packages/views/locales/fr/settings.json
+++ b/packages/views/locales/fr/settings.json
@@ -439,6 +439,10 @@
"label": "Reporter la notification",
"description": "Reporte la tâche ouverte depuis la boîte de réception, ou la fait revenir si elle est reportée."
},
+ "undoInboxAction": {
+ "label": "Annuler l'action de la boîte de réception",
+ "description": "Annule le dernier archivage, report ou désabonnement tant que son message s'affiche, ou restaure la notification ouverte une fois archivée."
+ },
"send": {
"label": "Envoyer",
"description": "Permet aussi de créer des tâches."
@@ -865,7 +869,7 @@
"auto_presets": {
"never": "Jamais",
"completed": "Quand vous la terminez",
- "handled": "Après une réponse, un changement de statut ou une réattribution",
+ "handled": "Après une réponse, une avancée de statut ou une réattribution",
"custom": "Personnalisé",
"custom_item": "Personnalisé..."
},
@@ -877,7 +881,7 @@
"auto_actions": {
"completed": "Terminer",
"comment": "Répondre",
- "status": "Changer le statut",
+ "status": "Faire avancer le statut",
"assignee": "Réassigner",
"priority": "Changer la priorité",
"project": "Changer le projet",
diff --git a/packages/views/locales/ja/settings.json b/packages/views/locales/ja/settings.json
index 9673607010..ad884a4ebf 100644
--- a/packages/views/locales/ja/settings.json
+++ b/packages/views/locales/ja/settings.json
@@ -433,6 +433,10 @@
"label": "通知をスヌーズ",
"description": "インボックスから開いたタスクをスヌーズします。スヌーズ中なら今すぐ戻します。"
},
+ "undoInboxAction": {
+ "label": "インボックスの操作を取り消す",
+ "description": "トーストが表示されている間は直前のアーカイブ・スヌーズ・購読解除を取り消します。開いている通知がアーカイブ済みならインボックスに戻します。"
+ },
"send": {
"label": "送信",
"description": "新しいタスクの作成にも使えます。"
@@ -855,7 +859,7 @@
"auto_presets": {
"never": "しない",
"completed": "完了したとき",
- "handled": "返信・ステータス変更・担当変更の後",
+ "handled": "返信・ステータス前進・担当変更の後",
"custom": "カスタム",
"custom_item": "カスタム..."
},
@@ -867,7 +871,7 @@
"auto_actions": {
"completed": "完了",
"comment": "返信",
- "status": "ステータス変更",
+ "status": "ステータスを進める",
"assignee": "担当者変更",
"priority": "優先度変更",
"project": "プロジェクト変更",
diff --git a/packages/views/locales/ko/settings.json b/packages/views/locales/ko/settings.json
index 085c670b5a..0218c75fa0 100644
--- a/packages/views/locales/ko/settings.json
+++ b/packages/views/locales/ko/settings.json
@@ -433,6 +433,10 @@
"label": "알림 미루기",
"description": "인박스에서 연 태스크를 미룹니다. 이미 미뤘다면 지금 되돌립니다."
},
+ "undoInboxAction": {
+ "label": "인박스 작업 실행 취소",
+ "description": "토스트가 보이는 동안 마지막 보관, 미루기, 구독 해제를 취소합니다. 열린 알림이 보관되었다면 인박스로 되돌립니다."
+ },
"send": {
"label": "보내기",
"description": "새 태스크 생성에도 사용됩니다."
@@ -855,7 +859,7 @@
"auto_presets": {
"never": "안 함",
"completed": "완료했을 때",
- "handled": "답글, 상태 변경, 담당자 변경 후",
+ "handled": "답글, 상태 진행, 담당자 변경 후",
"custom": "사용자 지정",
"custom_item": "사용자 지정..."
},
@@ -867,7 +871,7 @@
"auto_actions": {
"completed": "완료",
"comment": "답글",
- "status": "상태 변경",
+ "status": "상태 진행",
"assignee": "담당자 변경",
"priority": "우선순위 변경",
"project": "프로젝트 변경",
diff --git a/packages/views/locales/ru/settings.json b/packages/views/locales/ru/settings.json
index c6eab6779d..20c2725281 100644
--- a/packages/views/locales/ru/settings.json
+++ b/packages/views/locales/ru/settings.json
@@ -451,6 +451,10 @@
"label": "Отложить уведомление",
"description": "Откладывает открытое issue из входящих или возвращает его, если оно уже отложено."
},
+ "undoInboxAction": {
+ "label": "Отменить действие во входящих",
+ "description": "Отменяет последнее архивирование, откладывание или отписку, пока видно уведомление, или возвращает открытое уведомление во входящие после архивирования."
+ },
"send": {
"label": "Отправить",
"description": "Также отправляет новые задачи."
@@ -885,7 +889,7 @@
"auto_presets": {
"never": "Никогда",
"completed": "Когда вы её завершаете",
- "handled": "После ответа, смены статуса или переназначения",
+ "handled": "После ответа, продвижения статуса или переназначения",
"custom": "Свои настройки",
"custom_item": "Свои настройки..."
},
@@ -897,7 +901,7 @@
"auto_actions": {
"completed": "Завершить",
"comment": "Ответить",
- "status": "Сменить статус",
+ "status": "Продвинуть статус",
"assignee": "Переназначить",
"priority": "Сменить приоритет",
"project": "Сменить проект",
diff --git a/packages/views/locales/zh-Hans/settings.json b/packages/views/locales/zh-Hans/settings.json
index c07463f3fa..5367c82b4e 100644
--- a/packages/views/locales/zh-Hans/settings.json
+++ b/packages/views/locales/zh-Hans/settings.json
@@ -433,6 +433,10 @@
"label": "延后通知",
"description": "延后从收件箱打开的任务;已延后时让它现在回来。"
},
+ "undoInboxAction": {
+ "label": "撤销收件箱操作",
+ "description": "提示还在时,撤销上一次归档、延后或取消订阅;打开的通知已归档时,把它放回收件箱。"
+ },
"send": {
"label": "发送",
"description": "也用于提交新任务。"
@@ -855,7 +859,7 @@
"auto_presets": {
"never": "从不",
"completed": "完成任务时",
- "handled": "回复、改状态或转交后",
+ "handled": "回复、推进状态或转交后",
"custom": "自定义",
"custom_item": "自定义..."
},
@@ -867,7 +871,7 @@
"auto_actions": {
"completed": "完成",
"comment": "回复",
- "status": "改状态",
+ "status": "推进状态",
"assignee": "转交",
"priority": "改优先级",
"project": "改项目",
diff --git a/packages/views/locales/zh-Hant/settings.json b/packages/views/locales/zh-Hant/settings.json
index b1a670cd15..5bc8b2d542 100644
--- a/packages/views/locales/zh-Hant/settings.json
+++ b/packages/views/locales/zh-Hant/settings.json
@@ -433,6 +433,10 @@
"label": "延後通知",
"description": "延後從收件箱開啟的任務;已延後時讓它現在回來。"
},
+ "undoInboxAction": {
+ "label": "復原收件箱操作",
+ "description": "提示還在時,復原上一次歸檔、延後或取消訂閱;開啟的通知已歸檔時,把它放回收件箱。"
+ },
"send": {
"label": "傳送",
"description": "也用於提交新任務。"
@@ -855,7 +859,7 @@
"auto_presets": {
"never": "從不",
"completed": "完成任務時",
- "handled": "回覆、改狀態或轉交後",
+ "handled": "回覆、推進狀態或轉交後",
"custom": "自訂",
"custom_item": "自訂..."
},
@@ -867,7 +871,7 @@
"auto_actions": {
"completed": "完成",
"comment": "回覆",
- "status": "改狀態",
+ "status": "推進狀態",
"assignee": "轉交",
"priority": "改優先級",
"project": "改專案",
diff --git a/packages/views/settings/components/keyboard-shortcuts-tab.tsx b/packages/views/settings/components/keyboard-shortcuts-tab.tsx
index 0ce3bd0f04..99d2092e23 100644
--- a/packages/views/settings/components/keyboard-shortcuts-tab.tsx
+++ b/packages/views/settings/components/keyboard-shortcuts-tab.tsx
@@ -273,7 +273,7 @@ function ShortcutRow({
const { t } = useT("settings");
const label = t(($) => $.shortcuts.actions[action.id].label);
// Keep descriptions in the search index, but only show non-obvious behavior.
- const description = ["openSearch", "toggleRightSidebar", "archiveInboxItem", "unsubscribeArchiveInboxItem", "snoozeInboxItem", "send"].includes(action.id)
+ const description = ["openSearch", "toggleRightSidebar", "archiveInboxItem", "unsubscribeArchiveInboxItem", "snoozeInboxItem", "undoInboxAction", "send"].includes(action.id)
? t(($) => $.shortcuts.actions[action.id].description)
: undefined;
const errorText = error?.kind === "reserved"
diff --git a/packages/views/settings/components/notifications-tab.test.tsx b/packages/views/settings/components/notifications-tab.test.tsx
index 033c3a1f76..7c1ec05a62 100644
--- a/packages/views/settings/components/notifications-tab.test.tsx
+++ b/packages/views/settings/components/notifications-tab.test.tsx
@@ -141,7 +141,7 @@ describe("Inbox notification settings", () => {
});
it.each<{ preferences: Record<string, string>; shown: string; custom: boolean }>([
- { preferences: {}, shown: "After you reply, change status or reassign", custom: false },
+ { preferences: {}, shown: "After you reply, move it forward or reassign", custom: false },
{ preferences: { ...ALL_ACTIONS_OFF, auto_archive_completed: "all" }, shown: "When you complete it", custom: false },
{ preferences: ALL_ACTIONS_OFF, shown: "Never", custom: false },
{ preferences: { auto_archive_on_labels: "all" }, shown: "Custom", custom: true },
@@ -159,7 +159,7 @@ describe("Inbox notification settings", () => {
expect(options.map((option) => [option.textContent, option.getAttribute("aria-selected")])).toEqual([
["Never", "false"],
["When you complete it", "false"],
- ["After you reply, change status or reassignRecommended", "true"],
+ ["After you reply, move it forward or reassignRecommended", "true"],
["Custom...", "false"],
]);
});
@@ -188,7 +188,7 @@ describe("Inbox notification settings", () => {
expect(checked).toEqual([
["Complete", "true"],
["Reply", "true"],
- ["Change status", "true"],
+ ["Move it forward", "true"],
["Reassign", "true"],
["Change priority", "false"],
["Change project", "false"],
diff --git a/server/cmd/server/notification_listeners.go b/server/cmd/server/notification_listeners.go
index 53b9644e75..a7c68c9352 100644
--- a/server/cmd/server/notification_listeners.go
+++ b/server/cmd/server/notification_listeners.go
@@ -334,8 +334,10 @@ func archiveStaleTaskFailedInbox(
// Preference keys, one per action you take on an issue, that archive your own
// notifications on it. Completing means moving it to a done or closed status;
-// a status change means any other status. Settling actions are on unless
-// "muted"; edits that only tidy the issue are off unless "all".
+// a status change means moving it to a started status. Moving it to an
+// unstarted status (backlog, todo) is triage, not handling, and archives
+// nothing. Settling actions are on unless "muted"; edits that only tidy the
+// issue are off unless "all".
const (
autoArchiveCompletedPref = "auto_archive_completed"
autoArchiveCommentPref = "auto_archive_on_comment"
@@ -1147,7 +1149,7 @@ func registerNotificationListeners(bus *events.Bus, queries *db.Queries) {
"issue_id", issue.ID, "status", issue.Status, "error", categoryErr)
case category == issuestatus.CategoryDone, category == issuestatus.CategoryClosed:
archiveActions = append(archiveActions, autoArchiveCompletedPref)
- default:
+ case category == issuestatus.CategoryStarted:
archiveActions = append(archiveActions, autoArchiveStatusPref)
}
}
diff --git a/server/cmd/server/notification_listeners_test.go b/server/cmd/server/notification_listeners_test.go
index 211fe8d202..d38a80ace1 100644
--- a/server/cmd/server/notification_listeners_test.go
+++ b/server/cmd/server/notification_listeners_test.go
@@ -1738,7 +1738,8 @@ func TestNotification_HandlingArchivesIssueInbox(t *testing.T) {
// TestNotification_HandlingKeepsInbox verifies that the inbox stays for
// tidying edits by default, for an action the member turned off, and for an
// agent actor. Completing stays off when muted even though status changes are
-// on: each action is its own choice.
+// on: each action is its own choice. Moving to an unstarted status is triage,
+// not handling.
func TestNotification_HandlingKeepsInbox(t *testing.T) {
queries := db.New(testPool)
@@ -1773,6 +1774,12 @@ func TestNotification_HandlingKeepsInbox(t *testing.T) {
{"completing turned off", mutedID, func(bus *events.Bus, issueID string) {
publishStatusChangeBy(bus, issueID, "done", "in_review", "member", mutedID)
}},
+ {"triage from backlog to todo", defaultID, func(bus *events.Bus, issueID string) {
+ publishStatusChangeBy(bus, issueID, "todo", "backlog", "member", defaultID)
+ }},
+ {"reopening to todo", defaultID, func(bus *events.Bus, issueID string) {
+ publishStatusChangeBy(bus, issueID, "todo", "done", "member", defaultID)
+ }},
} {
t.Run(tc.name, func(t *testing.T) {
bus := newNotificationBus(t, queries)