-
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
[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
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0135be644839e7389d |
Triggered auto assignment to @slafortune ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease 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 |
ProposalPlease 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 |
ProposalPlease 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 App/src/components/OptionRow.tsx Line 145 in a3088d5
The other components like SubscriptAvatar and MultipleAvatars are using the value hoveredBackgroundColor to set the border color:
The issue is that the 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 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 POC17.mp4 |
@slafortune, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@bernhardoj's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@thesahindia did you checked my proposal? Can I pls ask how you picked the best proposal? |
@iwiznia I would like to respectfully request if you could @thesahindia kindly revisit my proposal. I believe it addresses some crucial points that could enhance our project's functionality and efficiency. Here are my thoughts
I've detailed these points in my proposal, along with a proof-of-concept video and branch code. I would greatly appreciate any feedback or explanations on why the current workaround might be considered a preferable solution. Your insights would be extremely valuable. Thank you for taking the time to consider my request. |
@dragnoir hi, I don't see how your proposal is different from mine.
vs if (optionIsFocused) {
subscriptColor = focusedBackgroundColor;
+ hoveredBackgroundColor = focusedBackgroundColor;
} Yes, it's written differently, but the core concept is the same.
|
@bernhardoj my proposal is 100% different from yours.
Your solution is about preventing the border from being applied. My solution is to allow border BUT with the right value
Your solution will need custom conditions for each style on all the componets that OptionRow uses. Wish effect even the components behavior in future uses. My solution is one line of code that fix oll withgout editing components logic and keeping the same logic in all the components I mentioned. As you mentioned:
But your proposal is about ignoring the issues, hiding it. You said it, doesn't match, so it's better to match it My solution will match the border to the background color. |
I think there is a misunderstanding on how I word it. The issue here is that the hovered border color is applied when it shouldn't, so the solution is simply preventing that when it's focused just like we did in OptionRowLHN (which I put this ref on my solution too). You can compare the results between mine and your solution and you will notice there will be no difference. The difference is in how we write the code and you are proposing to make it DRY. Making it DRY is something that can be done in the PR stage. Let's wait for the team to reply. |
@bernhardoj again our solutions are totally different.
Yes I agree, let's wee what @iwiznia @slafortune @thesahindia will decide and I will respect their decition. |
@iwiznia @thesahindia just wanted to verify that all has been considered and we can move forward with this |
Hmmm @thesahindia what's your take here? |
@dragnoir, I don't know if you tested the solution correctly because I am not seeing that issue. Here's what I got - ![]() @iwiznia, I am not seeing any major reason for not going with the first proposal that @bernhardoj proposed. I will leave the final decision to you. |
@thesahindia can you pls share the bransh you tested with or the code difference you created? I am 100% sure of what I didi, I shared the code diff, screenshots and lots of explanation. At least pls share the bransh you tested with. |
@iwiznia, @slafortune, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @thesahindia |
|
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:
|
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 can you complete the checklist above? Thanks! |
@bernhardoj - automatic offer (Contributor) Paid $500 @thesahindia requires payment through NewDot Manual Requests - $500 |
Test case steps -
|
@thesahindia requires payment through NewDot Manual Requests - $500 |
$500 approved for @thesahindia |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
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:
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?
Screenshots/Videos
Add any screenshot/video evidence


Bug6339897_1705050171836.2024-01-12_00-29-44.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: