App icon indicating copy to clipboard operation
App copied to clipboard

[$175] Spend - No select option on chat/tasks page in narrow layout

Open applause-bot[bot] opened this issue 4 weeks ago • 25 comments

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


Version Number: 9.5.31-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/App/pull/105112 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: windows 10/chrome App Component: Search

Action Performed:

Precondition: Use a narrow layout: a mobile device, or a browser window resized to mobile width. Have at least 2 expenses.

Steps:

  1. Open the Search page and go to Task or Chat.
  2. Long-press an expense row.

Expected Result:

A bottom-docked menu opens with a "Select" option.

Actual Result:

The bottom-docked menu does not open

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [ ] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/e7d55769-7df0-4af7-a6e3-e0c67ace5949

View all open jobs on GitHub

Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7304035

Upwork Automation - Do Not Edit

applause-bot[bot] avatar Nov 03 '26 21:11 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/ca978754f2757a8e7eceff90c72331999a39d2ca58ced0773a37747386ffe20d

applause-bot[bot] avatar Nov 03 '26 21:11 applause-bot[bot]

🤖 Web test steps verification results: ⚠️ partial

The web tester could not verify either menu because its browser tooling cannot perform a long-press.

Narrow web chat search before attempted long-press
Step Status
Chats result long-press opens bottom-docked Select menuA chat result appeared at narrow width. The tooling rejected the long-press operation; this does not establish an App failure.
Narrow web chat search before attempted long-press
❌
Tasks result long-press opens bottom-docked Select menuNot attempted because the required gesture is unsupported. Task fixture availability remains unverified.
❌

view run

MelvinBot avatar Nov 03 '26 21:11 MelvinBot

Proposal

Chat and Task selection is explicitly disabled. This appears to be a QA expectation mismatch, not a regression from the modal migration. Confidence: medium; the reported gesture remains unverified.

What is the root cause of that problem?

Both views prevent the shared long-press menu from opening. Selection also rejects Chat/Task rows, so removing those guards alone would produce a nonfunctional “Select” action.

Code evidence and alternatives checked

What changes do you think we should make in order to solve the problem?

Confirm whether Chat/Task selection is intended. If not, correct the Chats/Tasks expectations in Open the Search row long-press menu from the global modal stack.

If selection is required, implement row selection and its UI before enabling the menu. Test selecting the pressed row, second-row toggling, dismissal, and exiting selection mode.

What alternative solutions did you explore? (Optional)

Changing only the suppression flags is insufficient. The evidence does not justify reverting the modal migration.


Next Steps for Contributor+ team: To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/105824) to create a draft PR. To refine: @MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.


view run · no recording available

MelvinBot avatar Nov 03 '26 21:11 MelvinBot

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

melvin-bot[bot] avatar Nov 03 '26 21:11 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022117733403738410476

melvin-bot[bot] avatar Nov 03 '26 21:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

On narrow layouts, long-pressing a Search row in Chats or Tasks reportedly does not open the bottom menu containing “Select.” The investigation must establish whether selection is missing functionality or whether the migration PR incorrectly included unsupported views in its QA instructions.

Verdict: MelvinBot identifies plausible implementation barriers, but neither a production-ready fix nor a definitive “QA expectation mismatch” is demonstrated.

What is the root cause of that problem?

The supplied investigation identifies two separate barriers at commit 30ca2776f0e98ec4455813b742fae9046657535d:

Location supplied by MelvinBot Claimed behavior Consequence
src/components/Search/ChatSearchView.tsx:57–63 Sets shouldPreventLongPressRow: true Prevents the row menu
src/components/Search/TaskSearchView.tsx:56–57 Sets the same flag Prevents the row menu
src/components/Search/primitives/useRowLongPressMenu.ts:43–75 Returns when suppression applies Never opens the modal
src/components/Search/SearchWriteActionsProvider.tsx:693–696 Rejects Chat/Task selection Enabling the menu alone cannot establish working selection

These line references come from the supplied proposal; I could not independently retrieve the pinned files. They are investigation leads, not independently verified findings.

One contradiction is independently verifiable: the migration PR’s Tests section explicitly includes Chats and Tasks, while its author also acknowledges that the latest browser flow was not exercised. That establishes an inconsistency between the documented acceptance steps and the claimed implementation, but does not establish which behavior product owners intended. PR #105112

Existing guards explain how behavior can occur. Their existence alone does not prove that behavior is correct, intentional, or unrelated to every change in the migration.

What changes do you think we should make in order to solve the problem?

Do not accept a flag-only patch or close the issue as an expectation mismatch on the current evidence.

The smallest safe change depends on resolving the acceptance contract:

  1. If Chat/Task selection is intended: verify the actual row types, selection identifiers, state mutations, checked-row rendering, header count, and exit behavior. Change only the missing parts of that existing path, then enable long-press for those views.
  2. If selection is intentionally unsupported: correct the migration’s Chats/Tasks QA instruction. Preserve the existing application behavior.

No exact TypeScript diff is defensible from the available evidence. Providing one would require inventing source context and assuming that the downstream selection UI already supports these row types.

Verification limitations are concrete: this workspace contains no Expensify checkout; pinned source requests failed; terminal network access was denied; and browser automation reported an unavailable host. No patch, typecheck, Jest execution, or gesture reproduction was completed.

What alternative solutions did you explore? (Optional)

MelvinBot’s useful contribution is identifying that menu visibility and selection mutation are separate requirements. Its proposal nevertheless has these gaps:

  • “Explicitly disabled” does not establish “by design.” Product intent requires supporting history or a maintainer decision.
  • Pre-existing flags weaken migration attribution, but do not prove a QA error. A pre-existing limitation can still violate the accepted requirement.
  • Implementing selection is underspecified. No verified identifiers, mutation changes, rendering changes, or test results support that branch.
  • The gesture target remains ambiguous. An outer Search row and a nested chat action can invoke different handlers. A reproduction must identify the pressed element.
  • Exclusivity is unsupported. There is no evidence that any proposed solution is the “only safe” fix.

Reverting the modal migration is also unsupported: the supplied account places the suppression flags before that migration.

What automated tests can you add to prevent this from re-occurring?

If selection is confirmed as intended, add a parameterized integration test for Chats and Tasks using the real view configuration and selection provider. Mocking the selection callback would conceal the exact downstream failure under investigation.

Proposed case: long-press selection selects and toggles Chat/Task rows in narrow layout

  1. Render two distinct rows with narrow layout enabled.
  2. Trigger the outer row’s longPress.
  3. Assert that the menu opens and selection remains empty.
  4. Press “Select”; assert the first row is checked and the header reports one selected.
  5. Long-press the second row; assert two selected without reopening the menu.
  6. Long-press it again; assert one selected.
  7. Exit selection mode; assert selection and checked indicators clear.

Add separate cases for dismissal leaving selection unchanged and wide layout suppressing the menu.

The migration identifies tests/unit/Search/useRowLongPressMenuTest.tsx as its existing hook suite. Extend its guards and lifecycle coverage, but retain the view/provider integration test to catch configuration and mutation failures. PR test inventory

These are proposed tests, not executed evidence. Before approval, demonstrate that the integration test fails on the baseline and passes with the patch, and record the Windows Chrome gesture reproduction.

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01b60d704ba377be83

camesenin avatar Nov 03 '26 22:11 camesenin

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 03 '26 22:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

In a narrow layout (mobile screen width), long-pressing an item row on the Search page under the Task or Chat tabs does not open the bottom-docked menu with the "Select" option.

What is the root cause of that problem?

This is a QA expectation mismatch originating from the testing checklist of PR #105112 ("Open the Search row long-press menu from the global modal stack").

In PR #105112, test step 13 stated:

13. Repeat steps 2-5 on the Reports, Chats, Tasks, and Trips tabs...

However, in the actual codebase, long-press selection is intentionally suppressed by design on both ChatSearchView and TaskSearchView:

  1. In src/components/Search/ChatSearchView.tsx:57-63:
const {isKeyboardShown, safeAreaPaddingBottomStyle, isLargeScreenWidth, toggleAll, selectedTransactions, listRef, onLongPressRow, handleSelectRow, scrollToListIndex} =
    useSearchListViewState({
        data,
        isMobileSelectionModeEnabled,
        onSelectRow,
        shouldPreventLongPressRow: true,
    });

And documented in its component JSDoc (ChatSearchView.tsx:28-29):

"Chat rows have no column data, no checkbox, and no exit animation (only grouped expenses animate), and long press is suppressed, so this is the leanest of the Search views."

  1. In src/components/Search/TaskSearchView.tsx:56-57:
const {isOffline, isKeyboardShown, safeAreaPaddingBottomStyle, isLargeScreenWidth, toggleAll, selectedTransactions, listRef, onLongPressRow, handleSelectRow, scrollToListIndex} =
    useSearchListViewState({data, isMobileSelectionModeEnabled, onSelectRow, shouldPreventLongPressRow: true});

And documented in its component JSDoc (TaskSearchView.tsx:28):

"Task rows have no column data, no checkbox, and no exit animation (only grouped expenses animate), and long press is suppressed."

  1. Furthermore, src/components/Search/SearchWriteActionsProvider.tsx:693-696 explicitly rejects selection toggling for report actions (chat), tasks, and trips:
const toggle: SearchRowSelectionActionsValue['toggle'] = (item, itemTransactions, shiftKey) => {
    if (isReportActionListItemType(item) || isTaskListItemType(item) || isTripListItemType(item)) {
        return;
    }
    ...

Because shouldPreventLongPressRow: true is passed, useRowLongPressMenu correctly returns early without opening showMobileSelectionMenuModal. Thus, the menu not opening on Chats and Tasks is expected behavior, not a regression.

What changes do you think we should make in order to solve the problem?

Primary Recommendation (Expected / Architectural Alignment):

Close the issue as Not A Bug (NAB) / QA Expectation Mismatch. Neither Chats nor Tasks currently feature multi-select checkboxes or batch action toolbars in Search. Step 13 in the QA instructions for PR #105112 was an oversight and should be corrected to only test view types that support selection (Expenses, Reports).

Alternative Solution (If Product/Design decides to implement multi-selection for Chats & Tasks):

If product direction requires multi-selection support on Chat and Task search views:

  1. In src/components/Search/ChatSearchView.tsx and src/components/Search/TaskSearchView.tsx: Remove shouldPreventLongPressRow: true (or set to false).
  2. In src/components/Search/SearchWriteActionsProvider.tsx:694: Remove isReportActionListItemType(item) and isTaskListItemType(item) from the exclusion guard:
    - if (isReportActionListItemType(item) || isTaskListItemType(item) || isTripListItemType(item)) {
    + if (isTripListItemType(item)) {
          return;
      }
    
  3. In src/components/Search/SearchList/ListItem/ChatListItem.tsx and TaskListItem.tsx: Implement the selection checkbox UI and wire isSelected when mobile selection mode is enabled.
  4. Update tests/unit/Search/useRowLongPressMenuTest.tsx and tests/unit/Search/SearchWriteActionsProviderTest.tsx to verify selection workflows for chat and task item types.

What alternative solutions did you explore? (Optional)

Opening the long-press modal on Chat/Task rows without updating SearchWriteActionsProvider was considered, but pressing "Select" would result in a broken UI where the modal closes but the row cannot be selected. Therefore, simply flipping shouldPreventLongPressRow without full selection support is not viable.

What automated tests can you add to prevent this from re-occurring?

In tests/unit/Search/useRowLongPressMenuTest.tsx:

  • Add a test verifying that when shouldPreventLongPressRow: true is passed to useRowLongPressMenu, invoking onLongPressRow does not call showMobileSelectionMenuModal.

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~015b34e130d9aad41d

sumit-2007-git avatar Nov 04 '26 00:11 sumit-2007-git

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 04 '26 00:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue

Spend - In narrow layout (mobile screen width), long-pressing an item row on the Search page under the Task or Chat tabs does not open the bottom-docked menu with the "Select" option.

What is the root cause of that problem?

In src/components/Search/ChatSearchView.tsx and src/components/Search/TaskSearchView.tsx:

const {isKeyboardShown, safeAreaPaddingBottomStyle, isLargeScreenWidth, toggleAll, selectedTransactions, listRef, onLongPressRow, handleSelectRow, scrollToListIndex} =
    useSearchListViewState({
        data,
        isMobileSelectionModeEnabled,
        onSelectRow,
        shouldPreventLongPressRow: true,
    });

Both ChatSearchView.tsx (line 62) and TaskSearchView.tsx (line 57) explicitly pass shouldPreventLongPressRow: true into useSearchListViewState.

Inside src/components/Search/primitives/useRowLongPressMenu.ts:

const handleLongPressRow = (item: SearchListItem, itemTransactions?: TransactionListItemType[]) => {
    ...
    if (shouldPreventLongPressRow || !isSmallScreenWidth || item?.isDisabled || ...) {
        return;
    }

    showMobileSelectionMenuModal({sentryLabel: CONST.SENTRY_LABEL.SEARCH.SELECTION_MODE_MENU_ITEM}).then(...);
};

Because shouldPreventLongPressRow is hardcoded to true in both Chat and Task views, long-pressing rows on narrow layouts returns early and never displays the MobileSelectionMenuModal.

Furthermore, as documented in ChatSearchView.tsx header comment ("Chat rows have no column data, no checkbox, and no exit animation... and long press is suppressed"), Chat and Task search views were intentionally designed without bulk selection/batch action support. This was a QA test expectation mismatch from PR #105112, which added useRowLongPressMenu for expense rows but included Chat/Task in the generic testing steps.

What changes do you think we should make in order to solve the problem?

Approach 1 (Product / Test Plan Alignment - Recommended):

Update the QA testing checklist for PR #105112 to clarify that the mobile long-press selection menu is only supported for Expense search tabs (Expenses, Reports, Trips), where bulk selection and bulk actions exist. In Chat and Task search views, shouldPreventLongPressRow: true is an intentional architectural guardrail because Chat/Task items do not support bulk multi-selection actions.

Approach 2 (If Product Desires Enabling Long-Press Selection on Chat/Tasks):

If bulk selection is explicitly intended to be added to Chat and Task search views:

  1. In ChatSearchView.tsx and TaskSearchView.tsx, remove shouldPreventLongPressRow: true (or set it based on canSelectMultiple).
  2. Update ChatListItem and TaskListItem to integrate checkbox and multi-selection indicators when isMobileSelectionModeEnabled is active.

Screenshots/Videos

Architectural Guardrail Proof & Video Evidence
  • Header comment in ChatSearchView.tsx confirming intentional suppression: https://github.com/Expensify/App/blob/main/src/components/Search/ChatSearchView.tsx#L25-L33

  • Explicit shouldPreventLongPressRow: true in useSearchListViewState: https://github.com/Expensify/App/blob/main/src/components/Search/ChatSearchView.tsx#L62 https://github.com/Expensify/App/blob/main/src/components/Search/TaskSearchView.tsx#L57

  • PR QA testing recording: https://github.com/user-attachments/assets/b839ef45-ca46-4cb4-8a16-620eeea2dfd2

What alternative solutions did you consider?

Blindly removing shouldPreventLongPressRow: true without supporting selection UI in ChatListItem, which would cause broken UI states where selection mode is active but rows cannot render checkboxes.

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~017a671f901fafe3a1

Hazem20wosis avatar Nov 04 '26 19:11 Hazem20wosis

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 04 '26 19:11 melvin-bot[bot]

@eVoloshchak Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Nov 06 '26 21:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

On a narrow (mobile) screen layout, navigating to the Search page, switching to the Chat or Task tab, and long-pressing a row does not open the bottom-docked modal menu with the "Select" option.

What is the root cause of that problem?

This is intentional application behavior and a QA test-step mismatch from PR #105112 ("Open the Search row long-press menu from the global modal stack"):

  1. Both src/components/Search/ChatSearchView.tsx (lines 57–63) and src/components/Search/TaskSearchView.tsx (lines 56–57) explicitly pass shouldPreventLongPressRow: true into useSearchListViewState. As documented at the top of ChatSearchView.tsx (lines 28–29) and TaskSearchView.tsx, Chat and Task search rows do not support bulk selection, have no selection checkboxes on wide layouts, and have no bulk actions in SearchPageHeader.
  2. In src/components/Search/primitives/useRowLongPressMenu.ts (lines 43–75), handleLongPressRow checks if (shouldPreventLongPressRow || !isSmallScreenWidth || item?.isDisabled || ...) { return; } before calling showMobileSelectionMenuModal(...).
  3. Furthermore, src/components/Search/SearchWriteActionsProvider.tsx (lines 693–696) explicitly returns early in handleSelectRow when isChatListItemType(item) or isTaskListItemType(item), so selecting Chat or Task rows is unsupported across all layouts.

What changes do you think we should make in order to solve the problem?

  1. No code change is required in Expensify/App because bulk selection Mode is intentionally disabled for Chat and Task search results on both wide and narrow layouts (shouldPreventLongPressRow: true).
  2. Update the QA test plan from PR #105112 (step 13) to clarify that on the Chats and Tasks tabs, long-pressing a row should be a no-op (only Expenses, Reports, and Trips support row selection and the long-press "Select" menu).

What alternative solutions did you explore? (Optional)

We considered setting shouldPreventLongPressRow: false in ChatSearchView.tsx and TaskSearchView.tsx, but because SearchWriteActionsProvider.tsx rejects selecting Chat and Task rows and there are no bulk actions for Chats or Tasks, showing a "Select" modal would result in a non-functional button.

jeffrey-graham avatar Nov 07 '26 12:11 jeffrey-graham

📣 @jeffrey-graham! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details. Screen Shot 2022-11-16 at 4 42 54 PM Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

melvin-bot[bot] avatar Nov 07 '26 12:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

In narrow/mobile screen layouts, the multi-select option is missing from the header when viewing chat or task results under Spend.

What is the root cause of that problem?

In SearchPageHeader.tsx: Responsive layout checks for narrow viewports restrict bulk selection mode to expense and invoice tables. When search results contain task or chat reports, the header component evaluates canSelectMultiple as false on small screens, preventing the selection checkbox and bulk actions menu from rendering.

What changes do you think we should make in order to solve the problem?

  1. In SearchPageHeader.tsx:
    • Harmonize the multi-select visibility condition so that narrow screen layouts allow multi-selection across all actionable search result types (including tasks and chats).
    • Ensure the selection toggle header bar mounts correctly when selection mode is activated on narrow viewports.

What alternative solutions did you explore? (Optional)

Restricting multi-selection exclusively to desktop viewports, but mobile users need bulk operations (such as marking tasks complete or closing multiple chats) as well.

TassioSales avatar Nov 08 '26 00:11 TassioSales

@eVoloshchak 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

melvin-bot[bot] avatar Nov 10 '26 21:11 melvin-bot[bot]

@eVoloshchak 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

melvin-bot[bot] avatar Nov 12 '26 21:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

On narrow layouts (mobile devices or narrow browser viewports), navigating to the Search page, switching to the Chats or Tasks view, and long-pressing a result row does not open the bottom-docked modal menu with the "Select" option.

What is the root cause of that problem?

This behavior is intentional by design across all four layers of the Search selection architecture, and the issue was filed due to an overly broad regression test step in PR #105112 ("Open the Search row long-press menu from the global modal stack", where test step 13 asked testers to "Repeat steps 2-5 on the Reports, Chats, Tasks, and Trips tabs"):

  1. Screen-level multi-selection gate (src/components/Search/index.tsx:1035): Search explicitly excludes Chat, Task, and Trip rows from canSelectMultiple on both wide and narrow layouts (even when isMobileSelectionModeEnabled is true):
    const canSelectMultiple = !isChat && !isTask && !shouldReturnTripRooms && (!isSmallScreenWidth || isMobileSelectionModeEnabled);
    
  2. View-level long-press suppression (src/components/Search/ChatSearchView.tsx:28-33, 57-63 and src/components/Search/TaskSearchView.tsx:28-32, 56-57): Both ChatSearchView and TaskSearchView explicitly pass shouldPreventLongPressRow: true into useSearchListViewState, and their JSDoc headers document why:
    • ChatSearchView.tsx:30-32: "Chat rows have no column data, no checkbox, and no exit animation (only grouped expenses animate), and long press is suppressed, so this is the leanest of the Search views."
    • TaskSearchView.tsx:30-31: "Task rows have no column data, no checkbox, and no exit animation (only grouped expenses animate), and long press is suppressed." Inside src/components/Search/primitives/useRowLongPressMenu.ts:49, 62, shouldPreventLongPressRow early-returns before showMobileSelectionMenuModal is called.
  3. Write-action guard (src/components/Search/SearchWriteActionsProvider.tsx:770-773): Even if the long-press menu were opened on a Chat or Task row and confirmed (turnOnMobileSelectionMode() + toggle(item)), SearchWriteActionsProvider.toggle immediately exits for Chat (ReportActionListItemType), Task (TaskListItemType), and Trip (TripListItemType) rows:
    const toggle: SearchRowSelectionActionsValue['toggle'] = (item, itemTransactions, shiftKey) => {
        if (isReportActionListItemType(item) || isTaskListItemType(item) || isTripListItemType(item)) {
            return;
        }
    
  4. No bulk actions exist for Chat or Task rows (src/hooks/useSearchBulkActions.ts): Bulk actions in Search (Export, Hold, Unhold, Move, Merge, Delete, Pay, Submit, Approve) operate on expenses (selectedTransactions) and expense reports (selectedReports), not on individual chat messages or tasks.

What changes do you think we should make in order to solve the problem?

  1. No production code changes are needed (preferred): Close this issue as expected behavior, and update the regression test case from PR #105112 so that narrow-layout long-press "Select" verification is scoped to selectable Search views (Expenses and Expense Reports) rather than Chats, Tasks, or Trips.
  2. Optional cleanup in ChatSearchView.tsx and TaskSearchView.tsx: Because canSelectMultiple is always false and toggle ignores Chat/Task rows, the unused selectedItemsLength, totalItems, isSelectAllChecked, selectAllButtonVisible, and <SelectionTopBar> dead paths in ChatSearchView.tsx:66-105 and TaskSearchView.tsx:63-103 can optionally be simplified if desired, though no behavioral change to row long-press should be made unless product requirements introduce bulk actions for Chat/Task items.

What alternative solutions did you explore? (Optional)

We verified what happens if shouldPreventLongPressRow: true is removed from ChatSearchView.tsx and TaskSearchView.tsx: long-pressing a Chat or Task row would open the bottom-docked "Select" modal, and tapping "Select" would call turnOnMobileSelectionMode() (changing the top bar to "0 selected"), but toggle(item) in SearchWriteActionsProvider.tsx:771 would no-op and canSelectMultiple in Search/index.tsx:1035 would remain false, leaving the user in an empty selection mode with 0 selected and no checkboxes. Confirming all four layers proves this is intentional design rather than a bug.

cocvn157 avatar Nov 14 '26 15:11 cocvn157

@MelvinBot, implement this

eVoloshchak avatar Nov 17 '26 10:11 eVoloshchak

Implementation is blocked by an unresolved choice in the linked proposal:

  • Preserve existing behavior: correct the original PR’s QA instructions.
  • Add Chat/Task selection: implement selection state, checkboxes, and associated behavior—not just enable the menu.

Which approach are you approving? No code changes or PR were created.


view run

MelvinBot avatar Nov 17 '26 10:11 MelvinBot