Skip to content

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

Go

fix(inbox): keep the nav trigger on the phone Inbox detail (MUL-10233) (#11617)

Jiayuan Zhangaa1fa4ba08bb
diff --git a/apps/docs/content/docs/inbox.fr.mdx b/apps/docs/content/docs/inbox.fr.mdx
index 974ab27045..4c7925c85e 100644
--- a/apps/docs/content/docs/inbox.fr.mdx
+++ b/apps/docs/content/docs/inbox.fr.mdx
@@ -91,7 +91,7 @@ Une exécution d'agent autorisée utilise son identifiant d'exécution pour tout
## Traiter les notifications
-Cliquez sur une ligne pour ouvrir la notification sur la page Boîte de réception, au commentaire dont elle parle. Toutes les notifications s'ouvrent là, y compris celles sans tâche, comme les mises en pause d'automatisation et les résultats de création rapide. La ligne reste en surbrillance tant que la notification est ouverte, et un nouveau clic vous ramène à cet endroit. L'ouvrir la marque comme lue, et la ligne reste dans la liste. Dans l'en-tête de la tâche, **Ouvrir la page de la tâche** (↗) ouvre la tâche sur sa propre page, sans les actions de la boîte de réception ; sur un téléphone, la flèche de retour ramène à la liste.
+Cliquez sur une ligne pour ouvrir la notification sur la page Boîte de réception, au commentaire dont elle parle. Toutes les notifications s'ouvrent là, y compris celles sans tâche, comme les mises en pause d'automatisation et les résultats de création rapide. La ligne reste en surbrillance tant que la notification est ouverte, et un nouveau clic vous ramène à cet endroit. L'ouvrir la marque comme lue, et la ligne reste dans la liste. Dans l'en-tête de la tâche, **Ouvrir la page de la tâche** (↗) ouvre la tâche sur sa propre page, sans les actions de la boîte de réception ; sur un téléphone, le bouton à gauche de l'en-tête ouvre le tiroir pour passer à une autre notification, et revenir en arrière ramène à la liste d'où vous l'avez ouverte.
<InboxDemo />
diff --git a/apps/docs/content/docs/inbox.ja.mdx b/apps/docs/content/docs/inbox.ja.mdx
index e52b1fc904..7b9229eebd 100644
--- a/apps/docs/content/docs/inbox.ja.mdx
+++ b/apps/docs/content/docs/inbox.ja.mdx
@@ -91,7 +91,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## 通知の処理
-行をクリックすると、インボックスページでその通知が開き、対象のコメントの位置に移動します。オートパイロットの一時停止やエージェント経由の作成結果など、タスクのない通知も含め、すべての通知がここで開きます。開いている間、その行はハイライトされたままで、もう一度クリックするとその位置に戻ります。開くと通知は既読になりますが、行はリストに残ります。タスクのヘッダーの **タスクページで開く**(↗)でタスクを単独のページで開けます。そのページにはインボックスの操作は表示されません。スマートフォンでは戻る矢印でリストに戻ります。
+行をクリックすると、インボックスページでその通知が開き、対象のコメントの位置に移動します。オートパイロットの一時停止やエージェント経由の作成結果など、タスクのない通知も含め、すべての通知がここで開きます。開いている間、その行はハイライトされたままで、もう一度クリックするとその位置に戻ります。開くと通知は既読になりますが、行はリストに残ります。タスクのヘッダーの **タスクページで開く**(↗)でタスクを単独のページで開けます。そのページにはインボックスの操作は表示されません。スマートフォンでは、ヘッダー左端のボタンでドロワーを開いて別の通知に移れます。戻ると、その通知を開いたリストに戻ります。
<InboxDemo />
diff --git a/apps/docs/content/docs/inbox.ko.mdx b/apps/docs/content/docs/inbox.ko.mdx
index c399482720..5b25f28774 100644
--- a/apps/docs/content/docs/inbox.ko.mdx
+++ b/apps/docs/content/docs/inbox.ko.mdx
@@ -91,7 +91,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339, 30m, 3h, 1d, 1w; uns
## 알림 처리
-행을 클릭하면 인박스 페이지에서 그 알림이 열리고, 알림이 가리키는 댓글 위치로 이동합니다. 자동화 일시 중지나 빠른 생성 결과처럼 태스크가 없는 알림을 포함해 모든 알림이 여기서 열립니다. 열려 있는 동안 그 행은 강조된 채로 남고, 다시 클릭하면 그 위치로 돌아갑니다. 열면 알림은 읽음으로 바뀌지만 행은 목록에 그대로 남습니다. 태스크 헤더의 **태스크 페이지에서 열기**(↗)는 태스크를 별도 페이지에서 엽니다. 그 페이지에는 인박스 작업이 표시되지 않습니다. 휴대폰에서는 뒤로 화살표로 목록에 돌아갑니다.
+행을 클릭하면 인박스 페이지에서 그 알림이 열리고, 알림이 가리키는 댓글 위치로 이동합니다. 자동화 일시 중지나 빠른 생성 결과처럼 태스크가 없는 알림을 포함해 모든 알림이 여기서 열립니다. 열려 있는 동안 그 행은 강조된 채로 남고, 다시 클릭하면 그 위치로 돌아갑니다. 열면 알림은 읽음으로 바뀌지만 행은 목록에 그대로 남습니다. 태스크 헤더의 **태스크 페이지에서 열기**(↗)는 태스크를 별도 페이지에서 엽니다. 그 페이지에는 인박스 작업이 표시되지 않습니다. 휴대폰에서는 헤더 왼쪽 버튼으로 서랍을 열어 다른 알림으로 옮겨 가고, 뒤로 가면 알림을 연 목록으로 돌아갑니다.
<InboxDemo />
diff --git a/apps/docs/content/docs/inbox.mdx b/apps/docs/content/docs/inbox.mdx
index 81d53a7e53..f9bea75e65 100644
--- a/apps/docs/content/docs/inbox.mdx
+++ b/apps/docs/content/docs/inbox.mdx
@@ -91,7 +91,7 @@ An authorized agent run uses its task credential for all of this; it never falls
## Handle notifications
-Click a row to open the notification on the Inbox page, at the comment it is about. Every notification opens there, including those without an issue, such as autopilot pauses and quick-create results. The row stays lit while it is open, and clicking it again takes you back to that spot. Opening it marks the notification read, and the row stays in the list. In the issue's header, **Open issue page** (↗) opens the issue on a page of its own, without the inbox actions; on a phone, the back arrow returns to the list.
+Click a row to open the notification on the Inbox page, at the comment it is about. Every notification opens there, including those without an issue, such as autopilot pauses and quick-create results. The row stays lit while it is open, and clicking it again takes you back to that spot. Opening it marks the notification read, and the row stays in the list. In the issue's header, **Open issue page** (↗) opens the issue on a page of its own, without the inbox actions; on a phone, the button at the left of the header opens the drawer to move to another notification, and going back returns to the list you opened it from.
<InboxDemo />
diff --git a/apps/docs/content/docs/inbox.zh-Hant.mdx b/apps/docs/content/docs/inbox.zh-Hant.mdx
index 0d7812a710..5ef1bb8fcd 100644
--- a/apps/docs/content/docs/inbox.zh-Hant.mdx
+++ b/apps/docs/content/docs/inbox.zh-Hant.mdx
@@ -91,7 +91,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## 處理通知
-點選一列會在收件箱頁面開啟這則通知,並定位到它所指的評論。所有通知都在這裡開啟,包括沒有對應任務的通知,例如自動化暫停和快速建立結果。通知開著時這一列保持高亮,再點一次會重新定位到那裡。開啟通知會把它標為已讀,但這一列仍留在列表裡。任務頁首裡的**在任務頁開啟**(↗)會在單獨的任務頁開啟這個任務,那裡不顯示收件箱操作;手機上點返回箭頭回到列表。
+點選一列會在收件箱頁面開啟這則通知,並定位到它所指的評論。所有通知都在這裡開啟,包括沒有對應任務的通知,例如自動化暫停和快速建立結果。通知開著時這一列保持高亮,再點一次會重新定位到那裡。開啟通知會把它標為已讀,但這一列仍留在列表裡。任務頁首裡的**在任務頁開啟**(↗)會在單獨的任務頁開啟這個任務,那裡不顯示收件箱操作;手機上點頁首左側的按鈕可開啟抽屜切換到別的通知,返回則回到開啟它的列表。
<InboxDemo />
diff --git a/apps/docs/content/docs/inbox.zh.mdx b/apps/docs/content/docs/inbox.zh.mdx
index d95476311c..46d3192670 100644
--- a/apps/docs/content/docs/inbox.zh.mdx
+++ b/apps/docs/content/docs/inbox.zh.mdx
@@ -91,7 +91,7 @@ multica inbox snooze <id>... --until tomorrow # RFC 3339、30m、3h、1d、1w
## 处理通知
-点击一行会在收件箱页面打开这条通知,并定位到它所指的评论。所有通知都在这里打开,包括没有对应任务的通知,例如自动化暂停和快速创建结果。通知开着时这一行保持高亮,再点一次会重新定位到那里。打开通知会把它标为已读,但这一行仍留在列表里。任务页头里的**在任务页打开**(↗)会在单独的任务页打开这个任务,那里不显示收件箱操作;手机上点返回箭头回到列表。
+点击一行会在收件箱页面打开这条通知,并定位到它所指的评论。所有通知都在这里打开,包括没有对应任务的通知,例如自动化暂停和快速创建结果。通知开着时这一行保持高亮,再点一次会重新定位到那里。打开通知会把它标为已读,但这一行仍留在列表里。任务页头里的**在任务页打开**(↗)会在单独的任务页打开这个任务,那里不显示收件箱操作;手机上点页头左侧的按钮可打开抽屉切换到别的通知,返回则回到打开它的列表。
<InboxDemo />
diff --git a/packages/views/inbox/components/inbox-page-query.test.tsx b/packages/views/inbox/components/inbox-page-query.test.tsx
index 6ca7117d7f..23acb1df76 100644
--- a/packages/views/inbox/components/inbox-page-query.test.tsx
+++ b/packages/views/inbox/components/inbox-page-query.test.tsx
@@ -35,9 +35,10 @@ vi.mock("../../issues/components/issue-detail", () => ({
issueHighlightMementoKey: (issueId: string) => `highlight:${issueId}`,
}));
const replace = vi.fn();
+const push = vi.fn();
let searchParams = new URLSearchParams();
vi.mock("../../navigation", () => ({
- useNavigation: () => ({ searchParams, replace }),
+ useNavigation: () => ({ searchParams, replace, push }),
useReportNavigating: () => {},
}));
vi.mock("@multica/ui/hooks/use-mobile", () => ({ useIsCompact: () => true }));
@@ -86,6 +87,7 @@ beforeEach(() => {
} });
searchParams = new URLSearchParams();
replace.mockClear();
+ push.mockClear();
detailUnmounted.mockClear();
filterMenuUnmounted.mockClear();
useInboxFilterStore.setState({ filtersByWorkspace: {} });
diff --git a/packages/views/inbox/components/inbox-page.test.tsx b/packages/views/inbox/components/inbox-page.test.tsx
index 23442864c4..784516fd1b 100644
--- a/packages/views/inbox/components/inbox-page.test.tsx
+++ b/packages/views/inbox/components/inbox-page.test.tsx
@@ -1,7 +1,10 @@
+import type { ReactElement } from "react";
import { act, fireEvent, render, screen, within } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { toast } from "sonner";
import type { AgentTask, InboxItem } from "@multica/core/types";
+import { SidebarProvider } from "@multica/ui/components/ui/sidebar";
+import { CollapsedNavTrigger } from "../../layout/page-header";
import { useInboxFilterStore } from "@multica/core/inbox/filter-store";
import { useInboxSelectionStore } from "@multica/core/inbox/selection-store";
import { useCommandBarContextStore } from "@multica/core/command-bar";
@@ -310,6 +313,7 @@ function reset() {
queryCalls.length = 0;
searchParams = new URLSearchParams();
replace.mockClear();
+ push.mockClear();
markReadMutate.mockReset();
markUnreadMutate.mockClear();
archiveMutate.mockClear();
@@ -347,8 +351,9 @@ describe("InboxPage", () => {
const { rerender } = render(<InboxPage />);
expect(issueDetailProps.at(-1)?.highlightCommentId).toBe("c1");
rerender(<InboxPage />);
- const back = issueDetailProps.at(-1)?.leadingAction as { props: { onClick: () => void } };
- act(() => back.props.onClick());
+ // Back on the list: the system back gesture, or the nav sheet's link to it.
+ searchParams = new URLSearchParams();
+ rerender(<InboxPage />);
expect(screen.queryByTestId("issue-detail")).toBeNull();
fireEvent.click(screen.getByTestId("row"));
expect(issueDetailProps.at(-1)?.highlightCommentId).toBe("c2");
@@ -898,44 +903,64 @@ describe("InboxPage", () => {
render(<InboxPage />);
fireEvent.click(screen.getByTestId("row"));
- expect(replace).toHaveBeenCalledWith("/acme/inbox?view=archived&issue=issue-9");
+ expect(push).toHaveBeenCalledWith("/acme/inbox?view=archived&issue=issue-9");
});
- it("writes a bare issue param when selecting in the main view", () => {
+ // The phone detail's header holds the nav trigger, not a way back, so the
+ // opening has to be a history entry for the back gesture to return to the list.
+ it("opens a phone row as a history entry with a bare issue param", () => {
reset();
listData.active = [item({ id: "active-1", issue_id: "issue-3" })];
render(<InboxPage />);
fireEvent.click(screen.getByTestId("row"));
- expect(replace).toHaveBeenCalledWith("/acme/inbox?issue=issue-3");
+ expect(push).toHaveBeenCalledWith("/acme/inbox?issue=issue-3");
+ expect(replace).not.toHaveBeenCalled();
+ expect(screen.getByTestId("issue-detail")).toHaveTextContent("issue-3");
+ });
+
+ it("hands a phone issue detail the nav trigger for every state it draws", () => {
+ reset();
+ searchParams = new URLSearchParams("issue=issue-1");
+ listData.active = [item()];
+ const { unmount } = render(<InboxPage />);
+ // The loading and not-found states draw only this slot, so it carries the
+ // nav, never a way back that would lock the nav sheet out (MUL-10233).
+ expect((issueDetailProps.at(-1)?.leadingAction as ReactElement).type).toBe(CollapsedNavTrigger);
+ unmount();
+
+ reset();
+ layout.width = DESKTOP;
+ searchParams = new URLSearchParams("issue=issue-1");
+ listData.active = [item()];
+ render(<InboxPage />);
+ expect(issueDetailProps.at(-1)?.leadingAction).toBeUndefined();
});
// `InboxItem.issue_id` is nullable: a quick-create outcome is a notification,
// not an issue, so `IssueDetail` never renders for it — and `IssueDetail` is
- // what carries the way back in its own header on a phone. This branch has to
- // supply its own bar or opening one of these is a dead end.
- it("keeps a way back to the list for a notification with no issue", () => {
+ // what carries the nav trigger in its own header on a phone. This branch has
+ // to supply its own header or opening one of these is a dead end.
+ it("keeps the nav reachable for a notification with no issue", () => {
reset();
listData.active = [
item({ id: "inbox-note", issue_id: null, type: "quick_create_failed" }),
];
- render(<InboxPage />);
+ render(
+ <SidebarProvider>
+ <InboxPage />
+ </SidebarProvider>,
+ );
fireEvent.click(screen.getByTestId("row"));
// Mobile swaps the list out for the detail, so the row is gone…
expect(screen.queryByTestId("row")).toBeNull();
- // …and the only thing that can bring it back is the bar this branch adds.
- // Located structurally: the test's `useT` returns one string for every key,
- // so every button in this detail shares an accessible name.
- const back = document.querySelector<HTMLButtonElement>(".h-12.border-b button");
- expect(back).not.toBeNull();
-
- fireEvent.click(back!);
-
- expect(screen.getByTestId("row")).toBeInTheDocument();
+ // …and the header this branch adds keeps the way to the nav sheet.
+ const header = document.querySelector("[data-mc='page-header']");
+ expect(header?.querySelector("[data-sidebar='trigger']")).not.toBeNull();
});
it("retries a failed quick-create with its original source context", async () => {
diff --git a/packages/views/inbox/components/inbox-page.tsx b/packages/views/inbox/components/inbox-page.tsx
index 30b0180f1c..a9129fa6c1 100644
--- a/packages/views/inbox/components/inbox-page.tsx
+++ b/packages/views/inbox/components/inbox-page.tsx
@@ -68,7 +68,6 @@ import {
ArchiveRestore,
BookCheck,
ListChecks,
- ArrowLeft,
AlarmClock,
} from "@multica/ui/icons";
import type { InboxItem } from "@multica/core/types";
@@ -88,8 +87,7 @@ import {
DropdownMenuSeparator,
} from "@multica/ui/components/ui/dropdown-menu";
import { useIsCompact } from "@multica/ui/hooks/use-mobile";
-import { cn } from "@multica/ui/lib/utils";
-import { CollapsedNavTrigger, PAGE_GUTTER, PageHeader } from "../../layout/page-header";
+import { CollapsedNavTrigger, PageHeader } from "../../layout/page-header";
import { PanelHeader } from "../../layout/panel-nav";
import { InboxArchiveAllDialog } from "./inbox-archive-all-dialog";
import { InboxDeleteDialog } from "./inbox-delete-dialog";
@@ -388,6 +386,18 @@ export function InboxPage() {
replace(inboxTabHref(wsPaths, tab, key));
}, [replace, wsPaths, tab]);
+ // A phone opens a row in place of its list, and the detail's header holds
+ // the nav trigger rather than a way back, so the opening is a history entry:
+ // the system back gesture is what returns to the list.
+ const openFromList = useCallback((key: string) => {
+ if (!isCompact) {
+ setSelectedKey(key);
+ return;
+ }
+ setSelectedKeyState(key);
+ push(inboxTabHref(wsPaths, tab, key));
+ }, [isCompact, setSelectedKey, push, wsPaths, tab]);
+
// Switching tabs always clears the selection: the lists are mutually
// exclusive, so a key carried across would never resolve, and the fallback
// effect below would bounce the user to the issue page.
@@ -592,7 +602,7 @@ export function InboxPage() {
writeViewState(issueHighlightMementoKey(item.issue_id), undefined);
if (nextKey === selectedKey) setHighlightRequestToken((t) => t + 1);
}
- setSelectedKey(nextKey);
+ openFromList(nextKey);
};
// The comment a notification opens at is chosen once per opening or
@@ -954,7 +964,7 @@ export function InboxPage() {
/>
</div>
) : (
- <SnoozedInboxList wsId={wsId} rows={snoozed.rows} selectedKey={selectedKey} onSelect={setSelectedKey} />
+ <SnoozedInboxList wsId={wsId} rows={snoozed.rows} selectedKey={selectedKey} onSelect={openFromList} />
)
) : isArchivedView && archivedError ? (
<div className="flex-1 min-h-0 overflow-y-auto">
@@ -1052,31 +1062,17 @@ export function InboxPage() {
</>
);
- // Compact widths only: the detail fills the screen there, so the trip back to
- // the list has to live inside it. On desktop the list is still on screen in
- // the left panel and needs no back control at all.
- //
- // The detail owns the whole compact screen in four states — loaded, loading,
- // not-found and crashed — so this control is threaded into all four below.
- // Miss one and that state strands the reader with no way out.
- const compactBackAction = isCompact ? (
- <Button
- variant="ghost"
- size="sm"
- onClick={() => setSelectedKey("")}
- className="-ml-2 shrink-0 gap-1.5 text-muted-foreground"
- >
- <ArrowLeft className="h-4 w-4" />
- {/* Back goes to the list the user came FROM, so the label has to
- name it — "Inbox" here would be a lie about the destination. */}
- {tab === "inbox" ? t(($) => $.page.back) : tabLabel}
- </Button>
- ) : undefined;
-
- const compactBackBar = compactBackAction ? (
- <div className={cn("flex h-12 shrink-0 items-center gap-2 border-b", PAGE_GUTTER)}>
- {compactBackAction}
- </div>
+ // Compact widths only: the detail fills the screen there, and its leading
+ // slot is the nav trigger, as on every other page. The nav sheet holds the
+ // Work panel's Inbox section with the open row lit, so that is the way to
+ // the next notification; a "back to the list" control in its place left the
+ // sheet unreachable from the detail (MUL-10233). `IssueDetail` brings its
+ // own header; the states drawn here (a notification with no issue, and a
+ // crashed detail) need this one or they strand the reader with no nav.
+ const compactHeader = isCompact ? (
+ <PageHeader>
+ <h1 className="truncate text-body font-semibold">{tabLabel}</h1>
+ </PageHeader>
) : null;
// A notification without an issue that left the Inbox on its own: say so
@@ -1121,11 +1117,11 @@ export function InboxPage() {
<ErrorBoundary
resetKeys={[detailIssueId]}
// The default fallback is a bare message card. On a phone it would be the
- // only thing on screen, so it has to carry the way back too — the bar is
+ // only thing on screen, so it has to carry the nav too — the header is
// the point here, the message is whatever the boundary caught.
- fallback={compactBackAction ? ({ error }) => (
+ fallback={compactHeader ? ({ error }) => (
<div className="flex flex-1 min-h-0 flex-col">
- {compactBackBar}
+ {compactHeader}
<div className="flex flex-1 min-h-0 items-center justify-center px-4 text-center text-body text-muted-foreground">
{error.message}
</div>
@@ -1155,7 +1151,9 @@ export function InboxPage() {
// The inbox reads the row it selected itself (see the auto-read
// effect above), and must keep a row marked unread while it is open.
readsInbox={false}
- leadingAction={compactBackAction}
+ // The loaded header falls back to the trigger by itself; the loading
+ // and not-found states draw only what they are handed.
+ leadingAction={isCompact ? <CollapsedNavTrigger /> : undefined}
inbox={inboxHost(detailIssueId)}
onDelete={() => {
// Issue deletion CASCADE-deletes the inbox item server-side, and the
@@ -1382,8 +1380,8 @@ export function InboxPage() {
// differently — `InboxItem.issue_id` is nullable and a null one is a plain
// notification (a failed quick-create, say), not an issue.
if (detailIssueId) {
- // No scroll container and no back bar of our own: `IssueDetail` owns
- // both, and takes the way back through `leadingAction`. Wrapping it in
+ // No scroll container and no header of our own: `IssueDetail` owns
+ // both, and its header keeps the nav trigger. Wrapping it in
// an `overflow-y-auto` used to collapse its inner scroller to content
// height, which took its header (and the done/pin/more/sidebar actions
// in it) out of the pinned position, made `position: sticky` inside it a
@@ -1394,11 +1392,11 @@ export function InboxPage() {
}
if (detailItem) {
- // A notification body is a plain block with no header to host a leading
- // slot and no scroller of its own, so this branch keeps supplying both.
+ // A notification body is a plain block with no header of its own and no
+ // scroller of its own, so this branch keeps supplying both.
return (
<div className="relative flex flex-1 flex-col min-h-0">
- {compactBackBar}
+ {compactHeader}
<div className="flex-1 min-h-0 overflow-y-auto">{detailContent}</div>
</div>
);
diff --git a/packages/views/issues/components/issue-detail.tsx b/packages/views/issues/components/issue-detail.tsx
index 6036034693..9b404580fa 100644
--- a/packages/views/issues/components/issue-detail.tsx
+++ b/packages/views/issues/components/issue-detail.tsx
@@ -1141,11 +1141,11 @@ interface IssueDetailProps {
* into view and flashes, replayed by `highlightRequestToken`. */
highlightAppRequestId?: string;
/**
- * Far-left header slot, replacing the mobile sidebar trigger. A host that
- * embeds this detail one level deep (the inbox, on a phone) passes its own
- * "back" control here instead of stacking a second 48px bar above us — the
- * breadcrumb this header already renders names the issue's container, not
- * the surface the reader arrived from, so only the host can spell that trip.
+ * Far-left header slot, replacing the mobile sidebar trigger. Only the
+ * loaded header falls back to that trigger; the loading and not-found states
+ * draw just this slot, so a host that hands its whole screen to this detail
+ * (the inbox, on a phone) passes the trigger here to keep the nav reachable
+ * in every state.
*/
leadingAction?: ReactNode;
/**
@@ -1209,10 +1209,10 @@ export function IssueNotFound({
}: {
showBackLink?: boolean;
/**
- * Host-supplied way back, mirrored from `IssueDetailProps.leadingAction`. A
- * host that hands its whole screen to this component (the inbox, on a phone)
- * has no bar of its own left, so this state has to carry the trip back or
- * there is none.
+ * Host-supplied leading control, mirrored from `IssueDetailProps.leadingAction`.
+ * A host that hands its whole screen to this component (the inbox, on a
+ * phone) has no bar of its own left, so this state has to carry the nav
+ * trigger or there is none.
*/
leading?: ReactNode;
/** Host controls at the end of the bar — the side peek's close button. */
@@ -1338,9 +1338,9 @@ export function IssueDetailSkeleton({
return (
<div className="flex flex-1 min-h-0 flex-col">
- {/* The way back is real from the first frame, not once the issue lands:
- a host that gave up its own bar for `leadingAction` has nothing else
- to offer while this skeleton owns the screen. */}
+ {/* The host's leading control is real from the first frame, not once
+ the issue lands: a host that gave up its own bar for `leadingAction`
+ has nothing else to offer while this skeleton owns the screen. */}
<DetailStateBar trailing={trailing}>
{leading ?? (
inboxItem?.issue_identifier ? (
diff --git a/packages/views/layout/page-header.tsx b/packages/views/layout/page-header.tsx
index 9d8605bfcd..81e8075407 100644
--- a/packages/views/layout/page-header.tsx
+++ b/packages/views/layout/page-header.tsx
@@ -127,13 +127,13 @@ export function usePageHeaderTitleBar(): {
interface PageHeaderProps {
children: React.ReactNode;
/**
- * Replaces the mobile sidebar trigger at the far left.
+ * Replaces the mobile sidebar trigger at the far left; `false` leaves the
+ * slot empty.
*
- * For a surface a phone reaches by drilling in rather than by navigating —
- * the inbox's issue detail — "go back" is the leading affordance that
- * matters, and the sidebar is still one step away behind it. Rendering both
- * would spend two of the header's 48px on navigation chrome and leave the
- * title nothing to truncate into.
+ * Replacing it takes the nav away from a phone on this screen, so only a
+ * surface whose own chrome still reaches the nav should. A drill-in detail
+ * is not one: a "back to the list" here locks the reader out of the nav
+ * sheet, which is where the Inbox's list lives (MUL-10233).
*/
leading?: React.ReactNode;
className?: string;
diff --git a/packages/views/locales/en/inbox.json b/packages/views/locales/en/inbox.json
index e34f9a9a7d..1e5061e65e 100644
--- a/packages/views/locales/en/inbox.json
+++ b/packages/views/locales/en/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "Inbox",
- "back": "Inbox"
+ "title": "Inbox"
},
"menu": {
"mark_all_read": "Mark all as read",
diff --git a/packages/views/locales/es/inbox.json b/packages/views/locales/es/inbox.json
index eb63f57a92..016faf4364 100644
--- a/packages/views/locales/es/inbox.json
+++ b/packages/views/locales/es/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "Bandeja de entrada",
- "back": "Bandeja de entrada"
+ "title": "Bandeja de entrada"
},
"menu": {
"mark_all_read": "Marcar todo como leído",
diff --git a/packages/views/locales/fr/inbox.json b/packages/views/locales/fr/inbox.json
index d4d87aff06..1c14a64458 100644
--- a/packages/views/locales/fr/inbox.json
+++ b/packages/views/locales/fr/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "Boîte de réception",
- "back": "Boîte de réception"
+ "title": "Boîte de réception"
},
"menu": {
"mark_all_read": "Tout marquer comme lu",
diff --git a/packages/views/locales/ja/inbox.json b/packages/views/locales/ja/inbox.json
index fd266eba93..0c8c42e89a 100644
--- a/packages/views/locales/ja/inbox.json
+++ b/packages/views/locales/ja/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "インボックス",
- "back": "インボックス"
+ "title": "インボックス"
},
"menu": {
"mark_all_read": "すべて既読にする",
diff --git a/packages/views/locales/ko/inbox.json b/packages/views/locales/ko/inbox.json
index ae2ee81914..cad574d1c3 100644
--- a/packages/views/locales/ko/inbox.json
+++ b/packages/views/locales/ko/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "인박스",
- "back": "인박스"
+ "title": "인박스"
},
"menu": {
"mark_all_read": "모두 읽음으로 표시",
diff --git a/packages/views/locales/ru/inbox.json b/packages/views/locales/ru/inbox.json
index 27d9241f70..6866218456 100644
--- a/packages/views/locales/ru/inbox.json
+++ b/packages/views/locales/ru/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "Входящие",
- "back": "Входящие"
+ "title": "Входящие"
},
"menu": {
"mark_all_read": "Отметить всё как прочитанное",
diff --git a/packages/views/locales/zh-Hans/inbox.json b/packages/views/locales/zh-Hans/inbox.json
index fd2ab1b664..7ec218055d 100644
--- a/packages/views/locales/zh-Hans/inbox.json
+++ b/packages/views/locales/zh-Hans/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "收件箱",
- "back": "收件箱"
+ "title": "收件箱"
},
"menu": {
"mark_all_read": "全部标为已读",
diff --git a/packages/views/locales/zh-Hant/inbox.json b/packages/views/locales/zh-Hant/inbox.json
index e322c3b6e9..ab2e6d894e 100644
--- a/packages/views/locales/zh-Hant/inbox.json
+++ b/packages/views/locales/zh-Hant/inbox.json
@@ -1,7 +1,6 @@
{
"page": {
- "title": "收件箱",
- "back": "收件箱"
+ "title": "收件箱"
},
"menu": {
"mark_all_read": "全部標為已讀",