Skip to content

[Report Creation UI] Expense with violation shows View button on wide screen, Review button on small screen #61977

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

Closed
2 of 8 tasks
mitarachim opened this issue May 14, 2025 · 11 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2 Reviewing Has a PR in review

Comments

@mitarachim
Copy link

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: 9.1.45-4
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense with violation (expense without category).
  4. Go to Reports.
  5. Go to Expense Reports.
  6. Note that the expense row shows a View button.
  7. Resize the screen to small.
  8. Note that now the expense row shows a Review button (mweb, Android and iOS behavior).

Expected Result:

When an expense has violation, the expense row will show Review button in Expense Reports.

Actual Result:

On wide screen, when an expense has violation, the expense row shows View button.
On narrow screen, when an expense has violation, the expense row shows Review button.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6830391_1747185917286.20250514_092100.mp4

View all open jobs on GitHub

@mitarachim mitarachim added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 14, 2025
Copy link

melvin-bot bot commented May 14, 2025

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

Copy link

melvin-bot bot commented May 14, 2025

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

Copy link

melvin-bot bot commented May 14, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 14, 2025
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.

@mountiny mountiny removed the DeployBlocker Indicates it should block deploying the API label May 14, 2025
@trjExpensify
Copy link
Contributor

I think this one might get fixed by @sumo-slonik's PR here to put the action button in the right place: #61903

Kuba, could you quickly test it?

@trjExpensify trjExpensify changed the title Reports-Expense with violation shows View button on wide screen, Review button on small screen [Report Creation UI] Expense with violation shows View button on wide screen, Review button on small screen May 14, 2025
@trjExpensify trjExpensify moved this to Second Cohort - CRITICAL in [#whatsnext] #migrate May 14, 2025
@sumo-slonik
Copy link
Contributor

I think this one might get fixed by @sumo-slonik's PR here to put the action button in the right place: #61903

Kuba, could you quickly test it?

Checking now

@sumo-slonik
Copy link
Contributor

sumo-slonik commented May 14, 2025

@trjExpensify
Here, the "review action" button that appears on the narrow layout is not the button in the transaction row, but the header button that used to appear in this spot for the narrow layout. In my PR, it was also added to the regular layout in the header:

heder action in normal view:

Image

heder acion in narrow:
Image

However, the change from "view" to "review" in the transaction row itself has not been fixed.

If you think this should be addressed as part of my PR, I can also investigate it.

@trjExpensify
Copy link
Contributor

However, the change from "view" to "review" in the transaction row itself has not been fixed.

What is there to fix here? I think what you've just shown is correct.

From this issue OP we can see:

  • No Review button at the header level (wide view) ❌
  • Review button at the header level (narrow view) ✅
Image Image

In your PR screenshots:

  • Review button at the header level (wide view) ✅
  • Review button at the header level (narrow view) ✅
Image Image

So I think this one is solved by your PR. 👍

@sumo-slonik
Copy link
Contributor

sumo-slonik commented May 14, 2025

We have added a review button in the header, but for the transaction, there is still only a view button, not a review one. I thought we wanted to change this in this issue. If not, then this issue has been fixed in my PR.

Expected Result:
When an expense has violation, the expense row will show Review button in Expense Reports.

@trjExpensify
Copy link
Contributor

Nah, that's just bad phrasing.

@mountiny mountiny added the Reviewing Has a PR in review label May 14, 2025
@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label May 14, 2025
@trjExpensify
Copy link
Contributor

We can close this, it was fixed in a PR for another issue.

@github-project-automation github-project-automation bot moved this from Second Cohort - CRITICAL to Done in [#whatsnext] #migrate May 15, 2025
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 Hourly KSv2 Reviewing Has a PR in review
Projects
Development

No branches or pull requests

7 participants