-
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
Image zoom for mobile browser apps #43620
Conversation
@dukenv0307 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] |
@ZhenjaHorbach Pls let me know when you finish the checklist and screenshots/videos |
Unfortunately, a contributor implementation is very crude We don't have double tap for image, swipe left or right for a carousel Therefore, I need a little more time to add this functionality So the PR will be ready within a few days |
@dukenv0307 I decided not to use custom Gesture functions as proposed by the contributor because they closely replicate the existing ones we use for MultiGestureCanvas. So I used |
@ZhenjaHorbach Can you check the previous proposal that decide to use Lightbox but it causes some errors |
Yes |
@ZhenjaHorbach Is it ready for review? I see you used LightBox, did you face the problem mentioned in other proposals? Thanks |
Hello |
Thanks @ZhenjaHorbach. Since we're trying to use the different solution, so we need to discuss in the issue here |
@dukenv0307 Looks like the problem is related to chrome itself I found interesting topic And in this topic we have this link with Touch Event Trigger Test And taps in safari work fine Therefore, I need more time to come up with a solution to fix this bug. |
@ZhenjaHorbach Pls let me know when it's ready for review. Thanks |
Yes, sure |
@dukenv0307 @shawnborton |
Starting the builds now! |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Tested and this feels pretty good to me! |
@dukenv0307 Came from main |
code looks good and tests well |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-02.at.10.57.03.movAndroid: mWeb ChromeScreen.Recording.2024-07-02.at.11.49.03.moviOS: NativeScreen.Recording.2024-07-02.at.10.57.33.moviOS: mWeb SafariScreen.Recording.2024-07-02.at.11.44.21.movMacOS: Chrome / SafariScreen.Recording.2024-07-02.at.11.47.29.movMacOS: DesktopScreen.Recording.2024-07-02.at.11.52.07.mov |
Waiting for perf test is resolved |
@dukenv0307 |
@flodnv Pls take the final look at this PR. Thanks |
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.
👍
@@ -1512,6 +1512,11 @@ const styles = (theme: ThemeColors) => | |||
height: '100%', | |||
}, | |||
|
|||
canvasContainer: { | |||
borderWidth: 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.
Not A Blocker; but maybe worth adding a comment here in the code summarizing this
@@ -17,16 +18,28 @@ type AttachmentCarouselPagerItems = { | |||
}; | |||
|
|||
type AttachmentCarouselPagerContextValue = { | |||
/** The list of items that are shown in the pager */ | |||
/** List of items displayed in the attachment */ |
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.
/** List of items displayed in the attachment */ | |
/** List of attachments displayed in the pager */ |
Is this more accurate?
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.
I think yes
But the pager sounds a little unclear 😅
But I don't mind
I'll update now
✋ 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/flodnv in version: 9.0.4-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
Details
Image zoom for mobile browser apps
Fixed Issues
$ #36597
PROPOSAL: #36597 (comment)
Tests
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 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
2024-06-13.12.40.07.mov
Android: mWeb Chrome
2024-06-13.12.43.22.mov
iOS: Native
2024-06-13.12.34.08.mov
iOS: mWeb Safari
2024-06-13.12.33.17.mov
MacOS: Chrome / Safari
2024-06-13.01.17.23.mov
MacOS: Desktop
2024-06-13.01.20.11.mov