MenuItem decomposition - usages with avatars - #98862
Conversation
# Conflicts: # src/pages/workspace/companyCards/assignCard/ConfirmationStep.tsx
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
|
@MelvinBot review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Review — looks solid ✅This is a faithful, well-scoped continuation of the I spot-checked a few behavior-parity concerns and verified two of the migrated rows at runtime on web — both render correctly:
Parity checks I confirmed against the legacy component
Non-blocking notes
Nothing here blocks. Nice, tidy migration. Runtime verification below. New Task confirm page — migrated Assignee and Share rows (avatar, bold title, supporting line, chevron)Vacation delegate placeholder — single standalone-size line with a chevron |


Explanation of Change
Part 2 of the
MenuItemdecomposition — the avatar-led rows. Adds theLeadingandLabelprimitives, a typographyvariantonDescription,testIDonRootand the presets, and aMenuItemEntitypreset, then migrates the avatar call sites.Two notes for reviewers:
MenuItemEntityis deliberately narrow — aUserAvatarplus an always-on chevron. Rows needing a workspace avatar, an ID-drivenReportActionAvatars, or no chevron drop to raw composition rather than growing the preset.MenuItem.Descriptiongained avariant.placeholderreproduces the legacy font bump that happened automatically when a row had notitle, so title-less rows keep rendering at the standalone size.Fixed Issues
$ #96202
PROPOSAL:
Tests
npm run storybookand open theComponents/MenuItemComparisonstoryPhase 2 — avatarssection, theLegacy,ComposableandPresetrenders are identicalPhase 1 — icon rowscards below are still identicalMigrated rows, checked against
mainside by side:Vacation delegateat the larger standalone font sizeAssigneeandSharerows show avatars, labels, tooltips on hover, theRequiredhint whileShareis empty, and the chevronProfilerow still navigates and is spaced from the section belowRevokebutton on the rightSend fromfield shows the workspace avatar, name andWorkspace, and only shows a chevron when the sender can be changedOffline tests
Mostly N/A — a component refactor with no API or Onyx changes. One row keeps offline feedback:
QA Steps
N/A
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