-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Use tanstack table in tslib #882
Use tanstack table in tslib #882
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #882 +/- ##
=======================================
Coverage 69.51% 69.51%
=======================================
Files 35 35
Lines 2375 2375
=======================================
Hits 1651 1651
Misses 724 724 ☔ View full report in Codecov by Sentry. |
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.
Thank you for your PR! Looks almost good.
I left a few requests.
) | ||
const [pagination, setPagination] = React.useState<PaginationState>({ | ||
pageIndex: 0, | ||
pageSize: 50, |
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.
You set pageSize
here 50 as constant, but how about receiving initialRowsPerPage
as a prop and using that value here, as current DataGrid
does?
|
||
export const TrialTable: FC<{ | ||
study: Optuna.Study | ||
initialRowsPerPage?: number | ||
}> = ({ study, initialRowsPerPage }) => { | ||
}> = ({ study }) => { |
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.
Following the comment above, maybe you need to restore initialRowsPerPage
prop here as well.
It would be also good in terms of not having to make destructive changes to the existing interface.
@porink0424 |
68513f5
to
f747a55
Compare
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.
LGTM👍
Contributor License Agreement
This repository (
optuna-dashboard
) and Goptuna share common code.This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.
Reference Issues/PRs
NA
What does this implement/fix? Explain your changes.
Tanstack table was introduced in optuna-dashboard by #846.
This PR will also introduce it in tslib.