-
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
Create autocomplete parser #51079
Create autocomplete parser #51079
Conversation
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 pretty nice, props for splitting into common base file 👍
@rafecolton 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 it's ready for review |
npm has a |
I added script to package.json so package-lock.json should not change |
I'm gonna merge this once since the new parser is still unused in App. I tested the current branch and the current search parser still works as intended. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2024-10-21.at.1.46.08.PM.movAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
All tests were passing. |
✋ 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.0.52-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
Details
this pr creates autocomplete parser and extracts common rules from grammars to separate file to allow for reusing them
Fixed Issues
$ #50951
PROPOSAL:
Tests
There are two ways the new parser can be tested:
you can paste rules from
autocompleteParser.peggy
andbaseRule.peggy
in that order to https://peggyjs.org/online.htmluse autocompleteParser the same way searchParser is used: including it in e.g.
SearchUtils.ts
fileVerify that no errors appear in the JS console
Offline tests
QA Steps
I don't think QA is needed
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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