-
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
Migrate ReportActionCompose to PressableWithFeedback #19602
Migrate ReportActionCompose to PressableWithFeedback #19602
Conversation
7daf1c9
to
2222337
Compare
@allroundexperts @srikarparsi One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-05-26.at.4.58.18.AM.movMobile Web - ChromeScreen.Recording.2023-05-26.at.5.05.01.AM.movMobile Web - SafariScreen.Recording.2023-05-26.at.5.03.02.AM.movDesktopScreen.Recording.2023-05-26.at.4.59.37.AM.moviOSScreen.Recording.2023-05-26.at.5.03.45.AM.movAndroidScreen.Recording.2023-06-14.at.1.01.58.AM.mov |
@srikarparsi When the |
@robertKozik The app crashes for me on Android when:
Screen.Recording.2023-05-26.at.5.13.40.AM.movI encountered the same behaviour without your changes as well so I guess this is a new bug. As such, I was unable to complete my Android testing. The code looks fine to me though. Can you also verify this behaviour on your device? |
I have just an emulator on my side too, but I can encountered it on the latest main branch as well. Moreover it looks like, even after expanding the field, composer displays only one (last) line of multiline message. Screen.Recording.2023-05-26.at.09.09.48.mov |
Yeah, It comes with the new Pressables - when it's disabled cursor is automatically handled as |
@srikarparsi Should we wait for a fix for the crash here before merging this? Asking because the required screen recording in Android includes this crash. |
Thanks @robertKozik and @allroundexperts! Yeah let's wait until the crash is fixed before merging this even though it's unrelated. The code looks good so I'll just test it after the regression is fixed and this should be good to merge! |
The regression got fixed here. Once it's merged, you should be able to continue this issue! :) |
@robertKozik Can you please resolve conflicts here? |
conflict resolved 👌🏼 |
Awesome! @allroundexperts could you add the android screenshot to the reviewer checklist whenever you get a chance? |
@srikarparsi I tried this morning but the app was still crashing for me. |
ah sorry thought that the fix got merged for some reason. It looks like it will get reviewed today so hopefully we can get this out tomorrow. Editing this message to keep track of PR: #19809 |
So should this be on HOLD for #19809 ? |
Yes it should, just added it in. |
Seems like this is ready to come off HOLD |
@robertKozik you should probably merge main here. |
I'm on it. |
@roryabraham main merged |
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!
I think the following is not related to this PR but still wanted to double check. Notice that the cursor disappears once you minimise the composer and you have to scroll down to see it. Screen.Recording.2023-06-14.at.1.05.58.AM.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.
looks good to me!
Yeah I agree @sobitneupane, might be good to address this is another issue but it's not related to this as the same happens on production. Thanks for the changes @robertKozik! |
✋ 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/srikarparsi in version: 1.3.28-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
This PR replaces existing
TouchableOpacity
implementations of:to
PressableWithFeedback
implementation. For every pressable accessibilityRole and label was added (using existing translations). From the send button hitSlop is removed, because GenericPressable itself applies hitSlop based on component sizeFixed Issues
$ #17019
PROPOSAL: #17019
Tests
- verify that expand/collapse, add buttons works properly
Offline tests
Same as Test steps
QA Steps
Same as Test 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)/** 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
Desktop.-.web.mov
Mobile Web - Chrome
Android.-.web.mov
Mobile Web - Safari
iOS.-.web.mov
Desktop
Desktop.-.native.mov
iOS
iOS.-.native.mov
Android
Android.-.native.mov