From 4e1d49067c04f2b2cb22518d04f3c63c02a39426 Mon Sep 17 00:00:00 2001 From: Tonio Date: Mon, 23 Nov 2026 13:32:14 -0800 Subject: [PATCH] Align Inbox, Tasks and Audit toolbar controls (#22675) ## Thinking Path > - Paperclip helps people manage agents and tasks. > - Operators switch between Tasks, Inbox, and Audit to review work. > - Inconsistent menus and shifting controls make those pages harder to use. > - Shared dropdown components keep the controls familiar. > - This change aligns the menus and keeps room for both Audit descriptions. ## Linked Issues or Issue Description **What happened?** Inbox used native dropdowns. Menus could touch the edge of a phone screen. The Audit scope control moved when its description wrapped. **Expected behavior** Menus keep at least 8px of clearance. Switching Audit scope preserves the control position. **Steps to reproduce** Open each Inbox filter and the Tasks view and filter menus at 320px and 390px. Switch between Activity and Agent Actions on Audit. ## What Changed - Use Tasks-style menus and shorter filter labels in Inbox. - Give Inbox and Tasks menus 8px of collision padding. - Align Audit segments and reserve space for the taller scope description. ## Verification - All 129 tests across the Inbox, Audit feed, Tasks page and filter suites passed after rebase at 88a68f9594. - Before rebase, browser checks covered mobile menu clearance and Audit scope switching at 320px and 390px. ## Risks Inbox filters now use keyboard-navigable menu buttons. This changes how assistive technology announces the controls. ## Model Used OpenAI Codex (GPT-6), with local code execution and browser verification. ## 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 - [ ] 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 --------- Co-authored-by: Paperclip --- tests/e2e/coordinator-inbox-views.spec.ts | 2 +- ui/src/components/IssueFiltersPopover.tsx | 1 + ui/src/components/TaskListToolbar.tsx | 2 +- ui/src/components/TaskViewsMenu.tsx | 2 +- .../coordinator/CoordinatorNeedsYou.test.tsx | 65 +++++++++------- .../coordinator/CoordinatorNeedsYou.tsx | 77 ++++++++++++++----- ui/src/index.css | 9 ++- ui/src/pages/audit/AuditFeed.tsx | 33 ++++---- 8 files changed, 124 insertions(+), 67 deletions(-) diff --git a/tests/e2e/coordinator-inbox-views.spec.ts b/tests/e2e/coordinator-inbox-views.spec.ts index f07082e37fb..f7b52a9a9ff 100644 --- a/tests/e2e/coordinator-inbox-views.spec.ts +++ b/tests/e2e/coordinator-inbox-views.spec.ts @@ -93,7 +93,7 @@ for (const mobile of [false, true]) test(`Mine retains Inbox behavior inside Tas await page.getByRole("link", { name: "Inbox", exact: true }).click(); const inbox = page.getByRole("region", { name: "Needs You", exact: true }); await expect(inbox.getByRole("toolbar", { name: "Decisions controls" })).toBeVisible(); - await expect(inbox.getByLabel("Filter decisions by assignee")).toHaveValue("me"); + await expect(inbox.getByRole("button", { name: "Filter decisions by assignee, Assigned to you", exact: true })).toBeVisible(); } } finally { await request.put(preferencePath, { data: { coordinatorWorkspaceEnabled: preferences.coordinatorWorkspaceEnabled } }); diff --git a/ui/src/components/IssueFiltersPopover.tsx b/ui/src/components/IssueFiltersPopover.tsx index 4c1733d30f6..03fe86b1565 100644 --- a/ui/src/components/IssueFiltersPopover.tsx +++ b/ui/src/components/IssueFiltersPopover.tsx @@ -208,6 +208,7 @@ export function IssueFiltersPopover({ {viewControl ?? - + Views onViewChange(value as TaskListView)}> {viewOptions.map(option => {option.label})} diff --git a/ui/src/components/TaskViewsMenu.tsx b/ui/src/components/TaskViewsMenu.tsx index 4a53c0232d0..23a0218fed7 100644 --- a/ui/src/components/TaskViewsMenu.tsx +++ b/ui/src/components/TaskViewsMenu.tsx @@ -42,7 +42,7 @@ export function TaskViewsMenu({