Skip to content

[Due for payment 2025-10-27] [$125] Reports page - Incorrect right padding on selection list rows in the From filter menu #72183

Closed

Description

@izarutskaya

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: 9.2.28-0
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: @shawnborton
Slack conversation (hyperlinked to channel name): expensify_bugs

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in
  3. Go to Reports page
  4. Click on From filter menu

Expected Result:

The checkbox should just be 20px from the right edge.

Actual Result:

The avatar is bigger than it's wrapper, and the checkbox is not over on the right edge.

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Recording.3446.mp4
Image Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021978240290167625454
  • Upwork Job ID: 1978240290167625454
  • Last Price Increase: 2025-10-14
  • Automatic offers:
    • nkdengineer | Contributor | 109136377
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    Bug
    on Oct 9, 2025
  2. melvin-bot commented on Oct 9, 2025

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. nkdengineer commented on Oct 9, 2025

    @nkdengineer
    Contributor

    Proposal

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

    The avatar is bigger than it's wrapper, and the checkbox is not over on the right edge.

    What is the root cause of that problem?

    We have a margin right as 12px here

    style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, styles.mr3]}

    mentionSuggestionsAvatarContainer style has width and height as 24px and avatarSizeSmall has size 28px

    avatarSizeSmall: 28,

    App/src/styles/index.ts

    Lines 336 to 341 in d44598e

    mentionSuggestionsAvatarContainer: {
    width: 24,
    height: 24,
    alignItems: 'center',
    justifyContent: 'center',
    },

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

    The checkbox should just be 20px from the right edge.

    1. We should remove this margin right if we don't have rightElement
        style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, !!item.rightElement && styles.mr3]}
    

    The avatar is bigger than it's wrapper

    1. we should set the size of Avatar as CONST.AVATAR_SIZE.SMALLER or we can set the size of mentionSuggestionsAvatarContainer style to 28px (we can create a new style for this)
        <Avatar
            source={item.icons.at(0)?.source}
            size={CONST.AVATAR_SIZE.SMALLER}
            name={item.icons.at(0)?.name}
            avatarID={item.icons.at(0)?.id}
            type={item.icons.at(0)?.type ?? CONST.ICON_TYPE_AVATAR}
            fallbackIcon={item.icons.at(0)?.fallbackIcon}
        />
    

    <Avatar
    source={item.icons.at(0)?.source}
    size={CONST.AVATAR_SIZE.SMALL}
    name={item.icons.at(0)?.name}
    avatarID={item.icons.at(0)?.id}
    type={item.icons.at(0)?.type ?? CONST.ICON_TYPE_AVATAR}
    fallbackIcon={item.icons.at(0)?.fallbackIcon}
    />

    Image

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. paulnjs commented on Oct 9, 2025

    @paulnjs
    Contributor

    Proposal

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

    The avatar is bigger than it's wrapper, and the checkbox is not over on the right edge.

    What is the root cause of that problem?

    We always set the margin right for the check box here

    style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, styles.mr3]}

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

    We should only set the margin-right if the rightElement exists

    style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, !!item.rightElement && styles.mr3]}
    

    style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, styles.mr3]}

    Or we can remove the margin-right and add the margin-left to rightElement if it exists

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    undefined

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  5. Eskalifer1 commented on Oct 9, 2025

    @Eskalifer1
    Contributor

    Proposal

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

    Reports page - Incorrect right padding on selection list rows in the From filter menu

    What is the root cause of that problem?

    The wrap above the avatar has a width and height of 24px, while the avatar itself has a height and width of 28px:

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

    There are two ways to solve this:

    1. We need to change the width and height of the container to 28px
    2. Reduce the avatar from Small to Smaller

    <View style={styles.mentionSuggestionsAvatarContainer}>
    <Avatar
    source={item.icons.at(0)?.source}
    size={CONST.AVATAR_SIZE.SMALL}
    name={item.icons.at(0)?.name}
    avatarID={item.icons.at(0)?.id}
    type={item.icons.at(0)?.type ?? CONST.ICON_TYPE_AVATAR}
    fallbackIcon={item.icons.at(0)?.fallbackIcon}
    />
    </View>

    We can do this dynamically if these variables are not needed elsewhere.

    Additionally we need to remove marginRight if the rightElement is not exist:

    style={[styles.cursorUnset, StyleUtils.getCheckboxPressableStyle(), item.isDisabledCheckbox && styles.cursorDisabled, styles.mr3]}

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N/A

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  6. Eskalifer1 commented on Oct 9, 2025

    @Eskalifer1
    Contributor

    Proposal updated!

    Added part about checkbox

  7. changed the title [-]Reports page - Incorrect right padding on selection list rows in the From filter menu[/-] [+][$125] Reports page - Incorrect right padding on selection list rows in the From filter menu[/+] on Oct 14, 2025
  8. melvin-bot commented on Oct 14, 2025

    @melvin-bot

    ⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

  9. added
    External
    on Oct 14, 2025
  10. melvin-bot commented on Oct 14, 2025

    @melvin-bot
  11. added
    Help Wanted
    on Oct 14, 2025
  12. 19 remaining items

  13. removed
    Reviewing
    on Oct 20, 2025
  14. melvin-bot commented on Oct 20, 2025

    @melvin-bot

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

  15. melvin-bot commented on Oct 20, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.33-4 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 2025-10-27. 🎊

    For reference, here are some details about the assignees on this issue:

  16. melvin-bot commented on Oct 20, 2025

    @melvin-bot

    @ikevin127 @mallenexpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  17. ikevin127 commented on Oct 25, 2025

    @ikevin127
    Contributor

    BugZero Checklist:

    • [Contributor] 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: N/A - Result of the original design

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    1. Log in.
    2. Navigate to Reports page.
    3. Click on the From filter dropdown menu.
    4. Verify that the checkbox is 20px from the right edge and the avatar fits with its 24x24 wrapper.

    Do we agree 👍 or 👎.

  18. ikevin127 commented on Oct 28, 2025

    @ikevin127
    Contributor
  19. added
    Daily
    and removed
    Weekly
    on Oct 29, 2025
  20. mallenexpensify commented on Oct 29, 2025

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @nkdengineer owed $125 via NewDot
    Contributor+: @ikevin127 due $125 via NewDot

    Test case created

    Apologies for the delay

    job price updated to $125

  21. garrettmknight commented on Nov 1, 2025

    @garrettmknight
    Contributor

    $125 approved for @ikevin127

  22. JmillsExpensify commented on Dec 1, 2025

    @JmillsExpensify
    Contributor

    $125 approved for @nkdengineer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions