Skip to content

Commit

Permalink
modified explorer data grid to follow discover look and feel (#1041)
Browse files Browse the repository at this point in the history
* initial data grid column change with hardcoded vals

Signed-off-by: Paul Sebastian <[email protected]>

* basic render cell data added

Signed-off-by: Paul Sebastian <[email protected]>

* added memoization for all components and redid cell rendering

Signed-off-by: Paul Sebastian <[email protected]>

* allow for any kind of field to be shown

Signed-off-by: Paul Sebastian <[email protected]>

* basic pagination only with queried data

Signed-off-by: Paul Sebastian <[email protected]>

* sorting and pagination effect onto query support

Signed-off-by: Paul Sebastian <[email protected]>

* fully functional flyout

Signed-off-by: Paul Sebastian <[email protected]>

* removed unneeded code and fixed typing errors

Signed-off-by: Paul Sebastian <[email protected]>

* fixed field sorting/paginating issue with sidebar integration and expfield storing

Signed-off-by: Paul Sebastian <[email protected]>

* code cleanup

Signed-off-by: Paul Sebastian <[email protected]>

* fixed a lot of tests

Signed-off-by: Paul Sebastian <[email protected]>

* reduce sidebar code redundancy

Signed-off-by: Paul Sebastian <[email protected]>

* remove commented code

Signed-off-by: Paul Sebastian <[email protected]>

* test constant

Signed-off-by: Paul Sebastian <[email protected]>

* flyout testing code

Signed-off-by: Paul Sebastian <[email protected]>

* fixed small sidebar init issue

Signed-off-by: Paul Sebastian <[email protected]>

* changed default page size from 25 to 100

Signed-off-by: Paul Sebastian <[email protected]>

* updated snapshot

Signed-off-by: Paul Sebastian <[email protected]>

* small changes + source column prettied + snapshot

Signed-off-by: Paul Sebastian <[email protected]>

* small todos and code coverage change

Signed-off-by: Paul Sebastian <[email protected]>

* moved redo query to util function

Signed-off-by: Paul Sebastian <[email protected]>

* redoQuery testing

Signed-off-by: Paul Sebastian <[email protected]>

* redoQuery testing

Signed-off-by: Paul Sebastian <[email protected]>

* redoQuery testing

Signed-off-by: Paul Sebastian <[email protected]>

* modified redo func in utils test

Signed-off-by: Paul Sebastian <[email protected]>

* small pr changes

Signed-off-by: Paul Sebastian <[email protected]>

---------

Signed-off-by: Paul Sebastian <[email protected]>
  • Loading branch information
paulstn authored Sep 29, 2023
1 parent 79d18df commit ae399e2
Show file tree
Hide file tree
Showing 18 changed files with 1,030 additions and 1,083 deletions.
20 changes: 20 additions & 0 deletions common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,23 @@ export const TYPE_TAB_MAPPING = {
[SAVED_QUERY]: TAB_EVENT_ID,
[SAVED_VISUALIZATION]: TAB_CHART_ID,
};

export const DEFAULT_EMPTY_EXPLORER_FIELDS = [
{ name: 'timestamp', type: 'timestamp' },
{ name: '_source', type: 'string' },
];

export const DEFAULT_TIMESTAMP_COLUMN = {
id: 'timestamp',
isSortable: true,
display: 'Time',
schema: 'datetime',
initialWidth: 200,
};

export const DEFAULT_SOURCE_COLUMN = {
id: '_source',
isSortable: false,
display: 'Source',
schema: '_source',
};
5 changes: 5 additions & 0 deletions common/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,8 @@ export type MOMENT_UNIT_OF_TIME =
| 's'
| 'milliseconds'
| 'ms';

export interface GridSortingColumn {
id: string;
direction: 'asc' | 'desc';
}
Loading

0 comments on commit ae399e2

Please sign in to comment.