Browse Source
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 <ababak@thingsboard.io>
pull/16650/head
Vladyslav Prykhodko
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with
22 additions and
9 deletions
application/src/main/java/org/thingsboard/server/service/edge/EdgeEntityTenantChecker.java
common/cache/src/main/java/org/thingsboard/server/cache/RedisTbCacheTransaction.java
common/cache/src/main/java/org/thingsboard/server/cache/TBRedisClusterConfiguration.java
common/cache/src/main/java/org/thingsboard/server/cache/VersionedRedisTbCache.java
transport/http/src/main/resources/tb-http-transport.yml
transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml
transport/mqtt/src/main/resources/tb-mqtt-transport.yml
transport/snmp/src/main/resources/tb-snmp-transport.yml
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html
ui-ngx/src/theme/theme-constants.scss
@ -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 ;
@ -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 ;
@ -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 ;
@ -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 ;
@ -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
@ -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
@ -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
@ -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
@ -431,7 +431,7 @@
}
< / mat-drawer-content >
< / mat-drawer-container >
@if (hideToolbar & & hideMainToolbar & & !widgetEditMode) {
@if (hideToolbar & & hideMainToolbar & & !widgetEditMode & & !isMobileApp ) {
< section data-html2canvas-ignore class = "tb-header-buttons tb-side-menu-toggle" >
< button color = "tb-primary"
mat-mini-fab
@ -261,6 +261,11 @@ $mat-tb-accent: (
div . tb-dashboard-page . mobile-app {
@include mat-fab-toolbar-inverse-theme ( $theme ) ;
tb-dashboard-toolbar {
--tb-primary-background-color : #fff ;
--tb-primary-text-color : rgba ( 0 , 0 , 0 , 0 .87 ) ;
}
}
: : -webkit-scrollbar {