From 00726d9ece5dd04d82787f1c9502d55a3e03e3d9 Mon Sep 17 00:00:00 2001 From: Andrii Shvaika Date: Thu, 23 Apr 2026 15:16:08 +0300 Subject: [PATCH] feat(iot-hub): hide changelog section for initial releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The IoT Hub backend sends the literal string 'Initial release' as the changelog payload for every newly-published item. That text tells the user nothing they don't already see from the v 1.0.0 chip in the meta bar — just informational noise. Hide the Changelog heading + body when the trimmed changelog equals 'Initial release'. Both the inner section guard and the outer container guard use the new shouldShowChangelog() helper so an item with empty readme + initial release changelog doesn't leave an empty wrapper. --- .../iot-hub/iot-hub-item-detail-dialog.component.html | 4 ++-- .../iot-hub/iot-hub-item-detail-dialog.component.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html index a8c943ffa1..093fdb82f6 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html @@ -294,12 +294,12 @@ } - @if (readmeContent || item.changelog) { + @if (readmeContent || shouldShowChangelog()) {
@if (readmeContent) { } - @if (item.changelog) { + @if (shouldShowChangelog()) {

{{ 'iot-hub.changelog' | translate }}

} diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts index 63962c97c6..4223a58554 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.ts @@ -162,7 +162,10 @@ export class TbIotHubItemDetailDialogComponent extends DialogComponent