From 054b4e1395b7f246e2c18d222b701595daf5522b Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Fri, 4 Dec 2026 15:12:42 -0800 Subject: [PATCH] fix(ui): remove the Needs you description from the Inbox header (#23781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The Inbox shows the decisions that need a person, in the "Needs you" folder > - The Inbox header shows a line under the folder tabs: "Review open requests and decide what happens next." > - This line does not give new information. It adds noise to the header. > - This pull request removes that line from the "Needs you" folder only > - The benefit is a cleaner Inbox header. Waiting and History keep their helpful descriptions. ## Linked Issues or Issue Description **Is your feature request related to a problem? Please describe.** The Inbox header shows the text "Review open requests and decide what happens next." under the folder tabs. The text repeats what the "Needs you" tab already says. **Describe the solution you'd like** Remove the text from the "Needs you" folder. Do not show an empty paragraph. **Describe alternatives you've considered** Remove the descriptions of all folders. We did not do this, because the Waiting and History descriptions explain what those folders contain. ## What Changed - `CoordinatorNeedsYou.tsx`: the "Needs you" folder has no description. The description field is now optional, and the header shows the paragraph only when the folder has a description. - `CoordinatorNeedsYou.toolbar.test.tsx`: the test checks that "Needs you" shows no description and that "Waiting" still shows its description. ## Verification - `cd ui && npx vitest run src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx` — 13/13 pass. - Red-green: with the old component, the new assertion fails (`expected 'Review open requests and decide what …' to be null`). With the fix, it passes. - `cd ui && npx tsc --noEmit -p .` reports no errors in the changed files. ## Risks - Low risk. This is a text-only UI change in one component. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`), via Claude Code with tool use and code execution. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: devinfoley <139239+devinfoley@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- .../coordinator/CoordinatorNeedsYou.toolbar.test.tsx | 3 +++ ui/src/components/coordinator/CoordinatorNeedsYou.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx b/ui/src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx index 2a210747810..f26886054ca 100644 --- a/ui/src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx +++ b/ui/src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx @@ -361,12 +361,15 @@ describe("Needs You keeps its toolbar between visits", () => { await vi.waitFor(() => expect(assignee().value).toBe("me")); await choose("Filter decisions by assignee", "Dotta"); await vi.waitFor(() => expect(cards()).toEqual(["dottas"])); + const folderDescription = () => container.querySelector("[data-inbox-folders] p")?.textContent ?? null; + expect(folderDescription()).toBeNull(); await choose("Filter decisions by agent", "Chief of Staff"); await choose("Filter decisions by project", "Website"); const waitingTab = [...container.querySelectorAll('[aria-label="Inbox views"] button')].find((button) => button.textContent?.startsWith("Waiting"))!; await act(async () => waitingTab.click()); await flush(); await vi.waitFor(() => expect(cards()).toEqual(["waiting-1"])); + expect(folderDescription()).toContain("snoozed"); const needsTab = [...container.querySelectorAll('[aria-label="Inbox views"] button')].find((button) => button.textContent === "Needs you")!; await act(async () => needsTab.click()); await flush(); diff --git a/ui/src/components/coordinator/CoordinatorNeedsYou.tsx b/ui/src/components/coordinator/CoordinatorNeedsYou.tsx index d95ea82fabf..3264fa2249c 100644 --- a/ui/src/components/coordinator/CoordinatorNeedsYou.tsx +++ b/ui/src/components/coordinator/CoordinatorNeedsYou.tsx @@ -50,11 +50,11 @@ import { CoordinatorNeedsYouSidePanel, needsYouReviewTab, needsYouReviewTabId, n import { ANALYTICS_MASK_CLASS } from "@/lib/analytics/privacy"; import { cn } from "@/lib/utils"; -const inboxFolders = [ - { value: "needs", label: "Needs you", description: "Review open requests and decide what happens next." }, +const inboxFolders: ReadonlyArray<{ value: "needs" | "waiting" | "history"; label: string; description?: string }> = [ + { value: "needs", label: "Needs you" }, { value: "waiting", label: "Waiting", description: "See what you’ve snoozed and which tasks are waiting for an automatic retry." }, { value: "history", label: "History", description: "Look back at past decisions and see what happened to failed runs." }, -] as const; +]; /** Rule 7: a card that cannot answer inline links to the exact control, named by its verb. */ function openLabel(item: AttentionItem) { @@ -437,7 +437,7 @@ export function CoordinatorNeedsYou() { return ; })} - {activeFolder &&

{activeFolder.description}

} + {activeFolder?.description &&

{activeFolder.description}

} ; const receipts = feed.data?.receipts ?? []; if (historyOpen) return