-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Security solution][Endpoint] New Event Filters sub-section under Administration area #97903
[Security solution][Endpoint] New Event Filters sub-section under Administration area #97903
Conversation
…t-filters-list-view
…t-filters-list-view
x-pack/plugins/security_solution/public/management/common/routing.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/management/common/routing.ts
Outdated
Show resolved
Hide resolved
<div> | ||
<EuiSpacer size="l" /> | ||
|
||
<EuiTablePagination |
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.
out of curiosity - Is there an specific reason why you are using this instead of EuiPagination
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 just copied it from Trusted apps. I looked at EuiPagination, but it only gives you the pagination portion, not the items per page dropdown. Late yesterday I noticed that we don't have control over the label on the "Pick page Size" dropdown and that the label being used now ("Items per row") is a bit specific to tables and we might want this component to allow control of it.
What do you think? create a custom pagination component for use by this PaginatedContent
component?
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.
Oh, I see... What about a custom component with EuiPagination and a dropdown for page size?
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.
Something like this: https://elastic.github.io/eui/#/navigation/pagination#customizable-pagination
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.
Yeah, I think that will likely be better and will decouple us from the Pagination component used in Tables.
I will include that change in next PR that will follow this one
Thanks for the feedback.
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type ComponentWithAnyProps = ComponentType<any>; | ||
|
||
export interface PaginatedContentProps<T, C extends ComponentWithAnyProps> { |
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 component will allow us to reuse a lot of code between trusted apps, event filters and upcoming listings 👍 😃
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
LGTM!! 🔥 🚢 🥳 |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…inistration area (elastic#97903) * Add Event Filters section to the Admin area (behind feature flag) * new `PaginatedContent` generic component * Refactor Trusted Apps grid view to use PaginatedContent * Refactor usages of `getTestId()` to use new hook
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…inistration area (#97903) (#98169) * Add Event Filters section to the Admin area (behind feature flag) * new `PaginatedContent` generic component * Refactor Trusted Apps grid view to use PaginatedContent * Refactor usages of `getTestId()` to use new hook Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
…inistration area (elastic#97903) * Add Event Filters section to the Admin area (behind feature flag) * new `PaginatedContent` generic component * Refactor Trusted Apps grid view to use PaginatedContent * Refactor usages of `getTestId()` to use new hook
Summary
eventFilteringEnabled
experimental feature)item
in the content will be rendered using a Component that is also defined as a prop.Checklist
Delete any items that are not applicable to this PR.