-
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
[HOLD for payment 2023-05-23] [$1000] On increasing the screen size the user can see the previous image in the list #17760
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Agreed, this is a bug. Reproduced on web. |
Job added to Upwork: https://www.upwork.com/jobs/~011195db019e2042bb |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Triggered auto assignment to @chiragsalian ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On increasing the screen size the user can see the previous image in the list What is the root cause of that problem?In AttachmentCarousel we are deciding the width of the container that will hold each image in the carousel inside of the renderCell function, the width of this container is supposed to fill the screen so that the other items in the FlatList are not shown on screen, however we are setting the width using state.containerWidth that is being updated using onLayout. the problem with that is that it's not getting updated fast enough when the browser get resized quickly thus leading to the cell not filling the view and for other previous and next images to show for a split second. App/src/components/AttachmentCarousel/index.js Lines 198 to 200 in 4947508
App/src/components/AttachmentCarousel/index.js Lines 232 to 235 in 4947508
What changes do you think we should make in order to solve the problem?We can update the width of the cell using a seperate more quickly updated value by using useWindowDimensions().width from react-native. that way, the width will be updated fast and the issue is resolved. /**
* Defines how a container for a single attachment should be rendered
* @param {Object} props
* @returns {JSX.Element}
*/
renderCell(props) {
const style = [props.style, styles.h100, {width: useWindowDimensions().width}]; We can leave everything else to use the state value of the containerWidth as it was and just change the renderCell. What alternative solutions did you explore? (Optional)ResultSorry for the slow performance in the screen recording. Screen.Recording.2023-04-23.at.12.05.01.AM.mov |
Next step here is to review this proposal. |
@aimane-chnaif thoughts on this proposal? |
Still pending review |
There's only 1 proposal so far. reviewing shortly |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Great, thanks! |
@aimane-chnaif wanted to check in to see if you could review the proposal on this issue soon? TY! |
Proposal still pending review |
@AmjedNazzal thanks for proposal. The root cause is correct and solution also works. |
@AmjedNazzal please update your proposal based on latest codebase. |
Fix - On increasing the screen size the user can see the previous image in the list #17760
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.14-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-05-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@AmjedNazzal offer sent! |
@aimane-chnaif offer sent! |
@thesahindia offer sent! |
@aimane-chnaif when you have a chance, could you also please complete your assigned steps on the BZ checklist? |
@joekaufmanexpensify Thank you! accepted |
All set to issue payment soon. Still need to complete BZ checklist steps though. |
Bumped BZ checklist steps in Slack. |
Based on that, we can skip regression test proposal. |
Great, ty! BZ checklist is now complete. |
@AmjedNazzal was assigned to this issue on May 8th at 6:16 PM UTC. The PR was merged on May 12th at 2:12 AM UTC. This is slightly longer than 3 business days, so this does not qualify for a speed bonus. We'll hit 7 full days of the regression reporting bonus later this evening, and then issue payment! |
@AmjedNazzal $1,000 sent and contract ended! |
@aimane-chnaif $1,000 sent and contract ended! |
@thesahindia $250 sent and contract ended! |
Upwork job closed. |
Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone! |
Thank you! recieved |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User shouldn't see other images while increasing the screen size
Actual Result:
On increasing screen size next image gets visible
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-04-20.at.5.53.52.PM.mov
Recording.293.mp4
Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681993540527479
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: