From 5294af91e402523363daafc7ae1c4d3dc38d85ab Mon Sep 17 00:00:00 2001 From: Vladyslav Prykhodko Date: Thu, 12 Nov 2026 18:46:53 +0200 Subject: [PATCH] Fix dead side menu button and invisible toolbar icons on dashboards in the mobile app (#16648) * fix(dashboard): hide the side menu toggle in the mobile app A dashboard with both the dashboard toolbar and the main toolbar hidden shows a floating menu button at phone width that toggles the side navigation. In the mobile app the page runs in forced fullscreen, where the side navigation is disabled, so the button did nothing and covered the start of the first widget title. The app has its own navigation, so the button is no longer rendered there. * fix(dashboard): visible toolbar icons in mobile app with primary shell In the mobile app the dashboard toolbar is drawn on a white background. With the primary application shell the toolbar text colour is the primary contrast colour, which is white for dark palettes, so the time window and other toolbar icons were white on white. The dashboard toolbar now uses the light shell colours in the mobile app regardless of the selected application shell. * Restamp license headers flagged by check-license-headers.sh --------- Co-authored-by: Artem Babak --- .../server/service/edge/EdgeEntityTenantChecker.java | 3 ++- .../thingsboard/server/cache/RedisTbCacheTransaction.java | 3 ++- .../server/cache/TBRedisClusterConfiguration.java | 3 ++- .../org/thingsboard/server/cache/VersionedRedisTbCache.java | 3 ++- transport/http/src/main/resources/tb-http-transport.yml | 3 ++- transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml | 3 ++- transport/mqtt/src/main/resources/tb-mqtt-transport.yml | 3 ++- transport/snmp/src/main/resources/tb-snmp-transport.yml | 3 ++- .../components/dashboard-page/dashboard-page.component.html | 2 +- ui-ngx/src/theme/theme-constants.scss | 5 +++++ 10 files changed, 22 insertions(+), 9 deletions(-) diff --git a/application/src/main/java/org/thingsboard/server/service/edge/EdgeEntityTenantChecker.java b/application/src/main/java/org/thingsboard/server/service/edge/EdgeEntityTenantChecker.java index 90ae697f37..2bfca1ec32 100644 --- a/application/src/main/java/org/thingsboard/server/service/edge/EdgeEntityTenantChecker.java +++ b/application/src/main/java/org/thingsboard/server/service/edge/EdgeEntityTenantChecker.java @@ -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 package org.thingsboard.server.service.edge; import lombok.RequiredArgsConstructor; diff --git a/common/cache/src/main/java/org/thingsboard/server/cache/RedisTbCacheTransaction.java b/common/cache/src/main/java/org/thingsboard/server/cache/RedisTbCacheTransaction.java index 556e6281b2..fb483a8902 100644 --- a/common/cache/src/main/java/org/thingsboard/server/cache/RedisTbCacheTransaction.java +++ b/common/cache/src/main/java/org/thingsboard/server/cache/RedisTbCacheTransaction.java @@ -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 package org.thingsboard.server.cache; import lombok.RequiredArgsConstructor; diff --git a/common/cache/src/main/java/org/thingsboard/server/cache/TBRedisClusterConfiguration.java b/common/cache/src/main/java/org/thingsboard/server/cache/TBRedisClusterConfiguration.java index 09e8a0bced..9724a3641c 100644 --- a/common/cache/src/main/java/org/thingsboard/server/cache/TBRedisClusterConfiguration.java +++ b/common/cache/src/main/java/org/thingsboard/server/cache/TBRedisClusterConfiguration.java @@ -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 package org.thingsboard.server.cache; import org.springframework.beans.factory.annotation.Value; diff --git a/common/cache/src/main/java/org/thingsboard/server/cache/VersionedRedisTbCache.java b/common/cache/src/main/java/org/thingsboard/server/cache/VersionedRedisTbCache.java index 8c8cb16543..df639188e8 100644 --- a/common/cache/src/main/java/org/thingsboard/server/cache/VersionedRedisTbCache.java +++ b/common/cache/src/main/java/org/thingsboard/server/cache/VersionedRedisTbCache.java @@ -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 package org.thingsboard.server.cache; import lombok.extern.slf4j.Slf4j; diff --git a/transport/http/src/main/resources/tb-http-transport.yml b/transport/http/src/main/resources/tb-http-transport.yml index 639436613b..be7b99887b 100644 --- a/transport/http/src/main/resources/tb-http-transport.yml +++ b/transport/http/src/main/resources/tb-http-transport.yml @@ -1,6 +1,7 @@ # # 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 # # Server common properties diff --git a/transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml b/transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml index 442cefa13a..dbdf37460a 100644 --- a/transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml +++ b/transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml @@ -1,6 +1,7 @@ # # 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 # # Spring common parameters diff --git a/transport/mqtt/src/main/resources/tb-mqtt-transport.yml b/transport/mqtt/src/main/resources/tb-mqtt-transport.yml index 0668237254..b8780b0ab0 100644 --- a/transport/mqtt/src/main/resources/tb-mqtt-transport.yml +++ b/transport/mqtt/src/main/resources/tb-mqtt-transport.yml @@ -1,6 +1,7 @@ # # 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 # # Spring common parameters diff --git a/transport/snmp/src/main/resources/tb-snmp-transport.yml b/transport/snmp/src/main/resources/tb-snmp-transport.yml index b01820d512..3d8ebcf11a 100644 --- a/transport/snmp/src/main/resources/tb-snmp-transport.yml +++ b/transport/snmp/src/main/resources/tb-snmp-transport.yml @@ -1,6 +1,7 @@ # # 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 # # Spring common parameters 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 c798ac713f..93e4466c72 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 @@ -431,7 +431,7 @@ } - @if (hideToolbar && hideMainToolbar && !widgetEditMode) { + @if (hideToolbar && hideMainToolbar && !widgetEditMode && !isMobileApp) {