-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Input inline tracking #35149
Input inline tracking #35149
Conversation
…nput-inline-tracking
…nput-inline-tracking
@hoangzinh 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] |
I tried to review the PR, reading native code but I couldn't understand them thoroughly. Seeking help on Slack https://expensify.slack.com/archives/C02NK2DQWUX/p1706627905939359 |
@puneetlath when you're back, could you help to assign this PR to @allroundexperts as a C+? Thanks |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-09.at.2.51.01.AM.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-02-07.at.1.23.59.PM.moviOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Still reviewing. |
@allroundexperts, do you need any help here? |
@perunt Apologies for the delay here. I was just trying to follow the conversation in the RN repository around this PR. I'll complete the review today. |
@perunt I was able to test this on iOS, but on Android, the red marker never shows up. I ran |
@allroundexperts can you double-check if the patch was applied for an Android part? |
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 good!
❗ ❗ ❗ We're waiting for fixing https://expensify.slack.com/archives/C01GTK53T8Q/p1707846163324679. Currently on hold ❗ ❗ ❗ |
UPDATE: This PR can be reviewed/merged even without this fix (https://expensify.slack.com/archives/C01GTK53T8Q/p1707846163324679), as we already have this code in the main branch and it doesn't introduce any inconsistency. This PR won't break anything, so we're good to go. @allroundexperts i've added optional chaining as you suggested |
@allroundexperts @puneetlath, can we merge it? |
I've approved already. This tested well for me. |
I'll do a sanity check tomorrow morning again if that is fine. |
I'm going to close this out since I believe we've decided to go a different route. |
it's patch of:
facebook/react-native#38110
facebook/react-native#36979
❗ Native mobile only❗
Details
With this PR, the onSelectionChange method will now return the cursor position alongside the start and end positions, as follows:
The cursorPosition object contains the coordinates of the top left corner (start) and the bottom right corner (end) of the cursor or selected text.
Fixed Issues
$ #16078 (comment)
PROPOSAL:
Tests
put this:
next to Composer element https://github.com/Expensify/App/blob/17efef8020a0ad2e9cfd7c52f8bf62c08e2d9db0/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js#L573C18-L573C19
Test if the red square follows the cursor.
NOTE: This red square does not include the maximum available height of the input. So if you reach the end, it will move away from the screen
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
2024-01-25.14.28.47.mp4
Android: mWeb Chrome
iOS: Native
2024-01-25.14.31.30.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop