You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-09-17] BUG/Improvement: The Assignee row on tasks uses a different user display style than the Attendee row on expenses. #100192
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.4.66-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@dannymcclain Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Open a task with an assigned user.
View the Assignee row.
Open an expense with an attendee.
Compare the user display in the Assignee and Attendee rows.
Expected Result:
The Assignee row should use the same user pill component and styling used for users in the Attendee row on expenses.
Actual Result:
The Task Assignee row uses a different presentation from the Attendee user pill.
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
So the Assignee row never renders the pill — there is no conditional or regression, just two independent implementations.
What changes do you think we should make in order to solve the problem?
In TaskView.tsx, render the assignee with the existing UserPill component passed through titleComponent, instead of title + iconAccountID.
Import UserPill from @components/UserPill.
Replace the title, iconAccountID, iconType, avatarSize, titleStyle, isSmallAvatarSubscriptMenu, and titleWithTooltips props with a titleComponent holding a single <UserPill ... style={styles.userPillStandalone} />. UserPill already supplies the UserDetailsTooltip and SMS phone formatting, so assigneeTooltipDetails (TaskView.tsx:93-99) and styles.assigneeTextStyle become dead for this branch and should be removed.
Leave the unassigned branch (TaskView.tsx:298-308) as-is — there is no user to render.
One scoping question for the assignee of this issue: the new-task creation page renders its own Assignee row with the same plain avatar + text treatment (DynamicNewTaskPage.tsx:225-260). Should it change too, or is only the task detail view in scope?
What alternative solutions did you explore? (Optional)
Using <UserPills users={[assignee]} /> instead of a single <UserPill> would match the Attendees row literally, but the overflow / "+X more" logic is dead weight for exactly one user.
Verification and supporting evidence
Confirmed on web (dev NewDot). I created a task with an assignee and an expense with attendees and compared the two rows directly. The Assignee row renders a plain avatar next to plain text with no border or background; each attendee renders inside a bordered, rounded chip.
Task Assignee row — plain avatar + text:
Expense Attendees row — bordered user pills:
Note: Attendees only appear when the workspace is on the Control plan with Attendee tracking enabled, so reproducing the comparison needs that setup.
Why UserPill is the right target. It is default-exported, already reused outside expenses (approval workflows, travel trip details), and accepts a style override. Both attendee render sites — MoneyRequestView.tsx and AttendeeField.tsx:50-80 — go through UserPills → UserPill, so there is a single canonical pill to adopt.
Alternative explanation ruled out. This is not a plan-, permission-, or state-dependent divergence. Both code paths are unconditional, so the difference reproduces for every task with an assignee.
Related issues. A scan of open Expensify/App issues found no duplicate or closely related report.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/100192) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Please mark it as "Ready for review" when it is ready for review.
What changed:TaskView now renders the assignee as a UserPill through titleComponent, the same component the expense Attendees row uses, instead of a plain avatar + bold text. The task-only styles.assigneeTextStyle is deleted, and the hand-rolled tooltip data is gone because UserPill already provides UserDetailsTooltip and SMS phone formatting.
⚠️ Not verified in the browser. The automated web session's tab stayed blank after sign-in (0 accessibility nodes, no network activity), so I could not capture UI evidence. The change needs manual verification before the PR goes to review. I noted this in the PR body.
Details
Files changed
src/components/ReportActionItem/TaskView.tsx:276-291 — replaced title / iconAccountID / iconType / avatarSize / titleStyle / isSmallAvatarSubscriptMenu / titleWithTooltips with a titleComponent holding one <UserPill style={styles.userPillStandalone}>.
src/styles/index.ts — removed assigneeTextStyle, which had no other consumer.
Two notes for review
MenuItem derives its default accessibility label from title, so dropping title would have left the row with an empty label. I pass an explicit accessibilityLabel of "Assignee, <name>" instead — the same pattern the Attendees row uses.
Scope: only the task detail view changed. The new-task creation page renders its own Assignee row with the old avatar + text treatment (DynamicNewTaskPage.tsx:225-260). I left it alone since the issue is scoped to the detail view — say the word and I'll extend it.
AI tests run locally
Check
Result
npm run lint-changed
✅ pass
npm run typecheck
✅ pass
npm run spell-changed
✅ pass
npm run gh-actions-unused-styles
✅ pass — no unused styles
npm run react-compiler-compliance-check -- check .../TaskView.tsx
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
MelvinBot commentedon Sep 2, 2026
Proposal
What is the root cause of that problem?
The two rows were built with different
MenuItemAPIs and were never unified.The Task Assignee row passes the user as a plain
titlestring plus a separate leading avatar (src/components/ReportActionItem/TaskView.tsx:279-296) —title={getDisplayNameForParticipant(...)}+iconAccountID+titleStyle={styles.assigneeTextStyle}. That style is a task-only one-off (src/styles/index.ts:4682-4685).The expense Attendees row instead passes a rendered component:
titleComponent={<UserPills ... />}(src/components/ReportActionItem/MoneyRequestView.tsx:1500-1540), which renders each user as a borderedUserPill(src/components/UserPill.tsx).So the Assignee row never renders the pill — there is no conditional or regression, just two independent implementations.
What changes do you think we should make in order to solve the problem?
In
TaskView.tsx, render the assignee with the existingUserPillcomponent passed throughtitleComponent, instead oftitle+iconAccountID.UserPillfrom@components/UserPill.title,iconAccountID,iconType,avatarSize,titleStyle,isSmallAvatarSubscriptMenu, andtitleWithTooltipsprops with atitleComponentholding a single<UserPill ... style={styles.userPillStandalone} />.UserPillalready supplies theUserDetailsTooltipand SMS phone formatting, soassigneeTooltipDetails(TaskView.tsx:93-99) andstyles.assigneeTextStylebecome dead for this branch and should be removed.TaskView.tsx:298-308) as-is — there is no user to render.There is already a working precedent for exactly this shape (one standalone pill inside a menu item) in
ApprovalWorkflowSection.tsx:184-193, andstyles.userPillStandalone(src/styles/index.ts:6065-6098) exists for that case.One scoping question for the assignee of this issue: the new-task creation page renders its own Assignee row with the same plain avatar + text treatment (
DynamicNewTaskPage.tsx:225-260). Should it change too, or is only the task detail view in scope?What alternative solutions did you explore? (Optional)
Using
<UserPills users={[assignee]} />instead of a single<UserPill>would match the Attendees row literally, but the overflow / "+X more" logic is dead weight for exactly one user.Verification and supporting evidence
Confirmed on web (dev NewDot). I created a task with an assignee and an expense with attendees and compared the two rows directly. The Assignee row renders a plain avatar next to plain text with no border or background; each attendee renders inside a bordered, rounded chip.
Task Assignee row — plain avatar + text:
Expense Attendees row — bordered user pills:
Note: Attendees only appear when the workspace is on the Control plan with Attendee tracking enabled, so reproducing the comparison needs that setup.
Why
UserPillis the right target. It is default-exported, already reused outside expenses (approval workflows, travel trip details), and accepts astyleoverride. Both attendee render sites —MoneyRequestView.tsxandAttendeeField.tsx:50-80— go throughUserPills→UserPill, so there is a single canonical pill to adopt.Alternative explanation ruled out. This is not a plan-, permission-, or state-dependent divergence. Both code paths are unconditional, so the difference reproduces for every task with an assignee.
Related issues. A scan of open
Expensify/Appissues found no duplicate or closely related report.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/100192)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run
melvin-bot commentedon Sep 2, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @daledah (
External)melvin-bot commentedon Sep 2, 2026
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
daledah commentedon Sep 3, 2026
@MelvinBot implement this
MelvinBot commentedon Sep 3, 2026
🤖 Draft PR created: #100280
Please mark it as "Ready for review" when it is ready for review.
What changed:
TaskViewnow renders the assignee as aUserPillthroughtitleComponent, the same component the expense Attendees row uses, instead of a plain avatar + bold text. The task-onlystyles.assigneeTextStyleis deleted, and the hand-rolled tooltip data is gone becauseUserPillalready providesUserDetailsTooltipand SMS phone formatting.Details
Files changed
src/components/ReportActionItem/TaskView.tsx:276-291— replacedtitle/iconAccountID/iconType/avatarSize/titleStyle/isSmallAvatarSubscriptMenu/titleWithTooltipswith atitleComponentholding one<UserPill style={styles.userPillStandalone}>.src/styles/index.ts— removedassigneeTextStyle, which had no other consumer.Two notes for review
MenuItemderives its default accessibility label fromtitle, so droppingtitlewould have left the row with an empty label. I pass an explicitaccessibilityLabelof"Assignee, <name>"instead — the same pattern the Attendees row uses.DynamicNewTaskPage.tsx:225-260). I left it alone since the issue is scoped to the detail view — say the word and I'll extend it.AI tests run locally
npm run lint-changednpm run typechecknpm run spell-changednpm run gh-actions-unused-stylesnpm run react-compiler-compliance-check -- check .../TaskView.tsxTaskViewTranslateTest,TaskTest,TaskSearchViewTest,TaskutilsTest,findUnusedStylesTestThe unassigned branch is untouched — there is no user to render there.
view run
melvin-bot commentedon Sep 7, 2026
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
melvin-bot commentedon Sep 8, 2026
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
10 remaining items
melvin-bot commentedon Sep 16, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Sep 16, 2026
Payment Summary
Resolving PRs:
Use UserPill for the task Assignee row to match the expense Attendee row #100280
Reviewer: @daledah owed $250 via NewDot
BugZero Checklist (@mallenexpensify)
melvin-bot commentedon Sep 21, 2026
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too...
mallenexpensify commentedon Sep 22, 2026
Payment Summary
Contributor+: @daledah due $250 via NewDot
quinthar commentedon Nov 30, 2026
Approved $250 to @daledah