-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix error message disappear #35871
fix error message disappear #35871
Conversation
Please merge main. Typechecks are fixed on it. |
@c3024 I updated. |
Reviewer Checklist
Screenshots/VideosAndroid: NativereceiptErrorAndroid.mp4Android: mWeb ChromereceiptErrorAndroidChrome.mp4iOS: NativereceiptErroriOS.mp4iOS: mWeb SafarireceiptErroriOSSafari.mp4MacOS: Chrome / SafariscanRequest.mp4manualRequest.mp4distanceRequest.mp4manualRequestOneToOne.mp4scanRequestOneToOne.mp4MacOS: DesktopreceiptErrorDesktop.mp4 |
I think RBR on LHN as well should be fixed within this issue. fixError.mp4 |
Ah, so that occurs with this PR, but not on main? If so I agree. |
No this PR did not introduce it. The behaviour is already there are on |
When there is an error shown at a mandatory field, I think it is logical to show RBR on LHN as well. That's why I asked if showing RBR on LHN should be included within the scope of this issue. This PR did not change any behaviour that already existed on |
Okay got it. @dukenv0307 could you please apply a change to your PR to ensure the error is shown on the LHN? |
I am working on it |
@c3024 I fixed comment #35871 (comment) |
I think once a request is deemed as a scan request, even if we remove the receipt, the error at the merchant field and RBRs on LHN should be same as when there was a receipt. receiptError.mp4Here, on member and admin side together there are total three red dots and zero green dots when there is a receipt. When the receipt is removed, IMO there should be the same dots as earlier. But there is one red dot and one green dot. @dukenv0307 cc: @Julesssss |
Hi there, can you check to see if this issue might be a regression from this PR? |
This PR hasn't been merged yet @Christinadobrzyn . That deploy blocker must be related to another issue. |
Daily update: Still working on the LHN RBR issues |
@c3024 The reason that leads to the behavior mentioned in this [comment] (#35871 (comment)) is that the condition here return
|
Those changes work well. Please include them in the PR. @dukenv0307 |
Please merge |
@c3024 I updated and merged main. |
Seems like we're nearly there 👍 |
src/libs/TransactionUtils.ts
Outdated
/** | ||
* Check if the transaction has missing required fields | ||
*/ | ||
function hasMissingRequiredFields(transaction: OnyxEntry<Transaction>): boolean { |
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.
I think it is better to just use hasMissingSmartScanFields
at the places where we added hasMissingRequiredFields
even though the name hasMissingSmartScanFields
might be a little misleading for other requests like manual requests with receipts.
Adding another function with a different name like this hasMissingRequiredFields
that returns the same value as hasMissingSmartScanFields
can be more confusing later IMO. @dukenv0307
cc: @Julesssss
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.
I'm on the fence. Having a better-described function name is good. But we can always do that later, or rename the existing function. @dukenv0307 is the idea that we'll eventually add to these functions to separate them?
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.
Adding another function with a different name like this hasMissingRequiredFields that returns the same value as hasMissingSmartScanFields can be more confusing later
I agree with @c3024 comment. Just updated the PR to only use hasMissingSmartScanFields
RBR on I think we gotta modify
reportPreviewRedDot.mp4 |
@dukenv0307 In the test steps, please add a step between 4 and 5 as something like
and after 'Add a receipt' step as same
|
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.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.45-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.45-6 🚀
|
Details
Fixed Issues
$ #34997
PROPOSAL: #34997 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screencast.from.07-02-2024.18.05.28.webm
Android: mWeb Chrome
Screencast.from.06-02-2024.11.59.58.webm
iOS: Native
Screencast.from.06-02-2024.13.29.55.webm
iOS: mWeb Safari
Screencast.from.06-02-2024.11.57.55.webm
MacOS: Chrome / Safari
Screencast.from.06-02-2024.11.45.05.webm
MacOS: Desktop
Screencast.from.06-02-2024.13.24.32.webm