-
Notifications
You must be signed in to change notification settings - Fork 89
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
[Enhancement] #848 increase column width and page size #934
base: main
Are you sure you want to change the base?
Changes from 4 commits
f419eba
b262a01
e84dd3f
05ce5c0
c2763be
65a68ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ const renderNumber = (value) => { | |
}; | ||
|
||
export const DEFAULT_PAGE_SIZE_OPTIONS = [5, 10, 20, 50]; | ||
export const DEFAULT_PAGE_SIZE_OPTIONS_INDICES = [10, 20, 50, 100, 500]; | ||
|
||
export const DEFAULT_QUERY_PARAMS = { | ||
from: 0, | ||
|
@@ -45,7 +46,7 @@ const getColumns = (props: IColumnOptions): EuiTableFieldDataColumnType<ManagedC | |
sortable: true, | ||
truncateText: false, | ||
textOnly: true, | ||
width: "250px", | ||
width: "320px", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be possible to let user drag the width of our table? Adding width here is not the best because people may have very long index name 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bowenlan-amzn Based on this I will go ahead and make the switch to the Data Grid component There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great, @kamingleung is our UX expert and thanks him for guiding here! |
||
render: (index: string) => { | ||
return <IndexDetail {...props} index={index} />; | ||
}, | ||
|
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.
Can you add unit test for this pagination logic