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-07-15] Expense - Missing report title in report details page after the expense is paid #44959

Closed
6 tasks done
lanitochka17 opened this issue Jul 8, 2024 · 23 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 8, 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: 9.0.5-3
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat with no unsettled expense
  3. Submit an expense
  4. Go to transaction thread
  5. Pay the expense (same account as admin)
  6. Click on the report header

Expected Result:

There will be report title in report details page after the expense is paid

Actual Result:

There is no report title in report details page after the expense is paid

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

Bug6535806_1720442348996.untitled.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mkhutornyi
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented Jul 8, 2024

👋 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.

@lanitochka17
Copy link
Author

@srikarparsi FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Jul 8, 2024

Proposal

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

Expense - Missing report title in report details page after the expense is paid.

What is the root cause of that problem?

In the existing logic, neither nameSectionExpenseIOU is being shown nor nameSectionTitleField.

This is because shouldShowTitleField is true and titleField is undefined.

<View style={[styles.reportDetailsTitleContainer, styles.pb0]}>
{renderedAvatar}
{isExpenseReport && !shouldShowTitleField && nameSectionExpenseIOU}
</View>
{isExpenseReport && shouldShowTitleField && nameSectionTitleField}

shouldShowTitleField being true dismisses the possibility of showing nameSectionExpenseIOU.

titleField being undefined dismisses the possibility of showing nameSectionTitleField .

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

If titleField is not available, then we should show nameSectionExpenseIOU.

<View style={[styles.reportDetailsTitleContainer, styles.pb0]}>
    {renderedAvatar}
    {isExpenseReport && (!shouldShowTitleField || !titleField) && nameSectionExpenseIOU}
</View>

{isExpenseReport && shouldShowTitleField && titleField && nameSectionTitleField}

@ShridharGoel
Copy link
Contributor

@mountiny @srikarparsi I'm available to quickly open a PR to fix this.

@Julesssss
Copy link
Contributor

Thanks @ShridharGoel, I'm not familiar with this flow but your logic makes sense to me. Please go ahead and submit a PR

@Julesssss Julesssss assigned Julesssss and unassigned srikarparsi Jul 8, 2024
@mountiny mountiny removed the DeployBlocker Indicates it should block deploying the API label Jul 8, 2024
@Julesssss
Copy link
Contributor

Possibly related to the edit report title PR.

@Julesssss Julesssss added the External Added to denote the issue can be worked on by a contributor label Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

@Julesssss Julesssss added the Bug Something is broken. Auto assigns a BugZero manager. label Jul 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

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

Copy link

melvin-bot bot commented Jul 8, 2024

Triggered auto assignment to @johncschuster (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.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Jul 8, 2024
@ShridharGoel
Copy link
Contributor

#44973

@allroundexperts
Copy link
Contributor

@Julesssss can you assign this to me? Thanks!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 8, 2024
@Julesssss Julesssss changed the title Expense - Missing report title in report details page after the expense is paid [HOLD FOR PAYMENT] Expense - Missing report title in report details page after the expense is paid Jul 8, 2024
@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label Jul 10, 2024
@johncschuster
Copy link
Contributor

@Julesssss just making sure I'm following along correctly – the PR that I should be watching for regressions is #44973, right?

@Julesssss
Copy link
Contributor

Hey @johncschuster. Yep that's correct 👍

@johncschuster
Copy link
Contributor

Thanks! Looks like it was approved on July 8, so I will pay this out on July 15 assuming no regressions 👍

@johncschuster johncschuster changed the title [HOLD FOR PAYMENT] Expense - Missing report title in report details page after the expense is paid [HOLD FOR PAYMENT 2024-07-15] Expense - Missing report title in report details page after the expense is paid Jul 11, 2024
@johncschuster
Copy link
Contributor

No regressions! I'll get this paid out today.

@johncschuster
Copy link
Contributor

Payment Summary:

Contributor+: @allroundexperts - $250 - paid via Manual request
Contributor: @ShridharGoel - $250 - paid via Upwork

@johncschuster
Copy link
Contributor

@ShridharGoel, can you accept the job linked above so I can issue payment?

@johncschuster
Copy link
Contributor

Bumped in Slack 👍

@johncschuster
Copy link
Contributor

Upwork job has not been accepted yet. Holding on that.

@johncschuster
Copy link
Contributor

Payment has been issued to @ShridharGoel! @allroundexperts, please request payment via ND if you haven't already done so.

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants