Inline review: legacy ai_solution_creator menu id maps to ai_assistant, quick
web link ids use guid(), white labeling and report templates no longer reload
over unsaved edits, the solution chat stop state clears when a run ends, the
tour skips stops whose target never appears, the hand-over clock runs only
while waiting and outside the zone, ai-theme no longer leaks into component
stylesheets, SSE heartbeats are ignored, unknown alarm-update actions fall back
to "other", the panel margin follows the panel actually being present, and
ALARM_RULE reviews get their label.
Bundle: the docked panel and the AI Assistant page load lazily; AiModule is
split into core, composer and chat modules; the CLI guide moved next to its page.
Translations: no sentences assembled in code, plural forms, entity words as
keys, wording fixes, unused and stale keys removed, help lists recipient params.
Maintainability: one isAiAvailable() rule, one '/' shortcut service, OnPush
chat components, shared chat-session helpers, single chat list, shared reload,
toast, count and storage helpers, prefixed generic theme classes, Prism skipped
where the kit highlighter re-renders code, dead code, CSS and assets removed.
License headers restamped and three files curated.
DeviceInstalledItemDescriptor.getUsedExistingEntities reads usedExistingEntityIds, or the install state of an install that has none. Update, delete and the delete dialog call it; the static helpers in DevicePackageEntities and both services are gone.
* Renamed the Tuya integration credential fields to Access ID and Access Secret, as in the Tuya Developer Platform
* Removed unused Access Key length translations
---------
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
The attributes updated notification is built from the saved typed entries,
so it marks the string entries that would read back as numbers in
typeCastDisabledKeys. Copy to entity view and the device profile parse it
with JsonConverter.attributesFromMsg and get the values the device has.
Nodes call JsonConverter.attributesFromMsg / telemetryFromMsg / sortedTelemetryFromMsg,
which read the type-cast-disabled keys from the message metadata. The key-set overloads
become private. NoCastKeys is renamed to TypeCastDisabledKeys, and the related metadata
key, UplinkData, DedicatedUplinkData and proto fields to *TypeCastDisabledKeys, matching
JsonConverter's isTypeCastEnabled.
The platform guessed the kept strings from the values (STRING_V that
parses as a number). The guess was wrong for a decoder decimal with more
than 16 fraction digits, which the proto parser keeps as a string: it was
saved as a number before and became a string.
The typed converter already has the exact sets. UplinkData now carries
telemetryNoCastKeys / attributesNoCastKeys, and DeviceUplinkDataProto /
AssetUplinkDataProto get them as new repeated fields 8 and 9, so embedded,
remote and executor integrations pass them on. The platform and the
integration executor put them into the "noCastKeys" metadata as given. An
older remote integration sends none and is parsed as before.
NoCastKeys.fromKvList is removed.
PROD-9057
Typed LoRaWAN converters keep identifiers the network server sends as
strings (devAddr, eui, joinEui, hardwareVersion, ...) as strings, but they
were still saved as numbers: the platform turns the converter output back
into JSON for the rule engine, and the save nodes parse that JSON again
with type cast on, so joinEui "0000000000000000" became 0 and
hardwareVersion "1.0" became 1.0.
When the platform builds the rule engine message from an integration
uplink (device and asset paths, and the integration executor), it now
puts the keys whose string values look like numbers into the metadata
key "noCastKeys" as a JSON array. The converter already cast every other
numeric-looking string, so these are exactly the strings it kept. The
save attributes, save time series, calculated fields, copy attributes to
entity view and device profile nodes leave those keys uncast. Messages
without the key are parsed as before.
JsonConverter gets convertToAttributes/convertToTelemetry/
convertToSortedTelemetry overloads with a set of no-cast keys; the
existing methods do not change. NoCastKeys in common/proto writes and
reads the metadata key.
PROD-9057
Two classes used its @PostConstruct and @PreDestroy; they use the jakarta.annotation ones instead, which Spring handles the same way. proto and edge-api declared it for generated gRPC code that no longer uses it: gRPC 1.76 marks its stubs with @GrpcGenerated.
Google libraries still bring it transitively.
java-driver-core 4.17.0 of com.datastax.oss declares spotbugs-annotations (LGPL-2.1) at compile scope, so the packages shipped it. DataStax donated the driver to Apache, which publishes it as org.apache.cassandra:java-driver-* since 4.18.0, where spotbugs-annotations and jcip-annotations are provided instead of compile; the Java packages are the same.
4.19.3 is the version that spring-boot-dependencies manages and that Spring Data Cassandra is built with, so the root pom sets no version of its own: every module, the migrator of PE and 4.4 included, gets the driver from the BOM that spring-boot-dependencies imports. Since 4.18.0 the driver has bug fixes and opt-in features; its shaded Guava is now org.apache.cassandra:java-driver-guava-shaded, and it uses the lz4-java of at.yawk.lz4, which the root pom already manages.
Four classes of dao-api used the spotbugs @NonNull through the driver; they use the jspecify @NonNull instead, so dao-api declares jspecify and the root pom manages its version, 1.0.1, the one Guava declares. The driver's classes carry the jcip annotations, so dao-api declares jcip-annotations provided to compile against them.
The fork was adopted for the frequency and presence penalties of the Google GenAI models, which upstream 1.16.1 has. Of the fork's remaining changes, the modules ThingsBoard uses carry only three: AiServices features and an HTTP PATCH method that ThingsBoard does not reach, and a second setter for the content of Mistral AI messages. That setter conflicts with the one upstream added for the same purpose, so Jackson rejects every Mistral AI chat response with "Conflicting setter definitions for property content". Upstream parses both plain and reasoning responses.
KCL 3.0.1 depends on com.amazonaws:dynamodb-lock-client 1.3.0, which is
licensed under the Amazon Software License. That license restricts use
of the library to Amazon's services, so it does not fit redistribution
as part of our product. KCL 3.1.2 depends on dynamodb-lock-client 1.4.0,
which is licensed under Apache-2.0.
In KCL 3.1 the SynchronousBlockingRetrievalFactory constructor takes an
additional SleepTimeController. KinesisPollingConfig now passes a
KinesisSleepTimeController, the same default that KCL's own
PollingConfig uses, so polling keeps its current behavior.
* 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>
Migrations started from @PostConstruct ran before Spring registered
@TransactionalEventListener methods, so cache evict events published by
migrations were dropped. With a Redis cache the stale entry survived until
its TTL (e.g. the internal Trendz API key kept its pre-migration
permissions for up to 24 hours).
Start the patch applier on ApplicationReadyEvent with the new
AfterStartUp.SYSTEM_PATCH order (0), so it is still submitted before
partitions, discovery, core and actor startup.
* 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>
Fields that the server sends as null were documented as required, so
generated clients (Dart in particular) failed to parse such responses.
They are now NOT_REQUIRED. Bean validation on save is unchanged.
swagger-core skips @NotNull for a property with
@Schema(requiredMode = NOT_REQUIRED), but still adds the ones with
@NotBlank / @NotEmpty to 'required'; SwaggerConfiguration now removes
them.
entityType carries an EntityType or an AliasEntityType name
(CURRENT_USER, ...), so it is a string; id is required only for an
EntityType, and aliasEntityType is never written. A filter with an alias
did not fit the old schema. AliasEntityType is registered explicitly,
since no schema references it any more. AliasEntityIdTest pins the wire
format.
The document is OpenAPI 3.1, which writes Schema.types, but registerSchema
resolved classes with the OpenAPI 3.0 ModelConverters instance, so
LoginRequest, LoginResponse, ThingsboardErrorResponse and
ThingsboardCredentialsExpiredResponse lost "type": "object". The
/api/auth/token request body had no types either, so refreshToken was
untyped. ColumnSettings declares allOf DataKeySettings explicitly, so it
stays a DataKeySettings subtype however springdoc reaches it first.