-
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. |
My initial thinking had it be 2px tall on the non-green loading bar, but my thinking was that if we grow from the 1px upward, it would be less awkward: I think in either situation it'll be slightly weird. If we do a 1px border with 2px green we'll get this: But maybe that's slightly better!? On the main Inbox app bar, the border will disappear anyways. Keen to know what you think @shawnborton and @dannymcclain |
@srikarparsi I pushed the code for these changes. Please help to check again if it has any problem. The code more or less looks good to me. It looks like we're waiting to decide whether we want the background of the loading bar to be 1px or 2px and we can proceed from there. |
I think I prefer the 2px background border? Since that border doesn't normally exist, I feel like it gives the loading bar a nice landing zone / comfy home. Google calendar does something similar and I think it's really nice: ScreenRecording_12-19-2024.07-17-16_1.MP4But I do kinda see how the 1px border lines up with the header in main content pane... So I'm a teeny bit torn. |
Great example. Welp, sounds like we let Judge Jon throw the gavel at this one! |
In the meantime, @nkdengineer you have some conflicts to resolve. |
I'd be interested to see the 1px version in real life (like maybe in ad hoc builds on desktop and mobile). Just looking at a screenshot it's hard to know if it would be visible enough. We could also potentially try a version that didn't use a background border and instead only had the 2px green line animating... Not sure how that would look but it's just an idea. |
Yeah, I say we update this PR quickly to try the 1px version - that could be a good middle ground. Alternatively, I don't mind Danny's suggestion either! |
@shawnborton I just updated the loading bar with 1px version. |
🚧 @dannymcclain has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Hmm bummer. iOS is kind of an important one for this 😅 |
Dang yeah... we even merged main recently too, not sure what's going on there. |
I saw IOS run build is also failed yesterday in another PR. |
@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? |
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