-
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
fix image from opening in both a new tab and app modal #52013
fix image from opening in both a new tab and app modal #52013
Conversation
src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.tsx
Outdated
Show resolved
Hide resolved
src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.tsx
Outdated
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-15.at.11.08.29.mp4Android: mWeb ChromeScreen.Recording.2024-11-15.at.10.49.37.mp4iOS: NativeScreen.Recording.2024-11-15.at.11.15.15.mp4iOS: mWeb SafariScreen.Recording.2024-11-15.at.09.40.49.mp4MacOS: Chrome / SafariScreen.Recording.2024-11-15.at.09.37.02.mp4MacOS: DesktopScreen.Recording.2024-11-15.at.09.37.57.mp4 |
src/components/Attachments/AttachmentCarousel/extractAttachments.ts
Outdated
Show resolved
Hide resolved
@huult The QA Step doesn't match with this issue |
@suneox , I've updated QA step |
@huult Could you please handle an issue the attachmentLink still show on image without link? Screen.Recording.2024-11-07.at.12.49.50.movStep reproduce: S1: Paste image with link: |
@suneox Your case tests the uniqueSources logic. With the attachment carousel, we display only the unique attachment source. In the tested case, we have the same source with different subtitle links, so we will still show two attachments with the same source but different subtitles, correct? |
@suneox I am working on the case where the attachment has the same source but different links. I need additional time to complete this, so the estimated time of completion is approximately 3 working days. Thank you. |
ok Thank for your feedback |
@suneox , I have finished updating the case for the unique source with the different link mentioned above. Could you please check again? I have tested many cases related to this change. If you detect any new bugs due to the change, please let me know. Thank you |
…n-modal-and-new-tab
…n-modal-and-new-tab
@suneox What do you think of my changes? |
I'll check your update today |
@huult Have you got this error when open attachment modal? In case, same source but attachment link is difference |
@suneox , I've updated the key for that. I will check it. Thank you! |
@suneox I've updated it. Could you check again? |
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.
Couple minor changes requested, after those are addressed we should be good to merge 👍
src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx
Outdated
Show resolved
Hide resolved
@blimpich I have already updated your feedback. Could you please check it again? Thank you! |
✋ 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/blimpich in version: 9.0.64-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.64-4 🚀
|
@@ -70,7 +70,7 @@ function AttachmentCarousel({report, source, onNavigate, setDownloadButtonVisibi | |||
setShouldShowArrows(true); | |||
}, [canUseTouchScreen, page, setShouldShowArrows]); | |||
|
|||
const compareImage = useCallback((attachment: Attachment) => attachment.source === source, [source]); | |||
const compareImage = useCallback((attachment: Attachment) => attachment.source === source && attachment.attachmentLink === attachmentLink, [attachmentLink, source]); |
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 caused a regression here #52013, We should only compare the attachmentLink if attachmentLink prop exists
Details
Fixed Issues
$ #50260
PROPOSAL: #50260 (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
Screen.Recording.2024-11-05.at.12.46.07.mp4
Android: mWeb Chrome
Screen.Recording.2024-11-05.at.12.48.00.mp4
iOS: Native
Screen.Recording.2024-11-05.at.12.40.23.mp4
iOS: mWeb Safari
Screen.Recording.2024-11-05.at.12.41.51.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-11-05.at.12.34.42.mp4
MacOS: Desktop
Screen.Recording.2024-11-05.at.12.36.38.mp4