-
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
Simplify native attachment gallery paging context and improve code #36534
Simplify native attachment gallery paging context and improve code #36534
Conversation
@tgolen may I ask you to review again? I've attached videos for desktop/web (but they are very short, because GH has limits for uploading video files). |
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 looks just like how I remember it 😅
Anything else is required from my side?.. I think I attached all necessary videos and it was the only one thing that I had to do, right? |
@mollfpr Can you test the PR and complete the checklist, please? |
@pecanoro On it! |
Reviewer Checklist
Screenshots/VideosAndroid: Native36534.Android.mp4Android: mWeb Chrome36534.mWeb-Chrome.mp4iOS: Native36534.iOS.mp4iOS: mWeb Safari36534.mWeb-Safari.mp4MacOS: Chrome / Safari36534.Web.mp4MacOS: Desktop36534.Desktop.mp4Note: If you notice in the videos on mWeb/Safari and mWeb/Android, there's abnormal things happen. On the mWeb/Safari, is open wrong attachment. For mWeb/Android, there's a blinking when sliding the attachment. Both issues are also happen on the staging. So not because this PR. |
I'll let you merge this one @pecanoro! |
✋ 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/pecanoro in version: 1.4.43-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
@@ -126,8 +112,6 @@ function MultiGestureCanvas({ | |||
const reset = useWorkletCallback((animated: boolean, callback?: () => void) => { | |||
stopAnimation(); | |||
|
|||
pinchScale.value = 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.
This removal caused a bug: #37248
maybe @tgolen, @pecanoro
Details
Based on #33756. Check this for actual diff.
This PR removes unnecessary prop-drilling and improves how we use the
AttachmentCarouselPagerContext
.It also improves many of the components used in the (native) attachment gallery and simplifies some rendering logic.
The
MultiGestureCanvas
component is becoming more generic and can therefore be used in other cases more easily. TheLightbox
component takes control of the adapted behaviour while in an attachment carousel.Fixed Issues
$ #36034
PROPOSAL:
Tests
Offline tests
None needed.
QA Steps
Same as in Tests.
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
android.webm
Android: mWeb Chrome
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-01-08.at.09.54.30.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
simplify-web-demo.mov
MacOS: Desktop
Screen.Recording.2024-02-14.at.19.20.42.mov