-
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
[$250] Attachment -The image can be dragged by moving the cursor outside the image #12777
Comments
Triggered auto assignment to @stephanieelliott ( |
Yeah, this feels like weird and buggy behavior. Posted to Upwork: https://www.upwork.com/jobs/~017a548ef0784db6bb |
Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~01d038f00534da37c6 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Triggered auto assignment to @PauloGasparSv ( |
@stephanieelliott I think you don't need to create upwork job manually. There's already upwork job link in issue description. It seems @thienlnam integrated upwork automation successfully. |
This can be simply done by implementing a custom hook with two zones of draggable and droppable using https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API no other React libraries that will only make the app slower. I can provide a full explanation of this later if you are intersted. |
Proposal
|
@PauloGasparSv, @stephanieelliott, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@Emz27 Thanks for your proposal but can you please explain more details with code changes you will apply? |
@RaresShoemaker If you haven't check already, please go through our contributing guidelines here. The proposal should include the root cause if applicable and technical explanation of code changes you will make. |
ProposalProblemIn App/src/components/ImageView/index.native.js Lines 69 to 81 in 3528ad5
The original width and height of the image is very high. For example in my case, these are 4032 and 3024 so we have to calculate the aspectRatio to calculate the dimension of the image when it's shown in the device. But we just re-calculate the width when SolutionWe'll re-calculate both width and height + imageHeight *= aspectRatio;
+ imageWidth *= aspectRatio;
- if (imageHeight > imageWidth) {
- imageHeight *= aspectRatio;
- } else {
- imageWidth *= aspectRatio;
- } Result: Screen.Recording.2022-11-21.at.17.22.51.mp4 |
I think it's the same issue that I reported here |
Why is this a bug and not a feature? what is the downside of allowing the user to drag an image from the white part? |
cc @shawnborton can I get your opinion on this? 🙏 |
Yeah, I don't understand why this is a bug - this seems to be behaving exactly like we'd expect. I think this is why it's important that our bug reports have corresponding Slack conversations so we can chat about these earlier. |
I think this is a better video (from the thread) video_20220702_002457_edit.mp4 |
The PR of this issue is created. @PauloGasparSv Please help to review it. Thanks |
@PauloGasparSv @aimane-chnaif I'm gonna check this one off the deploy checklist since it didn't cause any regression, but can you please investigate this comment #13099 (comment). We are still waiting on a video from Applause. |
Friendly bump @mvtglobally on the video for us to investigate |
I wonder #13150 is what @mvtglobally concerns |
That would make sense @aimane-chnaif! Let's wait for @mvtglobally to confirm. |
Friendly bump on this : ) |
Asking team to retest on the latest build with Video |
Here is what we are seeing on the latest build. Is there a need to log a new issue based on comments? Tread is quite big, not sure I follow the recent decision Record_2022-12-07-19-04-47_4f9154176b47c00da84e32064abf1c48.mp4 |
@mvtglobally I think that's the desired behavior right? We wanted to make sure users wouldn't be able to drag and scroll the image forever until the image itself was outside of view. This P.R. added those boundaries so you can't scroll outside of the image anymore : ) |
It's for you to decide guys :). There are so many changes recently that we are not always sure whats the issue and what is not. |
@mvtglobally I think correct guide here |
I think we're good here so I'm closing this one off : ) |
I'm not sure how the payment process works but I think a bot will take care of it like this other issue. So I'll come back to this tomorrow and ask the team if nothing is updated here. Edit: Just confirmed it here (found the doc hehe), the label should be added automatically 7 days after the P.R. hits prod. |
PR was deployed to production on Nov 30 (#13077 (comment)). |
@stephanieelliott bump ^ |
Oops, sorry guys -- missed this because the issue is closed 🙃 (my fault) @tienifr You've been paid! @aimane-chnaif I just sent the offer your way on Upwork, just accept it when you get a chance -- I'll get an alert from Upwork and will issue the payment right away! |
No problem. Thanks @stephanieelliott |
😊 Everyone is paid up! |
Sorry for the late comment, this is eligible for the reporting compensation @stephanieelliott. We decided to fix the bug that was reported here |
Oh, thanks for calling that out @thesahindia! Invited you to the job in Upwork, please accept when you get a chance! 😊 |
Applied, thanks! |
Bump @stephanieelliott for the payment |
All paid up! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #12226
Action Performed:
Expected Result:
The image should NOT be dragged
Actual Result:
The image can be dragged by moving the cursor outside the image
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.28.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5823089_Record_2022-11-16-07-03-20_4f9154176b47c00da84e32064abf1c48__1_.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: