Skip to content

[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

Closed

Description

@m-natarajan

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


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:

  1. Open a task with an assigned user.
  2. View the Assignee row.
  3. Open an expense with an attendee.
  4. 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:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Recording.3460.mp4
Image Image

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    Daily
    Bug
    on Sep 2, 2026
  2. MelvinBot commented on Sep 2, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    The two rows were built with different MenuItem APIs and were never unified.

    The Task Assignee row passes the user as a plain title string 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 bordered UserPill (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 existing UserPill component passed through titleComponent, instead of title + iconAccountID.

    1. Import UserPill from @components/UserPill.
    2. 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.
    3. Leave the unassigned branch (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, and styles.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:

    Task Assignee row: plain avatar plus text, no pill

    Expense Attendees row — bordered user pills:

    Expense Attendees row: bordered rounded 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.


    view run

  3. added
    External
    on Sep 2, 2026
  4. melvin-bot commented on Sep 2, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @daledah (External)

  5. melvin-bot commented on Sep 2, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  6. daledah commented on Sep 3, 2026

    @daledah
    Contributor

    @MelvinBot implement this

  7. MelvinBot commented on Sep 3, 2026

    @MelvinBot
    Contributor

    🤖 Draft PR created: #100280

    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

    Two notes for review

    1. 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.
    2. 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 ✅ pass
    Jest: TaskViewTranslateTest, TaskTest, TaskSearchViewTest, TaskutilsTest, findUnusedStylesTest ✅ 100 tests passed

    The unassigned branch is untouched — there is no user to render there.


    view run

  8. added
    Reviewing
    Weekly
    and removed
    Daily
    on Sep 3, 2026
  9. melvin-bot commented on Sep 7, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  10. melvin-bot commented on Sep 8, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  11. 10 remaining items

  12. added
    Weekly
    Daily
    Awaiting Payment
    and removed
    Daily
    Weekly
    on Sep 11, 2026
  13. melvin-bot commented on Sep 16, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  14. melvin-bot commented on Sep 16, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  15. melvin-bot commented on Sep 21, 2026

    @melvin-bot

    @mallenexpensify Eep! 4 days overdue now. Issues have feelings too...

  16. mallenexpensify commented on Sep 22, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @daledah due $250 via NewDot

  17. quinthar commented on Nov 30, 2026

    @quinthar
    Contributor

    Approved $250 to @daledah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions