Repository navigation
Use UserPill for the task Assignee row to match the expense Attendee row - #100280
Conversation
Co-authored-by: daledah <daledah@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
🤖 Android test steps verification results: Task Assignee row correctly renders as a bordered UserPill (avatar + name) with the "Assignee" label above it, and tapping it opens the assignee picker; an assignee-less task also renders cleanly with no pill and no errors. Could not verify parity against an expense's attendees pill because the mobile "More features" screen has no visible Rules/Attendee-tracking toggle to enable, even after upgrading the test workspace to Control plan.
|
|
🤖 Web test steps verification results: ✅ pass Verified on dev NewDot web: the task detail Assignee row now renders the assignee as a bordered, rounded UserPill (avatar + name), matching the Attendees pill style on a Control-workspace expense with attendee tracking. The Assignee label still appears above the pill, clicking it still opens assignee selection, and a task with no assignee renders the empty row cleanly with no pill and no errors.
Console errors: none observed. JS console inspection is not supported by the web driver, but a network dump of the session showed no 4xx/5xx responses during any of the task or expense flows exercised. |
|
@MelvinBot please open this PR |
|
Done — this PR is now ready for review. Two things still need you before a reviewer picks it up:
All CI checks pass except |
|
We might just want to verify that we have the hover tooltip. |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
Agree! Should we run a build? Otherwise this is looking good to me. |
|
Yeah, I will run it 🚀! |
|
🚧 shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Maybe just for the assignee row on the confirmation page, but don't touch the share location (since that could be a workspace chat or a chat room, etc) |
Agree! But otherwise seems good to me |
Reviewer Checklist
Screenshots/VideosiOS: HybridAppScreen.Recording.2026-09-08.at.01.43.29.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / SafariScreen.Recording.2026-09-08.at.16.17.08.mov |
|
@shawnborton @dannymcclain you guys wanna review the latest video of each devices posted here? Once you guys confirm it looks good feel free to merge the PR. |
|
@MelvinBot please update to fix this issue |
|
@MelvinBot please merge main and complete your checklist |
…ckup Co-authored-by: daledah <daledah@users.noreply.github.com>
|
There is nothing to fix in the code — the one failing check is a human-approval gate, not a test failure.
No one has approved this PR yet. It will pass on its own once an independent eligible reviewer approves. Pushing a commit would not change it. Every other check on the current head commit ( Worth noting separately: the PR body still has Next Steps: Reply with |
|
Done — the Assignee label now lives inside the row, so the label and the pill are one lockup with one hover area, matching the Task page and the Attendees row. Pushed in What was wrong: the Confirm task page used the Fix: added a What changed
AI tests Melvin ran locally
Could not run: this environment's
view run · no recording available |
…erPill Co-authored-by: daledah <daledah@users.noreply.github.com>
Co-authored-by: daledah <daledah@users.noreply.github.com>
|
Merged Merge: clean, no conflicts — 1124 commits from Added a regression test — Also: added the Checklist: what I ticked and whyTicked, each backed by something I actually ran or verified:
Left unticked — these need you, not me:
view run · no recording available |
daledah
left a comment
There was a problem hiding this comment.
Screen.Recording.2026-09-08.at.16.17.08.mov
LGTM
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #100192 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Nice - looking good to me too 👍 |
|
🚧 chiragsalian has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/chiragsalian in version: 9.4.75-0 🚀
|
|
🤖 No help site changes are required for this PR, so I did not create a draft docs PR. This is a presentation-only change. It swaps the Assignee row's avatar-plus-text rendering for a What I checkedDiff scope — all six changed files are component/style/test files:
Docs searched — I grepped
Expensify's help site documents what a feature does and how to reach it, not how a row is styled. Per HELP_AUTHORING_GUIDELINES.md, a change with no new step, name, or outcome does not warrant an article edit — adding one would only describe pixels that can shift again. If you want the article updated anyway — for example, to add a screenshot of the new pill treatment — reply and I'll open the draft PR. You asked me to close with a request to review the linked help site PR. There is no linked help site PR to review, so that step doesn't apply here — @daledah, just confirm you agree the help site needs no update. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |

















Explanation of Change
The task Assignee row and the expense Attendees row were built with two different
MenuItemAPIs, so the same "a user" concept rendered two different ways. This PR makes both Assignee rows — the task detail view and the Confirm task page — render the user as a singleUserPill, in the same lockup the Attendees row uses.1. Task detail view (
TaskView) — passed the assignee as a plaintitlestring plus a separate leading avatar, styled with a task-onlystyles.assigneeTextStyle. It now renders one<UserPill>throughtitleComponent, matching the Attendees row and the existing precedent inApprovalWorkflowSection(one standalone pill inside a menu item, usingstyles.userPillStandalone).title,iconAccountID,iconType,avatarSize,titleStyle,isSmallAvatarSubscriptMenu, andtitleWithTooltipsare replaced by atitleComponentholding one<UserPill>.UserPillalready provides theUserDetailsTooltipand SMS phone formatting, so the hand-rolledassigneeTooltipDetails(and itsgetDisplayNamesWithTooltips/getPersonalDetailsForAccountIDsimports) is no longer needed.MenuItemderives its default accessibility label fromtitle, an explicitaccessibilityLabelof"Assignee, <name>"is now passed so the row keeps a meaningful label. This is the same pattern the Attendees row uses.styles.assigneeTextStylehad no other consumer and is removed.2. Confirm task page (
DynamicNewTaskPage) — the same avatar + text treatment, now the sameUserPill. Added aftershawnbortonasked for the assignee row on the confirmation page to match; the Share row is deliberately untouched, since a share destination can be a workspace chat or a room rather than a user.3. Label lockup — the Confirm task page used the
MenuItemWithLabelpreset, which by design renders the label outsideRoot, so the "Assignee" label sat above the hover background instead of inside it. The task detail view uses the legacyMenuItemlabelprop, which defaults toisLabelHoverableand renders the label inside the pressable.dannymcclainflagged the mismatch: the label and the pill should read as one lockup and share one hover area.The composable
MenuItemAPI had no inside-the-row label — only the outside-the-row preset. This PR adds aMenuItem.Labelleaf that renders insideMenuItem.Content, using the same text styles as the legacy hoverable label, and switches the Assignee row toMenuItem.Root+MenuItem.Label+ the pill.onPressis wrapped incallFunctionIfActionIsAllowedso the anonymous-user gate the preset provided is preserved.The unassigned empty state is untouched in both places — there is no user to render.
Fixed Issues
$ #100192
PROPOSAL: #100192 (comment)
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review".
// Please describe what tests you performed that validate your change worked.
Suggested steps to start from:
AI tests Melvin ran locally
Run after merging
main(atdaaad254e32), on the branch head:npm run lint-changednpm run typechecknpm run spell-changednpm run gh-actions-unused-stylesnpm run react-compiler-compliance-check -- check src/components/MenuItem/leaves/text/MenuItemLabel.tsx src/pages/tasks/DynamicNewTaskPage.tsx src/components/ReportActionItem/TaskView.tsxnpm run storybook -- --smoke-test --ciMenuItemhas stories, and they still buildnpm test -- tests/unit/MenuItemLabelTest.tsxnpm test -- tests/unit/TaskViewTranslateTest.tsx tests/actions/TaskTest.ts tests/unit/QuickActionMenuItemTest.tsx tests/unit/CreateReportMenuItemTest.tsx tests/unit/findUnusedStylesTest.tsMelvin could not verify the change in a browser. The automated web session failed the same way on every attempt — the browser tab went fully blank (0 accessibility nodes) after sign-in and never recovered, while the dev server itself stayed healthy and rebuilt the branch cleanly. No UI evidence was captured, and JS console output could not be read for this session type. Manual verification is still needed.
Offline tests
QA Steps
// TODO: The human co-author must fill out the QA steps before marking this PR as "ready for review", or the issue title must include "[No QA]."
// Please describe what QA needs to do to validate your changes and what areas they need to test for regressions.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari