[No QA] Use useSearchContext for Search current data#79140
[No QA] Use useSearchContext for Search current data#79140luacmartins merged 20 commits intomainfrom
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61c81e0214
ℹ️ 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: 58d0e4e89c
ℹ️ 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".
cea39f6
|
@mjasikowski 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] |
|
@luacmartins conflicts |
|
@JS00001 resolved |
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Tests were passing when I merged? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.3.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.3-8 🚀
|
Explanation of Change
Cleans up data access to the Search snapshot. This PR adds
currentSearchResultsto theuseSearchContexthook and refactors usages where we calleduseSearchContextand then connected to the snapshot data.This PR is a stepping stone to refactor the Search page to use live data. We're centralizing the data access so that we can switch between live and snapshot data for the to-do pages.
There are a few instances of direct snapshot access that will be kept for now, namely:
App/src/components/MoneyRequestReportView/MoneyRequestReportNavigation.tsx
Line 26 in d4d6812
App/src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Line 96 in d4d6812
App/src/pages/Search/SearchPage.tsx
Line 167 in d4d6812
Fixed Issues
$ #73983 (partial)
Tests
Regular regression tests
Verify that the Search page still works as expected
Offline tests
N/A
QA Steps
Regular Search regression 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