-
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
Improvement: Search Feature for help expensify #24299
Improvement: Search Feature for help expensify #24299
Conversation
- Make related components - Configure CSP for each inline script - Styling related components - Add relevant setup (Annotations, & Context)
@eVoloshchak 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] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
I have read the CLA Document and I hereby sign the CLA |
recheck |
I have read the CLA Document and I hereby sign the CLA |
@eVoloshchak, let me know if you have bandwidth to review it soon. I can jump into the review tomorrow |
@studentofcoding thank you for raising the PR! Just one more thing, can you upload videos (instead of screenshots) of the search functionality in the |
The videos are added @marcochavezf, thanks! |
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.
Looks great! I just left a few comments to change a few minor things, but everything looks good so far 🚀
Co-authored-by: Marco Chávez <[email protected]>
All resolved @marcochavezf |
A couple of comments: It looks like all of the content is cut off at the bottom. Can you double check that the correct font is being applied to the smaller text under the links? For the search button, we should just use our standard green button styles here. Same for the text input, can we make sure this matches what we have on NewDot? |
Done it all @shawnborton, here are the vercel staging for references https://xml-docs.vercel.app cc : @marcochavezf |
Are the screenshots updated? |
Reviewer Checklist
Screenshots/VideosDesktopiOSAndroid |
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, thank you @studentofcoding!
Can you approve it again? There is lint error before and it's fix now @marcochavezf Thanks! |
Hmm the Jest and perf checks already taking 15 mins ++ while I only running lint fix Do I need to do anything @marcochavezf ? |
We'd just need to wait for the checks to pass |
Finally the check is done. If you still have time, Please kindly approve @marcochavezf 🙏🏻 Thanks |
✋ 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/marcochavezf in version: 1.3.54-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.54-0 🚀
|
Hey folks! I've noticed a few things that might have missed QA (or didn't explicitly get considered as "wrong") Body text color is dark, but it should be bright to match the body text of the rest of the help siteWhen you misspell a word and get a suggested replacement, the color of the text that says, "Did you mean:" is dark (almost black), but shouldn't be. It should match the text color of the light body text of the rest of the help site. Keep in mind, we should make sure that the text color will change when we give users the option to switch between dark mode and light mode. Background color of the pagination is bright. It does not match the background color of the rest of the helpsite.Keep in mind, we should make sure that the background color of the pagination will change when we give users the option to switch between dark mode and light mode. CC @shawnborton |
Hi @studentofcoding, while reviewing the new implementation, we noticed a few minor visual aspects (posted above by @johncschuster) that might need some attention. Can you create a follow-up PR to address those? |
Hi, @marcochavezf sure thing!, Where do I need to connect the branch from, as I checked it's not on And just a follow-up on this requirement Thanks |
Thanks @studentofcoding
It should be on main, for example here is the new context file.
Yup, we'd just need to keep the color values in variables as we did in the original PR. This will help us to switch the colors when the light mode is implemented. |
Noted @marcochavezf Also, guys, I have a small suggestion on the Pagination color text, how if we use the same color of
cc: @shawnborton |
For pagination, can we use our standard button styles for these? Also, it looks like the paragraph text below the blue link is not using the correct font - sorry for not catching that sooner! |
Noted @shawnborton, like this? |
Yup, much better for the text. |
PR opened : #24598 |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.54-13 🚀
|
background-color: $color-appBG; | ||
border: $color-appBG; | ||
font-family: "ExpensifyNeue", "Helvetica Neue", "Helvetica", Arial, sans-serif !important; | ||
max-height: 80vh; |
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.
The fixed max-height may cause the content to not fully display on mobile devices. We replaced it to flex layout in PR #27619. : )
As per the last discussion with @marcochavezf here we are using XML Configuration to handle the Search Feature
Additional context:
async-ads.js
. It's not affected the functionality & already hides the ads anyway.Details
Fixed Issues
$ #23978
PROPOSAL: #23978 (comment)
Tests
Upps no results found, Please try again...
.Offline tests
QA Steps
Upps no results found, Please try again...
.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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
https://www.loom.com/share/892b56bba57f463a8c839a2b9a712ee5?sid=d2dfe9d4-35f8-4c67-935d-aaaccb6a4f51
Mobile Web - Chrome
mobile_chrome.mp4
Mobile Web - Safari
mobile_safari.mp4
Desktop
iOS
Android