-
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 2023-05-16] [$1000] Green dot (20x20) is considerably bigger then pin icon (16x16) in LHN and not consistent in size with other pages #17163
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
The dot is indeed larger than in other instances of the dot |
Triggered auto assignment to @joelbettner ( |
@joelbettner, @sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@joelbettner, @sonialiap 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Triggered auto assignment to @johncschuster ( |
This is all front end and can be worked on externally. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In this issue, we can see that the dot indicator on the LHN is bigger than other similar icons on the App. What is the root cause of that problem?This green dot stands for a pending IOU transaction. The height and width of the icon are not set for this icon, leading it to default to a bigger size. What changes do you think we should make in order to solve the problem?As per the suggestion here, we need to set the other icons as 20x20 instead. We need to remove the
EDIT Remove height and width from Icon
What alternative solutions did you explore? (Optional)We can resolve #17226 here as well by adding |
ProposalPlease re-state the problem that we are trying to solve in this issue.Green dot (20x20) is considerably bigger then pin icon (16x16) in LHN and not consistent in size with other pages #17163 What is the root cause of that problem?We are using App/src/components/Icon/Expensicons.js Line 33 in 3abe7b2
Within
Within
We can see at both places i.e. Contact Method Details Page and Option Row LHN This is the root cause of the problem i.e. Both places it shows 20x20 icon and other place it shows small icon. What changes do you think we should make in order to solve the problem?Within // <Icon src={Expensicons.DotIndicator} fill={colors.green} /> // *** OLD CODE
<Icon src={Expensicons.DotIndicator} fill={colors.green} height={variables.iconSizeSmall} width={variables.iconSizeSmall} />. // *** Updated Code Within // {optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && <Icon src={Expensicons.DotIndicator} fill={colors.green} />}. // *** OLD CODE
// Updated Code
{optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && (
<Icon
src={Expensicons.DotIndicator}
fill={colors.green}
height={variables.iconSizeSmall}
width={variables.iconSizeSmall}
/>
)} So this will solve the problem as shown in results. What alternative solutions did you explore? (Optional)None |
Current assignee @joelbettner is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Green dot is bigger in size & doesn't have any margin applied to it in LHN What is the root cause of that problem?The Dot Icon does not have proper width and height defined, and it also lacks a container that includes a margin-left property. What changes do you think we should make in order to solve the problem?To fix this, we just need to wrap the Icon in the {optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && (
<View style={styles.ml2}>
<Icon src={Expensicons.DotIndicator} fill={colors.green} />
</View>
)} Additionally, as per latest requirement we need to update Icons with 20x20 size throughout our app wherever 16×16 is being used This will fix both #17163 & #17226 What alternative solutions did you explore? (Optional)We can get the same results by explicitly defining width and height for these icons so that it's easier to update the sizes in future |
ProposalPlease re-state the problem that we are trying to solve in this issue.Green/Red dot size is inconsistent in some places(LHN, Contact method details page, Form help message) What is the root cause of that problem?We are not providing the height & width explicitly of What changes do you think we should make in order to solve the problem?Apply
App/src/components/FormHelpMessage.js Line 40 in 8b570f6
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Green dot is considerably bigger then pin icon in LHN. It's also not consistent on other pages. What is the root cause of that problem?The root cause is that at some places we're setting the height and width of the icon and at other places, we're not setting it. This causes the inconsistency. What changes do you think we should make in order to solve the problem?To make the icon consistent with other icons in the LHN, we need to change this to:
As a small refactor, some icons here are using the size explicitly ie At other places, besides the LHN, there is a mix of sizes of this icon being used. We can either convert those all to DotIndicatorMessage -> FormHelpMessage -> MenuItem -> OptionRow -> HeaderView -> ContactMethodDetailsPage -> What alternative solutions did you explore? (Optional)None |
Hmm, let's try making all of our icons 20x20 and then seeing how it goes from there? We can still use a 20x20 dot indicator icon but maybe we can reduce the shape of the actual ellipse inside of it. So that would include seeing what an updated pin icon in the LHN rows look like at 20x20 as well. |
@shawnborton this is how it looks on the LHN with updated icon: |
📣 @Prince-Mendiratta You have been assigned to this job by @johncschuster! |
Assigned! |
Thanks for the quick reply, @Prince-Mendiratta! I've just sent you the offer! |
@johncschuster, @joelbettner, @sonialiap, @Prince-Mendiratta, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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 2023-05-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Sharing the timeline of this issue to help with the eventual analysis, calculated with this tool. 🐛 Issue created at: Fri, 07 Apr 2023 22:21:34 GMT |
@aimane-chnaif what is the status here? The PR got merged. Can this be closed? |
payment is remaining |
@aimane-chnaif what about the checklists above? |
@dhanashree-sawant offer sent for reporting - paid |
@sonialiap offer expired |
For BugZero Checklist: It's tough to find which PR caused regression. It's inconsistency issue but more like polish. Regression Test Proposal @luacmartins how about adding some more verification in #17912 (comment)? 3 - Verify the Pin icon is showing in the LHN and the size is 20x20. |
TBH I don't think we need a regression test for this. |
Wow, what timing with the Upwork job expiring 😆 . I made a new Upwork job and sent an offer @aimane-chnaif |
All paid out. Since we're not doing a regression test for this. Closing |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should maintain same size for green dot SVG throughout and app should use 20x20 size for green dot on reports archive to ensure it looks right besides pin icon
Actual Result:
App uses 20x20 size for green dot besides 16x16 icon of pin and leaving reports archive and phone number page in contact method, app uses 16x16 size for green dot icon throughout all the pages
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.96-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
green.dot.inconsistency.issue.mp4
Recording.164.mp4
Recording.165.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680859279508339
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: