-
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
fix loading indicator when the app is loading #56314
Open
nkdengineer
wants to merge
9
commits into
Expensify:main
Choose a base branch
from
nkdengineer:fix/55842
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3048d37
fix loading indicator when the app is loading
nkdengineer d430a4a
fix lint
nkdengineer 9a04216
Merge branch 'main' into fix/55842
nkdengineer 17f51a3
Merge branch 'main' into fix/55842
nkdengineer 04dc31f
Merge branch 'main' into fix/55842
nkdengineer 1118aa6
add padding top for search top bar wrapper
nkdengineer bf265ab
Merge branch 'main' into fix/55842
nkdengineer 2e38961
fix loading thin while scrolling
nkdengineer 03ca37b
fix lint error
nkdengineer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ | |
import usePolicy from '@hooks/usePolicy'; | ||
import useThemeStyles from '@hooks/useThemeStyles'; | ||
import Navigation from '@libs/Navigation/Navigation'; | ||
import * as SearchQueryUtils from '@libs/SearchQueryUtils'; | ||
Check failure on line 14 in src/components/Navigation/TopBar.tsx
|
||
import SignInButton from '@pages/home/sidebar/SignInButton'; | ||
import * as Session from '@userActions/Session'; | ||
Check failure on line 16 in src/components/Navigation/TopBar.tsx
|
||
import CONST from '@src/CONST'; | ||
import ONYXKEYS from '@src/ONYXKEYS'; | ||
import ROUTES from '@src/ROUTES'; | ||
|
@@ -43,7 +43,7 @@ | |
const displaySearch = !isAnonymousUser && shouldDisplaySearch; | ||
|
||
return ( | ||
<View style={styles.w100}> | ||
<View style={styles.topBarWrapper}> | ||
<View | ||
style={[styles.flexRow, styles.gap4, styles.mh3, styles.mv5, styles.alignItemsCenter, styles.justifyContentBetween]} | ||
dataSet={{dragArea: true}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think what I don't understand is... why do we need some kind of wrapper here with margin? Why can't we just use absolute position and have the loading bar just appear directly below the header portion of the LHN? If there is a 12px gap between the header and the first LHN item, we have plenty of space (12px worth) to place a 2px tall loading bar.
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.
The RCA of the above issue is
marginBottom
: -1px in the loading indicator. We added this to get it to fit with the border-bottom in the header and then when we scroll down the loading indicator is cut off.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.
But why wouldn't we just make this whole thing use absolute positioning? Maybe I am not understanding how it is implemented... but it seems like absolute position could save us some headaches here with regards to all of this extra margin/spacing considerations we need to make.
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.
Let me check again with this idea.