Skip to content

[Due for payment 2026-11-25] [$175] MenuItem decomposition Phase 6 — long-tail cleanup #105531

Open

Description

@MelvinBot

Phase 6 — long-tail cleanup

Part of the MenuItem decomposition rollout plan. Parent: MenuItem — composition over configuration.

Scope

Migrate the remaining legacy rows with 10 or more props that fit no preset. These are escape-hatch rows with custom title components, trailing icons, badges, right components and context menus. Per the plan, they move straight to MenuItem.Root composition, split into PRs by case.

Verified inventory

At 0c5a23e, after `MenuItem` decomposition - migratable batch merged, 125 legacy call sites remain.

Total Under 5 props 5–9 props 10+ props
Direct <MenuItem> 52 8 21 23
<MenuItemWithTopDescription> 73 2 46 25

Of the 48 sites with 10+ props, 6 are shared wrappers (MenuItemList, PopoverMenu v1 and the v2 rows) that belong to Phase 5. That leaves 42 long-tail sites for this phase.

Counts are JSX attributes on the opening tag. A spread counts as one prop.

Biggest clusters

File Sites (prop count)
MoneyRequestView.tsx 5 (12–18). Every copyValue site in this phase is here
ApprovalWorkflowSection.tsx 2 (16, 19)
ApprovalWorkflowEditor.tsx, TaskView.tsx, BankAccountPurpose.tsx, CardTypeStep.tsx 2 each
SettingsMenuItem.tsx 1 (26). The worst single site: it combines badgeText, iconRight, focused, ref and onSecondaryInteraction

The other 30 files have one site each.

Leaves this phase still needs

The compound surface has no leaf yet for these escape hatches. The counts are for the 10+ prop sites.

Need Sites Legacy prop
Custom title slot 9 titleComponent
Trailing icon 7 iconRight
Focus state 7 focused / isFocused
Context menu on the row 4 onSecondaryInteraction (check whether the existing Copy / ExternalLink context covers these)
HTML title 4 shouldRenderAsHTML
Free-form trailing node 3 shouldShowRightComponent + rightComponent
Third text line 3 furtherDetails
Badge 2 badgeText

Suggested order

  1. Add the most-used leaves first: a title slot and a trailing icon. Each should come with its Storybook comparison card.
  2. Migrate MoneyRequestView as one unit once Copy and HTML handling are settled for it.
  3. Batch the rest by escape hatch, not by page, so each PR repeats one decision.
  4. Deprecate and remove the legacy config API once the legacy count reaches zero.

Open decision

Phase 3 says its 10+ prop MenuItemWithTopDescription rows belong here. That moves 25 of the 73 remaining top-description sites into this phase. Confirm that split so the two phases don't both claim them.

Notes

  • This is a pure refactor. Every migrated row must render and behave the same as before.
  • Cross-cutting rule: no preset grows a prop for a minority need. These rows use raw composition.
Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @Pujan92

Activity

  1. MelvinBot commented on Nov 3, 2026

    @MelvinBot
    ContributorAuthor

    Status: not started

    No PR is open. The leaves this phase needs (custom title slot, trailing icon, and the others in the table above) do not exist yet.

    Open decision: MenuItem decomposition Phase 3 — MenuItemWithTopDescription replacement preset sends its rows with 10 or more props here. That adds about 25 MenuItemWithTopDescription sites to this phase. No one has confirmed that split yet.

    Next step: add the title slot and trailing icon leaves first. They are needed by 9 and 7 of the 10+ prop rows.


    view run

  2. roryabraham commented on Nov 3, 2026

    @roryabraham
    Contributor

    Created two PRs for this phase:

    These are partial migrations, not completion of Phase 6.

  3. Pujan92 commented on Nov 12, 2026

    @Pujan92
    Contributor

    @MelvinBot open a PR migrating 3 legacy MenuItemWithTopDescription rows(10+ props) that need no new API:

    PushRowWithModal/index.tsx
    MoneyRequestConfirmationList/sections/AmountField.tsx
    SubStepForms/ConfirmationStep.tsx

    Mark it ready for review and write QA steps in the description

  4. Pujan92 commented on Nov 12, 2026

    @Pujan92
    Contributor

    @MelvinBot open a PR migrating 3 approval rows that need no new API: ApprovalWorkflowEditor.tsx (the two MenuItemWithTopDescription rows) and the approver row in WorkspaceWorkflowsApprovalsApprovalLimitPage.tsx. Drop descriptionTextStyle={styles.textLabelSupportingNormal}, because MenuItem.FieldName already renders that style. Put the titleComponent (UserPills or UserPill) inside MenuItem.FieldValue as its child, with an accessibilityLabel holding the names. Use MenuItemSectionRoot (with style for any extra wrapper style) or MenuItem.Root, matching the current wrapperStyle. Show errors with a red dot plus MenuItem.HelpText isError, or MenuItem.HelpTextHTML where the row used shouldRenderErrorAsHTML. The default shouldGreyOutWhenDisabled maps to isDisabled.

    Mark it ready for review and write QA steps in the description

  5. MelvinBot commented on Nov 12, 2026

    @MelvinBot
    ContributorAuthor

    🤖 Web test steps verification results: ❌ fail

    Opened Migrate three legacy top-description rows to MenuItem composition, ready for review and assigned to Pujan92, with QA steps included. Jest (39,335 tests), lint, typecheck and Storybook passed, but manual web verification was blocked by a blank application page.

    Blank application page in the existing web session

    Step Status
    Country picker opens and displays the selectionBlocked: no application UI rendered.
    Blank application page in the existing web session
    ❌
    Distance/time confirmation amount remains read-onlyBlocked by the blank application page; confirmation was unreachable.
    ❌
    Bank confirmation rows retain labels, values and edit navigationBlocked before banking setup; prerequisites could not be assessed.
    ❌

    view run · no recording available

  6. MelvinBot commented on Nov 12, 2026

    @MelvinBot
    ContributorAuthor

    ⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.

    Run details

  7. Pujan92 commented on Nov 13, 2026

    @Pujan92
    Contributor
  8. 21 remaining items

  9. Pujan92 commented on Nov 18, 2026

    @Pujan92
    Contributor

    @MelvinBot open the next MenuItem decomposition PR, migrating the four rows that use legacy furtherDetails / furtherDetailsComponent to the composable MenuItem API with no new shared API: render the details line directly in each caller as the last child of MenuItem.Content (Content's gap1 replaces legacy mt1, so don't add a top margin).

    1. Settings ProfilePage: private-details rows
    2. ValuePicker
    3. DynamicFlagCommentPage severity rows
    4. MoneyRequestView merchant row

    Mark it ready for review and write QA steps in the description

  10. MelvinBot commented on Nov 18, 2026

    @MelvinBot
    ContributorAuthor

    ⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.

    Run details

  11. Pujan92 commented on Nov 19, 2026

    @Pujan92
    Contributor
  12. melvin-bot commented on Nov 19, 2026

    @melvin-bot

    @Pujan92 I sent you a Slack DM to connect GitHub. I will continue the original request once you are connected.

  13. Pujan92 commented on Nov 19, 2026

    @Pujan92
    Contributor
  14. melvin-bot commented on Nov 19, 2026

    @melvin-bot

    @Pujan92 I sent you a Slack DM to connect GitHub. I will continue the original request once you are connected.

  15. Pujan92 commented on Nov 19, 2026

    @Pujan92
    Contributor
  16. melvin-bot commented on Nov 19, 2026

    @melvin-bot

    @Pujan92 I sent you a Slack DM to connect GitHub. I will continue the original request once you are connected.

  17. Pujan92 commented on Nov 19, 2026

    @Pujan92
    Contributor
  18. MelvinBot commented on Nov 19, 2026

    @MelvinBot
    ContributorAuthor

    🤖 Web test steps verification results: ❌ fail

    Created Compose supporting details in four MenuItem call sites, ready for review and assigned to Pujan92, with QA steps included. All 101 targeted tests passed; browser verification was blocked by an unresponsive session, with validation limitations documented in the PR.

    Step Status
    Profile private details and navigationProfile did not appear after opening Account; no assertions completed.
    ❌
    ValuePicker details, selection and disabled stateBlocked by the unresponsive browser session.
    ❌
    Flag severity titles, descriptions, icons and actionsBlocked; not verified.
    ❌
    Merchant Google search placement and link behaviorBlocked; not verified.
    ❌
    Merchant editing, copying, errors and responsive layoutsBlocked; neither layout was verified.
    ❌

    view run · no recording available

  19. MelvinBot commented on Nov 19, 2026

    @MelvinBot
    ContributorAuthor

    Already completed in Compose supporting details in four MenuItem call sites. It is open, ready for review, assigned to Pujan92, and includes QA steps.

    All four requested migrations are included without new shared API. The 101 targeted tests passed; browser verification remains blocked by an unresponsive session. No duplicate PR was created.


    view run

  20. Pujan92 commented on Nov 20, 2026

    @Pujan92
    Contributor

    @MelvinBot open a PR migrating the next MenuItem composition batch to the composable MenuItem: WorkspaceOverviewPage.tsx:645 (keep the workspace name's header accessibility role), IndividualExpenseRulesSectionRevamp.tsx:248 and ExpenseDefaultRulePageBase.tsx:658.

    Mark it ready for review and write QA steps in the description

  21. MelvinBot commented on Nov 20, 2026

    @MelvinBot
    ContributorAuthor

    🤖 Web test steps verification results: ❌ fail

    Created Compose workspace name and expense rule menu rows, ready for review, assigned to Pujan92, with QA steps and the workspace-name heading role preserved. Browser verification was blocked by a blank page; 31 final targeted tests passed, and broader validation results are documented in the PR.

    Blank web page preventing all requested verification

    Step Status
    Workspace Overview heading, wrapping and rename permissionsBlocked: blank page and zero snapshot nodes.
    Blank web page preventing all requested verification
    ❌
    Individual-expense rule rows and upgrade navigationBlocked; no Rules screen was reachable.
    ❌
    Expense-default fields, validation and read-only restrictionsBlocked; fields were unavailable.
    ❌
    Narrow/wide layouts and keyboard behaviorBlocked; no application controls rendered.
    ❌

    view run · no recording available

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions