Fix the optimistic data of hold action isn't consistent with backend data#38980
Fix the optimistic data of hold action isn't consistent with backend data#38980neil-marcellini merged 6 commits intoExpensify:mainfrom
Conversation
|
@grgia Please ignore this PR, I missed the issue link when I ready the PR. Sorry for inconvenience. |
|
@mkhutornyi #38738, A recent BE change that separate the hold action to two action one is the hold action that display
cc @neil-marcellini Can you please confirm the point 2 above? |
neil-marcellini
left a comment
There was a problem hiding this comment.
I'm confused. The solution here doesn't seem to match the proposal at all. Would you please explain why? Also why are we subtracting 1ms from the created time?
neil-marcellini
left a comment
There was a problem hiding this comment.
@mkhutornyi #38738, A recent BE change that separate the hold action to two action one is the hold action that display
Held this request, one is the reason comment. After that I found the data still not consistent and has two problem:
- The hold reason display above the hold action briefly, the RCA is the created time of two action is the same and I fixed it here
- The hold reason action is grey out briefly, the RCA is in optimistic data the action name is
HOLDCOMMENTbut BE returns it asADDCOMMENT. I want to confirm what is the correct action name of this before moving this forwardcc @neil-marcellini Can you please confirm the point 2 above?
Oh I missed this message haha. Ok, I think that all makes sense. I would trust what the backend returns generally, and use the ADDCOMMENT action name. However I'm not sure. @robertjchen since you implemented this on the backend, what do you think the action name should be?
Rather than subtracting 1ms from the hold report action I would add 1ms to the second one, since that feels more like how it should work in reality.
|
Updated the backend to be |
|
@robertjchen I tested and saw that hold comment in backend is updated to Screen.Recording.2024-04-03.at.13.13.33.mov |
|
Hm, the only thing we changed was the Perhaps there is there additional formatting/organization applied to the original message for |
|
@robertjchen Actually, in frontend we are getting the hold reason via |
|
It seems to take a little while before the styles are applied to the hold reason text. Screen.Recording.2024-04-09.at.11.52.32.PM.movThoughts? @neil-marcellini @nkdengineer |
The reason is |
|
@robertjchen thoughts^ |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-15.at.4.21.12.PM.movAndroid: mWeb ChromeScreen.Recording.2024-04-15.at.4.24.02.PM.moviOS: NativeScreen.Recording.2024-04-09.at.11.44.02.PM.moviOS: mWeb SafariScreen.Recording.2024-04-09.at.11.46.02.PM.movMacOS: Chrome / SafariScreen.Recording.2024-04-09.at.11.52.32.PM.movMacOS: DesktopScreen.Recording.2024-04-15.at.4.14.26.PM.mov |
Ah, the backend was updated two weeks ago to switch it back to |
|
@robertjchen So we will update front-end to |
|
@nkdengineer Looks like we'll be permanently using |
|
@thesahindia Updated the type of hold report comment action base on this #38980 (comment). |
neil-marcellini
left a comment
There was a problem hiding this comment.
Thanks, let's merge
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fix the optimistic data of hold action isn't consistent with backend data
Fixed Issues
$ #38583
PROPOSAL: #38583 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2024-03-26.at.13.04.54.mov
Android: mWeb Chrome
Screen.Recording.2024-03-26.at.13.03.48.mov
iOS: Native
Screen.Recording.2024-03-26.at.13.05.57.mov
iOS: mWeb Safari
Screen.Recording.2024-03-26.at.13.02.50.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-26.at.13.00.31.mov
MacOS: Desktop
Screen.Recording.2024-03-26.at.13.11.11.mov