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 2024-02-14] [$500] A border is being displayed on the second image of the group chat in the search model #34416
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v1.4.24-7 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 Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Action Performed:
Create group chat and send a message
Go to the search model
Hover over the first group chat
Notice only second image displayed with border
Expected Result:
A border should not displayed on second image of the first group chat in the search model
Actual Result:
A border is being displayed on the second image of the group chat in the search model
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]A border is being displayed on the second image of the group chat in the search model[/-][+][$500] A border is being displayed on the second image of the group chat in the search model[/+]on Jan 12, 2024
The other components like SubscriptAvatar and MultipleAvatars are using the value hoveredBackgroundColor to set the border color:
The issue is that the hoveredBackgroundColor is not updated when the Row is focused
If we remove the border style, when hovering, there will be issues. BEcause now there's always a border === to the background color and it gives a feeling that there's transparency
When no hovered, border === background color
when hovered, border === new background color
When focused, we need to set background color to the focusBAckground color to adjust the border color.
What changes do you think we should make in order to solve the problem?
changed the title [-][$500] A border is being displayed on the second image of the group chat in the search model[/-][+][HOLD for payment 2024-02-14] [$500] A border is being displayed on the second image of the group chat in the search model[/+]on Feb 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
[@thesahindia] 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:
[@thesahindia] 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:
[@thesahindia] Determine if we should create a regression test for this bug.
[@thesahindia] 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.
[@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]A border is being displayed on the second image of the group chat in the search model[/-][+][$500] A border is being displayed on the second image of the group chat in the search model[/+]melvin-bot commentedon Jan 12, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0135be644839e7389d
melvin-bot commentedon Jan 12, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 12, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)bernhardoj commentedon Jan 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The second avatar of a group chat shows a border while hovered.
What is the root cause of that problem?
The border color is actually doesn't match the background color when we hover over a focused option.
What changes do you think we should make in order to solve the problem?
We need to prevent the border from being applied when the option is focused.
App/src/components/OptionRow.tsx
Lines 209 to 221 in b6a18b1
(hovered && !optionIsFocused)just like we did in OptionRowLHN
dukenv0307 commentedon Jan 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
A border is being displayed on the second image of the group chat in the search model
What is the root cause of that problem?
We have a border width and border of the subscription avatar here.
App/src/components/SubscriptAvatar.tsx
Lines 89 to 90 in b6a18b1
What changes do you think we should make in order to solve the problem?
We should remove this border style.
App/src/components/SubscriptAvatar.tsx
Lines 89 to 90 in b6a18b1
What alternative solutions did you explore? (Optional)
NA
dragnoir commentedon Jan 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
A border is being displayed on the second image of the group chat in the search model
What is the root cause of that problem?
OptionRow, src/components/OptionRow.tsx, is calculating the
hoveredBackgroundColorApp/src/components/OptionRow.tsx
Line 145 in a3088d5
The other components like
SubscriptAvatarandMultipleAvatarsare using the valuehoveredBackgroundColorto set the border color:The issue is that the
hoveredBackgroundColoris not updated when the Row is focusedIf we remove the border style, when hovering, there will be issues. BEcause now there's always a border === to the background color and it gives a feeling that there's transparency
When no hovered, border === background color
when hovered, border === new background color
When focused, we need to set background color to the focusBAckground color to adjust the border color.
What changes do you think we should make in order to solve the problem?
on OptionRow, update here:
if (optionIsFocused) { subscriptColor = focusedBackgroundColor; + hoveredBackgroundColor = focusedBackgroundColor; }We are updating the value of hoveredBackgroundColor to be equal to focusedBackgroundColor when optionIsFocused is true.
Commit: src/components/OptionRow.tsx
POC
17.mp4
melvin-bot commentedon Jan 15, 2024
@slafortune, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!
33 remaining items
[-][$500] A border is being displayed on the second image of the group chat in the search model[/-][+][HOLD for payment 2024-02-14] [$500] A border is being displayed on the second image of the group chat in the search model[/+]melvin-bot commentedon Feb 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 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 2024-02-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 7, 2024
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:
slafortune commentedon Feb 13, 2024
@thesahindia can you complete the checklist above? Thanks!
slafortune commentedon Feb 14, 2024
@bernhardoj - automatic offer (Contributor) Paid $500
@thesahindia requires payment through NewDot Manual Requests - $500
Waiting on checklist.
thesahindia commentedon Feb 14, 2024
Test case steps -
slafortune commentedon Feb 15, 2024
@thesahindia requires payment through NewDot Manual Requests - $500
JmillsExpensify commentedon Apr 8, 2024
$500 approved for @thesahindia