-
Notifications
You must be signed in to change notification settings - Fork 3k
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 - “Submitted $amount” system message appears for a moment when Employee submit IOU #39321
Fix - “Submitted $amount” system message appears for a moment when Employee submit IOU #39321
Conversation
Will review in my morning time. |
Note that, IOU preview is broken, it doesn't relate to this PR. It was reported here Screen.Recording.2024-04-02.at.09.11.20.mov |
src/libs/ReportUtils.ts
Outdated
} else { | ||
submittedToDisplayName = ownerPersonalDetails?.displayName | ||
? `${ownerPersonalDetails.displayName}${ownerPersonalDetails.displayName !== ownerPersonalDetails.login ? ` (${ownerPersonalDetails.login})` : ''}` | ||
: 'Hidden'; |
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.
Can you provide the tests for Hidden
case?
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.
Nope. I just thought it would be better to have submitted to Hidden
rather than submitted To
. The case could happen if the personal details list is not ready in onyx but I couldn't reproduce the case honestly.
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 once user got invited to workspace, they will be ready in Onyx because we will get these information while opening the App.
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chromemwebchrome.movScreen.Recording.2024-04-16.at.22.24.06.movMacOS: Chrome / Safarichrome.movScreen.Recording.2024-04-16.at.22.21.11.mov |
@FitseTLT Please update Offline and QA steps as well. |
@FitseTLT The code looks good, don't forget to update the QA and Offline steps, so I can complete the checklist. Thank you |
updated |
I'm sorry but you need to update it as |
done |
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!
It is working perfectly for me @hungvu193 |
Thank you. |
What is the action we are having trouble testing? Submitting from the admin side? |
Yes. That's one |
I am able to submit from admin side. You have to create the request from employee side and you submit it on behalf of that employee from the admin side. |
I tested the admin submitting the report. Submit only shows if the approver in the policy settings is set to someone else who is not the admin. I noticed this glitch, but I am not sure where it's coming from: Monosnap.screencast.2024-04-16.14-45-06.mp4A different case, if the admin submits on behalf of someone else, it changes from optimistic ( |
From the submitter admin side the message ends with 2024-04-16.16-11-35.mp4 |
Can you please invite me to your test workspace? My email is [email protected]. Even when I created a brand new WS. I couldn't submit it :( |
Done! But, out of curiosity, are u creating the workspace from ND; mine is from OD. That might be the trick |
I tried both, but let me try again! |
Ok, I can do it now by creating a control WS 🤦 . Sorry everyone, I will update the checklist now. |
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.
Updated checklist. All yours @pecanoro
@FitseTLT Did you check the video for that glitch with the action message changing? |
Let me test it again haha |
@FitseTLT Can you merge with main? It's been a while so I want to make sure |
I still get that weird glitch 😢 @hungvu193 Can you try doing the same to see if it's only me? |
Oh, weird. It didn't seem to happen with me. Screen.Recording.2024-04-18.at.23.31.54.mov |
Can you post the Onyx logs from verbose console? That would be really helpful |
Merged with main |
Little pump @pecanoro |
Sorry, I was out of office last Friday! I am going to approve and merge since it seems I am the only one having this weird glitch 😄 |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.64-6 🚀
|
Details
Fixed Issues
$ #38579
PROPOSAL: #38579 (comment)
Tests
You submitted this report to ...
same as what the server returns (the system message shouldn't change after a while which happens on current main when the message is loaded from the server)You ( on behalf of ...
same as what the server returnsOffline tests
same as Tests
QA Steps
same as Tests
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(themeColors.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
2024-03-30.20-23-51.mp4
Android: mWeb Chrome
and.web.mp4
an.we.mp4
iOS: Native
ios.mp4
ios.mp4
iOS: mWeb Safari
ios.web.mp4
ios.web.mp4
MacOS: Chrome / Safari
web.mp4
web.mp4
MacOS: Desktop
desk.mp4
desk.mp4