-
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
[WIP] Update Yellow Highlight Dismissal Behavior #43581
Conversation
@sobitneupane 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] |
223cb4b
to
7a9808a
Compare
d607bd6
to
5ec7694
Compare
Hello @sobitneupane, I need some help. So far our "Yellow Highlight Dismissal Behavior" works as expected for the following scenarios:
However, I’m having trouble with dismissing the highlight after refreshing the page. I've tried using window/performance detection, useState/useEffect logic, and the beforeunload event, but nothing seems to work perfectly. Could you give me some suggestions on how can we achieve this? Thank you very much. |
Sorry for the delay @brunovjk. I running quite busy. I will try to get to it asap. |
Okay, I think I found a safe way, I'm testing it and I'll let you know. Thanks for your patience. |
@sobitneupane PR, finally, ready for review. Looking forward to hearing your thoughts on the hook I created. |
@brunovjk Should we remove the yellow highlight as soon as we begin taking any action (such as Submit expense), or after the action is complete? I am inclined towards the former. Raised it in issue: #42165 (comment) |
@sobitneupane now available for review. Thank you very much. |
@brunovjk I can still reproduce this issue. Screen.Recording.2024-08-16.at.14.00.30.mov |
Thank you, Im on it |
@sobitneupane Thank you for clarifying. Before I misunderstood your point about "removing as soon as we start taking any action." It's more accurate now. However, when cleaning the Screen.Recording.2024-08-19.at.16.09.01.movWhat do you think? Should we keep the current behavior of scrolling to the bottom, or should we only remove the highlight while keeping the |
@brunovjk I think we should only remove the highlight. |
@brunovjk Any update? Let's try to get this merged asap. |
This comment was marked as outdated.
This comment was marked as outdated.
Making good progress here, I need to do some more testing to make sure everything is ok and no regressions, and we'll have it for review soon. |
Misclicked above. |
Hey @sobitneupane :D could you please take a look at the changes I made (review the PR actually)? Everything looks good to me now. Thank you. Edit: I'm investigating the Reassure Performance Tests fail, do you have any idea what might be causing it? |
I am not sure. @brunovjk Is it related to this PR? Which part of the code do you think is causing the issue? |
Not sure. I'll go deep into this today |
@sobitneupane could you take a look at the changes now? I tested it and everything seems to work fine, but I'm still a little unsure about the names of the variables and functions we created. |
Thanks for the update @brunovjk |
@brunovjk I can still reproduce the issue. The highlight doesn't fade after refreshing the page. Screen.Recording.2024-09-20.at.14.29.24.mov |
Update: Working on fixing/updating the hook to a more robust approach, I'll update again by the end of the week. |
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA Bruno seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Details
This update modifies the behavior of the yellow highlight for linked report actions to dismiss under various conditions.
Fixed Issues
$ #42165
PROPOSAL: #42165 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
43581_android-native.mov
Android: mWeb Chrome
43581_android-web.mov
iOS: Native
43581_ios_native.mov
iOS: mWeb Safari
43581_ios_web.mov
MacOS: Chrome / Safari
43581_web.mov
MacOS: Desktop
43581_desktop.mov