Skip to content

[$250] Reports – Thumbs-up icon missing after approving a report #76833

Closed

Description

@lanitochka17

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.72-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/folder/13176702/test-cases/41236790
Email or phone of affected tester (no customers): aperera+j0@applausemail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Log in as the Admin of the Collect workspace in NewDot
  2. Navigate to the report that was submitted for approval
  3. Open the report preview
  4. Click Approve
  5. Observe the report title in the preview header

Expected Result:

After approving the report, a thumbs-up (👍) icon should be displayed next to the report title in the preview header

Actual Result:

The thumbs-up (👍) icon is not displayed after approving the report.

Workaround:

Unknown

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

Add any screenshot/video evidence
Bug7021769_1764950495862.Grabando__796.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021998441958329207564
  • Upwork Job ID: 1998441958329207564
  • Last Price Increase: 2025-12-16
Issue OwnerCurrent Issue Owner: @DylanDylann

Activity

  1. added
    Daily
    Bug
    on Dec 5, 2025
  2. melvin-bot commented on Dec 5, 2025

    @melvin-bot

    Triggered auto assignment to @NicMendonca (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. abbasifaizan70 commented on Dec 5, 2025

    @abbasifaizan70
    Contributor

    Proposal

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

    After approving a report in the report preview, a thumbs-up (👍) icon should be displayed next to the report title in the preview header to indicate the approval status. Currently, the thumbs-up icon is not displayed after approving a report, even though the approval animation logic exists.

    What is the root cause of that problem?

    The root cause is that while the animation infrastructure for the thumbs-up icon exists in MoneyRequestReportPreviewContent.tsx (the thumbsUpScale shared value is created and animated when a report is approved), the actual thumbs-up icon component is never rendered in the JSX.

    Specifically:

    1. The thumbsUpScale shared value is initialized and animated correctly (lines 196, 382-388)
    2. The isApproved state is correctly determined using isReportApproved
    3. However, the thumbs-up icon is not included in the lazy-loaded icons list
    4. The icon is not rendered next to the report title in the preview header (around line 679-686)

    The animation logic was implemented but the visual component was never added to the UI.

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

    1. Add ThumbsUp to the lazy-loaded icons

    Update the useMemoizedLazyExpensifyIcons call in MoneyRequestReportPreviewContent.tsx to include 'ThumbsUp':

    const expensifyIcons = useMemoizedLazyExpensifyIcons(['ArrowRight', 'BackArrow', 'ThumbsUp'] as const);

    2. Create an animated style for the thumbs-up icon

    Add an animated style that uses the existing thumbsUpScale shared value:

    const thumbsUpStyle = useAnimatedStyle(() => ({
        transform: [{scale: thumbsUpScale.value}],
    }));

    3. Render the thumbs-up icon next to the report title

    Add the thumbs-up icon component next to the report title text, conditionally rendered when isApproved is true:

    {isApproved && (
        <Animated.View style={[styles.ml2, thumbsUpStyle]}>
            <Icon
                src={expensifyIcons.ThumbsUp}
                small
                fill={theme.success}
            />
        </Animated.View>
    )}

    This will display the thumbs-up icon next to the report title with the existing spring animation when a report is approved. The icon will scale from 0 to 1 with the animation delay and duration already configured in the useEffect hook.

    What alternative solutions did you explore? (Optional)

    None

  4. tsa321 commented on Dec 7, 2025

    @tsa321
    Contributor

    Proposal

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

    Reports – Thumbs-up icon missing after approving a report

    What is the root cause of that problem?

    The settlement (checkmark) and approved (thumbs-up) icons were removed in #66260, where there was a lot of discussion about whether they should be removed or not.

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

    If we want to keep them, then we can revert the changes that removed the approved icon in #66260 :

    </Text>
    {!doesReportNameOverflow && <>&nbsp;{approvedOrSettledIcon}</>}
    </Text>
    {doesReportNameOverflow && (
    <View style={[styles.mtn0Half, (transactions.length < 3 || shouldUseNarrowLayout) && styles.alignSelfStart]}>
    {approvedOrSettledIcon}
    </View>

    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. added
    External
    on Dec 9, 2025
  6. melvin-bot commented on Dec 9, 2025

    @melvin-bot
  7. changed the title [-]Reports – Thumbs-up icon missing after approving a report[/-] [+][$250] Reports – Thumbs-up icon missing after approving a report[/+] on Dec 9, 2025
  8. added
    Help Wanted
    on Dec 9, 2025
  9. melvin-bot commented on Dec 9, 2025

    @melvin-bot

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

  10. DylanDylann commented on Dec 12, 2025

    @DylanDylann
    Contributor

    Can't reproduce anymore. @tsa321 @abbasifaizan70 Could you reproduce this bug on new main?

    Screen.Recording.2025-12-12.at.15.14.01.mov
  11. abbasifaizan70 commented on Dec 12, 2025

    @abbasifaizan70
    Contributor

    @DylanDylann As per my understanding, once the expense is approved, a thumbs-up icon should appear next to the title. Since it is not appearing, the issue is reproducible.

    Before:

    Image

    After my Fix:

    Image
  12. tsa321 commented on Dec 12, 2025

    @tsa321
    Contributor

    @DylanDylann The icon is next to the report title:

    Image

    In this PR: #66260, they removed the icon and decided to handle it in another issue.
    So maybe we need to ask the design team?

    CC @dubielzyk-expensify Is it final that we are removing this approved icon?

  13. DylanDylann commented on Dec 12, 2025

    @DylanDylann
    Contributor

    Ahh thanks I overlooked it

  14. dubielzyk-expensify commented on Dec 15, 2025

    @dubielzyk-expensify
    Contributor

    CC @dubielzyk-expensify Is it final that we are removing this approved icon?

    Yep. Now that we have the status badges we don't need the icons in the titles anymore. cc @dannymcclain too

  15. DylanDylann commented on Dec 15, 2025

    @DylanDylann
    Contributor

    @trjExpensify @shawnborton @dannymcclain relating to this issue, could you help to confirm if this is a bug or intentional? The status icon near the report tile already been removed recently. Should we add it again?

    Image
  16. dubielzyk-expensify commented on Dec 15, 2025

    @dubielzyk-expensify
    Contributor

    Nope. We should remove the icon in the title as we have the status badge that says Approved.

  17. DylanDylann commented on Dec 15, 2025

    @DylanDylann
    Contributor

    @dubielzyk-expensify You text at the same time to me 😄

  18. DylanDylann commented on Dec 15, 2025

    @DylanDylann
    Contributor

    @NicMendonca Let's close this one

  19. trjExpensify commented on Dec 15, 2025

    @trjExpensify
    Contributor

    Yep, agreed. @lanitochka17 can you make sure this doesn't get reported again with an update to regression test case(s) if applicable? Thanks!

  20. m-natarajan commented on Dec 15, 2025

    @m-natarajan

    @trjExpensify Updated the corresponding test case.

  21. melvin-bot commented on Dec 16, 2025

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

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

Metadata

Metadata

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions