From 489e55d0b49f63d22b8f4b866ed2e7d3ed2cc5ab Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 11 Mar 2026 21:27:55 +0300 Subject: [PATCH] examples/media-stats-ui: fix Transform source key; add file_name column Signed-off-by: NotAShelf Change-Id: I4c741e4b36708f2078fed8154d7341de6a6a6964 --- examples/plugins/media-stats-ui/pages/stats.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/plugins/media-stats-ui/pages/stats.json b/examples/plugins/media-stats-ui/pages/stats.json index 03961a0..6f860c5 100644 --- a/examples/plugins/media-stats-ui/pages/stats.json +++ b/examples/plugins/media-stats-ui/pages/stats.json @@ -64,6 +64,10 @@ "filterable": true, "page_size": 10, "columns": [ + { + "key": "file_name", + "header": "Filename" + }, { "key": "title", "header": "Title" @@ -120,13 +124,9 @@ "path": "/api/v1/media" }, "type-breakdown": { - "type": "static", - "value": [ - { "type": "Audio", "count": 0 }, - { "type": "Video", "count": 0 }, - { "type": "Image", "count": 0 }, - { "type": "Document", "count": 0 } - ] + "type": "transform", + "source": "stats", + "expression": "stats.media_by_type" } } }