-
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
[HOLD for payment 2024-06-28] [$125] [Search v1] No background color placeholder exists for receipt thumbnail #43393
Comments
Triggered auto assignment to @trjExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~019803a773929eed48 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
Upwork job price has been updated to $125 |
@shawnborton, can you help me understand the issue? Where do we need the bg, on the container which shows the existing receipt? |
Thanks a lot, understood |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Search v1] No background color placeholder exists for receipt thumbnail What is the root cause of that problem?No bg is applied to the container.
What changes do you think we should make in order to solve the problem?Add the same bg used for the thumbnail. We can use What alternative solutions did you explore? (Optional) |
@shawnborton, do we need to change the bg on hover? I think we shouldn't do that because the empty receipt placeholder also does not change its bg on hover. Monosnap.screencast.2024-06-10.21-48-11.mp4 |
Ah okay, then if that's the case, let's just use that same exact BG color from your screenshot. |
ProposalPlease re-state the problem that we are trying to solve in this issue:The problem is that no background color placeholder exists for the receipt thumbnail in the Search tab, resulting in a visually inconsistent user experience when the receipt thumbnail is not loaded. What is the root cause of that problem?The root cause of this problem is that no background color is applied to the container of the receipt thumbnail. The relevant code snippet is: <View style={[StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40), StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall), styles.overflowHidden]}> The container lacks a background color style, which causes it to appear blank when the thumbnail is not loaded. What changes do you think we should make in order to solve the problem?
Example of how the changes might look: <View style={[
StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40),
StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall),
styles.overflowHidden,
styles.activeComponentBG // Added background color
]}> Alternatively, if you want to handle the hovered state: <View style={[
StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40),
StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall),
styles.overflowHidden,
isHovered ? styles.activeComponentBG : styles.hoveredComponentBG // Conditional background color based on hover state
]}> What alternative solutions did you explore?
After considering these alternatives, applying a simple background color using Please note that the above explanation outlines only the technical approach I plan to take. If my proposal gets accepted, I will submit the finalized solution as mentioned. Thanks! |
Let's go with @Krishna2323's proposal. We need to add clear steps on the PR phase (try with offline mode) 🎀👀🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I think the proposal looks good, but @Krishna2323 please note that we removed the hover state from the receipt component and are now just using |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@Krishna2323 Waiting for your PR |
@dukenv0307, PR ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-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-06-28. 🎊 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:
|
I don't think we need a regression test for this, and it was a cheeky bug in a new feature release. Payment summary as follows:
Paid both, closing! |
Coming from this thread, the receipt thumbnail doesn't have a placeholder background color.
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: