@kong-ui-public/dashboard-renderer 8.12.25 → 8.12.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/{GeoMapRenderer-xglakGvT.js → GeoMapRenderer-CAII3s7u.js} +1 -1
- package/dist/dashboard-renderer.es.js +1 -1
- package/dist/dashboard-renderer.umd.js +4 -4
- package/dist/{index-DaM2QumG.js → index-CYAKF_Ri.js} +288 -308
- package/dist/style.css +1 -1
- package/dist/types/components/DashboardRenderer.vue.d.ts +8 -8
- package/dist/types/components/DashboardTile.vue.d.ts +12 -12
- package/dist/types/composables/useContextLinks.d.ts.map +1 -1
- package/dist/types/utils/table-data-grid-renderer.d.ts +20 -30
- package/dist/types/utils/table-data-grid-renderer.d.ts.map +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -457,7 +457,7 @@ interface ChartTileDefinition {
|
|
|
457
457
|
|
|
458
458
|
interface TableChartTileDefinition {
|
|
459
459
|
chart: TableChartOptions // Configuration for the table chart
|
|
460
|
-
query: PlatformTabularQuery & { datasource: '
|
|
460
|
+
query: PlatformTabularQuery & { datasource: 'platform_usage' } // Configuration for the platform tabular query ('platform' also accepted)
|
|
461
461
|
}
|
|
462
462
|
```
|
|
463
463
|
|
|
@@ -510,7 +510,7 @@ interface PlatformTabularQuery {
|
|
|
510
510
|
|
|
511
511
|
`definition.query.columns` controls the visible table columns. If columns are omitted, the renderer can fall back to response `meta.columns` after the first tabular response. `definition.chart.chart_title` controls the tile title.
|
|
512
512
|
|
|
513
|
-
The dashboard config query
|
|
513
|
+
The dashboard config query uses `datasource: 'platform_usage'` (the canonical value; `'platform'` is also accepted for backward compatibility with persisted dashboards). The host application's `AnalyticsBridge.tabularQueryFn` receives a datasource-aware tabular query, e.g. `{ datasource: 'platform_usage', query: { entity, columns, filters, page_size, cursor } }`.
|
|
514
514
|
|
|
515
515
|
The renderer replaces raw record values with display labels when the tabular response includes a matching `meta.display[column][value].name`. Missing display entries and `null` values are rendered unchanged.
|
|
516
516
|
|
|
@@ -525,7 +525,7 @@ const tableTile: TileConfig = {
|
|
|
525
525
|
chart_title: 'Platform routes',
|
|
526
526
|
},
|
|
527
527
|
query: {
|
|
528
|
-
datasource: '
|
|
528
|
+
datasource: 'platform_usage',
|
|
529
529
|
entity: 'route',
|
|
530
530
|
columns: ['name', 'control_plane', 'gateway_service', 'env', 'team', 'region'],
|
|
531
531
|
filters: [
|
|
@@ -569,7 +569,7 @@ Chart queries can be configured for these data sources:
|
|
|
569
569
|
2. `basic`: Uses the basic explore API
|
|
570
570
|
3. `llm_usage`: Uses the AI explore API
|
|
571
571
|
4. `agentic_usage`: Uses the agentic usage explore API
|
|
572
|
-
5. `
|
|
572
|
+
5. `platform_usage`: Uses the platform dashboard API (`platform` is also accepted for backward compatibility)
|
|
573
573
|
|
|
574
574
|
Chart query fields include:
|
|
575
575
|
- `metrics`: Array of aggregations to collect
|
|
@@ -580,7 +580,7 @@ Chart query fields include:
|
|
|
580
580
|
- `limit`: Number of results to return
|
|
581
581
|
|
|
582
582
|
Table chart queries use the platform tabular query shape:
|
|
583
|
-
- `datasource`: Must be `platform`
|
|
583
|
+
- `datasource`: Must be `platform_usage` (`platform` is also accepted for backward compatibility)
|
|
584
584
|
- `entity`: Entity collection to query, such as `route`
|
|
585
585
|
- `columns`: Ordered table columns to request and render
|
|
586
586
|
- `filters`: Platform filters to apply before fetching rows
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, ref as C, computed as c, openBlock as x, createBlock as g, withCtx as _, createVNode as E, unref as M } from "vue";
|
|
2
|
-
import { _ as O } from "./index-
|
|
2
|
+
import { _ as O } from "./index-CYAKF_Ri.js";
|
|
3
3
|
import { exploreResultToCountryMetrics as b, AnalyticsGeoMap as k } from "@kong-ui-public/analytics-geo-map";
|
|
4
4
|
import { COUNTRIES as B } from "@kong-ui-public/analytics-utilities";
|
|
5
5
|
const R = /* @__PURE__ */ q({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as a, D as R, a as T, b as s, c as L, d as I, E as e, F as D, e as N, G as S, I as r, T as A, f as F } from "./index-
|
|
1
|
+
import { C as a, D as R, a as T, b as s, c as L, d as I, E as e, F as D, e as N, G as S, I as r, T as A, f as F } from "./index-CYAKF_Ri.js";
|
|
2
2
|
export {
|
|
3
3
|
a as CP_ID_TOKEN,
|
|
4
4
|
R as DASHBOARD_COLS,
|