* 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>
* Changes for reporting tables
* Added min and step to border width
* Removed borderRadius - not supported in peropting library
* Returned background color
* Style changes
* Changes after review
* Fixes after review
* Set min value for DOUBLE border type
* Enforce double-border 3 px minimum at config time, not render time
* Treat double border width as single-line thickness instead of enforcing a 3px minimum
Width now means the thickness of each line; a double border is rendered
as two such lines with an equal gap (CSS width = width x 3), matching how
Word stores double border widths. This removes the dynamic-form validator
extension and the divider min-width validation, and shows a hint only
when Double is selected.
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Fixed inconsistent spacing between tabs and content when switching tabs on Settings and Mobile center pages
* PR comments fixes
* Unified tab-to-content spacing via shared tb-content-card class and spacing variables
* Fixed PR comments
* Fixed license headers
* Fixed License page key card width and spacing
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Fixed license headers of files changed by the set value action settings fixes
* Fixed license headers of files changed by the Account tab icons fix
* Fixed license headers of files changed by recent UI fixes
* fix: sort time series chart series to match legend sortDataKeys order
* fix: gate sortDataKeys on showLegend in time-series chart widget
* refactor: share legend data key comparator and pass time series sort as sortSeries setting
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* [WIP] make value chart widget auto refresh
* Add auto-refresh for "last update ago" date in value card widgets
Apply periodic date refresh logic to tb-value-card-widget and
tb-aggregated-value-card-widget. Both widgets display a "Last update
X ago" timestamp that previously only updated when new telemetry
arrived. The interval subscription now re-evaluates the relative time
on every tick (interval driven by dynamicPageLinkRefreshIntervalSec
from system params, defaulting to 60s), keeping the label accurate
without waiting for a data push.
* Reverted wrongly added translation key
* Refactor last-update-ago auto-refresh into LastUpdateAgeDateFormatProcessor
* Chore: fix formatting
* Fix typo
* Fix auto-refresh scheduling in LastUpdateAgoDateFormatProcessor
* refactor: make last-update-ago refresh a lazy observable shared with DateAgoPipe
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* Add 'Overwrite activity time' column type to device bulk import
* Fix overwriteActivityTime column type not being disabled after selection in bulk import
Remove dead locale key import.column-type.activity-time-from-gateway-device
from all 23 locale files
* Use DataConstants keys for gateway and overwriteActivityTime in device bulk import
* Group gateway columns in bulk import and reuse device.overwrite-activity-time label
* Fixed auto-detection of gateway columns in device bulk import
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
* feat: assign dedicated Leaflet pane per marker data layer for z-index control
Each marker data layer gets its own Leaflet pane (tb-markers-pane-{index})
whose z-index is derived from the layer's position in the Overlays list
(first = highest = always on top). Stacking order is controlled by
drag-reordering layers in the editor — no new settings field required.
Pane z-index formula: 600 + (count - 1 - index), keeping marker layers
above overlayPane (400) and below tooltipPane/popupPane (650/700).
Both individual markers and cluster icons are assigned to the layer's pane
via the `pane` and `clusterPane` Leaflet marker options respectively.
Scope: markers data layers only; polygons, circles, polylines and trips
retain their default Leaflet panes.
* refactor: move marker pane ownership to TbMap and keep panes below markerPane
* [WIP] implement two finger map zoom in mobile
* feat: add useGestureHandling map option for cooperative scroll/touch zoom
* Removed wrongly added package-lock.json and restored previous yarn url targets
* Made gestures mode dependant on the Zoom actions:scroll (visible only when scroll is enabled), changed from simple slider to a more styled pill slider toggle, added a tooltip where put configuration explanation
* feat: configure gesture handling overlay duration and translated text
* refactor: register gesture handling plugin in leaflet-tb and extract options to base map class
* fix: address gesture handling review — remove duplicate registration, decouple mobile toggle from scroll zoom
* fix: correct gesture hint text, drop unused MapZoomAction, pin leaflet-gesture-handling
* chore: restamp license headers for modified CE files
* Fixed long user email being truncated in the sidebar user menu
* Changed approach
* Simplified code
* Used popover background for email ellipsis fade and let domain use free width
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
- A dashboard of the package that a profile outside the package uses as its default dashboard, and a device profile of
the package that a firmware or software package refers to, refuse the update before anything is removed.
- The refusal no longer says that nothing was removed: an earlier attempt may have removed part of the package.
- The GATEWAY_CONNECTOR step neither marks the gateway as created in this wizard nor tracks it, so a gateway the user
had and chose to use stays theirs after Back reruns the steps.
- The doc of packageOwnedEntityIds is back above it; tests for the rule chain, the dashboard and the firmware.
- A dashboard of the package that a profile outside the package uses as its default dashboard, and a device profile of
the package that a firmware or software package refers to, refuse the update before anything is removed, as the
profile and the rule chain do.
- The refusal no longer says that nothing was removed: an earlier attempt may have removed part of the package.
- The GATEWAY_CONNECTOR step neither marks the gateway as created in this wizard nor tracks it: the connector is
attributes on the gateway. A gateway the user had and chose to use stays theirs after Back reruns the steps.
- The doc of packageOwnedEntityIds is back above it.
- Tests for the rule chain (root, default of another device or asset profile, default of the package's own profile),
the dashboard and the firmware.
The PE part of thingsboard-pe#5291 for 4.4.0.x, by hand: the update opens the wizard of the new version with the entity
group (the first one other than All) and the customer of the installed version's device, and the server keeps them in
the install state ($placement) when it removes the entities, so a retry after the device is gone still creates the new
one there. 4.4.1 does not need it: its update keeps the same device.
After Back reruns the entity steps, the "use existing" mark of such an entity is gone from the install state, so the
server took it for the package's and a later update or Delete removed the user's own entity. The wizard no longer
tracks it, unless it created that entity itself earlier in the same wizard.
- Revert the report user rebind in the dashboard report config component (PR #5297)
- Use the requester as the report user when current user credentials are on and the configured user is not accessible (PR #5297)
On 4.4.0.x the Update of a device package removed every entity the package created and installed nothing again. Now
the Update opens the install wizard of the new version, with the forms filled from the installed version. Nothing is
removed while the user goes through the forms; the entities of the installed version are removed right before the
wizard creates the new ones, and the installed item keeps the old version until the wizard registers the new one on
the same item. The update dialog warns that the package is reinstalled and its data removed.
The diff of thingsboard#16558 (lts-4.4) applied onto hotfix-4.4, plus three fixes from its review: the removeEntities
endpoint checks the permissions as the other IoT Hub endpoints do; an entity the user had before the install and chose
to use is not tracked as the package's, so a later update or Delete never removes it; a failure after the removal has
started is never answered with a 400, which tells the wizard that nothing was removed.
A gateway package writes ${mqtt.host} and ${mqtt.port} into its docker-compose. The install form now
shows the MQTT host and port fields for every GATEWAY_* method, as it does for DIRECT_MQTT, with the
wording and the help about the gateway: it runs in Docker, so localhost means its own container or
machine, and host.docker.internal is the address when it runs on the ThingsBoard machine.
IOTHUB-84
- web-report: build the shipped executables without pkg --debug again; the SBOM check makes its own --debug pass into a folder it deletes
- skip the yarn SBOM steps of ui-ngx, web-ui and web-report with -Dskip.ui.build=true (sbom.ui.skip)
- keep Lombok out of the boot jars: it is needed only to compile and is not in the SBOMs
- list the DigiCert root certificate in the package SBOM of the integration executor
- check in every build that the gateway extension SBOM names the hash of the committed .js, and keep Git from changing the line ends of that file
- license headers: mark packaging/java/build.gradle as modified and update the curation of msa/web-report/pom.xml
The image SBOMs were made by sbom-docker-images.sh, run after the release build. The image goal of sbom-maven-plugin now finds the pushed images, scans them and attaches the SBOMs itself, so the push profiles bind it to the phase that pushes the image, right after the pushes, with the tags they push. The script is removed.
sbom.skip is true by default, so a normal build makes no SBOMs. -Dsbom.skip=false turns them on: jar and package SBOMs in any build, and image SBOMs as well in a build with a push profile.
The key is removed whenever the decoded payload has it, and it names a model only when it is an object, so
tbVersionIds: null or a list gives the same telemetry in JS and TBEL. The test of a tbVersionIds that is not an
object covers a text, null and a list. The test of the renamed profile lists temperature, which is in the history
record and in the latest values, so it fails if a listed key leaves a history record.
attributes.<brand_id>-<model_id> in the integration metadata (comma-separated, written by the device package's
INTEGRATION step, like profile.*) lists the keys of decoded_payload that are device information and settings: they
become attributes, the rest stays telemetry. No list, everything stays telemetry. The model comes from version_ids,
else from tbVersionIds, which now also gives the brandId and modelId attributes, as version_ids does through the
integration. Tests: the listed keys of a formatter device, the list of a Repository device by its model with a renamed
profile (history records stay telemetry), the list of another model changes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lansitec devices are decoded by our payload formatter in The Things Stack (Custom Javascript formatter on the end device),
so the Lansitec block leaves the TBEL and JS converters, with its test and uplinks. A device that is not in the LoRaWAN
Device Repository has no version_ids: its formatter can add tbVersionIds { brand_id, model_id } to decoded_payload, the
converter takes the profile <brand_id>-<model_id> from it (or the name in the integration metadata), and drops the field
from the telemetry. version_ids come first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>