Files
PaperClipAI/ui
Devin FoleyandPaperclip 3884cc6df4 fix(ui): open Needs You on Assigned to you, keep saved filters (#23321)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The Coordinator Inbox (Needs You, `/decisions`) shows the decisions
and problems that wait for a person
> - #22964 made the page open on "All assignees" for a board member who
has no saved assignee choice
> - The page title and badge read as personal, so a board member sees
other people's decisions and thinks they are theirs to act on
> - This pull request opens the page on "Assigned to you" again when no
choice is saved, and keeps the saved toolbar from #22964
> - The benefit is that each person opens on their own work, and a board
member who wants the company-wide queue picks "All assignees" once and
keeps it

## Linked Issues or Issue Description

Refs #22964

**What existing behavior does this improve?**
The opening assignee filter on the Coordinator Inbox / Needs You page
(`/decisions`).

**Current behavior**
A board member with no saved assignee choice opens Needs You on "All
assignees". The page shows decisions that are for other people (for
example, a question an agent asked the person who created the task),
with no signal that the list is not personal.

**Proposed behavior**
Every person with no saved assignee choice opens Needs You on "Assigned
to you". The assignee, agent, project, and grouping choices stay saved
per company and person, as in #22964. A board member who picks "All
assignees" or one person still reopens on that choice.

**Reason and benefit**
A page named "Needs you" must open on the work that needs this person.
The saved toolbar already removes the repeated clicks that #22964 set
out to remove, so the company-wide default is not necessary.

## What Changed

- `ui/src/lib/coordinator-attention.ts`: `openingCoordinatorAssignee`
returns "Assigned to you" when no usable choice is saved, also for board
members. A saved choice that the person may open still wins.
- `ui/src/components/coordinator/CoordinatorNeedsYou.toolbar.test.tsx`:
Tests now start from "Assigned to you", prove that "All assignees"
sticks after a person picks it, and prove that the page loads the
personal feed at once when nothing is saved. The board-access wait test
now covers a saved "All assignees" choice.
- `ui/src/lib/coordinator-attention.test.ts`: Update the unit
expectations for the opening filter.
- `tests/e2e/coordinator-inbox-views.spec.ts`: Assert "Assigned to you"
on open, then pick "All assignees" and prove that it and the grouping
persist across navigation and reload.
- `doc/PRODUCT.md`: Document the opening filter and the saved choices.

## Verification

- `cd ui && npx vitest run src/components/coordinator/
src/lib/coordinator-attention.test.ts
src/hooks/useAttentionViews.test.tsx src/lib/attention-views.test.ts` →
7 files, 49 tests passed.
- RED check: with the old `everyone ? "all" : "me"` fallback restored,
13 tests in the toolbar and coordinator-attention suites fail.
- `pnpm --filter @paperclipai/ui typecheck` → pass.
- `PAPERCLIP_E2E_PORT=3257 npx playwright test --config
tests/e2e/playwright.config.ts
tests/e2e/coordinator-inbox-views.spec.ts` against a freshly built UI →
2 passed (desktop and mobile).

## Risks

- Behavioral shift: board members who relied on the #22964 default open
on "Assigned to you" until they pick "All assignees" once. After that,
the saved choice applies.
- A board member who already picked a filter keeps it. No saved data
changes.
- The classic (non-Coordinator) Decisions page is unchanged.

> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.

## Model Used

- Claude Opus 5.5 (`claude-opus-5-5`) by Anthropic, in Claude Code with
tool use, shell execution, Vitest, and Playwright.

## 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

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-11-30 14:12:46 -08:00
..
…

@paperclipai/ui

Published static assets for the Paperclip board UI.

What gets published

The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.

Storybook

Storybook config, stories, and fixtures live under ui/storybook/.

pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook

Typical use

Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.

Editor dependency identity

Keep the root and workspace overrides for @codemirror/state, @codemirror/view, and @lezer/common aligned. CodeMirror requires shared extension identity, while Lezer parsers and syntax highlighters require shared NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the installed dependency graph and highlights sample code through the editor's real language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.