-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
20354 money request participants selector skeleton fix #34443
20354 money request participants selector skeleton fix #34443
Conversation
useEffect(() => { | ||
const interactionTask = InteractionManager.runAfterInteractions(() => { | ||
setDidScreenTransitionEnd(true); | ||
}); | ||
|
||
return interactionTask.cancel; | ||
}, []); |
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.
Hey @lukemorawski can you help me understand why we need to check for the transition state?
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.
This waits for all the interactions/animations to end so in this case mostly the screen transition. Only after that the section data will be rendered, but until this happens the skeleton element is shown.
I think you're planning to reuse |
I'm still seeing a flicker, here it is compared to the search page Screen.Recording.2024-01-12.at.22.34.45.mov |
I actually wouldn't advice adding debouning to the list component. for simplicity and separation of concerns sake. The list is only to display things. Yes it has some convenient things added to it, but still they are "list related". |
OK, it's because the new |
@lukemorawski Im working in this skeleton transition here #32665 Although you are still in the middle of refactoring, we need to control the Also,
I went ahead and resolved this in my PR as well. What do you think? We need to make the same adjustments to |
OK, I see we are basically working on mostly the same things here. There is no point of making two PRs with code changes addressing the same issues. I could close my PR if you could add some some extra things my PR have and your doesn't. That way we won't duplicate. If you're cool with that then here's a quick list:
And I could prepare another PR where fix the icon thing. |
Yes 😂
Absolutely, I will work on these changes immediately.
I completed the |
@lukemorawski, One more thing, about #20354, I believe we will have more work, I can see some places that use |
Thanks for that! I'm doing those refactorings one by one, so it's not a huge unreadable PR. |
Awesome. Leave your change please and I'll address the rest. I have already created one common |
Closing this PR because the work here has been largely doubled in #32665. |
@lukemorawski The PR is ready for Review. I made the changes you mentioned:
Can you verify please? #32665/files |
Details
A quick fix to Skeleton issues on MoneyRequestParticipantsList components. Debouncing searching.
Fixed Issues
$ #32692 (comment)
PROPOSAL:
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 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop