-
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
feature: Add loading indicator when ReconnectApp is running #52272
base: main
Are you sure you want to change the base?
Conversation
@nkdengineer what did we change here? what was the issue? |
|
@getusha friendly bump |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-25.at.2.28.59.in.the.afternoon.movAndroid: mWeb ChromeScreen.Recording.2024-11-25.at.2.15.33.in.the.afternoon.moviOS: NativeScreen.Recording.2024-11-26.at.10.25.05.at.night.moviOS: mWeb SafariScreen.Recording.2024-11-25.at.2.18.00.in.the.afternoon.movMacOS: Chrome / SafariScreen.Recording.2024-11-25.at.2.12.46.in.the.afternoon.movMacOS: DesktopScreen.Recording.2024-11-25.at.2.21.44.in.the.afternoon.mov |
Hi @getusha, how is this coming along? Do you think we can get this merged today or tomorrow? |
I'll try to wrap this up today 🙇 |
@nkdengineer
Screen.Recording.2024-11-26.at.10.20.12.at.night.mov |
@getusha Fixed this bug. |
@getusha Friendly bump. |
@dannymcclain What do you think about this comment? |
I think I feel like the 1px loader is just a little too subtle. I'd love to see what it's like without a background border at all. But aside from that, I would generally be ok with the version Shawn said he'd be cool with too. |
@nkdengineer thoughts on Danny's comment above? cc @dubielzyk-expensify too! |
checking this now. |
I can go either way. I agree that 1px is subtle. The 2px without the background is probably a safer bet then even with it's weirdness. |
I think 1px is fine. And in Slack I also see the loading is displayed with the border so I think it's not a problem.
@dannymcclain Here is what you want to see, right? Screen.Recording.2025-01-06.at.14.31.02.mov |
Yeah kinda! But the chat header always has a border, so this would be more for the LHN, like this: For the chat/report header, I think it would be fine to have 2px loader sit "on top" of the existing border (but without any shifting!):
Any chance you could grab a recording of this behavior? |
Strong arguments. I recon let's do what @dannymcclain suggests and see how that feels. |
@dannymcclain Here is the loading in Slack. fb0e616a-fa63-4fa2-9e2a-6751743a316f.mp4 |
Yup - I like Danny's feedback above, let's give that a shot. |
Thanks for the video! I think Slacks looks really good even with the mismatched borders. Are we overthinking this?! |
We might be! But honestly I think we should just do what you have here. |
Let's do it 👍 🚢 |
Will give an update soon. |
@dannymcclain I updated with the latest expected.
Screen.Recording.2025-01-09.at.16.39.03.mov
Screen.Recording.2025-01-09.at.16.38.51.mov |
Hmm I don't think this is quite what Danny had in mind, though I'm curious for his thoughts. I think the thinking is that we do nothing with the existing borders. So when we use the loader in the LHN, we just pulse a 2px green line but we don't add any supporting borders. When we use the loader in the report pane, we just place it on top of the existing 1px chat header border, but the loader would also be the pulsing 2px green line. Does that sense, and @Expensify/design can you confirm if that's what we had in mind here? Thanks! |
@shawnborton Yeah that's what I was thinking. Basically what you said: don't use any "background" border for the loader at all and don't mess with any borders that are already there (or not there in the case of the LHN). I also feel like I'm seeing a 1px shift on the report page (but maybe I'm just paranoid!) |
I'm seeing the same thing too |
@shawnborton I updated to always set the height of the loading bar to 2px.
This happens because the offline indicator appears and disappears when we go from offline to online. This also happen on the staging and production. |
Do you have updated videos we can see? Thanks!
But we want to prevent this from happening, so please fix this. Let's use absolute position to make sure we don't get a shift in content. |
@shawnborton Here is the new result Screen.Recording.2025-01-13.at.14.26.55.movScreen.Recording.2025-01-13.at.14.27.09.mov
This happens because we only show this in offline and remove this in online. Let me check if we can find a solution. App/src/components/ScreenWrapper.tsx Lines 295 to 299 in 06549e5
|
It seems like the 2px height of the loading bar is causing the jump in content though. Can you please try to make the loading bar use an absolute position so that it doesn't cause the content to jump? |
@shawnborton What's the border you mentioned in this video? |
Details
Fixed Issues
$ #46611
PROPOSAL: #46611 (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 methodSTYLE.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 and/or tagged@Expensify/design
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
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov