From 256c575b42519b24b05f9c14751f4f6b11f02865 Mon Sep 17 00:00:00 2001 From: dpinkevych Date: Wed, 16 Sep 2026 14:46:00 +0300 Subject: [PATCH 01/20] warn that updating a solution template recreates everything it installed Updating a solution template deletes and reinstalls every entity it created, and unlike the other item types it is not stopped by the modified-entity check, so a tenant's own edits to those dashboards, devices and rule chains are lost without warning. The dialog showed the generic "replace the current version" wording, which does not suggest anything is destroyed. A second, smaller mismatch: a listing renamed between releases shows one name in the installed-items table and another in the dialog that table opens, because the dialog took its title from the published version while the table reads the tracking row. - show a dedicated description for SOLUTION_TEMPLATE that names what is deleted and recreated, and says local changes are lost - take the item details title from the tracking row while the dialog shows exactly the installed version; any other displayed version keeps its own name --- .../iot-hub/iot-hub-item-detail-dialog.component.html | 2 +- .../iot-hub/iot-hub-item-detail-dialog.component.ts | 11 +++++++++++ .../iot-hub/iot-hub-update-dialog.component.html | 4 ++-- .../iot-hub/iot-hub-update-dialog.component.ts | 11 +++++++++++ ui-ngx/src/assets/locale/locale.constant-en_US.json | 1 + 5 files changed, 26 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 28e7e74e6d..83f8b69dc4 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 @@ -13,7 +13,7 @@ }
- {{ item.name }} + {{ itemTitle }}
{{ getTypeIcon() }} 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 d1c6f4f194..12a8900610 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 @@ -172,6 +172,17 @@ export class TbIotHubItemDetailDialogComponent extends DialogComponent{{ 'iot-hub.update-confirm-title' | translate:{ name: data.itemName } }} -

{{ 'iot-hub.update-desc' | translate }}

+

{{ updateDescKey | translate }}

} @case ('updating') {

{{ 'iot-hub.update-confirm-title' | translate:{ name: data.itemName } }}

-

{{ 'iot-hub.update-desc' | translate }}

+

{{ updateDescKey | translate }}

} @case ('success') {

{{ 'iot-hub.update-success-title' | translate }}

diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts index ec4a48cd2d..e5472c45a1 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts @@ -59,6 +59,17 @@ export class TbIotHubUpdateDialogComponent extends DialogComponent Date: Tue, 6 Oct 2026 12:21:22 +0300 Subject: [PATCH 02/20] feat: HTML page dashboard layout A new layout type, HTML Page, replaces a state's widget grid with a custom HTML page. The page is rendered by a virtual HTML Container widget built at runtime from gridSettings.htmlPageConfig (settings and actions), so it gets every widget API without a new rendering path. The widget is never stored in configuration.widgets and has a stable id per state, html-page-. - Edit HTML page replaces Add widget in edit mode; widget grid actions, context menus, hotkeys that change widgets and the dashboard settings' grid section are disabled for the page - Manage layouts warns before switching a state with widgets to HTML Page and restores default grid settings when switching back - A dashboard with an HTML page no longer opens in edit mode as empty - HTML Container settings types move to @shared/models/html-container.models and are re-exported from their old path --- .../core/services/dashboard-utils.service.ts | 84 +++++++-- .../dashboard-page.component.html | 46 +++-- .../dashboard-page.component.ts | 85 ++++++--- .../dashboard-page/dashboard-page.models.ts | 23 ++- .../layout/dashboard-layout.component.html | 8 +- .../layout/dashboard-layout.component.ts | 38 +++- ...ge-dashboard-layouts-dialog.component.html | 177 +++++++++--------- ...nage-dashboard-layouts-dialog.component.ts | 79 +++++++- .../html-container-basic-config.component.ts | 8 +- .../html/html-container-widget.component.ts | 11 +- .../lib/html/html-container-widget.models.ts | 28 +-- .../html/html-container-settings.component.ts | 6 +- ...tml-container-widget-settings.component.ts | 5 +- .../widget/widget-container.component.ts | 3 + .../src/app/shared/models/dashboard.models.ts | 29 ++- .../shared/models/html-container.models.ts | 25 +++ .../assets/locale/locale.constant-en_US.json | 5 + 17 files changed, 451 insertions(+), 209 deletions(-) create mode 100644 ui-ngx/src/app/shared/models/html-container.models.ts diff --git a/ui-ngx/src/app/core/services/dashboard-utils.service.ts b/ui-ngx/src/app/core/services/dashboard-utils.service.ts index 8afacfcc9a..de1eb3a6ac 100644 --- a/ui-ngx/src/app/core/services/dashboard-utils.service.ts +++ b/ui-ngx/src/app/core/services/dashboard-utils.service.ts @@ -19,6 +19,8 @@ import { DashboardState, DashboardStateLayouts, GridSettings, + htmlPageDefaultConfig, + htmlPageWidgetId, LayoutType, WidgetLayout } from '@shared/models/dashboard.models'; @@ -29,8 +31,10 @@ import { isDefinedAndNotNull, isNotEmptyStr, isString, - isUndefined + isUndefined, + mergeDeep } from '@core/utils'; +import { htmlContainerDefaultSettings, HtmlContainerWidgetSettings } from '@shared/models/html-container.models'; import { Datasource, datasourcesHasAggregation, @@ -458,7 +462,7 @@ export class DashboardUtilsService { }; } - private createDefaultGridSettings(): GridSettings { + public createDefaultGridSettings(): GridSettings { return { layoutType: LayoutType.default, backgroundColor: '#eeeeee', @@ -614,7 +618,7 @@ export class DashboardUtilsService { for (const state of Object.values(states)) { for (const layout of Object.values(state.layouts)) { - if (layout.widgets[widgetId]) { + if (layout.widgets && layout.widgets[widgetId]) { foundWidgetRefs++; } if (layout.breakpoints) { @@ -650,11 +654,11 @@ export class DashboardUtilsService { const layout: DashboardLayout = state.layouts[l]; if (layout) { result[l]= { - default: this.getBreakpointLayoutData(layout) + default: this.getBreakpointLayoutData(layout, targetState) }; if (layout.breakpoints) { for (const breakpoint of Object.keys(layout.breakpoints)) { - result[l][breakpoint] = this.getBreakpointLayoutData(layout.breakpoints[breakpoint]); + result[l][breakpoint] = this.getBreakpointLayoutData(layout.breakpoints[breakpoint], targetState); } } } @@ -665,17 +669,56 @@ export class DashboardUtilsService { } } - private getBreakpointLayoutData(layout: DashboardLayout): BreakpointLayoutInfo { + private getBreakpointLayoutData(layout: DashboardLayout, stateId: string): BreakpointLayoutInfo { const result: BreakpointLayoutInfo = { widgetIds: [], widgetLayouts: {}, gridSettings: {} }; - for (const id of Object.keys(layout.widgets)) { - result.widgetIds.push(id); + if (layout.gridSettings?.layoutType === LayoutType.html) { + result.gridSettings = { + layoutType: LayoutType.html, + autoFillHeight: true, + mobileAutoFillHeight: true, + columns: 1, + minColumns: 1, + margin: 0, + outerMargin: false + }; + // Stable per state: an unchanged page keeps its rendered instance, a changed one is re-rendered. + const widgetId = htmlPageWidgetId(stateId); + const config = mergeDeep({}, + htmlPageDefaultConfig, + { + settings: layout.gridSettings?.htmlPageConfig?.settings || mergeDeep({} as HtmlContainerWidgetSettings, htmlContainerDefaultSettings), + actions: layout.gridSettings?.htmlPageConfig?.actions + } + ); + result.widget = { + id: widgetId, + col: 0, + row: 0, + sizeX: 1, + sizeY: 1, + typeFullFqn: 'system.html_container', + type: widgetType.static, + config + }; + result.widgetLayouts[widgetId] = { + col: 0, + row: 0, + sizeX: 1, + sizeY: 1, + resizable: false, + mobileOrder: 0 + }; + } else { + for (const id of Object.keys(layout.widgets)) { + result.widgetIds.push(id); + } + result.widgetLayouts = layout.widgets; + result.gridSettings = layout.gridSettings; } - result.widgetLayouts = layout.widgets; - result.gridSettings = layout.gridSettings; return result; } @@ -691,11 +734,12 @@ export class DashboardUtilsService { } public isEmptyDashboard(dashboard: Dashboard): boolean { - if (dashboard?.configuration?.widgets) { - return Object.keys(dashboard?.configuration?.widgets).length === 0; - } else { - return true; + if (dashboard?.configuration?.widgets && Object.keys(dashboard.configuration.widgets).length) { + return false; } + // An HTML page has content but no stored widgets: its widget is virtual. + return !Object.values(dashboard?.configuration?.states || {}).some(state => + Object.values(state.layouts || {}).some(layout => layout?.gridSettings?.layoutType === LayoutType.html)); } public addWidgetToLayout(dashboard: Dashboard, @@ -865,6 +909,10 @@ export class DashboardUtilsService { const columns = gridSettings.columns || 24; const ratio = columns / prevColumns; layout.gridSettings = gridSettings; + if (!layout.widgets) { + // HTML page layout: no widget grid to rescale + return; + } for (const w of Object.keys(layout.widgets)) { const widget = layout.widgets[w]; if (!widget.sizeX) { @@ -963,7 +1011,7 @@ export class DashboardUtilsService { const state = states[s]; for (const l of Object.keys(state.layouts)) { const layout: DashboardLayout = state.layouts[l]; - if (layout.widgets[widgetId]) { + if (layout.widgets && layout.widgets[widgetId]) { found = true; break; } @@ -1273,7 +1321,11 @@ export class DashboardUtilsService { if (layoutInfo.gridSettings) { layout.layoutCtx.gridSettings = layoutInfo.gridSettings; } - layout.layoutCtx.widgets.setWidgetIds(layoutInfo.widgetIds); + if (layoutInfo.widget) { + layout.layoutCtx.widgets.setWidget(layoutInfo.widget); + } else { + layout.layoutCtx.widgets.setWidgetIds(layoutInfo.widgetIds); + } layout.layoutCtx.widgetLayouts = layoutInfo.widgetLayouts; if (layout.show && layout.layoutCtx.ctrl) { layout.layoutCtx.ctrl.reload(); diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html index 445fb2792f..614fb2ab21 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html @@ -298,19 +298,35 @@ } } @if (isEdit) { - - + @if (isHtml) { + + + } @else { + + + } }

{{ translatedDashboardTitle }}

- + dashboard.title
- @if (tbEditWidget.widgetConfig?.hasBasicMode) { + @if (tbEditWidget.widgetConfig?.hasBasicMode && !isHtml) { {{ 'widget.basic-mode' | translate }} {{ 'widget.advanced-mode' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts index 2b27e54fbd..411e612f2f 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts @@ -67,6 +67,7 @@ import { EntityService } from '@core/http/entity.service'; import { AliasController } from '@core/api/alias-controller'; import { BehaviorSubject, Observable, of, Subject, Subscription, throwError } from 'rxjs'; import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; +import { HtmlContainerWidgetSettings } from '@shared/models/html-container.models'; import { DashboardService } from '@core/http/dashboard.service'; import { DashboardContextMenuItem, @@ -196,6 +197,10 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC return ((this.hideToolbarValue || this.hideToolbarSetting()) && !this.isEdit) || (this.isEditingWidget || this.isAddingWidget); } + get isHtml(): boolean { + return this.layouts.main?.layoutCtx?.gridSettings?.layoutType === LayoutType.html; + } + @Input() hideMainToolbar = true; @@ -1086,7 +1091,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC } let gridSettings: GridSettings = null; const layoutKeys = this.dashboardUtils.isSingleLayoutDashboard(this.dashboard); - if (layoutKeys) { + // An HTML page has no widget grid, so the dialog shows only the dashboard settings. + if (layoutKeys && !this.isHtml) { const layouts = this.dashboardUtils.getDashboardLayoutConfig( this.dashboard.configuration.states[layoutKeys.state].layouts[layoutKeys.layout], this.layouts[layoutKeys.layout].layoutCtx.breakpoint); @@ -1114,6 +1120,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC this.dashboardUtils.updateLayoutSettings(layoutConfig, newGridSettings); this.updateDashboardLayouts(layouts); } + this.cd.markForCheck(); } }); } @@ -1584,13 +1591,22 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC const widget = this.dashboardUtils.prepareWidgetForSaving(deepClone(this.editingWidget)); const widgetLayout = deepClone(this.editingWidgetLayout); const id = this.editingWidgetOriginal.id; - this.dashboardConfiguration.widgets[id] = widget; this.editingWidgetOriginal = widget; this.editingWidgetLayoutOriginal = widgetLayout; - this.editingLayoutCtx.widgetLayouts[widget.id] = widgetLayout; - setTimeout(() => { - this.editingLayoutCtx.ctrl.highlightWidget(widget.id, 0); - }, 0); + if (this.isHtml) { + const state = this.dashboardConfiguration.states[this.dashboardCtx.state]; + state.layouts.main.gridSettings.htmlPageConfig = { + settings: widget.config.settings as HtmlContainerWidgetSettings, + actions: widget.config.actions + }; + this.updateLayouts(); + } else { + this.dashboardConfiguration.widgets[id] = widget; + this.editingLayoutCtx.widgetLayouts[widget.id] = widgetLayout; + setTimeout(() => { + this.editingLayoutCtx.ctrl.highlightWidget(widget.id, 0); + }, 0); + } } onEditWidgetClosed() { @@ -1618,31 +1634,22 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC if (this.editingWidgetOriginal === widget) { this.onEditWidgetClosed(); } else { - const transition = !this.forceDashboardMobileMode; - this.editingWidgetOriginal = widget; - this.editingWidgetLayoutOriginal = layoutCtx.widgetLayouts[widget.id]; - this.editingWidget = deepClone(this.editingWidgetOriginal); - this.editingWidgetLayout = deepClone(this.editingWidgetLayoutOriginal); - this.editingLayoutCtx = layoutCtx; - this.editingWidgetSubtitle = this.widgetComponentService.getInstantWidgetInfo(this.editingWidget).widgetName; - this.forceDashboardMobileMode = true; - this.isEditingWidget = true; - this.updateLayoutSizes(); - if (layoutCtx) { - const delayOffset = transition ? 350 : 0; - const delay = transition ? 400 : 300; - setTimeout(() => { - layoutCtx.ctrl.highlightWidget(widget.id, delay); - }, delayOffset); - } + this.prepareWidgetEdit(widget, layoutCtx); } } + editHtmlPage($event: Event) { + $event.stopPropagation(); + const layoutCtx = this.layouts.main?.layoutCtx; + const widget = layoutCtx.widgets.widgetByIndex(0); + this.prepareWidgetEdit(widget, layoutCtx, ''); + } + showLayoutConfigInEdit(layoutCtx: DashboardPageLayoutContext): boolean { - return layoutCtx?.gridSettings?.layoutType === LayoutType.divider || + return layoutCtx?.gridSettings?.layoutType !== LayoutType.html && (layoutCtx?.gridSettings?.layoutType === LayoutType.divider || layoutCtx?.gridSettings?.layoutType === LayoutType.default && (layoutCtx?.breakpoint === 'default' || - layoutCtx?.breakpoint !== 'default' && layoutCtx?.gridSettings?.viewFormat === ViewFormatType.list); + layoutCtx?.breakpoint !== 'default' && layoutCtx?.gridSettings?.viewFormat === ViewFormatType.list)); } replaceReferenceWithWidgetCopy($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) { @@ -1733,7 +1740,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC prepareDashboardContextMenu(layoutCtx: DashboardPageLayoutContext): Array { const dashboardContextActions: Array = []; - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode && !this.isHtml) { dashboardContextActions.push( { action: this.openDashboardSettings.bind(this), @@ -1788,7 +1795,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC prepareWidgetContextMenu(layoutCtx: DashboardPageLayoutContext, widget: Widget, isReference: boolean): Array { const widgetContextActions: Array = []; - if (this.isEdit && !this.isEditingWidget) { + if (this.isEdit && !this.isEditingWidget && !this.isHtml) { widgetContextActions.push( { action: (event, currentWidget) => { @@ -1952,4 +1959,28 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC private getDashboardLogoLink(): UrlTree { return this.forceFullscreen ? null : this.router.createUrlTree([], {relativeTo: this.route}); } + + private prepareWidgetEdit(widget: Widget, layoutCtx: DashboardPageLayoutContext, subtitle?: string) { + const transition = !this.forceDashboardMobileMode; + this.editingWidgetOriginal = widget; + this.editingWidgetLayoutOriginal = layoutCtx.widgetLayouts[widget.id]; + this.editingWidget = deepClone(this.editingWidgetOriginal); + this.editingWidgetLayout = deepClone(this.editingWidgetLayoutOriginal); + this.editingLayoutCtx = layoutCtx; + if (isDefinedAndNotNull(subtitle)) { + this.editingWidgetSubtitle = subtitle; + } else { + this.editingWidgetSubtitle = this.widgetComponentService.getInstantWidgetInfo(this.editingWidget).widgetName; + } + this.forceDashboardMobileMode = true; + this.isEditingWidget = true; + this.updateLayoutSizes(); + if (layoutCtx) { + const delayOffset = transition ? 350 : 0; + const delay = transition ? 400 : 300; + setTimeout(() => { + layoutCtx.ctrl.highlightWidget(widget.id, delay); + }, delayOffset); + } + } } diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts index 5cbb4b709b..39207b18b5 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts @@ -93,6 +93,8 @@ export class LayoutWidgetsArray implements Iterable { private widgetIds: string[] = []; + private widget: Widget; + private loaded = false; constructor(private dashboardCtx: DashboardContext) { @@ -112,6 +114,13 @@ export class LayoutWidgetsArray implements Iterable { setWidgetIds(widgetIds: string[]) { this.widgetIds = widgetIds; + this.widget = null; + this.loaded = true; + } + + setWidget(widget: Widget) { + this.widget = widget; + this.widgetIds = [this.widget.id]; this.loaded = true; } @@ -130,13 +139,19 @@ export class LayoutWidgetsArray implements Iterable { [Symbol.iterator](): Iterator { let pointer = 0; + const oneWidget = this.widget; const widgetIds = this.widgetIds; const dashboard = this.dashboardCtx.getDashboard(); return { next(value?: any): IteratorResult { if (pointer < widgetIds.length) { const widgetId = widgetIds[pointer++]; - const widget = dashboard.configuration.widgets[widgetId]; + let widget: Widget; + if (oneWidget && oneWidget.id === widgetId) { + widget = oneWidget; + } else { + widget = dashboard.configuration.widgets[widgetId]; + } return { done: false, value: widget @@ -161,7 +176,11 @@ export class LayoutWidgetsArray implements Iterable { } private widgetById(widgetId: string): Widget { - return this.dashboardCtx.getDashboard().configuration.widgets[widgetId]; + if (this.widget && this.widget.id === widgetId) { + return this.widget; + } else { + return this.dashboardCtx.getDashboard().configuration.widgets[widgetId]; + } } } diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.html index 5284c797f1..c3537a8ce9 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.html @@ -60,7 +60,7 @@ [aliasController]="dashboardCtx.aliasController" [stateController]="dashboardCtx.stateController" [dashboardTimewindow]="dashboardCtx.dashboardTimewindow" - [isEdit]="isEdit" + [isEdit]="isEdit && !isHtml" [isEditingWidget]="isEditingWidget" [autofillHeight]="autoFillHeight" [mobileAutofillHeight]="mobileAutoFillHeight" @@ -68,9 +68,9 @@ [isMobile]="isMobileValue" [isMobileDisabled]="isMobileDisabled" [disableWidgetInteraction]="isEdit" - [isEditActionEnabled]="isEdit && !isEditingWidget" - [isExportActionEnabled]="isEdit && !widgetEditMode && !isEditingWidget" - [isRemoveActionEnabled]="isEdit && !widgetEditMode && !isEditingWidget" + [isEditActionEnabled]="isEdit && !isEditingWidget && !isHtml" + [isExportActionEnabled]="isEdit && !widgetEditMode && !isEditingWidget && !isHtml" + [isRemoveActionEnabled]="isEdit && !widgetEditMode && !isEditingWidget && !isHtml" [callbacks]="this" [ignoreLoading]="layoutCtx.ignoreLoading" [parentDashboard]="parentDashboard" diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts index 7fcb115bdf..48a7069f40 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts @@ -61,20 +61,40 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo return this.layoutCtx.gridSettings.layoutType === LayoutType.scada; } + get isHtml(): boolean { + return this.layoutCtx.gridSettings.layoutType === LayoutType.html; + } + + // The HTML page layout has no widget grid: its only widget is virtual and is not stored in the layout, + // so widgets cannot be pasted into it, cut from it or referenced. + get widgetLayoutEditable(): boolean { + return this.isEdit && !this.isEditingWidget && !this.widgetEditMode && !this.isHtml; + } + + get disableMargins(): boolean { + return this.isScada || this.isHtml; + } + get outerMargin(): boolean { - return this.isScada ? false : this.layoutCtx.gridSettings.outerMargin; + return this.disableMargins ? false : this.layoutCtx.gridSettings.outerMargin; } get margin(): number { - return this.isScada ? 0 : this.layoutCtx.gridSettings.margin; + return this.disableMargins ? 0 : this.layoutCtx.gridSettings.margin; } get autoFillHeight(): boolean { - return (this.isEdit || this.isScada) ? false : this.layoutCtx.gridSettings.autoFillHeight; + if (this.isHtml) { + return true; + } else { + return (this.isEdit || this.isScada) ? false : this.layoutCtx.gridSettings.autoFillHeight; + } } get mobileAutoFillHeight(): boolean { - if (this.isEdit || this.isScada) { + if (this.isHtml) { + return true; + } else if (this.isEdit || this.isScada) { return false; } else if (this.layoutCtx.breakpoint !== 'default' && this.layoutCtx.gridSettings.viewFormat === ViewFormatType.list) { return this.layoutCtx.gridSettings.autoFillHeight; @@ -87,7 +107,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo } get isMobileDisabled(): boolean { - return this.widgetEditMode || this.isScada || (this.layoutCtx.breakpoint !== 'default' && !this.isMobileValue); + return this.widgetEditMode || this.isScada || this.isHtml || (this.layoutCtx.breakpoint !== 'default' && !this.isMobileValue); } get mobielRowHeigth(): number { @@ -176,7 +196,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo ); this.hotKeys.push( new Hotkey(['ctrl+r', 'meta+r'], (event: KeyboardEvent) => { - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.widgetLayoutEditable) { const widget = this.dashboard.getSelectedWidget(); if (widget) { event.preventDefault(); @@ -190,7 +210,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo ); this.hotKeys.push( new Hotkey(['ctrl+v', 'meta+v'], (event: KeyboardEvent) => { - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.widgetLayoutEditable) { if (this.itembuffer.hasWidget()) { event.preventDefault(); this.pasteWidget(event); @@ -203,7 +223,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo ); this.hotKeys.push( new Hotkey(['ctrl+i', 'meta+i'], (event: KeyboardEvent) => { - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.widgetLayoutEditable) { if (this.itembuffer.canPasteWidgetReference(this.dashboardCtx.getDashboard(), this.dashboardCtx.state, this.layoutCtx.id, this.layoutCtx.breakpoint)) { event.preventDefault(); @@ -217,7 +237,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo ); this.hotKeys.push( new Hotkey(['ctrl+x', 'meta+x'], (event: KeyboardEvent) => { - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.widgetLayoutEditable) { const widget = this.dashboard.getSelectedWidget(); if (widget) { event.preventDefault(); diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.html index c89865433e..79deeb7399 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.html @@ -29,7 +29,7 @@
- @if (!isDividerLayout) { + @if (isBreakpointsLayout) {
@@ -85,11 +85,10 @@ add
- } @else { + } @else if (isDividerLayout) {
+ formControlName="type"> {{ 'layout.percentage-width' | translate }} @@ -125,7 +124,7 @@ - {{ (isDividerLayout ? 'layout.left' : 'layout.main') | translate }} + {{ 'layout.left' | translate }} @if (showPreviewInputs('main')) { @@ -140,7 +139,55 @@ required> } @if (layoutsFormGroup.get('type').value === layoutWidthType.FIXED && - layoutsFormGroup.get('fixedLayout').value === 'main') { + layoutsFormGroup.get('fixedLayout').value === 'main') { + + } +
+ } +
+
+ + + @if (showPreviewInputs('right')) { +
+ @if (layoutsFormGroup.get('type').value !== layoutWidthType.FIXED) { + + } + @if (layoutsFormGroup.get('type').value === layoutWidthType.FIXED) { }
- @if (isDividerLayout) { -
- - - @if (showPreviewInputs('right')) { -
- @if (layoutsFormGroup.get('type').value !== layoutWidthType.FIXED) { - - } - @if (layoutsFormGroup.get('type').value === layoutWidthType.FIXED) { - - } -
- } -
- }
- @if (isDividerLayout) { -
- @if (layoutsFormGroup.get('type').value === layoutWidthType.PERCENTAGE) { - - - } - @if (layoutsFormGroup.get('type').value !== layoutWidthType.PERCENTAGE) { - - - } -
- - -
+
+ @if (layoutsFormGroup.get('type').value === layoutWidthType.PERCENTAGE) { + + + } + @if (layoutsFormGroup.get('type').value !== layoutWidthType.PERCENTAGE) { + + + } +
+ +
- } +
+
+ } @else if (isHtmlLayout) { +
+
{{ 'dashboard.html-page' | translate }}
} diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts index fe67491ca9..ea5ed441c6 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { Component, Inject, OnDestroy, SkipSelf, ViewChild } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; @@ -74,6 +75,8 @@ export class ManageDashboardLayoutsDialogComponent extends DialogComponent { + if (res) { + this.applyLayouts(); + } + }); + } else { + this.applyLayouts(); + } + } + + private applyLayouts(): void { const layoutType = this.layoutsFormGroup.value.layoutType; + if (this.initialLayoutType === LayoutType.html && !this.isHtmlLayout) { + // The HTML page kept no grid settings: start the widget grid from the defaults. + this.layouts.main.gridSettings = this.dashboardUtils.createDefaultGridSettings(); + } this.layouts.main.gridSettings.layoutType = layoutType; - if (!this.isDividerLayout) { - delete this.layouts.right; + delete this.layouts.main.gridSettings.layoutDimension; + if (this.isBreakpointsLayout) { if (this.layouts.main.breakpoints) { for (const breakpoint of Object.values(this.layouts.main.breakpoints)) { breakpoint.gridSettings.layoutType = layoutType; @@ -287,13 +313,10 @@ export class ManageDashboardLayoutsDialogComponent extends DialogComponent(); + const layouts = [this.layouts.main, ...Object.values(this.layouts.main?.breakpoints || {})]; + if (this.initialLayoutType === LayoutType.divider) { + layouts.push(this.layouts.right); + } + for (const layout of layouts) { + Object.keys(layout?.widgets || {}).forEach(id => widgetIds.add(id)); + } + return widgetIds.size; + } + + get isHtmlLayout(): boolean { + return this.layoutsFormGroup.get('layoutType').value === LayoutType.html; + } + + get isBreakpointsLayout(): boolean { + return [LayoutType.default, LayoutType.scada].includes(this.layoutsFormGroup.get('layoutType').value); + } + addBreakpoint() { this.dialog.open(AddNewBreakpointDialogComponent, { diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/html/html-container-basic-config.component.ts b/ui-ngx/src/app/modules/home/components/widget/config/basic/html/html-container-basic-config.component.ts index 7d94cb146d..1d9b03cd36 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/html/html-container-basic-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/config/basic/html/html-container-basic-config.component.ts @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { Component, HostBinding } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { Store } from '@ngrx/store'; @@ -7,10 +8,7 @@ import { AppState } from '@core/core.state'; import { BasicWidgetConfigComponent } from '@home/components/widget/config/widget-config.component.models'; import { WidgetConfigComponentData } from '@home/models/widget-component.models'; import { WidgetConfigComponent } from '@home/components/widget/widget-config.component'; -import { - htmlContainerDefaultSettings, - HtmlContainerWidgetSettings -} from '@home/components/widget/lib/html/html-container-widget.models'; +import { htmlContainerDefaultSettings, HtmlContainerWidgetSettings } from '@shared/models/html-container.models'; @Component({ selector: 'tb-html-container-basic-config', diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.component.ts index 5e3e5bd125..29e56a8c38 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.component.ts @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { ChangeDetectorRef, Component, ComponentRef, @@ -16,9 +17,6 @@ import { } from '@angular/core'; import { WidgetContext } from '@home/models/widget-component.models'; import { - htmlContainerDefaultSettings, - HtmlContainerWidgetSettings, - HtmlContainerWidgetType, WidgetContainerAngularFunction, WidgetContainerPlainFunction } from '@home/components/widget/lib/html/html-container-widget.models'; @@ -40,6 +38,11 @@ import { import { MODULES_MAP } from '@shared/models/constants'; import { IModulesMap } from '@modules/common/modules-map.models'; import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; +import { + htmlContainerDefaultSettings, + HtmlContainerWidgetSettings, + HtmlContainerWidgetType +} from '@shared/models/html-container.models'; @Component({ selector: 'tb-html-container-widget', diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.models.ts b/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.models.ts index d8cb440887..fbcc4309ca 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.models.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/html/html-container-widget.models.ts @@ -1,31 +1,13 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 -import { TbFunction } from '@shared/models/js-function.models'; +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { WidgetContext } from '@home/models/widget-component.models'; import { TbEditorCompleter, TbEditorCompletions } from '@shared/models/ace/completion.models'; import { widgetContextCompletions } from '@shared/models/ace/widget-completion.models'; -import { WidgetResource } from '@shared/models/widget.models'; -export enum HtmlContainerWidgetType { - PLAIN = 'PLAIN', - ANGULAR = 'ANGULAR' -} - -export interface HtmlContainerWidgetSettings { - type: HtmlContainerWidgetType; - html: string; - css: string; - js: TbFunction; - resources: WidgetResource[]; -} - -export const htmlContainerDefaultSettings: HtmlContainerWidgetSettings = { - type: HtmlContainerWidgetType.PLAIN, - html: '', - css: '', - js: '', - resources: [], -}; +// Moved to @shared/models/html-container.models (the HTML page layout uses them too); re-exported for existing imports. +export { HtmlContainerWidgetType, htmlContainerDefaultSettings } from '@shared/models/html-container.models'; +export type { HtmlContainerWidgetSettings } from '@shared/models/html-container.models'; export type WidgetContainerPlainFunction = (ctx: WidgetContext, container: HTMLElement) => void; export type WidgetContainerAngularFunction = (ctx: WidgetContext) => void; diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/html/html-container-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/html/html-container-settings.component.ts index 17012b3a8c..b0c2a94a69 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/html/html-container-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/html/html-container-settings.component.ts @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { AfterViewInit, Component, @@ -27,12 +28,11 @@ import { import { AngularContainerFunctionEditorCompleter, HTMLContainerFunctionEditorCompleter, - HtmlContainerWidgetSettings, - HtmlContainerWidgetType } from '@home/components/widget/lib/html/html-container-widget.models'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { isJSResource } from '@shared/models/resource.models'; import { WidgetService } from '@core/http/widget.service'; +import { HtmlContainerWidgetSettings, HtmlContainerWidgetType } from '@shared/models/html-container.models'; @Component({ selector: 'tb-html-container-settings', diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/html/html-container-widget-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/html/html-container-widget-settings.component.ts index 2f9987a6ce..a7bb0e0b99 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/html/html-container-widget-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/html/html-container-widget-settings.component.ts @@ -1,11 +1,12 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import { Component, HostBinding } from '@angular/core'; import { WidgetSettings, WidgetSettingsComponent } from '@shared/models/widget.models'; import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; -import { htmlContainerDefaultSettings } from '@home/components/widget/lib/html/html-container-widget.models'; +import { htmlContainerDefaultSettings } from '@shared/models/html-container.models'; @Component({ selector: 'tb-html-container-widget-settings', diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts index 6aa76187de..557ce4b142 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts @@ -321,6 +321,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O const container = parent.getBoundingClientRect(); position.coord.left = Math.max(0,clientRect.right - position.size.width - container.left); position.coord.top = position.coord.top - container.top; + if (position.coord.top < 2) { + position.coord.top = 2; + } position.target = clientRect.right; return position; }, diff --git a/ui-ngx/src/app/shared/models/dashboard.models.ts b/ui-ngx/src/app/shared/models/dashboard.models.ts index a6466ab974..fdad34e2b4 100644 --- a/ui-ngx/src/app/shared/models/dashboard.models.ts +++ b/ui-ngx/src/app/shared/models/dashboard.models.ts @@ -5,13 +5,14 @@ import { BaseData, ExportableEntity, GroupEntityInfo } from '@shared/models/base import { DashboardId } from '@shared/models/id/dashboard-id'; import { TenantId } from '@shared/models/id/tenant-id'; import { ShortCustomerInfo } from '@shared/models/customer.model'; -import { Widget } from './widget.models'; +import { Widget, WidgetActionsMap, WidgetConfig, WidgetConfigMode } from './widget.models'; import { Timewindow } from '@shared/models/time/time.models'; import { EntityAliases } from './alias.models'; import { CustomerId } from '@shared/models/id/customer-id'; import { Filters } from '@shared/models/query/query.models'; import { MatDialogRef } from '@angular/material/dialog'; import { HasTenantId, HasVersion } from '@shared/models/entity.models'; +import { HtmlContainerWidgetSettings } from '@shared/models/html-container.models'; export interface WidgetLayout { sizeX?: number; @@ -34,6 +35,7 @@ export enum LayoutType { default = 'default', scada = 'scada', divider = 'divider', + html = 'html' } export const layoutTypes = Object.keys(LayoutType) as LayoutType[]; @@ -43,6 +45,7 @@ export const layoutTypeTranslationMap = new Map( [ LayoutType.default, 'dashboard.layout-type-default' ], [ LayoutType.scada, 'dashboard.layout-type-scada' ], [ LayoutType.divider, 'dashboard.layout-type-divider' ], + [ LayoutType.html, 'dashboard.layout-type-html' ] ] ); @@ -60,6 +63,27 @@ export const viewFormatTypeTranslationMap = new Map( ] ); +export const htmlPageDefaultConfig: WidgetConfig = { + showTitle: false, + backgroundColor: 'rgba(255, 255, 255, 0)', + color: 'rgba(0, 0, 0, 0.87)', + padding: '0', + dropShadow: false, + enableFullscreen: false, + widgetStyle: {}, + title: 'HTML page', + configMode: WidgetConfigMode.basic +}; + +export interface HtmlPageConfig { + settings: HtmlContainerWidgetSettings; + actions?: WidgetActionsMap; +} + +// Id of the virtual HTML Container widget that renders a state's HTML page. It is never stored in +// dashboard.configuration.widgets, so it cannot collide with a widget id there. +export const htmlPageWidgetId = (stateId: string): string => `html-page-${stateId}`; + export interface GridSettings { layoutType?: LayoutType; backgroundColor?: string; @@ -76,6 +100,8 @@ export interface GridSettings { mobileRowHeight?: number; mobileDisplayLayoutFirst?: boolean; layoutDimension?: LayoutDimension; + // For LayoutType.html + htmlPageConfig?: HtmlPageConfig; } export interface DashboardLayout { @@ -90,6 +116,7 @@ export interface BreakpointLayoutInfo { widgetIds?: string[]; widgetLayouts?: WidgetLayouts; gridSettings?: GridSettings; + widget?: Widget; } export declare type BreakpointSystemId = 'default' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'; diff --git a/ui-ngx/src/app/shared/models/html-container.models.ts b/ui-ngx/src/app/shared/models/html-container.models.ts new file mode 100644 index 0000000000..49d3251c1a --- /dev/null +++ b/ui-ngx/src/app/shared/models/html-container.models.ts @@ -0,0 +1,25 @@ +// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: BUSL-1.1 +import { TbFunction } from '@shared/models/js-function.models'; +import { WidgetResource } from '@shared/models/widget.models'; + +export enum HtmlContainerWidgetType { + PLAIN = 'PLAIN', + ANGULAR = 'ANGULAR' +} + +export interface HtmlContainerWidgetSettings { + type: HtmlContainerWidgetType; + html: string; + css: string; + js: TbFunction; + resources: WidgetResource[]; +} + +export const htmlContainerDefaultSettings: HtmlContainerWidgetSettings = { + type: HtmlContainerWidgetType.PLAIN, + html: '', + css: '', + js: '', + resources: [], +}; diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index fda314e14d..c89b168042 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -2375,6 +2375,8 @@ "no-widgets": "No widgets configured", "add-widget": "Add new widget", "add-widget-button-text": "Add widget", + "edit-html-page": "Edit HTML page", + "html-page": "HTML page", "title": "Title", "image": "Dashboard image", "mobile-app-settings": "Mobile application settings", @@ -2448,6 +2450,7 @@ "layout-type-default": "Default", "layout-type-scada": "SCADA", "layout-type-divider": "Divider", + "layout-type-html": "HTML Page", "layout-settings-type": "Layout settings: {{ type }} breakpoint", "columns-count": "Columns count", "columns-count-required": "Columns count is required.", @@ -6573,6 +6576,8 @@ "no-data": "No entries" }, "layout": { + "switch-to-html-page-title": "Switch to HTML page?", + "switch-to-html-page-text": "The HTML page replaces the widget grid of this state. { count, plural, =1 {1 widget} other {# widgets} } placed in its layouts will be removed from this state.", "layout": "Layout", "layouts": "Layouts", "manage": "Manage layouts", From e9759ef8ccb51b57eef453734e3e277b0267ab82 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 6 Oct 2026 14:16:55 +0300 Subject: [PATCH 03/20] fix: keep HTML page layouts compatible with code that walks layouts - HTML page layouts keep an empty widgets map, restored on load, so Manage states Duplicate and other layout walks no longer fail; the guards that worked around the missing map are removed - Add to dashboard offers only states with a widget grid and reports when a dashboard has none - The HTML page widget can no longer be selected, and Ctrl+C is disabled for it like the other widget hotkeys - Manage layouts resets the grid settings as soon as the layout type leaves HTML, so layout settings and new breakpoints start from the defaults; the page content is kept if the type is switched back - Drop the unused HTML branch of mobileAutoFillHeight --- .../core/services/dashboard-utils.service.ts | 19 +++++++----- ...dd-widget-to-dashboard-dialog.component.ts | 25 ++++++++++----- .../dashboard-page.component.ts | 2 +- .../layout/dashboard-layout.component.ts | 8 ++--- ...nage-dashboard-layouts-dialog.component.ts | 31 ++++++++++++------- .../assets/locale/locale.constant-en_US.json | 1 + 6 files changed, 52 insertions(+), 34 deletions(-) diff --git a/ui-ngx/src/app/core/services/dashboard-utils.service.ts b/ui-ngx/src/app/core/services/dashboard-utils.service.ts index de1eb3a6ac..43e7754e58 100644 --- a/ui-ngx/src/app/core/services/dashboard-utils.service.ts +++ b/ui-ngx/src/app/core/services/dashboard-utils.service.ts @@ -563,6 +563,9 @@ export class DashboardUtilsService { if (!layout.gridSettings) { layout.gridSettings = this.createDefaultGridSettings(); } + if (!layout.widgets) { + layout.widgets = {}; + } if ((layout.gridSettings as any).margins && (layout.gridSettings as any).margins.length === 2) { layout.gridSettings.margin = (layout.gridSettings as any).margins[0]; delete (layout.gridSettings as any).margins; @@ -618,7 +621,7 @@ export class DashboardUtilsService { for (const state of Object.values(states)) { for (const layout of Object.values(state.layouts)) { - if (layout.widgets && layout.widgets[widgetId]) { + if (layout.widgets[widgetId]) { foundWidgetRefs++; } if (layout.breakpoints) { @@ -738,8 +741,12 @@ export class DashboardUtilsService { return false; } // An HTML page has content but no stored widgets: its widget is virtual. - return !Object.values(dashboard?.configuration?.states || {}).some(state => - Object.values(state.layouts || {}).some(layout => layout?.gridSettings?.layoutType === LayoutType.html)); + return !Object.values(dashboard?.configuration?.states || {}).some(state => this.isHtmlPageState(state)); + } + + // A state whose widget grid is replaced by an HTML page: widgets cannot be added to it. + public isHtmlPageState(state: DashboardState): boolean { + return state?.layouts?.main?.gridSettings?.layoutType === LayoutType.html; } public addWidgetToLayout(dashboard: Dashboard, @@ -909,10 +916,6 @@ export class DashboardUtilsService { const columns = gridSettings.columns || 24; const ratio = columns / prevColumns; layout.gridSettings = gridSettings; - if (!layout.widgets) { - // HTML page layout: no widget grid to rescale - return; - } for (const w of Object.keys(layout.widgets)) { const widget = layout.widgets[w]; if (!widget.sizeX) { @@ -1011,7 +1014,7 @@ export class DashboardUtilsService { const state = states[s]; for (const l of Object.keys(state.layouts)) { const layout: DashboardLayout = state.layouts[l]; - if (layout.widgets && layout.widgets[widgetId]) { + if (layout.widgets[widgetId]) { found = true; break; } diff --git a/ui-ngx/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.ts b/ui-ngx/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.ts index 5be02c7796..1173ed0a87 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/attribute/add-widget-to-dashboard-dialog.component.ts @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors // SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. // SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 -import { Component, Inject, OnInit, SkipSelf } from '@angular/core'; +import { Component, Inject, SkipSelf } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Store } from '@ngrx/store'; @@ -16,7 +16,7 @@ import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; import { EntityId } from '@app/shared/models/id/entity-id'; import { Widget } from '@app/shared/models/widget.models'; import { DashboardService } from '@core/http/dashboard.service'; -import { forkJoin, Observable, of } from 'rxjs'; +import { EMPTY, forkJoin, Observable, of } from 'rxjs'; import { SelectTargetLayoutDialogComponent } from '@home/components/dashboard/select-target-layout-dialog.component'; import { SelectTargetStateDialogComponent, @@ -28,6 +28,8 @@ import { ItemBufferService } from '@core/services/item-buffer.service'; import { StateObject } from '@core/api/widget-api.models'; import { FiltersInfo } from '@shared/models/query/query.models'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { TranslateService } from '@ngx-translate/core'; +import { ActionNotificationShow } from '@core/notification/notification.actions'; export interface AddWidgetToDashboardDialogData { entityId: EntityId; @@ -44,7 +46,7 @@ export interface AddWidgetToDashboardDialogData { }) export class AddWidgetToDashboardDialogComponent extends DialogComponent - implements OnInit, ErrorStateMatcher { + implements ErrorStateMatcher { addWidgetFormGroup: UntypedFormGroup; @@ -60,7 +62,8 @@ export class AddWidgetToDashboardDialogComponent extends private dashboardUtils: DashboardUtilsService, private dashboardService: DashboardService, private itembuffer: ItemBufferService, - private dialog: MatDialog) { + private dialog: MatDialog, + private translate: TranslateService) { super(store, router, dialogRef); this.addWidgetFormGroup = this.fb.group( @@ -95,9 +98,6 @@ export class AddWidgetToDashboardDialogComponent extends ); } - ngOnInit(): void { - } - isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean { const originalErrorState = this.errorStateMatcher.isErrorState(control, form); const customErrorState = !!(control && control.invalid && this.submitted); @@ -134,8 +134,17 @@ export class AddWidgetToDashboardDialogComponent extends } private selectTargetState(dashboard: Dashboard): Observable { - const states = dashboard.configuration.states; + // A state with an HTML page has no widget grid to add the widget to. + const states = Object.fromEntries(Object.entries(dashboard.configuration.states) + .filter(([, state]) => !this.dashboardUtils.isHtmlPageState(state))); const stateIds = Object.keys(states); + if (!stateIds.length) { + this.store.dispatch(new ActionNotificationShow({ + message: this.translate.instant('attribute.no-widget-grid-in-dashboard'), + type: 'error' + })); + return EMPTY; + } if (stateIds.length > 1) { return this.dialog.open(SelectTargetStateDialogComponent, { diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts index 411e612f2f..fe1d2663c9 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts @@ -1733,7 +1733,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC } widgetMouseDown($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) { - if (this.isEdit && !this.isEditingWidget) { + if (this.isEdit && !this.isEditingWidget && !this.isHtml) { layoutCtx.ctrl.selectWidget(widget.id, 0); } } diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts index 48a7069f40..a622a8004a 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts @@ -66,7 +66,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo } // The HTML page layout has no widget grid: its only widget is virtual and is not stored in the layout, - // so widgets cannot be pasted into it, cut from it or referenced. + // so widgets cannot be copied from it, pasted into it, cut from it or referenced. get widgetLayoutEditable(): boolean { return this.isEdit && !this.isEditingWidget && !this.widgetEditMode && !this.isHtml; } @@ -92,9 +92,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo } get mobileAutoFillHeight(): boolean { - if (this.isHtml) { - return true; - } else if (this.isEdit || this.isScada) { + if (this.isEdit || this.isScada) { return false; } else if (this.layoutCtx.breakpoint !== 'default' && this.layoutCtx.gridSettings.viewFormat === ViewFormatType.list) { return this.layoutCtx.gridSettings.autoFillHeight; @@ -182,7 +180,7 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo private initHotKeys(): void { this.hotKeys.push( new Hotkey(['ctrl+c', 'meta+c'], (event: KeyboardEvent) => { - if (this.isEdit && !this.isEditingWidget && !this.widgetEditMode) { + if (this.widgetLayoutEditable) { const widget = this.dashboard.getSelectedWidget(); if (widget) { event.preventDefault(); diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts index ea5ed441c6..2ef1094d10 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component.ts @@ -24,6 +24,7 @@ import { DashboardLayoutId, DashboardStateLayouts, LayoutDimension, + HtmlPageConfig, LayoutType, layoutTypes, layoutTypeTranslationMap, @@ -77,6 +78,9 @@ export class ManageDashboardLayoutsDialogComponent extends DialogComponent { + if (value !== LayoutType.html && this.layouts.main.gridSettings.htmlPageConfig) { + // Leaving the HTML page: start the widget grid from the defaults right away, so that layout settings + // and new breakpoints copied from the main layout are based on them. + this.layouts.main.gridSettings = this.dashboardUtils.createDefaultGridSettings(); + } + }) + ); + this.subscriptions.push( this.layoutsFormGroup.get('type').valueChanges.subscribe( (value) => { @@ -299,10 +314,6 @@ export class ManageDashboardLayoutsDialogComponent extends DialogComponent Date: Wed, 7 Oct 2026 10:22:14 +0300 Subject: [PATCH 04/20] Remove IoT Hub Dashboard item type (#16255) * Remove IoT Hub Dashboard item type The IoT Hub no longer has Dashboard items, so drop the DASHBOARD item type from the platform: install/update/checksum/delete handling and the DashboardInstalledItemDescriptor on the backend, and the item type, the /iot-hub/dashboards page and route, deep links, translations and styles in the UI. Dashboards created by device packages and solution templates are not affected. * Keep DashboardInstalledItemDescriptor for existing installed items Installed-item rows with a DASHBOARD descriptor may still exist on instances that were connected to the QA Hub. Without the subtype Jackson fails on such a row and the whole Installed items page breaks, so keep the descriptor and the delete branch to let those rows be read and removed. * Revert "Keep DashboardInstalledItemDescriptor for existing installed items" This reverts commit 61246776faf. A DASHBOARD installed-item row can only exist on instances connected to the QA Hub; production and official releases never had Dashboard items, so the legacy descriptor is not kept. --- .../service/iot_hub/DefaultIotHubService.java | 54 ---------- .../iot_hub/DefaultIotHubServiceTest.java | 12 +-- .../DashboardInstalledItemDescriptor.java | 13 --- .../IotHubInstalledItemDescriptor.java | 1 - .../iot-hub/iot-hub-browse.component.ts | 3 - ...t-hub-installed-items-table.component.scss | 1 - ...iot-hub-installed-items-table.component.ts | 1 - .../iot-hub/iot-hub-item-card.component.html | 2 +- .../iot-hub-item-detail-dialog.component.html | 4 +- .../pages/iot-hub/iot-hub-deep-link.utils.ts | 1 - .../pages/iot-hub/iot-hub-home.component.ts | 1 - .../iot-hub/iot-hub-items-page.component.ts | 7 -- .../pages/iot-hub/iot-hub-routing.module.ts | 10 -- .../iot-hub/iot-hub-installed-item.models.ts | 10 -- .../models/iot-hub/iot-hub-item.models.ts | 6 -- .../iot-hub/items-page-dashboards-hero.svg | 102 ------------------ .../assets/locale/locale.constant-en_US.json | 6 -- 17 files changed, 9 insertions(+), 225 deletions(-) delete mode 100644 common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/DashboardInstalledItemDescriptor.java delete mode 100644 ui-ngx/src/assets/iot-hub/items-page-dashboards-hero.svg diff --git a/application/src/main/java/org/thingsboard/server/service/iot_hub/DefaultIotHubService.java b/application/src/main/java/org/thingsboard/server/service/iot_hub/DefaultIotHubService.java index f4350f1ffc..7e6a2d88ad 100644 --- a/application/src/main/java/org/thingsboard/server/service/iot_hub/DefaultIotHubService.java +++ b/application/src/main/java/org/thingsboard/server/service/iot_hub/DefaultIotHubService.java @@ -10,7 +10,6 @@ import org.springframework.stereotype.Service; import org.thingsboard.common.util.ExceptionUtil; import org.thingsboard.common.util.JacksonUtil; import org.thingsboard.server.common.data.asset.AssetProfile; -import org.thingsboard.server.common.data.Dashboard; import org.thingsboard.server.common.data.DeviceProfile; import org.thingsboard.server.common.data.cf.CalculatedField; import org.thingsboard.server.common.data.exception.ThingsboardException; @@ -23,7 +22,6 @@ import org.thingsboard.server.common.data.id.IotHubInstalledItemId; import org.thingsboard.server.common.data.id.RuleChainId; import org.thingsboard.server.common.data.id.TenantId; import org.thingsboard.server.common.data.iot_hub.CalculatedFieldInstalledItemDescriptor; -import org.thingsboard.server.common.data.iot_hub.DashboardInstalledItemDescriptor; import org.thingsboard.server.common.data.iot_hub.DeviceInstalledItemDescriptor; import org.thingsboard.server.common.data.iot_hub.IotHubInstalledItem; import org.thingsboard.server.common.data.iot_hub.IotHubInstalledItemDescriptor; @@ -79,7 +77,6 @@ public class DefaultIotHubService implements IotHubService { private static final String SECTION_RULE_CHAIN_METADATA = "rule chain metadata"; private static final String ITEM_TYPE_WIDGET = "widget"; - private static final String ITEM_TYPE_DASHBOARD = "dashboard"; private static final String ITEM_TYPE_CALCULATED_FIELD = "calculated field"; private static final String ITEM_TYPE_RULE_CHAIN = "rule chain"; private static final String ITEM_TYPE_DEVICE_PROFILE = "device profile"; @@ -150,7 +147,6 @@ public class DefaultIotHubService implements IotHubService { IotHubInstalledItemDescriptor descriptor = switch (itemType) { case "WIDGET" -> installWidget(user, tenantId, fileData); - case "DASHBOARD" -> installDashboard(user, tenantId, fileData); case "CALCULATED_FIELD" -> installCalculatedField(user, tenantId, fileData, data); case "ALARM_RULE" -> throw new IllegalArgumentException( "Alarm Rules require ThingsBoard 4.3 or later. Please update your platform instance to install Alarm Rule packages."); @@ -212,22 +208,6 @@ public class DefaultIotHubService implements IotHubService { return descriptor; } - private DashboardInstalledItemDescriptor installDashboard(SecurityUser user, TenantId tenantId, byte[] fileData) throws Exception { - Dashboard dashboard; - try { - dashboard = JacksonUtil.fromString(new String(fileData), Dashboard.class, true); - } catch (Exception e) { - throw parseFailure(ACTION_INSTALL, ITEM_TYPE_DASHBOARD, e); - } - dashboard.setId(null); - dashboard.setTenantId(tenantId); - Dashboard saved = tbDashboardService.save(dashboard, user); - log.debug("[{}] Dashboard installed: {}", tenantId, saved.getTitle()); - DashboardInstalledItemDescriptor descriptor = new DashboardInstalledItemDescriptor(); - descriptor.setDashboardId(saved.getId()); - return descriptor; - } - private CalculatedFieldInstalledItemDescriptor installCalculatedField(SecurityUser user, TenantId tenantId, byte[] fileData, JsonNode data) throws Exception { CalculatedField calculatedField; try { @@ -405,7 +385,6 @@ public class DefaultIotHubService implements IotHubService { switch (itemType) { case "WIDGET" -> updateWidget(user, tenantId, (WidgetInstalledItemDescriptor) descriptor, fileData); - case "DASHBOARD" -> updateDashboard(user, tenantId, (DashboardInstalledItemDescriptor) descriptor, fileData); case "CALCULATED_FIELD" -> updateCalculatedField(user, tenantId, (CalculatedFieldInstalledItemDescriptor) descriptor, fileData); case "RULE_CHAIN" -> updateRuleChain(tenantId, (RuleChainInstalledItemDescriptor) descriptor, fileData); case "DEVICE" -> { @@ -462,22 +441,6 @@ public class DefaultIotHubService implements IotHubService { tbWidgetTypeService.save(existing, false, user); } - private void updateDashboard(SecurityUser user, TenantId tenantId, DashboardInstalledItemDescriptor descriptor, byte[] fileData) throws Exception { - Dashboard newDashboard; - try { - newDashboard = JacksonUtil.fromString(new String(fileData), Dashboard.class, true); - } catch (Exception e) { - throw parseFailure(ACTION_UPDATE, ITEM_TYPE_DASHBOARD, e); - } - Dashboard existing = dashboardService.findDashboardById(tenantId, descriptor.getDashboardId()); - if (existing == null) { - throw new Exception("Dashboard not found for update"); - } - existing.setTitle(newDashboard.getTitle()); - existing.setConfiguration(newDashboard.getConfiguration()); - tbDashboardService.save(existing, user); - } - private void updateCalculatedField(SecurityUser user, TenantId tenantId, CalculatedFieldInstalledItemDescriptor descriptor, byte[] fileData) throws Exception { CalculatedField newCf; try { @@ -524,8 +487,6 @@ public class DefaultIotHubService implements IotHubService { IotHubInstalledItemDescriptor descriptor = installedItem.getDescriptor(); if (descriptor instanceof WidgetInstalledItemDescriptor wd) { return calculateWidgetChecksum(tenantId, wd); - } else if (descriptor instanceof DashboardInstalledItemDescriptor dd) { - return calculateDashboardChecksum(tenantId, dd); } else if (descriptor instanceof CalculatedFieldInstalledItemDescriptor cd) { return calculateCalculatedFieldChecksum(tenantId, cd); } else if (descriptor instanceof RuleChainInstalledItemDescriptor rd) { @@ -545,16 +506,6 @@ public class DefaultIotHubService implements IotHubService { return sha256(content); } - private String calculateDashboardChecksum(TenantId tenantId, DashboardInstalledItemDescriptor descriptor) { - Dashboard dashboard = dashboardService.findDashboardById(tenantId, descriptor.getDashboardId()); - if (dashboard == null) { - return null; - } - String content = (dashboard.getTitle() != null ? dashboard.getTitle() : "") + - (dashboard.getConfiguration() != null ? dashboard.getConfiguration().toString() : ""); - return sha256(content); - } - private String calculateWidgetChecksum(TenantId tenantId, WidgetInstalledItemDescriptor descriptor) { WidgetTypeDetails widgetType = widgetTypeService.findWidgetTypeDetailsById(tenantId, descriptor.getWidgetTypeId()); if (widgetType == null) { @@ -727,11 +678,6 @@ public class DefaultIotHubService implements IotHubService { if (widgetType != null) { tbWidgetTypeService.delete(widgetType, user); } - } else if (descriptor instanceof DashboardInstalledItemDescriptor dd) { - Dashboard dashboard = dashboardService.findDashboardById(tenantId, dd.getDashboardId()); - if (dashboard != null) { - tbDashboardService.delete(dashboard, user); - } } else if (descriptor instanceof CalculatedFieldInstalledItemDescriptor cd) { CalculatedField calculatedField = calculatedFieldService.findById(tenantId, cd.getCalculatedFieldId()); if (calculatedField != null) { diff --git a/application/src/test/java/org/thingsboard/server/service/iot_hub/DefaultIotHubServiceTest.java b/application/src/test/java/org/thingsboard/server/service/iot_hub/DefaultIotHubServiceTest.java index 7ac28ffdb5..559215e526 100644 --- a/application/src/test/java/org/thingsboard/server/service/iot_hub/DefaultIotHubServiceTest.java +++ b/application/src/test/java/org/thingsboard/server/service/iot_hub/DefaultIotHubServiceTest.java @@ -15,8 +15,8 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.thingsboard.common.util.JacksonUtil; import org.thingsboard.server.common.data.id.IotHubInstalledItemId; import org.thingsboard.server.common.data.id.TenantId; -import org.thingsboard.server.common.data.iot_hub.DashboardInstalledItemDescriptor; import org.thingsboard.server.common.data.iot_hub.IotHubInstalledItem; +import org.thingsboard.server.common.data.iot_hub.RuleChainInstalledItemDescriptor; import org.thingsboard.server.dao.iot_hub.IotHubInstalledItemService; import org.thingsboard.server.service.security.model.SecurityUser; @@ -89,7 +89,7 @@ class DefaultIotHubServiceTest { mockTenant(); String versionId = UUID.randomUUID().toString(); String itemId = UUID.randomUUID().toString(); - when(iotHubRestClient.getVersionInfo(versionId)).thenReturn(version(versionId, itemId, "DASHBOARD", "Root", "1.0")); + when(iotHubRestClient.getVersionInfo(versionId)).thenReturn(version(versionId, itemId, "RULE_CHAIN", "Root", "1.0")); when(iotHubInstalledItemService.findInstalledItemIdsByTenantIdAndItemIdIn(eq(tenantId), any())).thenReturn(List.of()); InstallPlan plan = service.resolveInstallPlan(user, versionId); @@ -107,7 +107,7 @@ class DefaultIotHubServiceTest { String versionId = UUID.randomUUID().toString(); String rootItemId = UUID.randomUUID().toString(); String relatedItemId = UUID.randomUUID().toString(); - ObjectNode root = version(versionId, rootItemId, "DASHBOARD", "Root", "1.0"); + ObjectNode root = version(versionId, rootItemId, "RULE_CHAIN", "Root", "1.0"); root.putArray("relatedItems").add(relatedItemId); when(iotHubRestClient.getVersionInfo(versionId)).thenReturn(root); when(iotHubRestClient.getPublishedVersionByItemId(relatedItemId)) @@ -129,7 +129,7 @@ class DefaultIotHubServiceTest { String versionId = UUID.randomUUID().toString(); String rootItemId = UUID.randomUUID().toString(); String relatedItemId = UUID.randomUUID().toString(); - ObjectNode root = version(versionId, rootItemId, "DASHBOARD", "Root", "1.0"); + ObjectNode root = version(versionId, rootItemId, "RULE_CHAIN", "Root", "1.0"); root.putArray("relatedItems").add(relatedItemId); when(iotHubRestClient.getVersionInfo(versionId)).thenReturn(root); when(iotHubRestClient.getPublishedVersionByItemId(relatedItemId)).thenReturn(null); @@ -149,7 +149,7 @@ class DefaultIotHubServiceTest { String versionId = UUID.randomUUID().toString(); String rootItemId = UUID.randomUUID().toString(); String relatedItemId = UUID.randomUUID().toString(); - ObjectNode root = version(versionId, rootItemId, "DASHBOARD", "Root", "1.0"); + ObjectNode root = version(versionId, rootItemId, "RULE_CHAIN", "Root", "1.0"); root.putArray("relatedItems").add(relatedItemId); when(iotHubRestClient.getVersionInfo(versionId)).thenReturn(root); when(iotHubRestClient.getPublishedVersionByItemId(relatedItemId)).thenThrow(new RuntimeException("boom")); @@ -280,7 +280,7 @@ class DefaultIotHubServiceTest { when(iotHubInstalledItemService.findInstalledItemIdsByTenantIdAndItemIdIn(eq(tenantId), any())).thenReturn(List.of()); IotHubInstalledItem depItem = installedItem(UUID.randomUUID()); IotHubInstalledItem rootItem = installedItem(UUID.randomUUID()); - DashboardInstalledItemDescriptor rootDescriptor = new DashboardInstalledItemDescriptor(); + RuleChainInstalledItemDescriptor rootDescriptor = new RuleChainInstalledItemDescriptor(); rootItem.setDescriptor(rootDescriptor); doReturn(depItem).when(service).doInstallVersion(eq(user), eq(depVersionId), any(), any()); doReturn(rootItem).when(service).doInstallVersion(eq(user), eq(rootVersionId), any(), any()); diff --git a/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/DashboardInstalledItemDescriptor.java b/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/DashboardInstalledItemDescriptor.java deleted file mode 100644 index 654f36f31e..0000000000 --- a/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/DashboardInstalledItemDescriptor.java +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-FileCopyrightText: Copyright The Thingsboard Authors -// SPDX-License-Identifier: Apache-2.0 -package org.thingsboard.server.common.data.iot_hub; - -import lombok.Data; -import org.thingsboard.server.common.data.id.DashboardId; - -@Data -public class DashboardInstalledItemDescriptor implements IotHubInstalledItemDescriptor { - - private DashboardId dashboardId; - -} diff --git a/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/IotHubInstalledItemDescriptor.java b/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/IotHubInstalledItemDescriptor.java index 0ef245c0ac..ca8b3a1b83 100644 --- a/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/IotHubInstalledItemDescriptor.java +++ b/common/data/src/main/java/org/thingsboard/server/common/data/iot_hub/IotHubInstalledItemDescriptor.java @@ -15,7 +15,6 @@ import java.io.Serializable; property = "type") @JsonSubTypes({ @Type(name = "WIDGET", value = WidgetInstalledItemDescriptor.class), - @Type(name = "DASHBOARD", value = DashboardInstalledItemDescriptor.class), @Type(name = "CALCULATED_FIELD", value = CalculatedFieldInstalledItemDescriptor.class), @Type(name = "ALARM_RULE", value = AlarmRuleInstalledItemDescriptor.class), @Type(name = "RULE_CHAIN", value = RuleChainInstalledItemDescriptor.class), diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts index cc8d423c96..1568146cfc 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts @@ -34,7 +34,6 @@ export class TbIotHubBrowseComponent implements OnInit, AfterViewInit, OnDestroy private static typeTabLabel(t: ItemType): string { switch (t) { case ItemType.WIDGET: return 'item.type-widget-plural'; - case ItemType.DASHBOARD: return 'item.type-dashboard-plural'; case ItemType.SOLUTION_TEMPLATE: return 'item.type-solution-template-plural'; case ItemType.CALCULATED_FIELD: return 'item.type-calculated-field-plural'; case ItemType.ALARM_RULE: return 'item.type-alarm-rule-plural'; @@ -87,7 +86,6 @@ export class TbIotHubBrowseComponent implements OnInit, AfterViewInit, OnDestroy get searchPlaceholderKey(): string { switch (this._activeType) { case ItemType.WIDGET: return 'iot-hub.search-widgets'; - case ItemType.DASHBOARD: return 'iot-hub.search-dashboards'; case ItemType.SOLUTION_TEMPLATE: return 'iot-hub.search-solution-templates'; case ItemType.CALCULATED_FIELD: return 'iot-hub.search-calculated-fields'; case ItemType.ALARM_RULE: return 'iot-hub.search-alarm-rules'; @@ -524,7 +522,6 @@ export class TbIotHubBrowseComponent implements OnInit, AfterViewInit, OnDestroy getTitle(): string { switch (this.activeType) { case ItemType.WIDGET: return 'iot-hub.title-widgets'; - case ItemType.DASHBOARD: return 'iot-hub.title-dashboards'; case ItemType.SOLUTION_TEMPLATE: return 'iot-hub.title-solution-templates'; case ItemType.CALCULATED_FIELD: return 'iot-hub.title-calculated-fields'; case ItemType.ALARM_RULE: return 'iot-hub.title-alarm-rules'; diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.scss index 32e91f43c7..9c90354d0d 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.scss @@ -116,7 +116,6 @@ .tb-type-calc-field { color: #3db5e0; background: rgba(61, 181, 224, 0.06); } .tb-type-alarm-rule { color: #d7702f; background: rgba(215, 112, 47, 0.06); } .tb-type-rule-chain { color: #aa5be3; background: rgba(170, 91, 227, 0.06); } -.tb-type-dashboard { color: #607d8b; background: rgba(96, 125, 139, 0.06); } // "vX.X.X Available" button — Design: border rgba(0,0,0,0.12), rounded-4, px-12 py-6, gap-8 .tb-installed-version-btn { diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts index c441060f5a..63c88b4cce 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts @@ -157,7 +157,6 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges, getItemTypeChipClass(itemType: string): string { switch (itemType) { case 'WIDGET': return 'tb-type-widget'; - case 'DASHBOARD': return 'tb-type-dashboard'; case 'CALCULATED_FIELD': return 'tb-type-calc-field'; case 'ALARM_RULE': return 'tb-type-alarm-rule'; case 'RULE_CHAIN': return 'tb-type-rule-chain'; diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html index cbde4bbf83..4187b431d3 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html @@ -71,7 +71,7 @@ }
} @else { - +
@if (getPreviewUrl(); as previewUrl) { 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 28e7e74e6d..bd155237d8 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 @@ -86,7 +86,7 @@
} @else { - +
@@ -156,7 +156,7 @@
-
+
@if (showCreator) {
{{ 'iot-hub.creator' | translate }} diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-deep-link.utils.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-deep-link.utils.ts index 1bfed40ed3..6b417e3353 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-deep-link.utils.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-deep-link.utils.ts @@ -12,7 +12,6 @@ export function isUUID(s: string | null | undefined): s is string { export function typeSegment(t: ItemType): string | undefined { switch (t) { case ItemType.WIDGET: return 'widgets'; - case ItemType.DASHBOARD: return 'dashboards'; case ItemType.SOLUTION_TEMPLATE: return 'solution-templates'; case ItemType.CALCULATED_FIELD: return 'calculated-fields'; case ItemType.ALARM_RULE: return 'alarm-rules'; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts index fffd19c021..8164b1bdef 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.ts @@ -276,7 +276,6 @@ export class TbIotHubHomeComponent implements OnInit, OnDestroy { private getTypeRoute(type: ItemType): string { switch (type) { case ItemType.WIDGET: return 'widgets'; - case ItemType.DASHBOARD: return 'dashboards'; case ItemType.SOLUTION_TEMPLATE: return 'solution-templates'; case ItemType.CALCULATED_FIELD: return 'calculated-fields'; case ItemType.ALARM_RULE: return 'alarm-rules'; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-items-page.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-items-page.component.ts index 07beff5559..cc54a57641 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-items-page.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-items-page.component.ts @@ -29,13 +29,6 @@ const PAGE_CONFIGS: Record = { image: 'assets/iot-hub/items-page-widgets-hero.svg', routeSegment: 'widgets' }, - DASHBOARD: { - type: ItemType.DASHBOARD, - titleKey: 'item.type-dashboard-plural', - descriptionKey: 'iot-hub.items-page-desc-dashboards', - image: 'assets/iot-hub/items-page-dashboards-hero.svg', - routeSegment: 'dashboards' - }, SOLUTION_TEMPLATE: { type: ItemType.SOLUTION_TEMPLATE, titleKey: 'item.type-solution-template-plural', diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts index 13f734636d..4840a87a10 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-routing.module.ts @@ -41,16 +41,6 @@ const routes: Routes = [ breadcrumb: { label: 'item.type-widget-plural', icon: 'widgets' } } }, - { - path: 'dashboards', - component: TbIotHubItemsPageComponent, - data: { - auth: [Authority.TENANT_ADMIN], - title: 'item.type-dashboard-plural', - itemType: 'DASHBOARD', - breadcrumb: { label: 'item.type-dashboard-plural', icon: 'dashboard' } - } - }, { path: 'solution-templates', component: TbIotHubItemsPageComponent, diff --git a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts index f1733e350a..106f6fa13a 100644 --- a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts +++ b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts @@ -9,11 +9,6 @@ export interface WidgetInstalledItemDescriptor { widgetTypeId: { id: string }; } -export interface DashboardInstalledItemDescriptor { - type: 'DASHBOARD'; - dashboardId: { id: string }; -} - export interface CalculatedFieldInstalledItemDescriptor { type: 'CALCULATED_FIELD'; calculatedFieldId: { id: string }; @@ -50,7 +45,6 @@ export interface SolutionTemplateInstalledItemDescriptor { export type IotHubInstalledItemDescriptor = | WidgetInstalledItemDescriptor - | DashboardInstalledItemDescriptor | CalculatedFieldInstalledItemDescriptor | AlarmRuleInstalledItemDescriptor | RuleChainInstalledItemDescriptor @@ -141,10 +135,6 @@ export const getInstalledItemUrl = (descriptor?: IotHubInstalledItemDescriptor): entityId = descriptor.widgetTypeId?.id; entityType = EntityType.WIDGET_TYPE; break; - case 'DASHBOARD': - entityId = descriptor.dashboardId?.id; - entityType = EntityType.DASHBOARD; - break; case 'CALCULATED_FIELD': case 'ALARM_RULE': entityId = descriptor.entityId?.id; diff --git a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-item.models.ts b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-item.models.ts index abdddc1734..2b822a5030 100644 --- a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-item.models.ts +++ b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-item.models.ts @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 export enum ItemType { WIDGET = 'WIDGET', - DASHBOARD = 'DASHBOARD', SOLUTION_TEMPLATE = 'SOLUTION_TEMPLATE', CALCULATED_FIELD = 'CALCULATED_FIELD', ALARM_RULE = 'ALARM_RULE', @@ -13,7 +12,6 @@ export enum ItemType { export const itemTypeTranslations = new Map( [ [ItemType.WIDGET, 'item.type-widget'], - [ItemType.DASHBOARD, 'item.type-dashboard'], [ItemType.SOLUTION_TEMPLATE, 'item.type-solution-template'], [ItemType.CALCULATED_FIELD, 'item.type-calculated-field'], [ItemType.ALARM_RULE, 'item.type-alarm-rule'], @@ -28,7 +26,6 @@ export const itemTypeTranslations = new Map( // mapping stays consistent across the app. export const itemTypeIcons: Record = { [ItemType.WIDGET]: 'widgets', - [ItemType.DASHBOARD]: 'dashboard', [ItemType.SOLUTION_TEMPLATE]: 'apps', [ItemType.CALCULATED_FIELD]: 'mdi:function-variant', [ItemType.RULE_CHAIN]: 'settings_ethernet', @@ -41,9 +38,6 @@ export const getItemTypeIcon = (type?: string | null): string => /** * Item types discoverable to creators in the marketplace UI. - * DASHBOARD is intentionally absent (IoT Hub no longer accepts Dashboard contributions). - * Defensive code paths (item card, detail dialog descriptor switch, installed-items table, - * install handler, /iot-hub/dashboards route) remain functional for already-installed items. */ export const CREATOR_VISIBLE_ITEM_TYPES: ItemType[] = [ ItemType.WIDGET, diff --git a/ui-ngx/src/assets/iot-hub/items-page-dashboards-hero.svg b/ui-ngx/src/assets/iot-hub/items-page-dashboards-hero.svg deleted file mode 100644 index c699714457..0000000000 --- a/ui-ngx/src/assets/iot-hub/items-page-dashboards-hero.svg +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index b3aa95d6ec..234d7a136c 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -3685,8 +3685,6 @@ "item": { "type-widget": "Widget", "type-widget-plural": "Widgets", - "type-dashboard": "Dashboard", - "type-dashboard-plural": "Dashboards", "type-solution-template": "Solution Template", "type-solution-template-plural": "Solution Templates", "type-calculated-field": "Calculated Field", @@ -3732,7 +3730,6 @@ "filter": "Filter", "available": "Available", "items-page-desc-widgets": "Jumpstart your IoT journey with pre-configured widgets designed for your industry. Deploy proven architectures instantly and focus your energy on what matters: your unique business logic.", - "items-page-desc-dashboards": "Explore dashboards to find pre-built visualization templates and interactive UI layouts you can deploy in minutes to bring your IoT data to life.", "items-page-desc-solution-templates": "Complete IoT solution packages with dashboards, rule chains, and device configurations. Get started with proven architectures.", "items-page-desc-calculated-fields": "Use pre-configured Calculated Fields to automate complex metrics like fuel efficiency or power factor. Skip the manual logic and keep your dashboards clean and actionable.", "items-page-desc-alarm-rules": "Use pre-built Alarm Rule templates to detect critical conditions like low battery, threshold breaches, or devices going offline. Skip writing the rule logic and start reacting to incidents the moment they happen.", @@ -3755,20 +3752,17 @@ "contribute": "Contribute", "creator-profile": "Creator Profile", "title-widgets": "Widgets", - "title-dashboards": "Dashboards", "title-calculated-fields": "Calculated Fields", "title-alarm-rules": "Alarm Rules", "title-rule-chains": "Rule Chains", "title-devices": "Devices", "title-solution-templates": "Solution Templates", "subtitle-widgets": "Browse community widgets for your dashboards", - "subtitle-dashboards": "Browse ready-to-use dashboards", "subtitle-solution-templates": "Browse complete IoT solution packages", "subtitle-calculated-fields": "Browse calculated field templates", "subtitle-alarm-rules": "Browse alarm rule templates", "subtitle-rule-chains": "Browse rule chain templates", "subtitle-devices": "Browse device configurations", - "search-dashboards": "Search dashboards...", "search-solution-templates": "Search solution templates...", "search-calculated-fields": "Search calculated fields...", "search-alarm-rules": "Search alarm rules...", From 31a5b0c2073b32f31d57c0f8592b777ce98f8704 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 7 Oct 2026 15:16:04 +0300 Subject: [PATCH 05/20] simplify itemTitle in item detail dialog --- .../iot-hub/iot-hub-item-detail-dialog.component.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 12a8900610..41b5d77814 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 @@ -172,15 +172,9 @@ export class TbIotHubItemDetailDialogComponent extends DialogComponent Date: Wed, 7 Oct 2026 16:39:31 +0300 Subject: [PATCH 06/20] fix: detect the type of resource URLs named like css2 loadResource found the type of a resource from its file extension or from a path segment named exactly css or js, as in Google Maps' /maps/api/js. The current Google Fonts API serves stylesheets from /css2, so its URLs failed with "Unable to detect file type". The type now comes from the last path segment of the parsed URL: its extension, or the segment itself when it is named css or js with an optional version number. Upper-case extensions are recognised too. --- .../app/core/services/resources.service.ts | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/ui-ngx/src/app/core/services/resources.service.ts b/ui-ngx/src/app/core/services/resources.service.ts index 52459d5c88..46c020ca30 100644 --- a/ui-ngx/src/app/core/services/resources.service.ts +++ b/ui-ngx/src/app/core/services/resources.service.ts @@ -79,6 +79,23 @@ export const componentTypeBySelector = (modulesWithComponents: ModulesWithCompon return found?.type; } +// The file type of a resource URL: the extension of its last path segment, or the segment itself when it is named +// after the type with an optional version, as in Google Maps' /maps/api/js and Google Fonts' /css and /css2. +const resourceFileType = (url: string, baseUrl: string): string => { + let path: string; + try { + path = new URL(url, baseUrl).pathname; + } catch { + return undefined; + } + const segment = path.substring(path.lastIndexOf('/') + 1).toLowerCase(); + const extensionIndex = segment.lastIndexOf('.'); + if (extensionIndex > -1) { + return segment.substring(extensionIndex + 1); + } + return /^(css|js)\d*$/.exec(segment)?.[1]; +}; + const matchesSelector = (selectors: ɵCssSelectorList, selector: string) => selectors.some(s => s.some(s1 => typeof s1 === 'string' && s1 === selector)); @@ -142,11 +159,7 @@ export class ResourcesService { return this.loadedResources[url].asObservable(); } - let fileType: string; - const match = /[./](css|less|html|htm|js)?(([?#]).*)?$/.exec(url); - if (match !== null) { - fileType = match[1]; - } + const fileType = resourceFileType(url, this.document.baseURI); if (!fileType) { return throwError(() => new Error(`Unable to detect file type from url: ${url}`)); } else if (fileType !== 'css' && fileType !== 'js') { From e8dc5bdc3d16c9107bb7916ebedb6fc4ae0968b1 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Wed, 7 Oct 2026 16:18:35 +0200 Subject: [PATCH 07/20] Merge pull request #16259 from mtsymbarov-del/fix/alarm-details-outline-inputs Applied outline appearance to inputs in Alarm details dialog --- .../alarm/alarm-assignee.component.html | 2 +- .../alarm/alarm-details-dialog.component.html | 12 ++++++------ .../alarm/alarm-details-dialog.component.scss | 16 ---------------- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html index e34ed8c344..1bf99ff2e2 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.html @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> - alarm.assignee diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html b/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html index 7ed60e9ccc..37ab23d9ad 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.html @@ -25,11 +25,11 @@
- + alarm.originator - + alarm.severity
@if (alarmFormGroup.get('startTime').value) { - + alarm.start-time } @if (alarmFormGroup.get('duration').value) { - + alarm.duration }
- + alarm.type - + alarm.status diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss b/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss index 8886910def..6349fce043 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-details-dialog.component.scss @@ -1,22 +1,6 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors // SPDX-License-Identifier: Apache-2.0 :host ::ng-deep { - .assignee-field { - .mat-form-field-label-wrapper { - overflow: visible; - left: -36px; - } - .user-avatar { - min-width: 28px; - min-height: 28px; - margin-right: 8px; - border-radius: 50%; - font-weight: 700; - color: #fff; - font-size: 13px; - line-height: normal; - } - } .mat-expansion-panel { &.tb-alarm-details { box-shadow: none; From 237025d80ed0f2ca2afdc0f5263e8c8469a7264d Mon Sep 17 00:00:00 2001 From: Dmytro Pinkevych <49400214+pinkevmladchy@users.noreply.github.com> Date: Thu, 8 Oct 2026 12:18:12 +0300 Subject: [PATCH 08/20] Fix device install wizard navigation via stepper header (#16265) Clicking a step in the stepper header bypassed nextStep(), so the Provisioning step was never activated and rendered empty, and the Configuration form values were not collected. Step activation now runs on the stepper selectionChange, and instruction steps are marked completed once shown so the header can move past them like the Next button does. --- .../device-install-dialog.component.html | 3 +- .../device-install-dialog.component.ts | 38 ++++++++++++------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html index bb72d65ea3..28e7f61ceb 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html @@ -190,7 +190,8 @@
+ labelPosition="bottom" + (selectionChange)="onStepSelectionChange($event)"> done diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index 7f991316ee..33f2a6d08a 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -12,6 +12,7 @@ import { AppState } from '@core/core.state'; import { DialogComponent } from '@shared/components/dialog.component'; import { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms'; import { MatStepper } from '@angular/material/stepper'; +import { StepperSelectionEvent } from '@angular/cdk/stepper'; import { firstValueFrom } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; import { PageLink } from '@shared/models/page/page-link'; @@ -261,10 +262,7 @@ export class TbDeviceInstallDialogComponent extends DialogComponent { - this.stepper?.next(); - this.onStepActivated(); - }, 0); + setTimeout(() => this.stepper?.next(), 0); return; } this.startWizard(); @@ -315,12 +313,9 @@ export class TbDeviceInstallDialogComponent extends DialogComponent Date: Thu, 8 Oct 2026 12:26:29 +0300 Subject: [PATCH 09/20] Version set to 4.4.0.1-SNAPSHOT --- application/pom.xml | 2 +- common/actor/pom.xml | 2 +- common/agent-api/pom.xml | 2 +- common/cache/pom.xml | 2 +- common/cluster-api/pom.xml | 2 +- common/coap-server/pom.xml | 2 +- common/dao-api/pom.xml | 2 +- common/data/pom.xml | 2 +- common/discovery-api/pom.xml | 2 +- common/edge-api/pom.xml | 2 +- common/edqs/pom.xml | 2 +- common/integration/apache-pulsar/pom.xml | 2 +- common/integration/aws-integrations/pom.xml | 2 +- common/integration/azure-integrations/pom.xml | 2 +- common/integration/cluster-integration-api/pom.xml | 2 +- common/integration/coap-integrations/pom.xml | 2 +- common/integration/gcloud-integrations/pom.xml | 2 +- common/integration/http-integrations/pom.xml | 2 +- common/integration/integration-api/pom.xml | 2 +- common/integration/kafka-integrations/pom.xml | 2 +- common/integration/mqtt-integrations/pom.xml | 2 +- common/integration/opcua-integrations/pom.xml | 2 +- common/integration/pom.xml | 2 +- common/integration/rabbitmq-integrations/pom.xml | 2 +- common/integration/remote-integration-api/pom.xml | 2 +- common/integration/tuya-integrations/pom.xml | 2 +- common/message/pom.xml | 2 +- common/pom.xml | 2 +- common/proto/pom.xml | 2 +- common/queue/pom.xml | 2 +- common/report/pom.xml | 2 +- common/script/pom.xml | 2 +- common/script/remote-js-client/pom.xml | 2 +- common/script/script-api/pom.xml | 2 +- common/stats/pom.xml | 2 +- common/transport/coap/pom.xml | 2 +- common/transport/http/pom.xml | 2 +- common/transport/lwm2m/pom.xml | 2 +- common/transport/mqtt/pom.xml | 2 +- common/transport/pom.xml | 2 +- common/transport/snmp/pom.xml | 2 +- common/transport/transport-api/pom.xml | 2 +- common/util/pom.xml | 2 +- common/version-control/pom.xml | 2 +- dao/pom.xml | 2 +- edqs/pom.xml | 2 +- integration/apache-pulsar/pom.xml | 2 +- integration/aws/pom.xml | 2 +- integration/azure/pom.xml | 2 +- integration/coap/pom.xml | 2 +- integration/executor/pom.xml | 2 +- integration/http/pom.xml | 2 +- integration/kafka/pom.xml | 2 +- integration/mqtt/pom.xml | 2 +- integration/opc-ua/pom.xml | 2 +- integration/pom.xml | 2 +- integration/pubsub/pom.xml | 2 +- integration/rabbitmq/pom.xml | 2 +- integration/tcp-udp/pom.xml | 2 +- integration/tuya/pom.xml | 2 +- migrator/pom.xml | 2 +- monitoring/pom.xml | 2 +- msa/black-box-tests/pom.xml | 2 +- msa/edqs/pom.xml | 2 +- msa/integration/apache-pulsar/pom.xml | 2 +- msa/integration/aws/pom.xml | 2 +- msa/integration/azure/pom.xml | 2 +- msa/integration/coap/pom.xml | 2 +- msa/integration/executor/pom.xml | 2 +- msa/integration/http/pom.xml | 2 +- msa/integration/kafka/pom.xml | 2 +- msa/integration/mqtt/pom.xml | 2 +- msa/integration/opc-ua/pom.xml | 2 +- msa/integration/pom.xml | 2 +- msa/integration/pubsub/pom.xml | 2 +- msa/integration/rabbitmq/pom.xml | 2 +- msa/integration/tcp-udp/pom.xml | 2 +- msa/integration/tuya/pom.xml | 2 +- msa/js-executor/package.json | 2 +- msa/js-executor/pom.xml | 2 +- msa/migrator/pom.xml | 2 +- msa/monitoring/pom.xml | 2 +- msa/pom.xml | 2 +- msa/report/pom.xml | 2 +- msa/tb-node/pom.xml | 2 +- msa/transport/coap/pom.xml | 2 +- msa/transport/http/pom.xml | 2 +- msa/transport/lwm2m/pom.xml | 2 +- msa/transport/mqtt/pom.xml | 2 +- msa/transport/pom.xml | 2 +- msa/transport/snmp/pom.xml | 2 +- msa/vc-executor-docker/pom.xml | 2 +- msa/vc-executor/pom.xml | 2 +- msa/web-report/package.json | 2 +- msa/web-report/pom.xml | 2 +- msa/web-ui/package.json | 2 +- msa/web-ui/pom.xml | 2 +- netty-mqtt/pom.xml | 4 ++-- packaging/pom.xml | 2 +- pom.xml | 2 +- report/pom.xml | 2 +- rest-client/pom.xml | 2 +- rule-engine/pom.xml | 2 +- rule-engine/rule-engine-api/pom.xml | 2 +- rule-engine/rule-engine-components/pom.xml | 2 +- tools/pom.xml | 2 +- transport/coap/pom.xml | 2 +- transport/http/pom.xml | 2 +- transport/lwm2m/pom.xml | 2 +- transport/mqtt/pom.xml | 2 +- transport/pom.xml | 2 +- transport/snmp/pom.xml | 2 +- ui-ngx/package.json | 2 +- ui-ngx/pom.xml | 2 +- 114 files changed, 115 insertions(+), 115 deletions(-) diff --git a/application/pom.xml b/application/pom.xml index 1fdc656151..05096269a8 100644 --- a/application/pom.xml +++ b/application/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard application diff --git a/common/actor/pom.xml b/common/actor/pom.xml index 207337ae57..36eec9d17e 100644 --- a/common/actor/pom.xml +++ b/common/actor/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/agent-api/pom.xml b/common/agent-api/pom.xml index 116cd3478a..648bab6df3 100644 --- a/common/agent-api/pom.xml +++ b/common/agent-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/cache/pom.xml b/common/cache/pom.xml index e4ba4342e6..358c784e44 100644 --- a/common/cache/pom.xml +++ b/common/cache/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/cluster-api/pom.xml b/common/cluster-api/pom.xml index 257f6c2712..ffde72c4aa 100644 --- a/common/cluster-api/pom.xml +++ b/common/cluster-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/coap-server/pom.xml b/common/coap-server/pom.xml index cb76c5f68c..5a4bbb4eb6 100644 --- a/common/coap-server/pom.xml +++ b/common/coap-server/pom.xml @@ -11,7 +11,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/dao-api/pom.xml b/common/dao-api/pom.xml index 3ce813d21c..e19e17995c 100644 --- a/common/dao-api/pom.xml +++ b/common/dao-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/data/pom.xml b/common/data/pom.xml index d3e060a8b3..815bf191f7 100644 --- a/common/data/pom.xml +++ b/common/data/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/discovery-api/pom.xml b/common/discovery-api/pom.xml index 3c7df8d6a0..d7cb25266b 100644 --- a/common/discovery-api/pom.xml +++ b/common/discovery-api/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/edge-api/pom.xml b/common/edge-api/pom.xml index bbd2463752..77005c642c 100644 --- a/common/edge-api/pom.xml +++ b/common/edge-api/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/edqs/pom.xml b/common/edqs/pom.xml index 33be32a08c..c4806872cd 100644 --- a/common/edqs/pom.xml +++ b/common/edqs/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/integration/apache-pulsar/pom.xml b/common/integration/apache-pulsar/pom.xml index dabe13c243..8d2bcb44c1 100644 --- a/common/integration/apache-pulsar/pom.xml +++ b/common/integration/apache-pulsar/pom.xml @@ -11,7 +11,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/aws-integrations/pom.xml b/common/integration/aws-integrations/pom.xml index 59f1830998..7629907753 100644 --- a/common/integration/aws-integrations/pom.xml +++ b/common/integration/aws-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/azure-integrations/pom.xml b/common/integration/azure-integrations/pom.xml index f521b0f1c7..dad9f38033 100644 --- a/common/integration/azure-integrations/pom.xml +++ b/common/integration/azure-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/cluster-integration-api/pom.xml b/common/integration/cluster-integration-api/pom.xml index d26c39df6b..151d787c23 100644 --- a/common/integration/cluster-integration-api/pom.xml +++ b/common/integration/cluster-integration-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/coap-integrations/pom.xml b/common/integration/coap-integrations/pom.xml index 6142b068b0..f75a62aed9 100644 --- a/common/integration/coap-integrations/pom.xml +++ b/common/integration/coap-integrations/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/gcloud-integrations/pom.xml b/common/integration/gcloud-integrations/pom.xml index 4a7ebfed15..b909cfb628 100644 --- a/common/integration/gcloud-integrations/pom.xml +++ b/common/integration/gcloud-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/http-integrations/pom.xml b/common/integration/http-integrations/pom.xml index 99aa616128..5b2606505a 100644 --- a/common/integration/http-integrations/pom.xml +++ b/common/integration/http-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/integration-api/pom.xml b/common/integration/integration-api/pom.xml index 892a3bd16f..23fbb4f012 100644 --- a/common/integration/integration-api/pom.xml +++ b/common/integration/integration-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/kafka-integrations/pom.xml b/common/integration/kafka-integrations/pom.xml index de0ae80585..1da4a2e5bc 100644 --- a/common/integration/kafka-integrations/pom.xml +++ b/common/integration/kafka-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/mqtt-integrations/pom.xml b/common/integration/mqtt-integrations/pom.xml index bc2df4cf5e..669904703f 100644 --- a/common/integration/mqtt-integrations/pom.xml +++ b/common/integration/mqtt-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/opcua-integrations/pom.xml b/common/integration/opcua-integrations/pom.xml index d8e861692c..af25e34904 100644 --- a/common/integration/opcua-integrations/pom.xml +++ b/common/integration/opcua-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/pom.xml b/common/integration/pom.xml index df625de93c..ffc4d21947 100644 --- a/common/integration/pom.xml +++ b/common/integration/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/integration/rabbitmq-integrations/pom.xml b/common/integration/rabbitmq-integrations/pom.xml index 1f733387ef..c4f120c054 100644 --- a/common/integration/rabbitmq-integrations/pom.xml +++ b/common/integration/rabbitmq-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/remote-integration-api/pom.xml b/common/integration/remote-integration-api/pom.xml index 50a0a6f815..a0efa16741 100644 --- a/common/integration/remote-integration-api/pom.xml +++ b/common/integration/remote-integration-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/integration/tuya-integrations/pom.xml b/common/integration/tuya-integrations/pom.xml index d67fe3cc7c..6bb785b285 100644 --- a/common/integration/tuya-integrations/pom.xml +++ b/common/integration/tuya-integrations/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.common.integration diff --git a/common/message/pom.xml b/common/message/pom.xml index e2132029e6..7fdcc5d7e3 100644 --- a/common/message/pom.xml +++ b/common/message/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/pom.xml b/common/pom.xml index 9474839791..dd7abf9c65 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard common diff --git a/common/proto/pom.xml b/common/proto/pom.xml index 4908ee0cd7..f27ab28dd3 100644 --- a/common/proto/pom.xml +++ b/common/proto/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/queue/pom.xml b/common/queue/pom.xml index 9aeba1959b..1107cb9d80 100644 --- a/common/queue/pom.xml +++ b/common/queue/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/report/pom.xml b/common/report/pom.xml index 22374c1ff8..4c5569f5b3 100644 --- a/common/report/pom.xml +++ b/common/report/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/script/pom.xml b/common/script/pom.xml index 7f24d645b6..31baf21245 100644 --- a/common/script/pom.xml +++ b/common/script/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/script/remote-js-client/pom.xml b/common/script/remote-js-client/pom.xml index 50df7069f5..8107306a8c 100644 --- a/common/script/remote-js-client/pom.xml +++ b/common/script/remote-js-client/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT script org.thingsboard.common.script diff --git a/common/script/script-api/pom.xml b/common/script/script-api/pom.xml index 698e51e0a4..59d85f86a1 100644 --- a/common/script/script-api/pom.xml +++ b/common/script/script-api/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT script org.thingsboard.common.script diff --git a/common/stats/pom.xml b/common/stats/pom.xml index 1a116f1b37..8cac215014 100644 --- a/common/stats/pom.xml +++ b/common/stats/pom.xml @@ -11,7 +11,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/transport/coap/pom.xml b/common/transport/coap/pom.xml index 2e3e82a831..3e52ecf18b 100644 --- a/common/transport/coap/pom.xml +++ b/common/transport/coap/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.common.transport diff --git a/common/transport/http/pom.xml b/common/transport/http/pom.xml index fc7b58100f..5ab4b7ba73 100644 --- a/common/transport/http/pom.xml +++ b/common/transport/http/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.common.transport diff --git a/common/transport/lwm2m/pom.xml b/common/transport/lwm2m/pom.xml index 11fc33f05c..dd7850c851 100644 --- a/common/transport/lwm2m/pom.xml +++ b/common/transport/lwm2m/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.common.transport diff --git a/common/transport/mqtt/pom.xml b/common/transport/mqtt/pom.xml index 420995f740..9e0595d144 100644 --- a/common/transport/mqtt/pom.xml +++ b/common/transport/mqtt/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.common.transport diff --git a/common/transport/pom.xml b/common/transport/pom.xml index 2aa7a33ef1..57728b92b7 100644 --- a/common/transport/pom.xml +++ b/common/transport/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/transport/snmp/pom.xml b/common/transport/snmp/pom.xml index 97e47ab761..654180c79a 100644 --- a/common/transport/snmp/pom.xml +++ b/common/transport/snmp/pom.xml @@ -11,7 +11,7 @@ org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport diff --git a/common/transport/transport-api/pom.xml b/common/transport/transport-api/pom.xml index bb31960dd9..68cc72722e 100644 --- a/common/transport/transport-api/pom.xml +++ b/common/transport/transport-api/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard.common - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.common.transport diff --git a/common/util/pom.xml b/common/util/pom.xml index 3faf8e398e..1b630a08ad 100644 --- a/common/util/pom.xml +++ b/common/util/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/common/version-control/pom.xml b/common/version-control/pom.xml index 6dff34b0ff..0691144f3d 100644 --- a/common/version-control/pom.xml +++ b/common/version-control/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT common org.thingsboard.common diff --git a/dao/pom.xml b/dao/pom.xml index c16be92787..1330f42cda 100644 --- a/dao/pom.xml +++ b/dao/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard dao diff --git a/edqs/pom.xml b/edqs/pom.xml index 8a331de831..461cb6d5dd 100644 --- a/edqs/pom.xml +++ b/edqs/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard edqs diff --git a/integration/apache-pulsar/pom.xml b/integration/apache-pulsar/pom.xml index 1f2209de28..f81588fb8d 100644 --- a/integration/apache-pulsar/pom.xml +++ b/integration/apache-pulsar/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/aws/pom.xml b/integration/aws/pom.xml index 4087d35ffa..41a86f31d3 100644 --- a/integration/aws/pom.xml +++ b/integration/aws/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/azure/pom.xml b/integration/azure/pom.xml index 2e0fadb59c..86a6a23a29 100644 --- a/integration/azure/pom.xml +++ b/integration/azure/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/coap/pom.xml b/integration/coap/pom.xml index 7f639ffab3..caf30f83f2 100644 --- a/integration/coap/pom.xml +++ b/integration/coap/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/executor/pom.xml b/integration/executor/pom.xml index 2c925ae21e..41a281d9f9 100644 --- a/integration/executor/pom.xml +++ b/integration/executor/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/http/pom.xml b/integration/http/pom.xml index e71c8b9220..1d619ab324 100644 --- a/integration/http/pom.xml +++ b/integration/http/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/kafka/pom.xml b/integration/kafka/pom.xml index 7625ac1da6..28e498fa45 100644 --- a/integration/kafka/pom.xml +++ b/integration/kafka/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/mqtt/pom.xml b/integration/mqtt/pom.xml index 8d75054d4a..2bc8af134e 100644 --- a/integration/mqtt/pom.xml +++ b/integration/mqtt/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/opc-ua/pom.xml b/integration/opc-ua/pom.xml index 5f1feee9a0..e1ae8ffc85 100644 --- a/integration/opc-ua/pom.xml +++ b/integration/opc-ua/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/pom.xml b/integration/pom.xml index 10e14d5cdf..2f3ec66166 100644 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard integration diff --git a/integration/pubsub/pom.xml b/integration/pubsub/pom.xml index 4ebf2c9004..286d29f1bc 100644 --- a/integration/pubsub/pom.xml +++ b/integration/pubsub/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/rabbitmq/pom.xml b/integration/rabbitmq/pom.xml index 0fd0baa9f6..081147ad5a 100644 --- a/integration/rabbitmq/pom.xml +++ b/integration/rabbitmq/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/tcp-udp/pom.xml b/integration/tcp-udp/pom.xml index f8978a6476..1ae99f25ef 100644 --- a/integration/tcp-udp/pom.xml +++ b/integration/tcp-udp/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/integration/tuya/pom.xml b/integration/tuya/pom.xml index d1d35600fe..1d84b18221 100644 --- a/integration/tuya/pom.xml +++ b/integration/tuya/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration org.thingsboard.integration diff --git a/migrator/pom.xml b/migrator/pom.xml index dc214af268..7de06d3f90 100644 --- a/migrator/pom.xml +++ b/migrator/pom.xml @@ -12,7 +12,7 @@ thingsboard org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT migrator diff --git a/monitoring/pom.xml b/monitoring/pom.xml index 2da4f1df9d..c1a4fad26e 100644 --- a/monitoring/pom.xml +++ b/monitoring/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard diff --git a/msa/black-box-tests/pom.xml b/msa/black-box-tests/pom.xml index a400f2509f..9cbbacbb5f 100644 --- a/msa/black-box-tests/pom.xml +++ b/msa/black-box-tests/pom.xml @@ -11,7 +11,7 @@ org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/edqs/pom.xml b/msa/edqs/pom.xml index fe10886ab0..19129f8365 100644 --- a/msa/edqs/pom.xml +++ b/msa/edqs/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/integration/apache-pulsar/pom.xml b/msa/integration/apache-pulsar/pom.xml index a500bf1dee..be95124a98 100644 --- a/msa/integration/apache-pulsar/pom.xml +++ b/msa/integration/apache-pulsar/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/aws/pom.xml b/msa/integration/aws/pom.xml index 88aac0688f..42c4cc38fa 100644 --- a/msa/integration/aws/pom.xml +++ b/msa/integration/aws/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/azure/pom.xml b/msa/integration/azure/pom.xml index f3da36fa70..da528c71ec 100644 --- a/msa/integration/azure/pom.xml +++ b/msa/integration/azure/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/coap/pom.xml b/msa/integration/coap/pom.xml index a0a4599231..06059a5e01 100644 --- a/msa/integration/coap/pom.xml +++ b/msa/integration/coap/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/executor/pom.xml b/msa/integration/executor/pom.xml index 03b691a486..24946b9f3e 100644 --- a/msa/integration/executor/pom.xml +++ b/msa/integration/executor/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/http/pom.xml b/msa/integration/http/pom.xml index 79afb60403..7041c2c4fd 100644 --- a/msa/integration/http/pom.xml +++ b/msa/integration/http/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/kafka/pom.xml b/msa/integration/kafka/pom.xml index 8aacaee624..9d90ca755d 100644 --- a/msa/integration/kafka/pom.xml +++ b/msa/integration/kafka/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/mqtt/pom.xml b/msa/integration/mqtt/pom.xml index 31dc11484c..5095573d29 100644 --- a/msa/integration/mqtt/pom.xml +++ b/msa/integration/mqtt/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/opc-ua/pom.xml b/msa/integration/opc-ua/pom.xml index 41beaf8378..d6eb1e39b3 100644 --- a/msa/integration/opc-ua/pom.xml +++ b/msa/integration/opc-ua/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/pom.xml b/msa/integration/pom.xml index 163e458073..c7debdd00a 100644 --- a/msa/integration/pom.xml +++ b/msa/integration/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa diff --git a/msa/integration/pubsub/pom.xml b/msa/integration/pubsub/pom.xml index c3a9cd9f10..f1dd1b878e 100644 --- a/msa/integration/pubsub/pom.xml +++ b/msa/integration/pubsub/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/rabbitmq/pom.xml b/msa/integration/rabbitmq/pom.xml index bcbd8f24a0..a79d9bfd2a 100644 --- a/msa/integration/rabbitmq/pom.xml +++ b/msa/integration/rabbitmq/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/tcp-udp/pom.xml b/msa/integration/tcp-udp/pom.xml index 0641df3861..ca9e7cf50d 100644 --- a/msa/integration/tcp-udp/pom.xml +++ b/msa/integration/tcp-udp/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/integration/tuya/pom.xml b/msa/integration/tuya/pom.xml index cb7cbad262..434db9bbe6 100644 --- a/msa/integration/tuya/pom.xml +++ b/msa/integration/tuya/pom.xml @@ -10,7 +10,7 @@ org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT integration diff --git a/msa/js-executor/package.json b/msa/js-executor/package.json index c1195784d4..f534a6d07b 100644 --- a/msa/js-executor/package.json +++ b/msa/js-executor/package.json @@ -1,7 +1,7 @@ { "name": "thingsboard-js-executor", "private": true, - "version": "4.4.0", + "version": "4.4.0.1", "description": "ThingsBoard JavaScript Executor Microservice", "main": "server.ts", "bin": "server.js", diff --git a/msa/js-executor/pom.xml b/msa/js-executor/pom.xml index c41b4727c1..f5b5baf0c9 100644 --- a/msa/js-executor/pom.xml +++ b/msa/js-executor/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/migrator/pom.xml b/msa/migrator/pom.xml index b5858de7d1..a6d7ae86a8 100644 --- a/msa/migrator/pom.xml +++ b/msa/migrator/pom.xml @@ -11,7 +11,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa diff --git a/msa/monitoring/pom.xml b/msa/monitoring/pom.xml index 09d8a26aca..0bd2786a49 100644 --- a/msa/monitoring/pom.xml +++ b/msa/monitoring/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa diff --git a/msa/pom.xml b/msa/pom.xml index 648a45c884..bfb8655728 100644 --- a/msa/pom.xml +++ b/msa/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard msa diff --git a/msa/report/pom.xml b/msa/report/pom.xml index 1f2e13ace4..8a3361d2c3 100644 --- a/msa/report/pom.xml +++ b/msa/report/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/tb-node/pom.xml b/msa/tb-node/pom.xml index 0371448f18..8227d7bcb0 100644 --- a/msa/tb-node/pom.xml +++ b/msa/tb-node/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/transport/coap/pom.xml b/msa/transport/coap/pom.xml index 30745968fb..1354f57dab 100644 --- a/msa/transport/coap/pom.xml +++ b/msa/transport/coap/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.msa.transport diff --git a/msa/transport/http/pom.xml b/msa/transport/http/pom.xml index 9c0dfb115d..10d593c1ea 100644 --- a/msa/transport/http/pom.xml +++ b/msa/transport/http/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.msa.transport diff --git a/msa/transport/lwm2m/pom.xml b/msa/transport/lwm2m/pom.xml index d40ef6eaa8..23fcf1aa52 100644 --- a/msa/transport/lwm2m/pom.xml +++ b/msa/transport/lwm2m/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.msa.transport diff --git a/msa/transport/mqtt/pom.xml b/msa/transport/mqtt/pom.xml index 3c2fd5027c..682986ec8b 100644 --- a/msa/transport/mqtt/pom.xml +++ b/msa/transport/mqtt/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard.msa - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.msa.transport diff --git a/msa/transport/pom.xml b/msa/transport/pom.xml index 0b5440d192..bebd87ebab 100644 --- a/msa/transport/pom.xml +++ b/msa/transport/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/transport/snmp/pom.xml b/msa/transport/snmp/pom.xml index 6c2c71d541..c96784b765 100644 --- a/msa/transport/snmp/pom.xml +++ b/msa/transport/snmp/pom.xml @@ -11,7 +11,7 @@ org.thingsboard.msa transport - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT org.thingsboard.msa.transport diff --git a/msa/vc-executor-docker/pom.xml b/msa/vc-executor-docker/pom.xml index fc1d839e67..db28206847 100644 --- a/msa/vc-executor-docker/pom.xml +++ b/msa/vc-executor-docker/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/vc-executor/pom.xml b/msa/vc-executor/pom.xml index 8f44e65f8d..b9e08b9667 100644 --- a/msa/vc-executor/pom.xml +++ b/msa/vc-executor/pom.xml @@ -10,7 +10,7 @@ org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/web-report/package.json b/msa/web-report/package.json index 1f89c501f1..e2d7038c86 100644 --- a/msa/web-report/package.json +++ b/msa/web-report/package.json @@ -1,7 +1,7 @@ { "name": "thingsboard-web-report", "private": true, - "version": "4.4.0", + "version": "4.4.0.1", "description": "ThingsBoard Web Reporting Microservice", "main": "server.ts", "bin": "server.js", diff --git a/msa/web-report/pom.xml b/msa/web-report/pom.xml index b9006e548e..e3d9832b79 100644 --- a/msa/web-report/pom.xml +++ b/msa/web-report/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/msa/web-ui/package.json b/msa/web-ui/package.json index 0f0c3cdcad..1aed9569a1 100644 --- a/msa/web-ui/package.json +++ b/msa/web-ui/package.json @@ -1,7 +1,7 @@ { "name": "thingsboard-web-ui", "private": true, - "version": "4.4.0", + "version": "4.4.0.1", "description": "ThingsBoard Web UI Microservice", "main": "server.ts", "bin": "server.js", diff --git a/msa/web-ui/pom.xml b/msa/web-ui/pom.xml index 6e6c24ab0f..652bb2dc5c 100644 --- a/msa/web-ui/pom.xml +++ b/msa/web-ui/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT msa org.thingsboard.msa diff --git a/netty-mqtt/pom.xml b/netty-mqtt/pom.xml index 22277fa836..6733a24fb2 100644 --- a/netty-mqtt/pom.xml +++ b/netty-mqtt/pom.xml @@ -9,11 +9,11 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard netty-mqtt - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT jar Netty MQTT Client diff --git a/packaging/pom.xml b/packaging/pom.xml index 1f842ae087..9641069c81 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard packaging diff --git a/pom.xml b/pom.xml index 063be9b852..bedef8a3ae 100755 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT pom ThingsBoard diff --git a/report/pom.xml b/report/pom.xml index 191edabe0e..f428e65d22 100644 --- a/report/pom.xml +++ b/report/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard report diff --git a/rest-client/pom.xml b/rest-client/pom.xml index b44f1a422c..a4b5f055e0 100644 --- a/rest-client/pom.xml +++ b/rest-client/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard rest-client diff --git a/rule-engine/pom.xml b/rule-engine/pom.xml index dddeb7c5b0..59b274c450 100644 --- a/rule-engine/pom.xml +++ b/rule-engine/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard rule-engine diff --git a/rule-engine/rule-engine-api/pom.xml b/rule-engine/rule-engine-api/pom.xml index 232869e651..c0eaa24237 100644 --- a/rule-engine/rule-engine-api/pom.xml +++ b/rule-engine/rule-engine-api/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT rule-engine org.thingsboard.rule-engine diff --git a/rule-engine/rule-engine-components/pom.xml b/rule-engine/rule-engine-components/pom.xml index de56ad349b..312a8396fe 100644 --- a/rule-engine/rule-engine-components/pom.xml +++ b/rule-engine/rule-engine-components/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT rule-engine org.thingsboard.rule-engine diff --git a/tools/pom.xml b/tools/pom.xml index 9aaf06dae9..41d179c115 100644 --- a/tools/pom.xml +++ b/tools/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard tools diff --git a/transport/coap/pom.xml b/transport/coap/pom.xml index 4a0ca5faaa..61002add66 100644 --- a/transport/coap/pom.xml +++ b/transport/coap/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.transport diff --git a/transport/http/pom.xml b/transport/http/pom.xml index c5024508de..744cc2a956 100644 --- a/transport/http/pom.xml +++ b/transport/http/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.transport diff --git a/transport/lwm2m/pom.xml b/transport/lwm2m/pom.xml index 59ab73c973..80e2f64534 100644 --- a/transport/lwm2m/pom.xml +++ b/transport/lwm2m/pom.xml @@ -9,7 +9,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.transport diff --git a/transport/mqtt/pom.xml b/transport/mqtt/pom.xml index ad844ca03c..8654ddf92b 100644 --- a/transport/mqtt/pom.xml +++ b/transport/mqtt/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport org.thingsboard.transport diff --git a/transport/pom.xml b/transport/pom.xml index 1650162ba6..55e9390896 100644 --- a/transport/pom.xml +++ b/transport/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard transport diff --git a/transport/snmp/pom.xml b/transport/snmp/pom.xml index 0ee182c3a2..f82dda5b1c 100644 --- a/transport/snmp/pom.xml +++ b/transport/snmp/pom.xml @@ -10,7 +10,7 @@ org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT transport diff --git a/ui-ngx/package.json b/ui-ngx/package.json index 29375bfb2b..a11a1c4221 100644 --- a/ui-ngx/package.json +++ b/ui-ngx/package.json @@ -1,6 +1,6 @@ { "name": "thingsboard", - "version": "4.4.0", + "version": "4.4.0.1", "scripts": { "ng": "ng", "start": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng serve --configuration development --host 0.0.0.0 --open", diff --git a/ui-ngx/pom.xml b/ui-ngx/pom.xml index 735ef11ee4..a83bbd7864 100644 --- a/ui-ngx/pom.xml +++ b/ui-ngx/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.thingsboard - 4.4.0-SNAPSHOT + 4.4.0.1-SNAPSHOT thingsboard ui-ngx From d5491344263247f728a5decd22aebb7ff42efa38 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 8 Oct 2026 13:13:40 +0300 Subject: [PATCH 10/20] build: package the Java services with the Nebula ospackage plugin The Java packaging used a custom thingsboard.package Gradle plugin, built by the packaging Maven module, for its deb packages. It now applies the public com.netflix.nebula.ospackage plugin 12.1.1, as the JS packaging already does, so the packaging module and its Groovy plugin sources are removed. --- packaging/build.gradle | 26 -- packaging/java/build.gradle | 12 +- packaging/pom.xml | 84 ---- .../DebMaintainerScriptsGenerator.groovy | 101 ----- .../thingsboard/packaging/DebPackaging.groovy | 35 -- .../packaging/DebPackagingCopyAction.groovy | 368 ------------------ .../packaging/PackagingPlugin.groovy | 31 -- .../thingsboard.package.properties | 1 - pom.xml | 1 - 9 files changed, 2 insertions(+), 657 deletions(-) delete mode 100644 packaging/build.gradle delete mode 100644 packaging/pom.xml delete mode 100644 packaging/src/main/groovy/org/thingsboard/packaging/DebMaintainerScriptsGenerator.groovy delete mode 100644 packaging/src/main/groovy/org/thingsboard/packaging/DebPackaging.groovy delete mode 100644 packaging/src/main/groovy/org/thingsboard/packaging/DebPackagingCopyAction.groovy delete mode 100644 packaging/src/main/groovy/org/thingsboard/packaging/PackagingPlugin.groovy delete mode 100644 packaging/src/main/resources/META-INF/gradle-plugins/thingsboard.package.properties diff --git a/packaging/build.gradle b/packaging/build.gradle deleted file mode 100644 index 5b1ae8fef0..0000000000 --- a/packaging/build.gradle +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. -// SPDX-License-Identifier: BUSL-1.1 -plugins { - id 'groovy' - id 'java-library' -} - -repositories { - mavenCentral() -} - -dependencies { - implementation localGroovy() - implementation gradleApi() - implementation 'com.netflix.nebula:gradle-ospackage-plugin:12.1.1' - implementation 'org.apache.commons:commons-lang3:3.9' -} - -buildDir = projectBuildDir -version = projectVersion - -compileGroovy { - destinationDirectory = file("${buildDir}/classes") -} - -description 'ThingsBoard packaging plugin for constructing RPM and DEB package files.' diff --git a/packaging/java/build.gradle b/packaging/java/build.gradle index 089b9ae550..c41d86d69e 100644 --- a/packaging/java/build.gradle +++ b/packaging/java/build.gradle @@ -3,18 +3,10 @@ // SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 import org.apache.tools.ant.filters.ReplaceTokens -buildscript { - repositories { - mavenLocal() - mavenCentral() - } - dependencies { - classpath("org.thingsboard:packaging:${projectVersion}") - } +plugins { + id "com.netflix.nebula.ospackage" version "12.1.1" } -apply plugin: "thingsboard.package" - buildDir = projectBuildDir version = projectVersion base { diff --git a/packaging/pom.xml b/packaging/pom.xml deleted file mode 100644 index 9641069c81..0000000000 --- a/packaging/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - - org.thingsboard - 4.4.0.1-SNAPSHOT - thingsboard - - packaging - jar - - ThingsBoard Packaging Plugin - https://thingsboard.io - - - UTF-8 - ${basedir}/.. - - - - - com.netflix.nebula - gradle-ospackage-plugin - 12.1.1 - - - org.codehaus.groovy - groovy-all - 3.0.9 - pom - provided - - - org.gradle - gradle-tooling-api - 7.1.1 - provided - - - org.gradle - gradle-core - 6.1.1 - provided - - - - - - org.thingsboard - gradle-maven-plugin - - ${main.dir}/packaging - - build - - - -PprojectBuildDir=${project.build.directory} - -PprojectVersion=${project.version} - - - - - compile - - invoke - - - - - - - - - repo.gradle.org - https://repo.gradle.org/gradle/libs-releases-local - - - diff --git a/packaging/src/main/groovy/org/thingsboard/packaging/DebMaintainerScriptsGenerator.groovy b/packaging/src/main/groovy/org/thingsboard/packaging/DebMaintainerScriptsGenerator.groovy deleted file mode 100644 index 8111d50c10..0000000000 --- a/packaging/src/main/groovy/org/thingsboard/packaging/DebMaintainerScriptsGenerator.groovy +++ /dev/null @@ -1,101 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -package org.thingsboard.packaging - -import com.netflix.gradle.plugins.deb.Deb -import com.netflix.gradle.plugins.deb.TemplateHelper -import com.netflix.gradle.plugins.utils.FileSystemActions -import groovy.transform.Canonical -import groovy.transform.CompileDynamic - -class DebMaintainerScriptsGenerator { - private final Deb task - private final TemplateHelper templateHelper - private final File destination - private final FileSystemActions fileSystem - - DebMaintainerScriptsGenerator(Deb task, TemplateHelper templateHelper, File destination, FileSystemActions fileSystem) { - this.destination = destination - this.task = task - this.templateHelper = templateHelper - this.fileSystem = fileSystem - } - - void generate(Map context) { - templateHelper.generateFile("control", context) - - def configurationFiles = task.allConfigurationFiles - if (configurationFiles.any()) { - templateHelper.generateFile("conffiles", [files: configurationFiles] ) - } - - List scripts = [ - new MaintainerScript("preinst", task.preInstallFile, task.allPreInstallCommands), - new PostInstScript(task.postInstallFile, task.allPostInstallCommands, context), - new MaintainerScript("prerm", task.preUninstallFile, task.allPreUninstallCommands), - new MaintainerScript("postrm", task.postUninstallFile, task.allPostUninstallCommands) - ] - if (task.configFile) { - scripts << new MaintainerScript("config", task.configFile, []) - } - if (task.templatesFile) { - scripts << new MaintainerScript("templates", task.templatesFile, []) - } - - def installUtils = task.allCommonCommands.collect { stripShebang(it) } - for (script in scripts) { - if(script.file) { - fileSystem.copy(script.file, new File(destination, script.name)) - } else if (script.needsTemplateGeneration()) { - Map commands = [commands: installUtils + script.commands.collect { stripShebang(it) }] as Map - templateHelper.generateFile(script.name, context + commands) - } - } - } - - /** - * Works with nulls, Strings and Files. - * - * @param script - * @return - */ - @CompileDynamic - private static String stripShebang(Object script) { - StringBuilder result = new StringBuilder() - script?.eachLine { line -> - if (!line.matches('^#!.*$')) { - result.append line - result.append "\n" - } - } - result.toString() - } - - @Canonical - private static class MaintainerScript { - String name - File file - List commands - - boolean needsTemplateGeneration() { - return commands - } - } - - private static class PostInstScript extends MaintainerScript { - Map context - - PostInstScript(File file, List commands, Map context) { - super("postinst", file, commands) - this.context = context - } - - @Override - boolean needsTemplateGeneration() { - return super.needsTemplateGeneration() || context['dirs'] - } - } -} - diff --git a/packaging/src/main/groovy/org/thingsboard/packaging/DebPackaging.groovy b/packaging/src/main/groovy/org/thingsboard/packaging/DebPackaging.groovy deleted file mode 100644 index 407132975c..0000000000 --- a/packaging/src/main/groovy/org/thingsboard/packaging/DebPackaging.groovy +++ /dev/null @@ -1,35 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -package org.thingsboard.packaging - -import com.netflix.gradle.plugins.deb.Deb -import com.netflix.gradle.plugins.packaging.AbstractPackagingCopyAction -import org.gradle.api.file.ProjectLayout -import org.gradle.api.tasks.InputFile -import org.gradle.api.tasks.Optional - -import javax.inject.Inject - -abstract class DebPackaging extends Deb { - - @Inject - DebPackaging(ProjectLayout projectLayout) { - super(projectLayout) - } - - @InputFile - @Optional - File configFile - - @InputFile - @Optional - File templatesFile - - @Override - AbstractPackagingCopyAction createCopyAction() { - return new DebPackagingCopyAction(this, new File(projectLayout.buildDirectory.getAsFile().get(), "debian")) - } - -} diff --git a/packaging/src/main/groovy/org/thingsboard/packaging/DebPackagingCopyAction.groovy b/packaging/src/main/groovy/org/thingsboard/packaging/DebPackagingCopyAction.groovy deleted file mode 100644 index 1812fc759c..0000000000 --- a/packaging/src/main/groovy/org/thingsboard/packaging/DebPackagingCopyAction.groovy +++ /dev/null @@ -1,368 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -package org.thingsboard.packaging - -import com.netflix.gradle.plugins.deb.control.MultiArch -import com.netflix.gradle.plugins.deb.validation.DebTaskPropertiesValidator -import com.netflix.gradle.plugins.packaging.AbstractPackagingCopyAction -import com.netflix.gradle.plugins.packaging.Dependency -import com.netflix.gradle.plugins.packaging.Directory -import com.netflix.gradle.plugins.packaging.Link -import com.netflix.gradle.plugins.utils.ApacheCommonsFileSystemActions -import com.netflix.gradle.plugins.utils.DeprecationLoggerUtils -import com.netflix.gradle.plugins.utils.FilePermissionUtil -import com.netflix.gradle.plugins.deb.InstallLineGenerator -import com.netflix.gradle.plugins.deb.Deb -import com.netflix.gradle.plugins.deb.DebFileVisitorStrategy -import com.netflix.gradle.plugins.deb.TemplateHelper -import groovy.transform.Canonical -import org.apache.commons.lang3.StringUtils -import org.apache.commons.lang3.time.DateFormatUtils -import org.gradle.api.GradleException -import org.gradle.api.internal.file.copy.CopyAction -import org.gradle.api.internal.file.copy.FileCopyDetailsInternal -import org.slf4j.Logger -import org.slf4j.LoggerFactory -import org.vafer.jdeb.Compression -import org.vafer.jdeb.Console -import org.vafer.jdeb.DataProducer -import org.vafer.jdeb.DebMaker -import org.vafer.jdeb.mapping.Mapper -import org.vafer.jdeb.mapping.PermMapper -import org.vafer.jdeb.producers.DataProducerLink -import org.vafer.jdeb.producers.DataProducerPathTemplate -import org.redline_rpm.payload.Directive - -import static com.netflix.gradle.plugins.utils.GradleUtils.lookup -/** - * Forked and modified from org.jamel.pkg4j.gradle.tasks.BuildDebTask - */ -class DebPackagingCopyAction extends AbstractPackagingCopyAction { - static final Logger logger = LoggerFactory.getLogger(DebPackagingCopyAction.class) - - File debianDir - List dependencies - List conflicts - List recommends - List suggests - List enhances - List preDepends - List breaks - List replaces - List provides - List dataProducers - List installDirs - private final DebTaskPropertiesValidator debTaskPropertiesValidator = new DebTaskPropertiesValidator() - private DebFileVisitorStrategy debFileVisitorStrategy - private final DebMaintainerScriptsGenerator maintainerScriptsGenerator - private final InstallLineGenerator installLineGenerator - - DebPackagingCopyAction(Deb debTask, File debianDir) { - super(debTask) - debTaskPropertiesValidator.validate(debTask) - dependencies = [] - conflicts = [] - recommends = [] - suggests = [] - enhances = [] - preDepends = [] - breaks = [] - replaces = [] - dataProducers = [] - installDirs = [] - provides = [] - this.debianDir = debianDir - debFileVisitorStrategy = new DebFileVisitorStrategy(dataProducers, installDirs) - maintainerScriptsGenerator = new DebMaintainerScriptsGenerator(debTask, new TemplateHelper(debianDir, '/deb'), debianDir, new ApacheCommonsFileSystemActions()) - installLineGenerator = new InstallLineGenerator() - } - - @Canonical - static class InstallDir { - String name - String user - String group - } - - @Override - void startVisit(CopyAction action) { - super.startVisit(action) - - debianDir.deleteDir() - debianDir.mkdirs() - - } - - @Override - void visitFile(FileCopyDetailsInternal fileDetails, def specToLookAt) { - logger.debug "adding file {}", fileDetails.relativePath.pathString - - def inputFile = extractFile(fileDetails) - - Directive fileType = lookup(specToLookAt, 'fileType') - if (fileType == 'CONFIG') { - logger.debug "mark {} as configuration file", fileDetails.relativePath.pathString - task.configurationFile(fileDetails.relativePath.pathString) - } - - String user = lookup(specToLookAt, 'user') ?: task.user - Integer uid = (Integer) lookup(specToLookAt, 'uid') ?: task.uid ?: 0 - String group = lookup(specToLookAt, 'permissionGroup') ?: task.permissionGroup - Integer gid = (Integer) lookup(specToLookAt, 'gid') ?: task.gid ?: 0 - - Integer explicitMode = FilePermissionUtil.getFileMode(specToLookAt) - int fileMode = explicitMode != null ? explicitMode : FilePermissionUtil.getUnixPermission(fileDetails) - - debFileVisitorStrategy.addFile(fileDetails, inputFile, user, uid, group, gid, fileMode) - } - - @Override - void visitDir(FileCopyDetailsInternal dirDetails, def specToLookAt) { - def specCreateDirectoryEntry = lookup(specToLookAt, 'createDirectoryEntry') - boolean createDirectoryEntry = specCreateDirectoryEntry!=null ? specCreateDirectoryEntry : task.createDirectoryEntry - if (createDirectoryEntry) { - - logger.debug "adding directory {}", dirDetails.relativePath.pathString - String user = lookup(specToLookAt, 'user') ?: task.user - Integer uid = (Integer) lookup(specToLookAt, 'uid') ?: task.uid ?: 0 - String group = lookup(specToLookAt, 'permissionGroup') ?: task.permissionGroup - Integer gid = (Integer) lookup(specToLookAt, 'gid') ?: task.gid ?: 0 - Boolean setgid = lookup(specToLookAt, 'setgid') - - Integer explicitDirMode = FilePermissionUtil.getDirMode(specToLookAt) - int dirMode = explicitDirMode != null ? explicitDirMode : FilePermissionUtil.getUnixPermission(dirDetails) - if (setgid == null) { - setgid = task.setgid - } - if (setgid) { - dirMode = dirMode | 02000 - } - - debFileVisitorStrategy.addDirectory(dirDetails, user, uid, group, gid, dirMode) - } - } - - @Override - protected void addLink(Link link) { - dataProducers << new DataProducerLink(link.path, link.target, true, null, null, null); - } - - @Override - protected void addDependency(Dependency dep) { - dependencies << dep.toDebString() - } - - @Override - protected void addConflict(Dependency dep) { - conflicts << dep.toDebString() - } - - @Override - protected void addProvides(Dependency dep) { - String providesString = dep.packageName - if (dep.version) { - providesString += " (= ${dep.version})" - } - provides << providesString - } - - @Override - protected void addObsolete(Dependency dep) { - logger.warn "Obsoletes functionality not implemented for deb files" - } - - protected void addRecommends(Dependency dep) { - recommends << dep.toDebString() - } - - protected void addSuggests(Dependency dep) { - suggests << dep.toDebString() - } - - protected void addEnhances(Dependency dep) { - enhances << dep.toDebString() - } - - protected void addPreDepends(Dependency dep) { - preDepends << dep.toDebString() - } - - protected void addBreaks(Dependency dep) { - breaks << dep.toDebString() - } - - protected void addReplaces(Dependency dep) { - replaces << dep.toDebString() - } - - @Override - protected void addDirectory(Directory directory) { - def user = directory.user ? directory.user : task.user - def permissionGroup = directory.permissionGroup ? directory.permissionGroup : task.permissionGroup - dataProducers << new DataProducerPathTemplate( - [directory.path] as String[], null, null, - [ new PermMapper(-1, -1, user, permissionGroup, - directory.permissions, -1, 0, null) ] as Mapper[]) - } - - protected String getMultiArch() { - def archString = task.getArchString() - def multiArch = task.getMultiArch() - if (('all' == archString) && (MultiArch.SAME == multiArch)) { - throw new IllegalArgumentException('Deb packages with Architecture: all cannot declare Multi-Arch: same') - } - def multiArchString = multiArch?.name()?.toLowerCase() ?: '' - return multiArchString - } - - protected Map getCustomFields() { - task.getAllCustomFields().collectEntries { String key, String val -> - // in the deb control file, header XB-Foo becomes Foo in the binary package - ['XB-' + key.capitalize(), val] - } as Map - } - - @Override - protected void end() { - for (Dependency recommends : task.allRecommends) { - logger.debug "adding recommends on {} {}", recommends.packageName, recommends.version - addRecommends(recommends) - } - - for (Dependency suggests : task.allSuggests) { - logger.debug "adding suggests on {} {}", suggests.packageName, suggests.version - addSuggests(suggests) - } - - for (Dependency enhances : task.allEnhances) { - logger.debug "adding enhances on {} {}", enhances.packageName, enhances.version - addEnhances(enhances) - } - - for (Dependency preDepends : task.allPreDepends) { - logger.debug "adding preDepends on {} {}", preDepends.packageName, preDepends.version - addPreDepends(preDepends) - } - - for (Dependency breaks : task.getAllBreaks()) { - logger.debug "adding breaks on {} {}", breaks.packageName, breaks.version - addBreaks(breaks) - } - - for (Dependency replaces : task.allReplaces) { - logger.debug "adding replaces on {} {}", replaces.packageName, replaces.version - addReplaces(replaces) - } - - maintainerScriptsGenerator.generate(toContext()) - - task.allSupplementaryControlFiles.each { supControl -> - File supControlFile = supControl instanceof File ? supControl as File : task.project.file(supControl) - new File(debianDir, supControlFile.name).bytes = supControlFile.bytes - } - - DebMaker maker = new DebMaker(new GradleLoggerConsole(), dataProducers, null) - File debFile = task.getArchiveFile().get().asFile - maker.setControl(debianDir) - maker.setDeb(debFile) - if (StringUtils.isNotBlank(task.getSigningKeyId()) - && StringUtils.isNotBlank(task.getSigningKeyPassphrase()) - && task.getSigningKeyRingFile().exists()) { - maker.setKey(task.getSigningKeyId()) - maker.setPassphrase(task.getSigningKeyPassphrase()) - maker.setKeyring(task.getSigningKeyRingFile()) - maker.setSignPackage(true) - } - - try { - logger.info("Creating debian package: ${debFile}") - maker.setCompression(Compression.GZIP.toString()) - maker.makeDeb() - } catch (Exception e) { - throw new GradleException("Can't build debian package ${debFile}", e) - } - - logger.info 'Created deb {}', debFile - } - - private static class GradleLoggerConsole implements Console { - @Override - void debug(String message) { - logger.debug(message) - } - - @Override - void info(String message) { - logger.info(message) - } - - @Override - void warn(String message) { - logger.warn(message) - } - } - - /** - * Map to be consumed by generateFile when transforming template - */ - def Map toContext() { - Map context = [:] - DeprecationLoggerUtils.whileDisabled { - context = [ - name: task.getPackageName(), - version: task.getVersion(), - release: task.getRelease(), - maintainer: task.getMaintainer(), - uploaders: task.getUploaders(), - priority: task.getPriority(), - epoch: task.getEpoch(), - description: task.getPackageDescription() ?: '', - distribution: task.getDistribution(), - summary: task.getSummary(), - section: task.getPackageGroup(), - time: DateFormatUtils.SMTP_DATETIME_FORMAT.format(new Date()), - provides: StringUtils.join(provides, ", "), - depends: StringUtils.join(dependencies, ", "), - url: task.getUrl(), - arch: task.getArchString(), - multiArch: getMultiArch(), - conflicts: StringUtils.join(conflicts, ", "), - recommends: StringUtils.join(recommends, ", "), - suggests: StringUtils.join(suggests, ", "), - enhances: StringUtils.join(enhances, ", " ), - preDepends: StringUtils.join(preDepends, ", "), - breaks: StringUtils.join(breaks, ", "), - replaces: StringUtils.join(replaces, ", "), - fullVersion: buildFullVersion(), - customFields: getCustomFields(), - - // Uses install command for directory - dirs: installDirs.collect { InstallDir dir -> [install: installLineGenerator.generate(dir)] } - ] - } - return context - } - - private String buildFullVersion() { - StringBuilder fullVersion = new StringBuilder() - - DeprecationLoggerUtils.whileDisabled { - if (task.getEpoch() != 0) { - fullVersion <<= task.getEpoch() - fullVersion <<= ':' - } - - fullVersion <<= task.getVersion() - - if(task.getRelease()) { - fullVersion <<= '-' - fullVersion <<= task.getRelease() - } - - } - - fullVersion.toString() - } -} \ No newline at end of file diff --git a/packaging/src/main/groovy/org/thingsboard/packaging/PackagingPlugin.groovy b/packaging/src/main/groovy/org/thingsboard/packaging/PackagingPlugin.groovy deleted file mode 100644 index 4bd1b6b137..0000000000 --- a/packaging/src/main/groovy/org/thingsboard/packaging/PackagingPlugin.groovy +++ /dev/null @@ -1,31 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ -package org.thingsboard.packaging - -import com.netflix.gradle.plugins.packaging.SystemPackagingBasePlugin -import com.netflix.gradle.plugins.packaging.SystemPackagingPlugin -import com.netflix.gradle.plugins.rpm.Rpm -import org.gradle.api.Plugin -import org.gradle.api.Project -import org.gradle.api.logging.Logger -import org.gradle.api.logging.Logging - -public class PackagingPlugin implements Plugin { - private static Logger logger = Logging.getLogger(SystemPackagingPlugin); - - Project project - DebPackaging debTask - Rpm rpmTask - - void apply(Project project) { - - this.project = project - - project.plugins.apply(SystemPackagingBasePlugin.class) - debTask = project.tasks.create('buildDeb', DebPackaging) - rpmTask = project.tasks.create('buildRpm', Rpm) - } - -} diff --git a/packaging/src/main/resources/META-INF/gradle-plugins/thingsboard.package.properties b/packaging/src/main/resources/META-INF/gradle-plugins/thingsboard.package.properties deleted file mode 100644 index 62c700534c..0000000000 --- a/packaging/src/main/resources/META-INF/gradle-plugins/thingsboard.package.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=org.thingsboard.packaging.PackagingPlugin diff --git a/pom.xml b/pom.xml index bedef8a3ae..859cfe2cc5 100755 --- a/pom.xml +++ b/pom.xml @@ -219,7 +219,6 @@ common rule-engine dao - packaging edqs transport integration From 5673c10ea2e0f0ee86c94a25dd2efb2317d3b49b Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 8 Oct 2026 15:52:16 +0300 Subject: [PATCH 11/20] build: upgrade web-report to Playwright 1.64 Playwright 1.54 has no Chromium build for Ubuntu 26.04, so the web-report build failed there. 1.64 supports it, but bundles its internals behind an exports map, which needed these changes: - install.js downloads the packaged Linux and Windows Chromium builds with the public Playwright CLI instead of the internal registry, so the patch-package patch and the patch-package dependency are removed. - The Docker start script resolves Chromium via the public API. - The pkg binaries bundle browsers.json and webp_codec.wasm, which Playwright now loads by computed path. - inspectorShim stubs the 'inspector' module, which Playwright now loads at startup but the Node.js runtime embedded by pkg is built without. --- msa/web-report/docker/Dockerfile | 2 +- msa/web-report/docker/start-web-report.sh | 2 +- msa/web-report/inspectorShim.ts | 21 ++ msa/web-report/install.js | 113 +++----- msa/web-report/package.json | 12 +- .../patches/playwright-core+1.54.2.patch | 13 - msa/web-report/server.ts | 1 + msa/web-report/yarn.lock | 254 ++---------------- 8 files changed, 84 insertions(+), 334 deletions(-) create mode 100644 msa/web-report/inspectorShim.ts delete mode 100644 msa/web-report/patches/playwright-core+1.54.2.patch diff --git a/msa/web-report/docker/Dockerfile b/msa/web-report/docker/Dockerfile index 5eb0e50e8b..69e3c12a56 100644 --- a/msa/web-report/docker/Dockerfile +++ b/msa/web-report/docker/Dockerfile @@ -23,7 +23,7 @@ COPY package/linux/conf ./config COPY ${pkg.name}.conf ./conf COPY src/api ./api COPY src/config ./config -COPY src/server.js ./ +COPY src/inspectorShim.js src/server.js ./ RUN apt-get update \ && apt-get install -yq --no-install-recommends fonts-noto-cjk-extra fonts-roboto fonts-noto-color-emoji fonts-unifont libfreetype6 xfonts-scalable fonts-liberation \ diff --git a/msa/web-report/docker/start-web-report.sh b/msa/web-report/docker/start-web-report.sh index d206f54a02..390c77e2d7 100755 --- a/msa/web-report/docker/start-web-report.sh +++ b/msa/web-report/docker/start-web-report.sh @@ -14,7 +14,7 @@ source "${CONF_FOLDER}/${configfile}" cd ${pkg.installFolder} -export CHROME_EXECUTABLE=$(node -e "console.log(require('playwright-core/lib/server').registry.findExecutable('chromium').executablePath());") +export CHROME_EXECUTABLE=$(node -e "console.log(require('playwright-chromium').chromium.executablePath());") # This will forward this PID 1 to the node.js and forward SIGTERM for graceful shutdown as well exec node server.js diff --git a/msa/web-report/inspectorShim.ts b/msa/web-report/inspectorShim.ts new file mode 100644 index 0000000000..a9e7f5946b --- /dev/null +++ b/msa/web-report/inspectorShim.ts @@ -0,0 +1,21 @@ +// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: BUSL-1.1 +import Module from 'module'; + +// The Node.js runtime embedded by pkg is built without the inspector, but Playwright loads the 'inspector' module +// at startup and only uses it in page.pause() to check whether a debugger is attached. Must be imported before Playwright. +const moduleLoader = Module as unknown as { _load: (request: string, ...args: unknown[]) => unknown }; +const load = moduleLoader._load; +moduleLoader._load = function(request: string, ...args: unknown[]) { + if (request === 'inspector' || request === 'node:inspector') { + try { + return load.call(this, request, ...args); + } catch (e: any) { + if (e?.code === 'ERR_INSPECTOR_NOT_AVAILABLE') { + return { url: () => undefined }; + } + throw e; + } + } + return load.call(this, request, ...args); +}; diff --git a/msa/web-report/install.js b/msa/web-report/install.js index 694766c315..842978aaec 100644 --- a/msa/web-report/install.js +++ b/msa/web-report/install.js @@ -2,92 +2,51 @@ // SPDX-License-Identifier: BUSL-1.1 const fse = require('fs-extra'); const path = require('path'); -const server = require('playwright-core/lib/server'); +const { execFileSync } = require('child_process'); -const EXECUTABLE_PATHS = { - 'ubuntu22.04-x64': ['chrome-linux', 'chrome'], - 'win64': ['chrome-win', 'chrome.exe'] +// Chromium builds packaged with the service, downloaded by the Playwright CLI as if it ran on the target platform. +const PLATFORMS = { + linux: { hostPlatform: 'ubuntu24.04-x64', downloadDir: 'chromiumLinux', chromeDir: 'chrome-linux64', binary: 'tb-web-report', pkgOutput: 'thingsboard-web-report-linux' }, + windows: { hostPlatform: 'win64', downloadDir: 'chromiumWin', chromeDir: 'chrome-win64', binary: 'tb-web-report.exe', pkgOutput: 'thingsboard-web-report-win.exe' } }; -let _projectRoot = null; -let browsersJSON = null; -let chromium = null; - (async() => { - browsersJSON = fse.readJsonSync(path.join(projectRoot(), 'node_modules', 'playwright-core', 'browsers.json')).browsers; - chromium = browsersJSON.find(d => d.name === 'chromium'); - await server.registry.install([createdExecutables('ubuntu22.04-x64'), createdExecutables('win64')], true); - await copyChromeFromPkg('ubuntu22.04-x64'); - await copyChromeFromPkg('win64'); - await fse.move(path.join(projectRoot(), 'target', 'thingsboard-web-report-linux'), - path.join(targetPackageDir('ubuntu22.04-x64'), 'bin', 'tb-web-report'), - {overwrite: true}); - await fse.move(path.join(projectRoot(), 'target', 'thingsboard-web-report-win.exe'), - path.join(targetPackageDir('win64'), 'bin', 'tb-web-report.exe'), - {overwrite: true}); -})(); - - -function projectRoot() { - if (!_projectRoot) { - _projectRoot = __dirname; + for (const [targetDir, platform] of Object.entries(PLATFORMS)) { + const downloadDir = path.join(projectRoot(), 'target', platform.downloadDir); + installChromium(platform.hostPlatform, downloadDir); + const chromiumDir = path.join(targetPackageDir(targetDir), 'chromium'); + await fse.emptyDir(chromiumDir); + await fse.copy(path.join(downloadDir, chromiumRevisionDir(), platform.chromeDir), chromiumDir); + await fse.move(path.join(projectRoot(), 'target', platform.pkgOutput), + path.join(targetPackageDir(targetDir), 'bin', platform.binary), + {overwrite: true}); } - return _projectRoot; +})().catch(e => { + console.error(e); + process.exit(1); +}); + +function installChromium(hostPlatform, downloadDir) { + execFileSync(process.execPath, [path.join(path.dirname(require.resolve('playwright-core/package.json')), 'cli.js'), 'install', '--no-shell', 'chromium'], { + stdio: 'inherit', + env: { + ...process.env, + PLAYWRIGHT_HOST_PLATFORM_OVERRIDE: hostPlatform, + PLAYWRIGHT_BROWSERS_PATH: downloadDir, + PLAYWRIGHT_SKIP_BROWSER_GC: '1' + } + }); } -function targetPackageDir(platform) { - return path.join(projectRoot(), 'target', 'package', platformTargetDir(platform)); +function chromiumRevisionDir() { + const browsers = fse.readJsonSync(path.join(projectRoot(), 'node_modules', 'playwright-core', 'browsers.json')).browsers; + return 'chromium-' + browsers.find(b => b.name === 'chromium').revision; } -function targetChromiumDir(platform) { - return path.join(targetPackageDir(platform), 'chromium'); -} - -function downloadChromiumDir(platform) { - let platformDir; - if (platform === 'ubuntu22.04-x64') { - platformDir = 'chromiumLinux'; - } else if (platform === 'win64') { - platformDir = 'chromiumWin'; - } - return path.join(projectRoot(), 'target', platformDir); -} - -function platformTargetDir(platform) { - if (platform === 'ubuntu22.04-x64') { - return 'linux'; - } else if (platform === 'win64') { - return 'windows'; - } - return ''; -} - -async function copyChromeFromPkg(platform) { - const chromiumDir = targetChromiumDir(platform); - await fse.emptyDir(chromiumDir); - let fromDir = path.join(downloadChromiumDir(platform), EXECUTABLE_PATHS[platform][0]) - await fse.copy(fromDir, chromiumDir); +function projectRoot() { + return __dirname; } -function createdExecutables(platform) { - const chromiumData = JSON.parse(JSON.stringify(chromium)); - chromiumData.dir = downloadChromiumDir(platform); - chromiumData.platform = platform; - const executablePath = path.join(chromiumData.dir, ...EXECUTABLE_PATHS[platform]); - return { - type: 'browser', - name: 'chromium', - browserName: 'chromium', - directory: chromium.dir, - platform: platform, - executablePath: () => executablePath, - executablePathOrDie: sdkLanguage => server.registry.executablePathOrDie('chromium', executablePath, true, sdkLanguage), - installType: 'download-by-default', - _validateHostRequirements: (sdkLanguage) => server.registry._validateHostRequirements(sdkLanguage, 'chromium', chromium.dir, ['chrome-linux'], [], ['chrome-win']), - downloadURLs: server.registry._downloadURLs(chromiumData), - browserVersion: chromiumData.browserVersion, - _install: () => server.registry._downloadExecutable(chromiumData, executablePath), - _dependencyGroup: 'chromium', - _isHermeticInstallation: true, - }; +function targetPackageDir(targetDir) { + return path.join(projectRoot(), 'target', 'package', targetDir); } diff --git a/msa/web-report/package.json b/msa/web-report/package.json index e2d7038c86..a4a5433e9e 100644 --- a/msa/web-report/package.json +++ b/msa/web-report/package.json @@ -10,15 +10,14 @@ "test": "echo \"Error: no test specified\" && exit 1", "start": "nodemon --watch '.' --ext 'ts' --exec 'ts-node server.ts'", "start-prod": "nodemon --watch '.' --ext 'ts' --exec 'NODE_ENV=production ts-node server.ts'", - "build": "tsc", - "postinstall": "node -e \"if (process.env.NODE_ENV !== 'production') { try { const stdout = require('child_process').execSync('patch-package').toString(); console.log(stdout); } catch (error) { console.log(error.message); if (error.stderr) { console.error(error.stderr.toString()); } process.exit(-1); } }\"" + "build": "tsc" }, "dependencies": { "config": "~4.1.1", "express": "~5.1.0", "js-yaml": "^4.1.1", - "playwright-chromium": "~1.54.2", - "playwright-core": "~1.54.2", + "playwright-chromium": "~1.64.0", + "playwright-core": "~1.64.0", "winston": "~3.17.0", "winston-daily-rotate-file": "~5.0.0" }, @@ -37,7 +36,6 @@ "@yao-pkg/pkg": "^6.6.0", "fs-extra": "~11.3.1", "nodemon": "~3.1.10", - "patch-package": "^8.0.1", "postinstall-postinstall": "^2.1.0", "ts-node": "~10.9.2", "typescript": "~5.9.3" @@ -46,7 +44,9 @@ "assets": [ "node_modules/config/**/*.*", "node_modules/open/xdg-open", - "node_modules/playwright-core/lib/server/chromium/appIcon.png" + "../../node_modules/playwright-core/browsers.json", + "node_modules/playwright-core/lib/server/chromium/appIcon.png", + "../../node_modules/playwright-core/lib/webp_codec.wasm" ] } } diff --git a/msa/web-report/patches/playwright-core+1.54.2.patch b/msa/web-report/patches/playwright-core+1.54.2.patch deleted file mode 100644 index dfdcfa8409..0000000000 --- a/msa/web-report/patches/playwright-core+1.54.2.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/node_modules/playwright-core/lib/server/registry/index.js b/node_modules/playwright-core/lib/server/registry/index.js -index 4525491..16abf8c 100644 ---- a/node_modules/playwright-core/lib/server/registry/index.js -+++ b/node_modules/playwright-core/lib/server/registry/index.js -@@ -1044,7 +1044,7 @@ Run "${buildPlaywrightCLICommand(sdkLanguage, "install " + name)}"` : ""; - } - _downloadURLs(descriptor) { - const paths = DOWNLOAD_PATHS[descriptor.name]; -- const downloadPathTemplate = paths[import_hostPlatform.hostPlatform] || paths[""]; -+ const downloadPathTemplate = paths[descriptor.platform] || paths[import_hostPlatform.hostPlatform] || paths['']; - if (!downloadPathTemplate) - return []; - const downloadPath = util.format(downloadPathTemplate, descriptor.revision); diff --git a/msa/web-report/server.ts b/msa/web-report/server.ts index 68da46297c..e000c860c4 100644 --- a/msa/web-report/server.ts +++ b/msa/web-report/server.ts @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: Copyright ThingsBoard, Inc. // SPDX-License-Identifier: BUSL-1.1 +import './inspectorShim'; import express from 'express'; import bodyParser from 'body-parser'; import config from 'config'; diff --git a/msa/web-report/yarn.lock b/msa/web-report/yarn.lock index 073cb11bed..d2ee63937d 100644 --- a/msa/web-report/yarn.lock +++ b/msa/web-report/yarn.lock @@ -249,11 +249,6 @@ tinyglobby "^0.2.11" unzipper "^0.12.3" -"@yarnpkg/lockfile@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" - integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== - accepts@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/accepts/-/accepts-2.0.0.tgz#bbcf4ba5075467f3f2131eab3cffc73c2f5d7895" @@ -286,7 +281,7 @@ ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== -ansi-styles@^4.0.0, ansi-styles@^4.1.0: +ansi-styles@^4.0.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -368,7 +363,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^3.0.3, braces@~3.0.2: +braces@~3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== @@ -388,7 +383,7 @@ bytes@3.1.2, bytes@^3.1.2: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== @@ -396,17 +391,7 @@ call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply- es-errors "^1.3.0" function-bind "^1.1.2" -call-bind@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c" - integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww== - dependencies: - call-bind-apply-helpers "^1.0.0" - es-define-property "^1.0.0" - get-intrinsic "^1.2.4" - set-function-length "^1.2.2" - -call-bound@^1.0.2, call-bound@^1.0.4: +call-bound@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== @@ -414,14 +399,6 @@ call-bound@^1.0.2, call-bound@^1.0.4: call-bind-apply-helpers "^1.0.2" get-intrinsic "^1.3.0" -chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chokidar@^3.5.2: version "3.6.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" @@ -447,11 +424,6 @@ chownr@^3.0.0: resolved "https://registry.yarnpkg.com/chownr/-/chownr-3.0.0.tgz#9855e64ecd240a9cc4267ce8a4aa5d24a1da15e4" integrity sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g== -ci-info@^3.7.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" - integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== - cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" @@ -553,15 +525,6 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@^7.0.3: - version "7.0.6" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" - integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - debug@4, debug@^4, debug@^4.3.5, debug@^4.4.0: version "4.4.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" @@ -581,15 +544,6 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - depd@2.0.0, depd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" @@ -648,7 +602,7 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: dependencies: once "^1.4.0" -es-define-property@^1.0.0, es-define-property@^1.0.1: +es-define-property@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== @@ -754,13 +708,6 @@ finalhandler@^2.1.0: parseurl "^1.3.3" statuses "^2.0.1" -find-yarn-workspace-root@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz#f47fb8d239c900eb78179aa81b66673eac88f7bd" - integrity sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ== - dependencies: - micromatch "^4.0.2" - fn.name@1.x.x: version "1.1.0" resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" @@ -789,15 +736,6 @@ fs-constants@^1.0.0: resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== -fs-extra@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - fs-extra@^11.2.0, fs-extra@~11.3.1: version "11.3.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.3.1.tgz#ba7a1f97a85f94c6db2e52ff69570db3671d5a74" @@ -822,7 +760,7 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.2.4, get-intrinsic@^1.2.5, get-intrinsic@^1.3.0: +get-intrinsic@^1.2.5, get-intrinsic@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== @@ -858,12 +796,12 @@ glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" -gopd@^1.0.1, gopd@^1.2.0: +gopd@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== -graceful-fs@^4.1.11, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2: +graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -873,18 +811,6 @@ has-flag@^3.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - has-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" @@ -975,11 +901,6 @@ is-core-module@^2.16.0: dependencies: hasown "^2.0.2" -is-docker@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -1012,28 +933,11 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-wsl@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - js-yaml@^4.1.1: version "4.3.2" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.2.tgz#8e44fb14a2643c59726bb15787b5f1512cb3d3fb" @@ -1046,17 +950,6 @@ jsesc@^3.0.2: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== -json-stable-stringify@^1.0.2: - version "1.3.0" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz#8903cfac42ea1a0f97f35d63a4ce0518f0cc6a70" - integrity sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg== - dependencies: - call-bind "^1.0.8" - call-bound "^1.0.4" - isarray "^2.0.5" - jsonify "^0.0.1" - object-keys "^1.1.1" - json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" @@ -1071,18 +964,6 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsonify@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" - integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== - -klaw-sync@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c" - integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ== - dependencies: - graceful-fs "^4.1.11" - kuler@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" @@ -1120,14 +1001,6 @@ merge-descriptors@^2.0.0: resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-2.0.0.tgz#ea922f660635a2249ee565e0449f951e6b603808" integrity sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g== -micromatch@^4.0.2: - version "4.0.8" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" - integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== - dependencies: - braces "^3.0.3" - picomatch "^2.3.1" - mime-db@^1.54.0: version "1.54.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.54.0.tgz#cddb3ee4f9c64530dff640236661d42cb6a314f5" @@ -1252,11 +1125,6 @@ object-inspect@^1.13.3: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - on-finished@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -1278,14 +1146,6 @@ one-time@^1.0.0: dependencies: fn.name "1.x.x" -open@^7.4.2: - version "7.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" - integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== - dependencies: - is-docker "^2.0.0" - is-wsl "^2.1.1" - p-is-promise@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-3.0.0.tgz#58e78c7dfe2e163cf2a04ff869e7c1dba64a5971" @@ -1296,31 +1156,6 @@ parseurl@^1.3.3: resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== -patch-package@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-8.0.1.tgz#79d02f953f711e06d1f8949c8a13e5d3d7ba1a60" - integrity sha512-VsKRIA8f5uqHQ7NGhwIna6Bx6D9s/1iXlA1hthBVBEbkq+t4kXD0HHt+rJhf/Z+Ci0F/HCB2hvn0qLdLG+Qxlw== - dependencies: - "@yarnpkg/lockfile" "^1.1.0" - chalk "^4.1.2" - ci-info "^3.7.0" - cross-spawn "^7.0.3" - find-yarn-workspace-root "^2.0.0" - fs-extra "^10.0.0" - json-stable-stringify "^1.0.2" - klaw-sync "^6.0.0" - minimist "^1.2.6" - open "^7.4.2" - semver "^7.5.3" - slash "^2.0.0" - tmp "^0.2.4" - yaml "^2.2.2" - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" @@ -1336,7 +1171,7 @@ picocolors@^1.1.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: +picomatch@^2.0.4, picomatch@^2.2.1: version "2.3.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601" integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== @@ -1346,17 +1181,17 @@ picomatch@^4.0.2: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.4.tgz#fd6f5e00a143086e074dffe4c924b8fb293b0589" integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A== -playwright-chromium@~1.54.2: - version "1.54.2" - resolved "https://registry.yarnpkg.com/playwright-chromium/-/playwright-chromium-1.54.2.tgz#0466c9b85dae95dc22fc668f3aac1da1feb2598e" - integrity sha512-8ytI6xNjB//5zWSZUvOvn+N9xkXw6GXiDuBePOejcDiyUmzl5R5rvAU7MTl6h633sS3JVmlCS10EhYCt4Crzsg== +playwright-chromium@~1.64.0: + version "1.64.0" + resolved "https://registry.yarnpkg.com/playwright-chromium/-/playwright-chromium-1.64.0.tgz#8280d7916bb7d8b758080e17935cebaaebb3b5aa" + integrity sha512-w56jKvqiCLa0/Nb6BltYER4r89EG0L9v1MI2g7PZV6gGKrRH7oSfwUqMlHBnZ7t6gd6WfFdAg2+rECSNRE43sQ== dependencies: - playwright-core "1.54.2" + playwright-core "1.64.0" -playwright-core@1.54.2, playwright-core@~1.54.2: - version "1.54.2" - resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.54.2.tgz#73cc5106f19ec6b9371908603d61a7f171ebd8f0" - integrity sha512-n5r4HFbMmWsB4twG7tJLDN9gmBUeSPcsBZiWSE4DnYz9mJMAFqr2ID7+eGC9kpEnxExJ1epttwR59LEWCk8mtA== +playwright-core@1.64.0, playwright-core@~1.64.0: + version "1.64.0" + resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.64.0.tgz#a765f91dabd2b2cadd67e87439842c1d6c72c652" + integrity sha512-T9r+MZkTECl2+oUcZ26YgZzTrYidTsIhYYkJix+6iDOymOb1FB2RLLSOxRGnZGv5DStt+aduIVbt+E8WygXYpg== postinstall-postinstall@^2.1.0: version "2.1.0" @@ -1550,35 +1385,11 @@ serve-static@^2.2.0: parseurl "^1.3.3" send "^1.2.0" -set-function-length@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - setprototypeof@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - side-channel-list@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" @@ -1647,11 +1458,6 @@ simple-update-notifier@^2.0.0: dependencies: semver "^7.5.3" -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - stack-trace@0.0.x: version "0.0.10" resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" @@ -1716,13 +1522,6 @@ supports-color@^5.5.0: dependencies: has-flag "^3.0.0" -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -1773,11 +1572,6 @@ tinyglobby@^0.2.11: fdir "^6.4.4" picomatch "^4.0.2" -tmp@^0.2.4: - version "0.2.7" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.7.tgz#26f4db11d1601ce8012dcb8a798ece1c06a99059" - integrity sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw== - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -1909,13 +1703,6 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - winston-daily-rotate-file@~5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/winston-daily-rotate-file/-/winston-daily-rotate-file-5.0.0.tgz#8cd94800025490e47c00ec892b655a5821f4266d" @@ -1976,11 +1763,6 @@ yallist@^5.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-5.0.0.tgz#00e2de443639ed0d78fd87de0d27469fbcffb533" integrity sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw== -yaml@^2.2.2: - version "2.8.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.2.tgz#5694f25eca0ce9c3e7a9d9e00ce0ddabbd9e35c5" - integrity sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A== - yargs-parser@^20.2.2: version "20.2.9" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" From 180d04990be146564351e46861b40bd2c12ed1df Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 8 Oct 2026 16:51:13 +0300 Subject: [PATCH 12/20] build: pin the JUnit version in mqtt-integrations --- common/integration/mqtt-integrations/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/integration/mqtt-integrations/pom.xml b/common/integration/mqtt-integrations/pom.xml index 669904703f..2880ab2710 100644 --- a/common/integration/mqtt-integrations/pom.xml +++ b/common/integration/mqtt-integrations/pom.xml @@ -67,7 +67,7 @@ junit junit - RELEASE + 4.13.2 test From 3ecb885cea9a82a9f215842d4d9577de451ef470 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 8 Oct 2026 16:54:59 +0300 Subject: [PATCH 13/20] build: remove the duplicate byte-buddy dependency management entries --- pom.xml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pom.xml b/pom.xml index 859cfe2cc5..c7f5abd993 100755 --- a/pom.xml +++ b/pom.xml @@ -1241,16 +1241,6 @@ byte-buddy-agent ${bytebuddy.version} - - net.bytebuddy - byte-buddy - ${bytebuddy.version} - - - net.bytebuddy - byte-buddy-agent - ${bytebuddy.version} - org.thingsboard.langchain4j langchain4j-bom From 9467d2e0331da40502c04a20faff8b24fc0c7722 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 8 Oct 2026 16:54:59 +0300 Subject: [PATCH 14/20] chore: update license headers --- common/actor/pom.xml | 3 ++- common/cache/pom.xml | 3 ++- common/cluster-api/pom.xml | 3 ++- common/coap-server/pom.xml | 3 ++- common/dao-api/pom.xml | 3 ++- common/script/pom.xml | 3 ++- common/stats/pom.xml | 3 ++- common/transport/coap/pom.xml | 3 ++- common/transport/http/pom.xml | 3 ++- common/transport/lwm2m/pom.xml | 3 ++- common/transport/mqtt/pom.xml | 3 ++- common/transport/transport-api/pom.xml | 3 ++- common/util/pom.xml | 3 ++- edqs/pom.xml | 3 ++- monitoring/pom.xml | 3 ++- msa/transport/pom.xml | 3 ++- msa/vc-executor/pom.xml | 3 ++- packaging/java/build.gradle | 3 +-- rest-client/pom.xml | 3 ++- transport/lwm2m/pom.xml | 3 ++- transport/snmp/pom.xml | 3 ++- .../home/components/alarm/alarm-assignee.component.html | 3 ++- .../home/components/alarm/alarm-details-dialog.component.scss | 3 ++- 23 files changed, 45 insertions(+), 24 deletions(-) diff --git a/common/actor/pom.xml b/common/actor/pom.xml index 36eec9d17e..d1f4eda97b 100644 --- a/common/actor/pom.xml +++ b/common/actor/pom.xml @@ -1,7 +1,8 @@ Date: Thu, 8 Oct 2026 15:59:33 +0200 Subject: [PATCH 15/20] Fixed group chips overflow in entity tables and moved Manage agents to customer details panel (#16266) * Fixed group chips overflow in entity tables and moved Manage agents to customer details panel * Fixed license headers --- .../home/components/entity/entity-chips.component.html | 5 +++-- .../home/components/entity/entity-chips.component.scss | 6 +++++- .../home/pages/customer/customer.component.html | 8 ++++++++ .../modules/home/pages/customer/customer.component.ts | 4 ++++ .../pages/customer/customers-table-config.resolver.ts | 10 ---------- ui-ngx/src/assets/locale/locale.constant-en_US.json | 4 ++-- 6 files changed, 22 insertions(+), 15 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html index 8c370cdd5d..cf3970ef5d 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html @@ -1,11 +1,12 @@ @for (subEntity of subEntities; track subEntity) { - {{ subEntity.name | customTranslate }} diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss index ee4b487f32..045156fad3 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss +++ b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss @@ -1,11 +1,15 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 :host { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; + width: 0; + min-width: 100%; a.tb-entity-chip { + max-width: 100%; padding: 4px 8px; border-radius: 12px; line-height: 16px; diff --git a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html index 3b8a08e04a..5dd48f45b3 100644 --- a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html +++ b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html @@ -60,6 +60,14 @@ {{'customer.manage-edges' | translate }} } + @if (resource.AGENT | hasGenericPermission: operation.READ) { + + } @if (resource.DASHBOARD | hasGenericPermission: operation.READ) {