Commit 00ce46c
authored
feat: add basic schema browser in new data explorer (#4650)
* feat: add Schema in basic structure
* feat: add BucketSelector component
* feat: add Dropdown button and menu in BucketSelector
* feat: add search icon in SearchableDropdown
* feat: replace Dropdown with SearchableDropdown
* feat: add icon next to select title
* chore: update Bucket onSelect
* feat: add measurement selector
* feat: add search bar for fields and tags
* feat: add FieldsSelector and TagKeysSelector
* chore: separate SelectorTitle component into its own file and move each instance into each selector component
* feat: add accordion in FieldsSelector and TagKeys Selector
* style: add scrollbar
* chore: update import path to be absolute
* feat: add empty view
* feat: add empty view for TagKeysSelector
* chore: run prettier
* feat: add sample measurement and enable search bar
* feat: enable search bar in BucketSelector
* feat: add question tooltip and test info
* style: expand accordion by default
* feat: wire measurement selector context
* chore: run prettier
* chore: depend fields and tags on measurements
* feat: add loading status for tags and fields
* chore: rename and move newDataExplorer context into context folder
* feat: make measurement selector and filedtag selector depend on bucket
* chore: rename to FieldSelector and TagSelector
* feat: add accordion to tag keys
* chore: rename style class name
* style: wrap long key value text
* chore: run prettier
* chore: add more sample data
* chore: remove not valid title
* style: add side bar to search bar, fields, and tags
* feat: get real buckets from bucket context
* style: add more space for list items
* chore: run prettier
* chore: fix lint error
* chore: restructure data structure for NewDataExplorerContext
* chore: move constant into a separate file
* chore: change selectedBucket from string to Bucket object
* feat: get real measurements using query
* chore: move around import file
* chore: add useCallback and remove not used constant
* chore: update comment
* feat: get real fields from query
* fix: update the query to get fields and use constant to represent queries
* feat: get real tag keys from query
* chore: reorder sort() and limit() func and make limit and constant
* feat: get real tag values from query
* feat: add loading status for tags
* feat: add loading status for fields
* feat: add load more button
* style: add hover effect for field and tag values, rename classnames for tag keys and values
* chore: reset load more config when field values get updated
* feat: get tag values on demand
* chore: remove useCallback on getBucket and getMeasurement
* chore: remove console.log query
* chore: only fetch tag values if no values originally
* fix: change data structure to store status for each tag keys
* fix: run prettier
* refactor: use find to get the selected bucket
* refactor: replace lodash with vanilla js
* refactor: use `slice` only for load more logic
* refactor: remove extra logic for load more button in useEffect
* refactor: simplify the load more logic in FieldSelector
* refactor: simplify the load more logic in TagSelector
* refactor: replace lodash `isEmpty` with vanilla js
* refactor: add more detail in comment on `handleSelectTagValue`
* refactor: rename context function name to `fetchTagValues`
* refactor: replace `Hash` with `Record` for `type Tags`
* refactor: remove unused `loading` context
* refactor: fix lint
* style: update margin-bottom for tag keys
* feat: add loading status for measurements
* refactor: move the logic for handling selection from parent to child `TagValues`
* feat: add icon in the search bar (confirmed by Julia and the design team)
* chore: move measurent context into an independent file
* chore: move fields context into an independent file
* refactor: rename FieldContext to FieldsContext and related names
* chore: move tagss context into an independent file
* chore: reset load status when reset fields
* chore: import RemoteDataState from src/types to keep the code consistent with the rest of the code
* chore: remove `...` in search bar placeholder
* chore: update comment for time range1 parent a22d8d6 commit 00ce46c
File tree
17 files changed
+1208
-49
lines changed- src
- dataExplorer
- components
- context
- flows/pipes/QueryBuilder
17 files changed
+1208
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
6 | 9 | | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments