Skip to content
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

Closed
1 of 6 tasks
kavimuru opened this issue Apr 7, 2023 · 60 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Apr 7, 2023

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:

  1. Open the app
  2. Observe size of green dot and size of pin icon on reports archive
  3. Open settings and observe size of green dot
  4. Open profile and observe size of green dot
  5. In profile->contact method-> phone number, observe size of green dot

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01b604439e23576a0b
  • Upwork Job ID: 1648046942074019840
  • Last Price Increase: 2023-05-01
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 7, 2023
@MelvinBot
Copy link

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

MelvinBot commented Apr 7, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@sonialiap
Copy link
Contributor

The dot is indeed larger than in other instances of the dot

@MelvinBot
Copy link

Triggered auto assignment to @joelbettner (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@melvin-bot melvin-bot bot added the Overdue label Apr 12, 2023
@MelvinBot
Copy link

@joelbettner, @sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@MelvinBot
Copy link

@joelbettner, @sonialiap 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@joelbettner joelbettner added the External Added to denote the issue can be worked on by a contributor label Apr 17, 2023
@melvin-bot melvin-bot bot changed the title Green dot (20x20) is considerably bigger then pin icon (16x16) in LHN and not consistent in size with other pages [$1000] Green dot (20x20) is considerably bigger then pin icon (16x16) in LHN and not consistent in size with other pages Apr 17, 2023
@MelvinBot
Copy link

MelvinBot commented Apr 17, 2023

@MelvinBot
Copy link

Triggered auto assignment to @johncschuster (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@joelbettner
Copy link
Contributor

This is all front end and can be worked on externally.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 17, 2023
@Prince-Mendiratta
Copy link
Contributor

Prince-Mendiratta commented Apr 17, 2023

Proposal

Please 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 height and width in these places:

EDIT
With additional details from here, we need to make the following modifications to the Icons:

Remove height and width from Icon

What alternative solutions did you explore? (Optional)

We can resolve #17226 here as well by adding additionalStyles={[styles.ml2]} to the DotIndicator icon.

@PrashantMangukiya
Copy link
Contributor

Proposal

Please 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 DotIndicator from here, its default size is 20X20

import DotIndicator from '../../../assets/images/dot-indicator.svg';

Within ContactMethodDetailsPage.js we are displaying green icon via line 175:

<Icon src={Expensicons.DotIndicator} fill={colors.green} />

Within OptionRowLHN.js we are displaying green icon via line 227:

{optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && <Icon src={Expensicons.DotIndicator} fill={colors.green} />}

We can see at both places i.e. Contact Method Details Page and Option Row LHN height and width prop not set, so it will take default width height i.e. 20x20.

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 ContactMethodDetailsPage.js set icon width/height as variables.iconSizeSmall (i.e. 16) as shown below:

// <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 OptionRowLHN.js set icon width/height as variables.iconSizeSmall (i.e. 16) as shown below:

// {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

Results
Before After
LHN-Before LHN-After
Contact-Before Contact-After

@MelvinBot
Copy link

Current assignee @joelbettner is eligible for the External assigner, not assigning anyone new.

@aman-atg
Copy link
Contributor

aman-atg commented Apr 17, 2023

Proposal

Please 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 View component with styles.ml2 inside OptionRowLHN.js here like below:

                            {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

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 17, 2023

Proposal

Please 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 16px which we are giving at other places.

What changes do you think we should make in order to solve the problem?

Apply height={variables.iconSizeSmall} width={variables.iconSizeSmall} to the places where we have used the DotIndicator Icon.

{optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && <Icon src={Expensicons.DotIndicator} fill={colors.green} />}

{props.isError && <Icon src={Expensicons.DotIndicator} fill={colors.red} />}

<Icon src={Expensicons.DotIndicator} fill={colors.green} />

@allroundexperts
Copy link
Contributor

Proposal

Please 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:

{optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner && <Icon  src={Expensicons.DotIndicator}  fill={colors.green}  height={variables.iconSizeSmall} width={variables.iconSizeSmall}  />}

As a small refactor, some icons here are using the size explicitly ie width={16px} instead of using variables.iconSizeSmall. So we can replace those values with variables.iconSizeSmall as well.

At other places, besides the LHN, there is a mix of sizes of this icon being used. We can either convert those all to 20px or 16px. @shawnborton Can confirm the size as well as if the size should be the same on all other sizes. For reference, we're using this component in the following components:

DotIndicatorMessage -> 16px

FormHelpMessage -> 20px

MenuItem -> 20px (Other icons here are 20px as well so I think this is consistent)

OptionRow -> 16px (Other icons here are 16px as well so I think this is consistent)

HeaderView -> 16px (Other icons here seem to be using 20px so this is inconsistent)

ContactMethodDetailsPage -> 20px (Other icons here are using 20px as well so this is consistent)

What alternative solutions did you explore? (Optional)

None

@shawnborton
Copy link
Contributor

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.

@Prince-Mendiratta
Copy link
Contributor

@shawnborton this is how it looks on the LHN with updated icon:
image

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 1, 2023
@MelvinBot
Copy link

📣 @Prince-Mendiratta You have been assigned to this job by @johncschuster!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@johncschuster
Copy link
Contributor

Assigned!

@Prince-Mendiratta
Copy link
Contributor

PR is up for review!

Applied in Upwork.

cc @aimane-chnaif @johncschuster

@johncschuster
Copy link
Contributor

Thanks for the quick reply, @Prince-Mendiratta! I've just sent you the offer!

@melvin-bot
Copy link

melvin-bot bot commented May 8, 2023

@johncschuster, @joelbettner, @sonialiap, @Prince-Mendiratta, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels May 9, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Green dot (20x20) is considerably bigger then pin icon (16x16) in LHN and not consistent in size with other pages [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 May 9, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] 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.
  • [@johncschuster / @sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@Prince-Mendiratta
Copy link
Contributor

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
🧯 Help Wanted at: Mon, 17 Apr 2023 19:33:30 GMT
🕵🏻 Contributor assigned at: Mon, 01 May 2023 18:21:15 GMT
🛸 PR created at: Mon, 01 May 2023 18:27:27 GMT
🎯 PR merged at: Tue, 02 May 2023 18:32:36 GMT
⌛ Business Days Elapsed between assignment and PR merge: 2

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 15, 2023
@joelbettner
Copy link
Contributor

@aimane-chnaif what is the status here? The PR got merged. Can this be closed?

@aimane-chnaif
Copy link
Contributor

payment is remaining

@joelbettner
Copy link
Contributor

@aimane-chnaif what about the checklists above?

@sonialiap
Copy link
Contributor

sonialiap commented May 17, 2023

@dhanashree-sawant offer sent for reporting - paid
@aimane-chnaif offer sent (+ 50% merge bonus) - paid
@Prince-Mendiratta offer sent (+ 50% merge bonus) - paid

@aimane-chnaif
Copy link
Contributor

@sonialiap offer expired

@aimane-chnaif
Copy link
Contributor

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.
10 - Verify that GBR and RBR are of the same size as 20x20.
11 - Type any message in composer and verify that draft icon shows with the size of 20x20.

@luacmartins
Copy link
Contributor

TBH I don't think we need a regression test for this.

@sonialiap
Copy link
Contributor

Wow, what timing with the Upwork job expiring 😆 . I made a new Upwork job and sent an offer @aimane-chnaif

@sonialiap
Copy link
Contributor

All paid out. Since we're not doing a regression test for this. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests