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 2024-02-26] Reimbursements - Error message is not left aligned to other items #36436

Closed
3 of 6 tasks
kavimuru opened this issue Feb 13, 2024 · 17 comments
Closed
3 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Feb 13, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.41-2
Reproducible in staging?: y
Reproducible in production?: n (new feature)
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:

  1. Open workspace settings page
  2. Click on 'Reimbursements'
  3. Click on 'Rate'
  4. Click on 'Rate' again
  5. Reset the value to '0'
  6. Click 'Save'

Expected Result:

Error message should be left aligned with back & save button

Actual Result:

Error message is not left aligned with back & save button

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6378591_1707855590103!Screenshot_2024-02-13_at_5 34 00_in_the_afternoon

View all open jobs on GitHub

@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 13, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 13, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Triggered auto assignment to @hayata-suenaga (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@habasefa
Copy link

habasefa commented Feb 13, 2024

Proposal

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

The form validation error message is out of alignment, not left aligned.

What is the root cause of that problem?

The form validation error message has zero padding and margin. Therefore, it is attached to the left side of the screen.

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

Adding left padding like the other items, and making it align with them.
{!!errorText && (
<FormHelpMessage
style={[styles.pAbsolute, styles.b0, styles.mb0, styles.w100, styles.pl5]}
isError
message={errorText}
/>
)}

What alternative solutions did you explore? (Optional)

Tried adding a left margin but that is working only for the web.

@mkhutornyi
Copy link
Contributor

mkhutornyi commented Feb 13, 2024

Proposal

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

Reimbursements - Error message is not left aligned to other items

What is the root cause of that problem?

There's no margin/padding style set in form and button

<FormProvider
formID={ONYXKEYS.FORMS.WORKSPACE_RATE_AND_UNIT_FORM}
submitButtonText={translate('common.save')}
validate={validate}
onSubmit={submit}
enabledWhenOffline
style={[styles.flexGrow1]}
shouldHideFixErrorsAlert
submitFlexEnabled={false}
submitButtonStyles={[styles.mh5, styles.mt0]}

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

  1. add styles.ph5

  2. remove styles.mh5 and update styles.mt0 to styles.mt3

    submitButtonStyles={[styles.mh5, styles.mt0]}

Result: (perfectly match with money request amount form)

1 2

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Feb 13, 2024

It looks like new component from this PR
#34849

@Beamanator
Copy link
Contributor

@ZhenjaHorbach Agreed it looks like this came from #34849 - @shubham1206agra can you look into fixing this?

@shubham1206agra
Copy link
Contributor

Going to combine it with #36438

Copy link

melvin-bot bot commented Feb 14, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@hayata-suenaga
Copy link
Contributor

being fixed in this PR

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 14, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Feb 14, 2024
@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Feb 14, 2024
@thienlnam
Copy link
Contributor

Removing the blocker
#36549 (comment)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot changed the title Reimbursements - Error message is not left aligned to other items [HOLD for payment 2024-02-26] Reimbursements - Error message is not left aligned to other items Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-5 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-26. 🎊

Copy link

melvin-bot bot commented Feb 19, 2024

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:

  • [@hayata-suenaga] The PR that introduced the bug has been identified. Link to the PR:
  • [@hayata-suenaga] 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:
  • [@hayata-suenaga] 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:
  • [@hayata-suenaga] Determine if we should create a regression test for this bug.
  • [@hayata-suenaga] 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:

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Feb 20, 2024

The PR that introduced the bug has been identified. Link to the PR

#34849

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:

#34849 (comment)

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:

No need for this

Determine if we should create a regression test for this bug.

No need for a new regression test

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.

N/A

@kevinksullivan
Copy link
Contributor

Payment summary:

@JmillsExpensify
Copy link

$250 approved for @allroundexperts based on summary above.

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. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants