-
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
Use FullScreenLoadingIndicator in IOU detail modal #14391
Use FullScreenLoadingIndicator in IOU detail modal #14391
Conversation
@PauloGasparSv 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] |
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 my self as reviewer
@jatinsonijs Can you include steps to create IOU if it does not exists already for QA Steps |
@PauloGasparSv taking this one as I am assigned to the issue, I hope thats ok! |
No problem @mountiny :D |
Done @Santhosh-Sellavel |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-01-19.at.12.57.11.AM.movMobile Web - Chrome & Mobile Web - SafariLoading_mWeb.moviOS & AndroidScreen.Recording.2023-01-19.at.12.52.23.AM.mov |
@mountiny While taping IOU Badge offline it's loading forever Screen.Recording.2023-01-19.at.1.00.16.AM.mov |
@Santhosh-Sellavel is it happening every time ?, actually I have faced same issue yesterday but it Is not reproducing again. |
Yes
Yes, happening everytime! |
I have tried to reproduce it but loader not display loader.mp4 |
Screen.Recording.2023-01-19.at.1.22.32.AM.mov |
@Santhosh-Sellavel Can you check if you have the IOU report details in your indexedDB locally? I assume however, this is happening in main as well, this PR is not changing this behaviour |
@jatinsonijs Seems it happens if some data is not fetched completely also I think this is a bit out of scope. @mountiny Let me know what should we do here, thanks! |
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, tests well!
@mountiny Can we delete this comment, I think the check is failing because of that! |
Done! |
Yes @mountiny, @Santhosh-Sellavel its happening due to data not fetched completely, I have found way to reproduce it Open IOU Details page loader-stuck.mp4Its not related to this PR, if you think it should be fixed I can report it on slack channel |
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.
@jatinsonijs @Santhosh-Sellavel Should we also do this for the IOUParticipantsPage
as was mentioned in the issue? Any reason why not?
Yes @mountiny we can do it, but there is not any clear steps for QA to test it. We can test it manually by change condition in code. |
@jatinsonijs Ah you mean that the loading page there is not triggered in normal flow? I would still rather update the styles same as we do in IOUDetails page and just dont include it in the QA, since the styles / views are same we can expect it will work fine. |
App/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js Lines 54 to 56 in 5370c36
Replacing the above with the below snippet should do <View style={styles.flex1}>
<FullScreenLoadingIndicator />
</View> cc: @mountiny |
That seems reasonable, I mean if it does not really show for user, we might want to refactor this more but thats for later. |
@jatinsonijs please add screenshots once the changes are done, thanks! @mountiny Once changes are done, feel free to merge as it would not break anything, I tested it works for all platforms! |
Changes are done @Santhosh-Sellavel and screenshots added. cc @mountiny |
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.
Thank you @jatinsonijs @Santhosh-Sellavel !
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.57-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.57-3 🚀
|
Details
Use common loader component FullScreenLoadingIndicator in IOU Details page
Fixed Issues
$ #14321
PROPOSAL: #14321 (comment)
Tests
Offline tests
In offline loader will be not display
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
IOUDetailsModal
IOUParticipantsPage
Mobile Web - Chrome
IOUDetailsModal
IOUParticipantsPage
Mobile Web - Safari
IOUDetailsModal
IOUParticipantsPage
Desktop
IOUDetailsModal
IOUParticipantsPage
iOS
IOUDetailsModal
IOUParticipantsPage
Android
IOUDetailsModal
IOUParticipantsPage