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
The MenuItem component has ~130 props. We're actively decomposing large components like this, so it's a perfect candidate — e.g. 10+ icon-related props, plus tooltip logic, both extractable once it follows composition. It's the same compound pattern we already use for Button and Table.
Proposed Solution
Adopt a compound component pattern with a granular interface (flexibility for complicated cases) and a few presets covering the majority of the app.
I'm diving into the MenuItem implementation to understand it in detail. I've already removed some dead code and unused props. The next step is to define subcomponents and create a dev gallery of all variants so the old and new versions can be easily compared.
I managed to cover most of the MenuItem variants; TODOs
compact variant
secondary icon fill
I also contacted Shawn to consult on some designs and got access to figma. Looks like the current MenuItem is not aligned with it, so I'll make sure the new version follows the designs properly.
The MenuItem comparison gallery looks promising and I expect the draft PR to be submitted later this week
I addressed most of the comments. Now the decomposition pattern is confirmed, and I'm working on splitting the PR into smaller parts. It should improve its readability, and we shouldn't introduce any unused props
Thanks for taking the time to break the PR up into smaller PRs. It's helpful also to clarify the high level rollout plan of the series of PRs you have planned. So once you figure that out, feel free to leave a comment here before I dive into the first PR review
Clear independent approval on the remaining PR.Pujan92 approved it today; the latest reviewer checklist and technical checks pass. It is conflict-free, but Check independent approval still fails and merging remains blocked.
Link the Phase 5 work so its scope and blockers are visible.
Refresh the remaining-call-site inventory before choosing further batches. Earlier percentages and counts are stale; I have not presented them as current.
The remaining PR’s web verification was blocked by bank-setup email verification, so several row-level checks remain unverified—not confirmed product failures.
@MelvinBot open a cleanup PR for the legacy MenuItem (src/components/MenuItem/MenuItem.tsx, #105531): remove these props, which no caller uses any more, together with the code that only they reach: shouldParseTitle, excludedMarkdownRules, shouldParseHelperText, helperTextStyle, shouldRenderErrorAsHTML, titleWithTooltips, shouldTruncateTitle, shouldShowBadgeBelow, shouldShowBadgeInSeparateRow, furtherDetailsNumberOfLines, furtherDetailsStyle, iconAccountID, iconReportID, shouldPutLeftPaddingWhenNoIcon, furtherDetails, furtherDetailsIcon, furtherDetailsComponent. Before removing each one, confirm with a repo-wide search (including object keys in MenuItemProps-typed configs and spreads) that nothing passes it. Remove the MenuItemComparison story cases that use iconAccountID/iconReportID/titleWithTooltips and the shouldPutLeftPaddingWhenNoIcon line in PopoverMenuV2.stories.tsx, and reword the shouldParseTitle mention in tests/unit/ParserTest.ts. No behaviour change for remaining callers. Run typecheck and the MenuItem tests.
Opened Remove unused legacy MenuItem props and unreachable branches, ready for review, assigned to Pujan92; repo-wide caller audit, typecheck, and 470 targeted tests passed. Full Jest timed out; browser verification was blocked by a suspended, empty session—not a confirmed product failure.
Step
Status
MenuItemComparison renderingTitles, descriptions, badges, helpers/errors, and right-side avatars could not be verified.
❌
Click, disabled, and copy behaviorNot verified: story rows were inaccessible.
❌
PopoverMenuV2 rendering and interactionsNot verified: story rows were inaccessible.
Activity
melvin-bot commentedon Jul 15, 2026
This issue is not open for proposals —
war-inwill be working on it directly.war-in commentedon Jul 17, 2026
I'm diving into the
MenuItemimplementation to understand it in detail. I've already removed some dead code and unused props. The next step is to define subcomponents and create a dev gallery of all variants so the old and new versions can be easily compared.war-in commentedon Jul 20, 2026
I managed to cover most of the MenuItem variants; TODOs
I also contacted Shawn to consult on some designs and got access to figma. Looks like the current
MenuItemis not aligned with it, so I'll make sure the new version follows the designs properly.The MenuItem comparison gallery looks promising and I expect the draft PR to be submitted later this week
war-in commentedon Jul 21, 2026
I opened a draft PR for an internal review (SWM) and triggered a Codex review. I'll open the PR once it passes review from SWM team
war-in commentedon Jul 23, 2026
FYI, I received a review from SWM team and now I'm going through it
war-in commentedon Jul 28, 2026
I addressed most of the comments. Now the decomposition pattern is confirmed, and I'm working on splitting the PR into smaller parts. It should improve its readability, and we shouldn't introduce any unused props
roryabraham commentedon Jul 30, 2026
Thanks for taking the time to break the PR up into smaller PRs. It's helpful also to clarify the high level rollout plan of the series of PRs you have planned. So once you figure that out, feel free to leave a comment here before I dive into the first PR review
125 remaining items
melvin-bot commentedon Nov 2, 2026
@Pujan92, @roryabraham, @war-in Whoops! This issue is 2 days overdue. Let's get this updated quick!
roryabraham commentedon Nov 3, 2026
@MelvinBot post a status update on this and on all open sub-issues
MelvinBot commentedon Nov 3, 2026
Status: ~84% of rows use the new API, and no PR is in flight
One PR merged since the last update: `MenuItem` decomposition - wrapperStyle-only `MenuItemWithTopDescription` rows. It moved 7 Phase 3 rows to
MenuItemField. It is waiting for the next production release to reach staging.`MenuItem` decomposition - migratable batch reached production on Nov 2 in 9.5.27-2.
Where the migration stands
0c5a23e)d138eba)MenuItemWithTopDescriptionMenuItemThe 3 direct
MenuItemrows were not migrated. Unrelated PRs deleted their files (PolicyAccountingPage,WorkspaceMCPPage,MergeProviderCard).Sub-issues
Weekly,Reviewing. 66 sites leftDaily,Overdue. 49 sites left. Regression period ends Nov 9Weekly. Not startedWeekly. Not startedNeeds action
war-inorPujan92: open the next batch. Nothing is in review.roryabraham: confirm the Phase 3 / Phase 6 split. Phase 3 sends its 25 rows with 10+ props to Phase 6. No one has replied yet.Weekly. Both are stillDaily, which drives the overdue pings.I posted a status update on each open sub-issue: Phase 3, Phase 4, Phase 5, Phase 6.
Counts are JSX opening tags in
src/, excluding Storybook andMenuIteminternals. This is the same method as the last update.view run
melvin-bot commentedon Nov 3, 2026
@Pujan92, @roryabraham, @war-in Whoops! This issue is 2 days overdue. Let's get this updated quick!
roryabraham commentedon Nov 3, 2026
Created six more PRs for this migration:
Pujan92 commentedon Nov 15, 2026
@MelvinBot post a status update on this and on all open sub-issues
MelvinBot commentedon Nov 15, 2026
Status — Nov 15: 14 migration PRs merged since Nov 3; one remains open
The migration has progressed substantially, but remaining code work means the project is not ready to close.
I posted targeted updates on all four open sub-issues:
roryabrahamreported progress Nov 11, but no PR references this tracker yet.Immediate next steps
Pujan92approved it today; the latest reviewer checklist and technical checks pass. It is conflict-free, but Check independent approval still fails and merging remains blocked.The remaining PR’s web verification was blocked by bank-setup email verification, so several row-level checks remain unverified—not confirmed product failures.
view run
Pujan92 commentedon Nov 20, 2026
@MelvinBot open a cleanup PR for the legacy MenuItem (src/components/MenuItem/MenuItem.tsx, #105531): remove these props, which no caller uses any more, together with the code that only they reach: shouldParseTitle, excludedMarkdownRules, shouldParseHelperText, helperTextStyle, shouldRenderErrorAsHTML, titleWithTooltips, shouldTruncateTitle, shouldShowBadgeBelow, shouldShowBadgeInSeparateRow, furtherDetailsNumberOfLines, furtherDetailsStyle, iconAccountID, iconReportID, shouldPutLeftPaddingWhenNoIcon, furtherDetails, furtherDetailsIcon, furtherDetailsComponent. Before removing each one, confirm with a repo-wide search (including object keys in MenuItemProps-typed configs and spreads) that nothing passes it. Remove the MenuItemComparison story cases that use iconAccountID/iconReportID/titleWithTooltips and the shouldPutLeftPaddingWhenNoIcon line in PopoverMenuV2.stories.tsx, and reword the shouldParseTitle mention in tests/unit/ParserTest.ts. No behaviour change for remaining callers. Run typecheck and the MenuItem tests.
Mark it ready for review
MelvinBot commentedon Nov 20, 2026
🤖 Web test steps verification results: ❌ fail
Opened Remove unused legacy MenuItem props and unreachable branches, ready for review, assigned to
Pujan92; repo-wide caller audit, typecheck, and 470 targeted tests passed. Full Jest timed out; browser verification was blocked by a suspended, empty session—not a confirmed product failure.MenuItemComparison rendering
Titles, descriptions, badges, helpers/errors, and right-side avatars could not be verified.Click, disabled, and copy behavior
Not verified: story rows were inaccessible.PopoverMenuV2 rendering and interactions
Not verified: story rows were inaccessible.view run · no recording available