Closed kbecciv closed 6 months ago
Triggered auto assignment to @puneetlath (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
We think that this bug might be related to #vip-vsb CC @quinthar
@puneetlath I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Emoji picker - Highlight is removed from emoji when scrolling up with up key
We pass block: 'nearest'
to scrollIntoView
function, we also have header for each emojis section, due to the header the emoji is not visible.
Pass block: 'center'
or block: 'end'
to scrollIntoView
function.
this.ref.scrollIntoView({block: 'center'});
Use flatListRef.scrollToIndex({index, animated: true});
useEffect(() => {
if (focusedIndex < 0 || !emojiListRef.current) {
return;
}
const calculatedOffset = Math.floor(focusedIndex / CONST.EMOJI_NUM_PER_ROW) * CONST.EMOJI_PICKER_HEADER_HEIGHT;
scrollTo(emojiListRef, 0, calculatedOffset - CONST.EMOJI_PICKER_HEADER_HEIGHT, false);
}, [focusedIndex, emojiListRef]);
PS: Minor edits can be made through PR phase.
Job added to Upwork: https://www.upwork.com/jobs/~01b2c7f05245fc734a
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External
)
@Krishna2323 I did not understand what you mean by Result Use flatListRef.scrollToIndex({index, animated: true});
. But overall your proposal looks good. I tested and it worked fine.
π π π C+ reviewed.
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
Highlighted emoji isn't scrolled when we go up
Earlier with the FlatList
it was working as scrollPaddingTop
added to the style of it in this PR at this place.
After migrating to the FlashList
it isn't working as that style(scrollPaddingTop
) has been given to the parent View instead of FlashList
. PR cc: @TMisiukiewicz
By looking at the FlashList
repo it seems passing style
won't work directly as fixed styles(style: { minHeight: 1, minWidth: 1 },
) set for it.
We can override the style prop with overrideProps
which isn't recommended as per the doc but I am only seeing that option at the moment. Remove scrollPaddingTop
from the listWrapperStyle
.
overrideProps={{
style: {
minHeight: 1,
minWidth: 1,
scrollPaddingTop: isFiltered ? 0 : CONST.EMOJI_PICKER_ITEM_HEIGHT
}
}}
The solution by @Pujan92 doesn't break anything. We can go by one of the following routes in this case:
In either case, I will go ahead with @Pujan92's proposal
πππ C+ reviewed
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
@puneetlath, @mananjadhav Huh... This is 4 days overdue. Who can take care of this?
π£ @Pujan92 π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Ok let's go with option 2.
π£ @shubham1206agra π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.48-0 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-03-14. :confetti_ball:
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:
@shubham1206agra friendly reminder about the checklist so that we can pay tomorrow.
@Pujan92 has been paid.
@shubham1206agra bump on the checklist! (and on accepting the offer)
@puneetlath Can you hold my payment temporarily as per https://expensify.slack.com/archives/C02NK2DQWUX/p1710150138788529?
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:
@puneetlath, @Pujan92, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Moving to monthly for https://github.com/Expensify/App/issues/36883#issuecomment-1998756425
@puneetlath I have discussed this internally. You may close this issue as I am keeping track of payment internally and will ask to pay once the issue is resolved. Just write in the payment summary that I have not been paid yet.
@puneetlath You can process payment here now.
Sent offer here: https://www.upwork.com/nx/wm/offer/101910104
Please ping me on this issue when you've accepted.
@puneetlath Accepted
All paid.
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v1.4.43-0 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4168711 Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Highlight should be applied on emoji that the user has navigated too
Actual Result:
Highlight is not applied on emoji that the user has navigated too
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/cb0142e7-6c11-43c5-8db8-2035d3043830
View all open jobs on GitHub
Upwork Automation - Do Not Edit