feat: Extend shift+click range selection to Search results and report transaction lists - #98130
feat: Extend shift+click range selection to Search results and report transaction lists#98130TaduJR wants to merge 22 commits into
Conversation
|
@stitesExpensify Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…shift-range-search # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adc86b1bf8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62141034fb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11cd7f08c1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
…shift-range-search # Conflicts: # src/components/Search/SearchList/ListItem/GroupChildrenContent.tsx # src/components/Search/SearchList/ListItem/TransactionGroupListItem.tsx
…shift-range-search # Conflicts: # src/components/Search/SearchList/ListItem/TransactionGroupListItem.tsx # src/components/Search/types.ts # tests/unit/Search/LazyGroupSelectionTest.tsx
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46dcc486fe
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fae8b20d3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| } | ||
| return updated; | ||
| }, | ||
| {data: filteredData, totalSelectableItemsCount}, |
There was a problem hiding this comment.
Preserve all-matching selection in range updates
When an expense search is in “Select all matching” mode and the user Shift+clicks to shrink a visible range, this range path calls applySelection without the same shouldPreserveAllMatchingSelection/exclusion options used by normal row toggles. As soon as the range deselects any loaded row, applySelection clears areAllMatchingItemsSelected and drops the off-page matching expenses instead of recording those visible rows as exclusions, so bulk actions unexpectedly stop applying to the full matching result set. Please pass the same preservation options used by the single-row expense toggle here.
Useful? React with 👍 / 👎.
Explanation of Change
Shift+click now selects a range in the Search results for expenses and reports, and in the transaction list on a report. Click one row, hold Shift, click another, and everything between them is selected. It runs on the same shared logic that shipped in part 1, so it behaves the way it already does in the tables.
A few things worth knowing:
Fixed Issues
$ #90539
PROPOSAL: #90539 (comment)
Tests
Prerequisite: You need a workspace with at least 10 expenses across 3 or more categories, and at least 3 reports that each contain several expenses.
1. Expenses list
2. Grouped expenses
3. Reports tab
4. Expenses on a report
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Mac-Chrome.mp4