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

[SMARTSCAN] [$500] [Regression fix] LOW: Expense - Incorrect placement of the red dot in expense report #29888

Closed
6 tasks done
lanitochka17 opened this issue Oct 18, 2023 · 17 comments
Assignees
Labels
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 Reviewing Has a PR in review SmartScan Wave5-free-submitters

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 18, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.3.86-1

Reproducible in staging?: Yes

Reproducible in production?: Yes

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:

Precondition: There is some failed Scan requests with red dot

  1. Go to staging.new.expensify.com
  2. Go to the chat containg the requests in the precondition
  3. Click on the request preview

Expected Result:

The red dot in the expense in 1:1 DM, expense report and expense details page has consistent placement on the right end of the content

Actual Result:

The red dot in the expense report is right next to the word 'Cash' instead of on the right end like it does in 1:1 DM and expense details page

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

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari Bug6242013_1697649205328!Red_dot_on_the_right_end_placement
Bug6242013_1697649205327.20231019_010845.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f43fdbc3c0a0e63e
  • Upwork Job ID: 1716756487011663872
  • Last Price Increase: 2023-10-24
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 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

@ishpaul777
Copy link
Contributor

ishpaul777 commented Oct 18, 2023

Proposal

Problem

Expense - Incorrect placement of the red dot in expense report

Root Cause

We have not added any style that seperates the text and the error "RedDot" in MoneyReportView, no root cause just a styling issue.

Changes

We can add style justifyContentBetween and alignItemsCenter (optional) for container of Text and the RedDot in MoneyReportView.

                         <View style={[styles.flexRow, styles.justifyContentBetween]}> // add here
                                <Text style={[styles.textLabelSupporting, styles.lh20, styles.mb1]}>{getPreviewHeaderText() + (isSettled ? ` • ${getSettledMessage()}` : '')}</Text>
                                {hasFieldErrors && (
                                    <Icon
                                        src={Expensicons.DotIndicator}
                                        fill={themeColors.danger}
                                    />
                                )}
                            </View>
Screen.Recording.2023-10-18.at.11.41.20.PM.mov

Optionally, we can add margin right to the text, but that would inconsistent with request preview.

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 18, 2023

Regression from #29544 where extra View is removed which has theflex1 prop to take available width.
9d04cf9#diff-d8e6b69ad4461bebf91e940a67ddc07adf36a3f7c156d6066363c3bde06a0f8aL265

@trjExpensify
Copy link
Contributor

I think this is the same as I reported here, right? #29733

@rushatgabhane
Copy link
Member

@tienifr will be fixing the regression because it's under regression period

@trjExpensify
Copy link
Contributor

Yup, makes sense!

@tienifr
Copy link
Contributor

tienifr commented Oct 24, 2023

The PR #30231 is up

@trjExpensify
Copy link
Contributor

Niceee! @anmurali I'll just snag this from you.

@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@melvin-bot melvin-bot bot removed the Overdue label Oct 24, 2023
@trjExpensify trjExpensify changed the title Expense - Incorrect placement of the red dot in expense report [Regression fix] Expense - Incorrect placement of the red dot in expense report Oct 24, 2023
@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Oct 24, 2023
@melvin-bot melvin-bot bot changed the title [Regression fix] Expense - Incorrect placement of the red dot in expense report [$500] [Regression fix] Expense - Incorrect placement of the red dot in expense report Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01f43fdbc3c0a0e63e

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

melvin-bot bot commented Oct 24, 2023

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

@trjExpensify trjExpensify added Reviewing Has a PR in review and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 24, 2023
@dylanexpensify dylanexpensify changed the title [$500] [Regression fix] Expense - Incorrect placement of the red dot in expense report [$500] [Regression fix] LOW: Expense - Incorrect placement of the red dot in expense report Oct 27, 2023
@trjExpensify
Copy link
Contributor

@rushatgabhane what's the ETA on reviewing the PR?

Copy link

melvin-bot bot commented Nov 6, 2023

@cead22, @trjExpensify, @rushatgabhane, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@trjExpensify
Copy link
Contributor

PR is merged melv, awaiting a staging deploy.

@dylanexpensify dylanexpensify changed the title [$500] [Regression fix] LOW: Expense - Incorrect placement of the red dot in expense report [SMARTSCAN] [$500] [Regression fix] LOW: Expense - Incorrect placement of the red dot in expense report Nov 7, 2023
@dylanexpensify dylanexpensify added the SmartScan Wave5-free-submitters label Nov 7, 2023
Copy link

melvin-bot bot commented Nov 20, 2023

@cead22, @trjExpensify, @rushatgabhane, @tienifr Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@trjExpensify
Copy link
Contributor

Going to close this as it was an issue for a regression from #29543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Reviewing Has a PR in review SmartScan Wave5-free-submitters
Projects
No open projects
Development

No branches or pull requests

9 participants