You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-09] [$500] Chat - Mentioning a user in new offline conversation displays user picker transparent #27036
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]Chat - Mentioning a user in new offline conversation displays user picker transparent[/-][+][$500] Chat - Mentioning a user in new offline conversation displays user picker transparent[/+]on Sep 8, 2023
Please re-state the problem that we are trying to solve in this issue.
Mention suggestions displays in a transparent popup in new offline conversation
What is the root cause of that problem?
In ReportActionCompose, OfflineWithFeedback component wraps all the children. OfflineWithFeedback component has opacity(0.5) in offline state for pending report.
Suggestions are children of this component and so opacity is applied to suggestions as well.
This is the root cause
What changes do you think we should make in order to solve the problem?
We need to use React.createPortal to avoid opacity inheritance.
As you can see below, we have already this function in AutoCompleteSuggestions component
We changed the parentContainerRef props to measureParentContainer props in this PR but this change was applied only to propTypes and parent components. Those changes were not applied to AutoCompleteSuggestions component itself.
In order to fix this, the following replacements are needed
The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
Determine if we should create a regression test for this bug.
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Sep 8, 2023
Triggered auto assignment to @lschurr (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 8, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)ginsuma commentedon Sep 8, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Mentioning a user in new offline conversation displays user picker transparent
What is the root cause of that problem?
The
ReportActionComposecomponent is wrapped byOfflineWithFeedback, and theSuggestionscomponent inherits its opacity.What changes do you think we should make in order to solve the problem?
When the composer focuses, we won't change the opacity of it. We did the same for
ReportActionItemMessageEdithere.We change this LOC to:
Before
Screen.Recording.2023-09-09.at.12.16.24.AM.mov
After
Screen.Recording.2023-09-09.at.12.06.49.AM.mov
[-]Chat - Mentioning a user in new offline conversation displays user picker transparent[/-][+][$500] Chat - Mentioning a user in new offline conversation displays user picker transparent[/+]melvin-bot commentedon Sep 8, 2023
Job added to Upwork: https://www.upwork.com/jobs/~014ab2a548d85f3dca
melvin-bot commentedon Sep 8, 2023
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Sep 8, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)dummy-1111 commentedon Sep 9, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Mention suggestions displays in a transparent popup in new offline conversation
What is the root cause of that problem?
In ReportActionCompose, OfflineWithFeedback component wraps all the children.
OfflineWithFeedbackcomponent has opacity(0.5) in offline state for pending report.App/src/styles/styles.js
Line 2965 in b11bddc
Suggestions are children of this component and so opacity is applied to suggestions as well.
This is the root cause
What changes do you think we should make in order to solve the problem?
We need to use
React.createPortalto avoid opacity inheritance.As you can see below, we have already this function in
AutoCompleteSuggestionscomponentApp/src/components/AutoCompleteSuggestions/index.js
Line 58 in b11bddc
We changed the
parentContainerRefprops tomeasureParentContainerprops in this PR but this change was applied only topropTypesand parent components. Those changes were not applied toAutoCompleteSuggestionscomponent itself.In order to fix this, the following replacements are needed
App/src/components/AutoCompleteSuggestions/index.js
Line 17 in b11bddc
App/src/components/AutoCompleteSuggestions/index.js
Lines 39 to 44 in b11bddc
App/src/components/AutoCompleteSuggestions/index.native.js
Line 5 in b11bddc
This works as expected
Result
27036.mp4
What alternative solutions did you explore? (Optional)
37 remaining items
dummy-1111 commentedon Oct 9, 2023
@lschurr
Accepted. Thanks
lschurr commentedon Oct 10, 2023
Bump @rushatgabhane for the checklist: #27036 (comment)
lschurr commentedon Oct 13, 2023
Waiting on the checklist.
techievivek commentedon Oct 16, 2023
Gentle bump @rushatgabhane to complete the above checklist.
rushatgabhane commentedon Oct 17, 2023
WIP⚠️
The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
Determine if we should create a regression test for this bug.
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again
rushatgabhane commentedon Oct 17, 2023
created a payment request - https://staging.new.expensify.com/r/3291458028812337
lschurr commentedon Oct 18, 2023
Are you still working on that checklist @rushatgabhane or are we good to close this one?
JmillsExpensify commentedon Oct 18, 2023
$500 payment approved for @rushatgabhane based on BZ summary.