-
Notifications
You must be signed in to change notification settings - Fork 3.5k
17038 - migrate AddReactionBubble to PressableWithFeedback #20158
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
17038 - migrate AddReactionBubble to PressableWithFeedback #20158
Conversation
|
@luacmartins 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] |
|
@abdulrahuman5196 assigning you for review/test |
| // Prevent text input blur when Add reaction is clicked | ||
| onMouseDown={(e) => e.preventDefault()} | ||
| accessibilityLabel={props.translate('emojiReactions.addReactionTooltip')} | ||
| accessibilityRole="button" |
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.
NAB should we create a CONST for "button"?
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.
We're adding the CONSTs here. Let's incorporate those changes in this PR as well.
|
Will start reviewing today |
| accessibilityLabel={props.translate('emojiReactions.addReactionTooltip')} | ||
| accessibilityRole="button" | ||
| // disable dimming | ||
| hoverDimmingValue={1} |
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.
We had a slack conversion for providing hoverDimmingValue from parent here - https://expensify.slack.com/archives/C01GTK53T8Q/p1686151320529999?thread_ts=1685741951.521769&cid=C01GTK53T8Q
Will confirm on the same before approving.
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.
It seems like we will be setting hoverDimmingValue as 1 as default. But that change is in PR.
Anyways i am fine with this for now. Since its not wrong to pass default value again as well(just not required) and I don't think we need to block this PR for the defaultValue change as well. Correct me if wrong @luacmartins
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.
Yea, that seems fine to me.
|
Got it. then we can have this PR in hold for the other 2 PRs to be merged. |
|
@luacmartins how about pushing this PR forward and just adding CONSTs from here in another PR? Because for sure there are a lot of places where er need to change roles to CONST so we can change it too but in another PR |
|
Sounds fine, we've been waiting on the other PR long enough and it seems like there are some issues now. @abdulrahuman5196 wanna review and complete the checklist? |
|
Sure @luacmartins Will work on this today. |
|
Just closing out other overdue PRs and proposals. Will work on reviewer's checklist on this PR in half a day. Apologies for the delay. |
|
Just missing a review from @abdulrahuman5196 |
|
Yes. Working on this PR review. |
Reviewer Checklist
Screenshots/VideosWebUntitled.39.mp4Mobile Web - Chromeaz_recorder_20230614_232043.mp4Mobile Web - SafariScreenRecording.movDesktopScreen.Recording.2023-06-14.at.11.25.50.PM.moviOSScreen.Recording.2023-06-14.at.11.30.50.PM.movAndroidUntitled.40.mp4 |
|
@Skalakid Kindly mark the Offline tests and QA test as "Same as tests" |
abdulrahuman5196
left a comment
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours @luacmartins . good to merge.
@Skalakid Kindly make sure to update the QA section as mentioned here #20158 (comment)
|
I updated the OP with steps for offline and QA. Merging. |
|
✋ 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: 1.3.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Fixed Issues
$ #17038
PROPOSAL: #17038
Tests
Add reaction bubblethat appeared next to the previously added reaction, verify styling and behaviorOffline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
mWeb--chrome.mov
Mobile Web - Safari
mWeb-safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov