-
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
[$500] Web - Assign task - Tool tip starts to be inverted after clicking on edit and making a post unread #26650
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01acf203d863453a81 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
I also propose @WasilIslam solution |
📣 @MuhammadSaboorIslam! 📣
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
For reproduction, just navigating away and reopening the room/report is enough: repro-26650.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tool tip position is inverted after making a post unread and reopening the room/report What is the root cause of that problem?The unread marker which is absolute positioned to show above the message, interferes with the tool-tip position calculation here (verified by returning App/src/styles/getTooltipStyles.js Lines 91 to 96 in c805b67
What changes do you think we should make in order to solve the problem?Change the style of Before.mp4After.mp4Doing this will also match the design with other horizontal lines already present, for example: What alternative solutions did you explore? (Optional)-- ResultHere's a proof that it fixes the issue: result.mp4 |
Proposal 2Please re-state the problem that we are trying to solve in this issue.Tool tip position is inverted after making a post unread and reopening the room/report What is the root cause of that problem?The unread marker is absolute positioned to the top of post, thus overlapping the post near the top. This results in tooltip's overlapping detection to kick in here: App/src/styles/getTooltipStyles.js Lines 73 to 80 in 1bdc5ac
And because of that it decides to show the tooltip below the container, here: App/src/styles/getTooltipStyles.js Lines 156 to 160 in 1bdc5ac
(The reason it only triggers when opening and closing the report is because, tooltips are memoized, and it doesn't refresh when clicking the unread button on the post.) What changes do you think we should make in order to solve the problem?We should add an exemption for the "unread indicator" to allow the overlapping of tooltip on top of the "unread indicator". In similar way as we do for Update the UnreadActionIndicator indicator component to add the attribute // src/components/UnreadActionIndicator.js
function UnreadActionIndicator(props) {
return (
<View
accessibilityLabel={props.translate('accessibilityHints.newMessageLineIndicator')}
data-action-id={props.reportActionID}
style={[styles.unreadIndicatorContainer, styles.userSelectNone]}
dataSet={{
[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true,
['tooltip-allow-overlap']: true, // TODO: move to CONST in PR
}}
>
... And update the // src/styles/getTooltipStyles.js
...
// Some elements that are absolute positioned at the top of the content, can be ignored if
// such element explicitly adds the 'tooltip-allow-overlap' data attribute.
// For example, the unread indicator is _OK_ to ignore because it is really thin.
if (isOverlappingAtTargetCenterX && elementAtTargetCenterX.hasAttribute('data-tooltip-allow-overlap')) {
return false;
}
return isOverlappingAtTargetCenterX;
} Resultresult.mp4What alternative solutions did you explore? (Optional)-- |
@situchan can you please take a look at my proposal, Thanks! |
@situchan can you review this one please? Thanks! |
Bump, @situchan! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@trjExpensify, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@trjExpensify @situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
reviewing today |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@situchan did you review? |
I tested against latest main but not reproducible to me. Screen.Recording.2023-09-20.at.5.36.15.PM.mov@Nathan-Mulugeta are you still able to reproduce? |
@rmm-fl I followed your repro step in #26650 (comment) but still not reproducible. Can you? |
@situchan Same as you, I can't reproduce it anymore on latest main. |
It would be great if you can find PR which fixed this. |
I can't reproduce this anymore as well |
@Nathan-Mulugeta are you able to find the PR so you can claim bug reporting bonus? ![]() |
Cool, I think we close this out then. @Nathan-Mulugeta if you find the PR, feel free to let me know here and I'll reopen! |
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:
Expected Result:
The position of the tooltip should not change
Actual Result:
The position of the tooltip inverts
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.62-4
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
2023-08-25.10.06.12.mp4
Recording.1424.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692947480477819
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: