-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove GBR on rejecting expense #74543
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
base: main
Are you sure you want to change the base?
Remove GBR on rejecting expense #74543
Conversation
|
@truph01 will review this PR. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@truph01 I've marked this ready for review but skipped iOS screenshot as I have some issues with my Xcode. |
|
@heyjennahay @trjExpensify @garrettmknight Can one of you review too? |
|
🚧 @garrettmknight has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Tested on an adhoc build. A few things:
Screen.Recording.2025-11-10.at.6.29.23.PM.mov |
Remind me, does reject always come with a user comment? If so, then that makes sense for the submitter. |
Thanks @garrettmknight for checking. It's weird I tested this and I don't refresh it if you check my video. Let me get back to you. Quick question, I can't make out from your video if you're offline or online? |
It always comes with a comment, but it goes unread for the approver, too. |
Online. |
I'm not sure if this is needed right? What does the approver need to do with it after they reject it? |
Okay I'll check this further but if it's online then the fix might be needed from backend @lakchote |
I agree. I don't think the thread should be unread for the person taking the action. 🤔 |
|
I'd agree we could remove the unread. |
|
Doesn't the message come "from" the approver doing the rejecting? So I'm a bit confused why it's not "out of the box" not marking the chat as unread for them. :thinking_face: If we need to make a certain report action only actionable for the submitter, we should use the |
|
@truph01 Are you able to reproduce this issue? @garrettmknight can you please share the steps may be I am missing something here. |
|
Checking it now |
|
@mananjadhav Do we need to remove the unread for the approver who rejects the expense, as discussed above? |
@garrettmknight Do we want this in the current PR? @truph01 Even if we do plan to remove the unread logic, I'll add a follow up on this one. Please continue with the review and QA for this one. |
|
@mananjadhav With the new code changes, when a user rejects two expenses while offline, everything works as expected. However, once we go back online, the GBR reappears. Do you think this might be a backend bug? |
|
Backend PR is under review here |
heyjennahay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No concern with final agreed product change
@mananjadhav @truph01 backend PR has been deployed |
|
@lakchote Is it deployed on production? I just retested locally and I can still reproduce the issue. web-reject-twice-error.mov |
Yes, it's deployed on production @mananjadhav Here is a video test of the bug fix: test.movI've based myself on the steps outlined here: |
|
Steps to reproduce:
Expected Result:
Actual Result
I investigated this and here's what I found. When we come back online and the web-twice-gbr-api-calls.mov |
@mananjadhav could you please post a video test for this one? it seems like there is one step missing there. |
|
@mananjadhav Lucien's auth PR is on prod. |
|
Thanks for the update. I'll resolve conflicts and test it once again. |
@mananjadhav any update? |
|
@trjExpensify @lakchote Just tested the fix. It's working fine now. @truph01 Please provide your final review and checklist so that we can merge soon. web-twice-reject-gbr.mov |
|
Checking the TS error now. |
|
cc @truph01 can you please review it? |
|
@truph01 quick bump |
|
Reviewing |
Explanation of Change
Fixed Issues
$ #70565
PROPOSAL:
Tests
Precondition:
Tests
Offline tests
Same as Test steps
QA Steps
Same as Test steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android-reject-gbr.mov
Android: mWeb Chrome
mweb-chrome-reject-gbr.mov
iOS: Native
iOS: mWeb Safari
mweb-safari-reject-gbpr.mov
MacOS: Chrome / Safari
web-reject-gbr.mov
MacOS: Desktop
desktop-reject-gbr.mov