Repository navigation
Description
Context
The request asks for one specific visual treatment: "The visualisation of assigned users should be ascetic and similar to github (avatar + username)." That same treatment is needed in at least six places - the Tasks ledger row, the mobile task card, the task detail header, the Plans list, the Goals queue and the Automations list - plus the to-do items. Building it once and reusing it is what makes the result consistent; building it per surface is how six slightly different avatar sizes appear.
The repository already has the right primitive. propr-ui/src/components/UserAvatar.tsx renders an avatar with an accessible initials fallback when the image fails, and GitHubAccountIdentity.tsx already pairs it with @username for the desktop account row. This task generalises that pairing into a reusable component with the density variants the different surfaces need, and adds the API client the next two tasks call.
This task adds no behaviour to any page. It is the component and the client, with unit tests, so the two UI tasks that follow stay small.
Requirements
- Add
propr-ui/src/components/AssigneeList.tsxexporting:AssigneeChip- oneavatar + @loginpair, built onUserAvatar.AssigneeList- a bounded row of chips with a+Noverflow marker and a tooltip naming everyone.AssigneeStack- avatars only, overlapped, for dense table cells.UnassignedMarker- the quiet em-dash placeholder that keeps a column aligned.
- Three density variants, matching the existing conventions:
compact(14px avatar, login hidden belowsm),default(18px),prominent(24px, for the detail header). - Accessibility: the list is a
role="list", each chip has an accessible name of the formAssigned to @login, the overflow marker names the hidden users, and avatars are decorative because the login is already text beside them. - Visual restraint, per the request: no coloured pill backgrounds, no borders by default, monospace login at
text-xsin slate, matching the repository chip and reference chip treatment already used in the ledger. - Add
propr-ui/src/api/taskAssignment.tswithgetTaskAssignees,setTaskAssigneesandgetAssignableUsers, usingapiFetch/handleApiResponse, and re-export throughproprApi.ts. - Add
assignees?: AttributedUser[]to the UITasktypes inpropr-ui/src/api/tasks.tsandpropr-ui/src/components/TaskList/types.ts, and passassigneethroughGetTasksOptionsinproprTypes.ts/proprApi.ts. - Vitest tests covering the fallback path, overflow, accessible names, the unassigned marker and the client's URL encoding.
Implementation Specification
Files added
propr-ui/src/components/AssigneeList.tsxpropr-ui/src/api/taskAssignment.tspropr-ui/src/components/AssigneeList.test.tsx
Files modified
propr-ui/src/api/proprApi.ts- re-export the new client module.propr-ui/src/api/proprTypes.ts- addassigneetoGetTasksOptions.propr-ui/src/api/tasks.ts- addassigneestoTaskandassigneetoListTasksOptions.propr-ui/src/components/TaskList/types.ts- addassigneesto the listTasktype.
Step-by-step
- Write
AssigneeList.tsx. KeepUserAvataras the only image path so the initials fallback and theuser.idkeyed image reset are inherited rather than reimplemented. - Cap the rendered chips at the variant's limit and render the remainder as
+N, with the hidden logins in thetitleso nothing is unreachable. - Write the API client. Encode
taskIdwithencodeURIComponent, matching every other task client call. - Thread the types through, leaving
assigneesoptional so an older server response still type-checks. - Add the test file.
Acceptance Criteria
npm run typecheckandnpm run lintpass forpropr-ui.AssigneeChiprenders the avatar and@login; when the avatar image fails to load it falls back to two-letter initials and stays accessible.AssigneeListwith more assignees than the variant's limit renders exactly the limit plus one+Nmarker, and the marker's tooltip names every hidden login.AssigneeListwith an empty array renders theUnassignedMarker, not an empty element, so table columns stay aligned.- Each chip exposes an accessible name of the form
Assigned to @octocat. - In the
compactvariant the login text is hidden below thesmbreakpoint while the avatar stays visible, and the accessible name is unchanged. getTaskAssignees,setTaskAssigneesandgetAssignableUserscall the expected paths with the task id percent-encoded.- No page renders differently in this change: the component is added but not yet mounted anywhere.
Created by ProPR AI Planner
Activity
propr-dev commentedon Oct 8, 2026
Suggested Implementation:
Implementation Approach
The brief is explicit about the visual target: ascetic, GitHub-like, avatar plus username. GitHub's own treatment is a small round avatar with the login in plain text, no pill, no colour. The existing ledger already speaks that language -
TaskRepositoryrenders a bare monospace repo name and the comment there explains why a chip was rejected ("a chip around it only stacks identical bubbles down the list"). Assignees follow the same rule.Rather than a new avatar implementation, this builds on
UserAvatar, which already solves the two things that actually break in practice: a GitHub avatar URL that 404s after an account change, and an image that must be rebuilt when the identity changes (itskeyincludesuser.id). Reimplementing that would mean reimplementing those bugs.Three variants exist because the surfaces have genuinely different budgets, not for configurability's sake:
compactfor the ledger cell and the mobile card, where the row is two fixed lines and there is no room for a login on a phone. The login is hidden withmax-sm:hiddenrather than removed, so the accessible name is unchanged and a screen reader still announces it.defaultfor list rows with room for text.prominentfor the detail header, where assignment is a primary fact rather than metadata.An alternative was to render only avatars everywhere and put logins in tooltips. Rejected: the request explicitly asks for "avatar + username", and a tooltip-only login is unreachable by keyboard and invisible on touch.
Overflow is bounded per variant with a
+Nmarker whosetitlenames the hidden logins. Rendering every assignee would let a task with ten assignees reflow a table row, which the ledger's fixed column widths exist to prevent.The empty state renders a visible em-dash rather than nothing, matching
TaskAgentandTaskScorein the same table: an empty cell reads as a rendering bug, and a dash reads as "nobody".File:
propr-ui/src/components/AssigneeList.tsx(new file)Why this file: one component for all six surfaces is what makes the treatment consistent. It is built on
UserAvatarso the image-failure fallback and the identity-keyed image reset are inherited, and it owns the overflow rule so a task with many assignees cannot reflow the ledger's fixed columns.File:
propr-ui/src/api/taskAssignment.ts(new file)Why this file: keeps the three assignment calls together and separate from
tasks.ts, which is already the list/stop/delete client. The task detail editor and the Tasks filter both import from here, so the encoding rule lives in one place.File:
propr-ui/src/api/proprApi.tsWhy this file: the facade every page imports from. Re-exporting keeps assignment consistent with how
tasks,goalsand the other domain clients are reached.The list query needs to carry the filter:
@@ in getTasksRequest if (options.groupBy) params.append('groupBy', options.groupBy); if (options.task) params.append('task', options.task); + // Only sent when set, so an unfiltered request is byte-identical to before + // and cannot invalidate a shared in-flight read. + if (options.assignee) params.append('assignee', options.assignee);File:
propr-ui/src/api/proprTypes.tsWhy this file:
GetTasksOptionsis the shape the facade'sgetTasksaccepts, so the filter has to be declared here for callers to pass it.File:
propr-ui/src/api/tasks.tsWhy this file: the typed
/api/tasksclient.assigneesis optional so a response from an older server still type-checks during a rolling deploy.@@ in listTasks, beside the other optional params if (options.excludeMerged) { params.set('excludeMerged', 'true'); } + if (options.assignee) { + params.set('assignee', options.assignee); + }File:
propr-ui/src/components/TaskList/types.tsWhy this file: the list components read this
Tasktype rather than the client one, so the ledger cannot render assignees until it is declared here.File:
propr-ui/src/components/AssigneeList.test.tsx(new file)Why this file: the failure modes worth pinning are the ones a happy-path render hides - a broken avatar URL, an assignee list longer than the row can hold, and the compact variant's visually hidden login. Each has a specific regression: an empty box, a reflowed table row, and an avatar a screen reader cannot name.
propr-dev commentedon Oct 9, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-52892/claude-opus-5-5-add-the-shared-assigneeli-20261009-0509-0dw2888-epic-task-assignment-1m4issue-2892-20261009-0509-claude-opus-5-5-0dw🔍 Track Task Execution