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] No margin above Remove button in Contact method Detail screen #17847

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

Comments

@kavimuru
Copy link

kavimuru commented Apr 23, 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. Go to settings -> Profile -> Contact methods
  2. Click New contact method -> Add any email which is already on Expensify. (i.e.: test@gmail.com)
  3. Click Add button
  4. Go to detail screen of that same email

Expected Results:

There should be some margin above remove button

Actual Results:

No margin above remove button

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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.3.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
2
Screenshot 2023-04-23 at 3 02 10 AM

Screen.Recording.2023-04-23.at.3.21.14.AM.mov

Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682202200263469

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0132b1dcfc371624b3
  • Upwork Job ID: 1650669214496661504
  • Last Price Increase: 2023-04-25
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 23, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 23, 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

@PrashantMangukiya
Copy link
Contributor

Proposal

Posting proposal early as per new guidelines

Please re-state the problem that we are trying to solve in this issue.

No margin above Remove button in Contact method Detail screen. There should be some margin above remove button where error message text displayed with red dot.

What is the root cause of that problem?

Failed contact method error message displayed via <DotIndicatorMessage> component via this line.

{isFailedAddContactMethod && <DotIndicatorMessage style={[styles.mh5]} messages={ErrorUtils.getLatestErrorField(loginData, 'addedLogin')} type="error" />}

We can see styles.mh5 passed to <DotIndicatorMessage>, but bottom margin style not passed. This is the root cause of the problem.

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

We have to also pass bottom margin style to DotIndicatorMessage. e.g. styles.mb3 i.e. 12 px as shown in code below.

{isFailedAddContactMethod && <DotIndicatorMessage style={[styles.mh5, styles.mb3]} messages={ErrorUtils.getLatestErrorField(loginData, 'addedLogin')} type="error" />}

Note: We have to set bottom margin suggested by design team. At present styles.mb3 set to show code sample. It will solve the issue as shown in results

What alternative solutions did you explore? (Optional)

None

Results
1.mov
2.mov

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 23, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Vertical margin not available for contact method details DotIndicatorMessage

What is the root cause of that problem?

Vertical margin isn't provided for the DotIndicatorMessage here.

{isFailedAddContactMethod && <DotIndicatorMessage style={[styles.mh5]} messages={ErrorUtils.getLatestErrorField(loginData, 'addedLogin')} type="error" />}

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

Add styles.mv3 to the DotIndicatorMessage, as the same(top margin too required) we are providing to ContactMethods, ContactMethodDetails successful screen.

<View style={[styles.ph5, styles.mv3, styles.flexRow, styles.flexWrap]}>

<View style={[styles.ph5, styles.mt3, styles.mb7]}>

Result
Screen.Recording.2023-04-23.at.7.35.21.PM.mp4

@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Apr 25, 2023
@melvin-bot melvin-bot bot changed the title No margin above Remove button in Contact method Detail screen [$1000] No margin above Remove button in Contact method Detail screen Apr 25, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0132b1dcfc371624b3

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

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

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

@hoangzinh
Copy link
Contributor

hoangzinh commented Apr 25, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

No margin above Remove button in Contact method Detail screen

What is the root cause of that problem?

Currently, we haven't provide margin style to Remove button in those LOC

<OfflineWithFeedback
pendingAction={lodashGet(loginData, 'pendingFields.deletedLogin', null)}
errors={ErrorUtils.getLatestErrorField(loginData, 'deletedLogin')}
errorRowStyles={[styles.mt6]}
onClose={() => User.clearContactMethodErrors(contactMethod, 'deletedLogin')}
>

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

We should pass prop style to the wrapper component of Remove button with style={[styles.mv3]} to align with what we set when it's default contact plain text in this line

I think it's better place to set margin.

@melvin-bot melvin-bot bot added the Overdue label Apr 25, 2023
@honnamkuan
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

No vertical margin is specified in places where DotIndicatorMessage is used, resulting in cramped looking UI

What is the root cause of that problem?

Lack of vertical margin styling in DotIndicatorMessage component.

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

We should standardize vertical margin for DotIndicatorMessage, by setting styles.dotIndicatorMessage

App/src/styles/styles.js

Lines 2669 to 2673 in d19326e

dotIndicatorMessage: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
},

to include

...spacing.mv3,

By doing so, we will ensure standardized default vertical margin for all usages of the component, at the same time it can still be overridden when necessary, due to props.style which get passed in will have higher precedence

<View style={[styles.dotIndicatorMessage, ...props.style]}>

@johnmlee101
Copy link
Contributor

not overdue still reviewing proposals

@melvin-bot melvin-bot bot removed the Overdue label Apr 25, 2023
@sobitneupane
Copy link
Contributor

Thanks for the proposal everyone.

All the proposals are similar. I would suggest to go through the previous proposals and propose your solution only if it has significant difference with the previous proposals.

@PrashantMangukiya has pointed out the root cause and suggested to add some padding in the DotIndicator. So, I would suggest going with his proposal. But let's use vertical padding instead of bottom padding.

🎀👀🎀 C+ reviewed

cc: @johnmlee101

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 26, 2023

@sobitneupane As for this small change the proposals won't be significantly changed and I thought the correct margin in the proposal should be prioritized. Just wanted to make the point.

@sobitneupane
Copy link
Contributor

@Pujan92 The proposal pointed out the root cause and the solution was almost up to the point. We cannot reject a proposal for a little lacking. We make some iterations in PR to polish such little things. As you know, it still has not been reviewed by internal engineer and he might think otherwise.

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 26, 2023

Thanks. As the change is a straight forward I thought it better if the proposal covers the connected part.

As you know, it still has not been reviewed by internal engineer and he might think otherwise.

Yes, that's why I raised a point before it got assigned.

@PrashantMangukiya
Copy link
Contributor

@Pujan92 and @sobitneupane Thanks.

I also mentioned in my proposal that styles shown for code sample. We will consider style as suggested by design team.

Note: We have to set bottom margin suggested by design team. At present styles.mb3 set to show code sample. It will solve the issue as shown in results

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 26, 2023

@PrashantMangukiya For the other screens which start with the direct Text we are already providing the marginTop of 12px, so as per consistency we should mention this in the proposal which I am seeing missing in your case and I think it might require for this straight forward changes.

@PrashantMangukiya
Copy link
Contributor

@PrashantMangukiya For the other screens which start with the direct Text we are already providing the marginTop of 12px, so as per consistency we should mention this in the proposal which I am seeing missing in your case and I think it might require for this straight forward changes.

This is not necessary to mention in proposal. Main thing is to point root cause of the problem and where correction needed.

@hoangzinh
Copy link
Contributor

@sobitneupane if we adding margin bottom to DotIndicatorMessage, I think it will add extra margin space in case it's default contact and having error. Because default contact also have margin top

<Text style={[styles.ph5, styles.mv3]}>

So I think, to be safe, we should stick with the problem and expectation in the GH issue description, that means we should add margin to the Remove button instead as I described here #17847 (comment)
What do you think?

@sobitneupane
Copy link
Contributor

sobitneupane commented Apr 26, 2023

@hoangzinh I have considered the case you mentioned. But I don't think the scenario you mentioned is likely to occur. We are adding margin to the error which occurs if adding contact fails which won't occur with already added Default Contact.

@PrashantMangukiya
Copy link
Contributor

@sobitneupane @johnmlee101 PR is ready for review.

@kevinksullivan
Copy link
Contributor

Offers sent in upwork @PrashantMangukiya @sobitneupane

@DinalJivani
Copy link

@kevinksullivan
I think you forgot to send offer to me.

@melvin-bot
Copy link

melvin-bot bot commented May 8, 2023

@johnmlee101, @PrashantMangukiya, @kevinksullivan, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick!

@sobitneupane
Copy link
Contributor

PR Deployed to Staging

@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] No margin above Remove button in Contact method Detail screen [HOLD for payment 2023-05-16] [$1000] No margin above Remove button in Contact method Detail screen 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:

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

@kevinksullivan
Copy link
Contributor

Offer sent @DinalJivani

@kevinksullivan
Copy link
Contributor

@sobitneupane please finish out the steps above this week and we'll get payments out once that is done and the 7 day period has passed!

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

Hi @sobitneupane checking in on this. Can you finish out the steps? Thanks!

@sobitneupane sobitneupane mentioned this issue May 17, 2023
54 tasks
@sobitneupane
Copy link
Contributor

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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

#15330

  • [@sobitneupane] 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:

#15330 (comment)

  • [@sobitneupane] 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:

This should have been caught during the PR review. I don't think we need to update PR review checklist.

  • [@sobitneupane] Determine if we should create a regression test for this bug.

I don't think we need any regression test for this bug.

@kevinksullivan
Copy link
Contributor

Paying out normal amounts due to 8 days to merge.

@kevinksullivan
Copy link
Contributor

Payments sent! Thanks everyone.

@PrashantMangukiya
Copy link
Contributor

@kevinksullivan I think we are eligible for the timeline bonus because pr for this issue is merged within three business days. I will request to check the timeline one more.

Issue assigned: Apr 27, 2023, 9:23 PM GMT+5:30
PR merged: Apr 28, 2023, 9:52 PM GMT+5:30

@PrashantMangukiya
Copy link
Contributor

@kevinksullivan comment above

@kevinksullivan
Copy link
Contributor

@PrashantMangukiya wow, I totally missed the merge date. Sorry about that.

@kevinksullivan
Copy link
Contributor

@PrashantMangukiya @sobitneupane sorry again, I've created a new upwork job to pay this out

https://www.upwork.com/jobs/~01db36337e9397423c

Just a heads up I am going to be out of office a few days, so this will get paid early next week. But please comment here once you've accepted the job and I'll try and get this to you asap.

@PrashantMangukiya
Copy link
Contributor

@kevinksullivan Bonus offer accepted on Upwork. Thank you.

@kevinksullivan
Copy link
Contributor

Love the quick turnaround! Paid and ended contracts. Thanks everyone.

1 similar comment
@kevinksullivan
Copy link
Contributor

Love the quick turnaround! Paid and ended contracts. Thanks everyone.

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants