-
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
fix: up-to-edit feature on message with attachment #52745
Conversation
@jayeshmangwani 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] |
@daledah Please add |
@stitesExpensify, the up-to-edit feature does not work when offline for message contains an embedded image. The same behavior is observed in production as well(attached video below). I believe this happens because the staging-up-to-edit-not-works-on-offline.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: NativeiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdeskto.mov |
Hm.. I feel like that needs to be fixed here too. If it works for regular messages then it should work for images as well |
Agree with this. @daledah Please look into this issue |
@jayeshmangwani @stitesExpensify In #40400 we can see that the expected behavior is to prevent edit when attachment is uploading. cc @hoangzinh since you encountered this bug before and requested fixing in #45043 (comment) |
Based on these regression steps, I guess we're expecting while sending attachment with text, we won't be allowed to edit. Unsure if it's changed somewhere |
Thanks for the help, @hoangzinh. @stitesExpensify Based on this issue's regression steps, we currently do not allow edits to messages until the attachment is fully uploaded when an attachment and text are being uploaded together. Are we good to change that behavior, or should we proceed with the existing behavior? |
I think proceeding with the existing behavior makes sense in this case. |
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.
LGTM 🚀
✋ 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/stitesExpensify in version: 9.0.68-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|
Explanation of Change
Fixed Issues
$ #52319
PROPOSAL: #52319 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-19.at.17.28.58.mp4
Android: mWeb Chrome
Screen.Recording.2024-11-19.at.17.25.34.mp4
iOS: Native
Screen.Recording.2024-11-19.at.17.24.20.mov
iOS: mWeb Safari
Screen.Recording.2024-11-19.at.16.37.46.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-19.at.16.13.45.mov
MacOS: Desktop
Screen.Recording.2024-11-19.at.17.34.23.mov