Use Offline Pattern A for report field list values#46961
Use Offline Pattern A for report field list values#46961mountiny merged 3 commits intoExpensify:mainfrom
Conversation
|
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@rezkiy37 This pattern will have side effect. What if the command fails? Where and how will you show error? |
|
@shubham1206agra do you have access to this Slack thread? We discussed this here. We don't care about the backend responses when pattern A is used.
|
|
@shubham1206agra Because we do not have a way to handle the RBR for arrays, we opted for using the pattern now. proper fix would require changing the data structure of the report field list options and that is for now not a priority as it requires lots of effort for backwards compatibility too |
|
@shubham1206agra how is this looking? |
|
@shubham1206agra, just a friendly reminder 🙂 |
|
@rezkiy37 Can you fix conflicts here? |
…/45166-report-field-list-values-pattern-a
|
@shubham1206agra, done 🙂 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-08-12.at.8.43.21.PM.moviOS: NativeScreen.Recording.2024-08-12.at.8.54.52.PM.moviOS: mWeb SafariScreen.Recording.2024-08-12.at.8.34.31.PM.movMacOS: Chrome / SafariScreen.Recording.2024-08-12.at.8.27.57.PM.movMacOS: DesktopScreen.Recording.2024-08-12.at.8.51.09.PM.mov |
|
✋ 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/mountiny in version: 9.0.20-0 🚀
|
|
FYI I believe this was deployed to prod yesterday, from this checklist - #47356 |

Details
The PR introduces the Offline Pattern A (optimistic without feedback) for the adding, editing, and deleting report field list values.
Fixed Issues
$ #45166
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as "Tests".
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
Android.mp4
Android: mWeb Chrome
Android.Chrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
IOS.Safari.mp4
MacOS: Chrome / Safari
Chrome.mp4
MacOS: Desktop
Desktop.mp4