Commit 3e1b364
[Metrics][Discover] Reorganize the kbn-unified-metrics-grid package (elastic#248992)
Closes elastic#239886
## Summary
Summarize your PR. If it involves visual changes include a screenshot or
gif.
### Changes
- Renamed package `kbn-unified-metrics-grid` to
`kbn-unified-chart-section-viewer`
- Renamed `MetricsGridWrapper` to `ChartsGrid`
- Also renamed the corresponding file `metrics_grid_wrapper` to
`charts_grid`
- Moved Metrics Experience component from `components/` to
`components/observability/metrics_experience`
- `metrics_experience_grid.tsx` and `metrics_experience_grid.test.tsx`
- `metrics_experience_grid_content.tsx` and
`metrics_experience_grid_content.test.tsx`
- `index.tsx`
- `lazy_unified_metrics_experience_grid.tsx`
- `metrics_grid.tsx` and `metrics_grid.test.tsx`
- Moved Metrics Experience hooks from `hooks/` to
`components/observability/metrics_experience/hooks`
- `use_metric_fields.ts` and `use_metric_fields.test.ts `
- `use_metric_fields_filter.ts` and `use_metric_fields_filter.test.ts`
- `use_metrics_grid_fullscreen.ts` and
`use_metrics_grid_fullscreen.test.ts`
- `use_pagination.ts`
- Added `index.ts` on
`components/observability/metrics_experience/hooks` for exporting
- Moved Metrics Experience context from `context/` to
`components/observability/metrics_experience/context/`
- `metrics_experience_state_provider/`
- `metrics_experience_fields_provider/`
- Moved Traces Metrics from `components/traces_metrics_grid/` to
`components/observability/traces/`
- Moved Traces Metrics context from `context/` to
`components/observability/traces/context/`
- Rebuilt (auto) documentation
### Checklist
- [ ] Verify that Kibana builds and runs correctly
- [ ] Verify that there are no CI errors related to this change
- [ ] Verify if the `yarn.lock` file is valid
- [ ] No lint errors `scripts/eslint.js
src/platform/packages/shared/kbn-unified-chart-section-viewer`
- [ ] All tests pass `node scripts/jest
src/platform/packages/shared/kbn-unified-chart-section-viewer`
- [ ] Verify that the component renders and works properly
- [ ] In Discover, make an ES|QL query such as `TS metrics-*`
- [ ] In Discover, select a traces data view
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>1 parent b3fa266 commit 3e1b364
116 files changed
Lines changed: 366 additions & 183 deletions
File tree
- .github
- api_docs
- packages/kbn-eslint-plugin-i18n/helpers
- src
- dev/storybook
- platform
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | | - | |
| 1143 | + | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
636 | 637 | | |
637 | | - | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments