-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20354 quick fix searchpage list refactor #35058
20354 quick fix searchpage list refactor #35058
Conversation
@rushatgabhane 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] |
@rushatgabhane @mountiny tagging you guys here |
@rushatgabhane whats your ETA for review |
Reviewer Checklist
Screenshots/VideosiOS: NativeScreen.Recording.2024-02-06.at.22.14.32.moviOS: mWeb SafariScreen.Recording.2024-02-06.at.22.12.13.movMacOS: Chrome / SafariScreen.Recording.2024-02-06.at.22.11.13.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukemorawski looks like we have extra padding at bottom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
App crash on opening search page.
- Open search page
Uncaught TypeError: Cannot read properties of undefined (reading '6025973684678641979')
at eval (OptionsListUtils.ts:1299:1)
at Array.filter (<anonymous>)
at getOptions (OptionsListUtils.ts:1293:92)
at Module.getSearchOptions (OptionsListUtils.ts:1583:1)
at eval (index.js:83:21)
at updateMemo (react-dom.development.js:17112:19)
at Object.useMemo (react-dom.development.js:17780:16)
at useMemo (react.development.js:1651:21)
at SearchPage (index.js:74:25)
@rushatgabhane I cannot reproduce it. It must be somehow specific to your app state. Can you add some more info? |
You can add a function to solve this problem simply. set a variable with a negative value false and after clicking this search bar run this function and check this variable value if it is true then set CSS style this referral main div set style display none. Lastly, the function sets the variable value to true; this result will be when first click the search bar the referral link will be displayed block and next all click this will display none. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @mountiny
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.38-0 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.38-0 🚀
|
This PR is failing because of issue #36082 The issue is reproducible in: Web, Android, mWeb/Safari. Bug6370928_1707339176338.Recording__2126.1.mp4 |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.38-6 🚀
|
const {translate} = useLocalize(); | ||
const styles = useThemeStyles(); | ||
const theme = useTheme(); | ||
|
||
const handleDismissCallToAction = () => { | ||
User.dismissReferralBanner(CONST.REFERRAL_PROGRAM.CONTENT_TYPES.REFER_FRIEND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been referralContentType
instead of CONST.REFERRAL_PROGRAM.CONTENT_TYPES.REFER_FRIEND
to dismiss the correct banner
Details
This is a response this @mountiny request from here: #33080 (comment)
This PR is a quick fix that removes the old
SearchPage.js
file in favour of the newSearchPage/index.js
.Also adds debouncing to report searching and a loading indicator when reports are looked up on the server.
Fixed Issues
$ #20354
PROPOSAL: no proposal
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop