-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split table and controls into separate components, implement search f…
…eatures.
- Loading branch information
1 parent
a01d905
commit a150da8
Showing
9 changed files
with
434 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
x-pack/plugins/beats_management/public/components/__snapshots__/beats_table.test.tsx.snap
This file was deleted.
Oops, something went wrong.
214 changes: 0 additions & 214 deletions
214
x-pack/plugins/beats_management/public/components/beats_table.tsx
This file was deleted.
Oops, something went wrong.
97 changes: 97 additions & 0 deletions
97
.../plugins/beats_management/public/components/table/__snapshots__/beats_table.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`BeatsTable component matches snapshot 1`] = ` | ||
<styled.div> | ||
<BulkActionControlBar | ||
onBulkAction={[Function]} | ||
onSearchQueryChange={[Function]} | ||
tagOptions={ | ||
Array [ | ||
Object { | ||
"value": "Production", | ||
}, | ||
] | ||
} | ||
typeOptions={ | ||
Array [ | ||
Object { | ||
"value": "type", | ||
}, | ||
] | ||
} | ||
/> | ||
<EuiInMemoryTable | ||
columns={ | ||
Array [ | ||
Object { | ||
"field": "id", | ||
"name": "Beat name", | ||
"render": [Function], | ||
"sortable": true, | ||
}, | ||
Object { | ||
"field": "type", | ||
"name": "Type", | ||
"sortable": true, | ||
}, | ||
Object { | ||
"field": "full_tags", | ||
"name": "Tags", | ||
"render": [Function], | ||
"sortable": false, | ||
}, | ||
Object { | ||
"field": "event_rate", | ||
"name": "Event rate", | ||
"sortable": true, | ||
}, | ||
Object { | ||
"field": "last_updated", | ||
"name": "Last config update", | ||
"sortable": true, | ||
}, | ||
] | ||
} | ||
isSelectable={true} | ||
itemId="id" | ||
items={ | ||
Array [ | ||
Object { | ||
"access_token": "access", | ||
"full_tags": Array [ | ||
Object { | ||
"configuration_blocks": Array [], | ||
"id": "Production", | ||
}, | ||
], | ||
"host_ip": "ip", | ||
"host_name": "name", | ||
"id": "beatid", | ||
"type": "type", | ||
}, | ||
] | ||
} | ||
pagination={ | ||
Object { | ||
"pageIndex": 0, | ||
"pageSize": 5, | ||
"pageSizeOptions": Array [ | ||
3, | ||
5, | ||
8, | ||
], | ||
"totalItemCount": 1, | ||
} | ||
} | ||
responsive={true} | ||
selection={ | ||
Object { | ||
"onSelectionChange": [Function], | ||
"selectable": [Function], | ||
"selectableMessage": [Function], | ||
} | ||
} | ||
sorting={true} | ||
/> | ||
</styled.div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.