-
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
test lhn sidebar #35817
test lhn sidebar #35817
Conversation
@shubham1206agra thanks for the PR. It seems like we have a few failed tests. Would you mind taking a look at them? |
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'm seeing Expected 3 arguments, but got 7.
error for SidebarUtils.perf-test.ts
. Can you update that so we can run that test since it's the main performance metric we'll be using in this PR?
Actually, I split the whole functionality into 2 different functions. Ones filter the reports and one sorts them. |
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.
@shubham1206agra It would be helpful if you could provide additional context about the PR. It appears that you have implemented a new approach in this PR.
<FlatList | ||
data={data} | ||
testID="lhn-options-list-virtualized" | ||
keyExtractor={keyExtractor} | ||
renderItem={prepareItem} | ||
initialNumToRender={data.length} | ||
/> |
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.
Why do we have this FlatList
?
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.
@shubham1206agra Friendly bump.
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's include @youssef-lr's suggestion #33029 (comment) in this component.
@luacmartins I will open another draft PR with a different approach to compare the timings tomorrow. |
@luacmartins This is the other PR #35907. |
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.
@shubham1206agra this seems like a different approach than what was suggested in the issue. Are you still working on this POC?
@fedirjh were you able to take a look at the latest commits? |
@shubham1206agra friendly bump for #35817 (review) , Could you please provide additional context about the approach used in this PR? Thank you. |
I am going to close this PR as it has some performance regressions. And it might create problems in the future. |
Details
Fixed Issues
$
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