From c5ee1645657194da1efc54bc707951031540219c Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 29 Jul 2026 09:26:58 -0400 Subject: [PATCH] ui: format application knowledge-base card (was a wall of text) The .kb-* classes had no styles, so the KB entries rendered as bare inline spans - shortdescription and keywords (both up to 500 chars) wrapped and mashed into one block. Style each entry as a bordered clickable card: description as the link title clamped to 2 lines, keywords split on whitespace into small muted chips below. --- .../frontend/views/ApplicationDetail.vue | 60 ++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/plugins/applications/frontend/views/ApplicationDetail.vue b/plugins/applications/frontend/views/ApplicationDetail.vue index f2c6fae..91de7f6 100644 --- a/plugins/applications/frontend/views/ApplicationDetail.vue +++ b/plugins/applications/frontend/views/ApplicationDetail.vue @@ -106,7 +106,13 @@ class="kb-item" > {{ kb.shortdescription }} - {{ kb.keywords }} + + {{ kw }} + @@ -207,11 +213,63 @@ function formatDate(dateStr) { function handleImageError(e) { e.target.style.display = 'none' } + +// Keywords are stored space-separated; split into chips for the KB card. +function kbKeywords(keywords) { + return (keywords || '').split(/\s+/).filter(Boolean) +}