-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-12-06] [$1000] Web - Pressing ESC on attachment preview glitches the preview #27237
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Job added to Upwork: https://www.upwork.com/jobs/~01ebd6c095f0ad277c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @adelekennedy ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.App glitches on closing preview on ESC click What is the root cause of that problem?
App/src/components/AttachmentModal.js Lines 307 to 309 in 5f668c6
What changes do you think we should make in order to solve the problem?Remove the
This is the safest and optimal way since the modal visibility is controlled by a local state. What alternative solutions did you explore? (Optional)N/A |
While my solution is solving the issue I think the root cause is correctly identified by @zukilover, the solution proposed by me is solving the issue of Navigation issue when CMD+K or CMD+SHIFT+K is used for navigation (reported by a contributor on slack already) I am marking my off-topic (unless we decide to solve this issue along with this). |
Not sure why @adelekennedy and I are both assigned but I did the testing and can reproduce this only in Chrome. Looks like External is already added for some proposals. Ah this is why we were both added - https://expensify.slack.com/archives/C01SKUP7QR0/p1694216537643229 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing or double pressing ESC on the attachment preview glitches the preview What is the root cause of that problem?This issue is caused by the What changes do you think we should make in order to solve the problem?We can add and change the For example: const [focused, setFocused] = useState();
const navigation = useNavigation();
useEffect(() => {
const subscribeFocusEvent = navigation.addListener('focus', () => {
setFocused(true);
});
const subscribeBlurEvent = navigation.addListener('blur', () => {
setFocused(false);
});
return () => {
subscribeFocusEvent();
subscribeBlurEvent();
};
}, [focused, navigation]);
.....
{containerWidth > 0 && focused && (
<FlatList
.... What alternative solutions did you explore? (Optional)const renderItem = useCallback(
({item}) =>
focused ? (
<CarouselItem
item={item}
isFocused={activeSource === item.source}
onPress={canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows) : undefined}
/>
) : (
<></>
),
[activeSource, focused, canUseTouchScreen, setShouldShowArrows, shouldShowArrows],
);
Safari.webmChrome.webm |
📣 @astrohunter62! 📣
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
I think we're reviewing proposals! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
hi @abdulrahuman5196! Can you let me know what you think of the current proposals and if you'd like to see more? |
Hey @abdulrahuman5196 would you like to see more proposals? |
This PR is in review so moving with GH to weekly. |
@Christinadobrzyn the PR is already approved, merged, and deployed to staging 🤔 |
Sorry that was my lazy way of writing, "we're waiting for the PR to go into production so this can be paid". |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.4-3 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-12-06. 🎊 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.
For reference, here are some details about the assignees on this 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:
|
prepping for payment Payouts due: Issue Reporter: $50 @dhanashree-sawant (PAID in Upwork) Eligible for 50% #urgency bonus? N Upwork job is here. @abdulrahuman5196 do we need a regression for this? |
Thank you @Christinadobrzyn |
Not a regression.
Yes.
|
Awesome! Thanks @abdulrahuman5196! I paid you and @paultsimura in Upwork based on this payment structure #27237 (comment) @tsa321 and @dhanashree-sawant can you accept the Upwork offer and I'll pay you? |
Hi @Christinadobrzyn, sorry for the delay, the job was actually raised after 30 August but you have sent me 250$ offer, can you rectify it once to 50$? |
@Christinadobrzyn I have accepted the offers, thank you... |
Thanks @tsa321! I paid you in Upwork based on this payment summary. Thanks for catching that @dhanashree-sawant - I got my dates mixed up - I sent you a modified offer, would you mind accepting so I can pay you? |
That's fine, I have accepted the offer. |
Thanks @dhanashree-sawant! I paid you in Upwork based on our payment summary. This is good to close - thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
multiple times
, observe that preview closes, reopens with different image and closesExpected Result:
App should close preview on ESC click (note you need to press Esc multiple times)
Actual Result:
App glitches on closing preview on ESC click
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.61-1
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
Recording.4284.mp4
preview.glitches.on.ESC.close.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693558112570809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: