Conflicts:
- iot-hub-version.models.ts: #16165 added creatorVerified to the old inline
toQuery(); it now sits at the end of filtersToQuery().
Also drops the ItemType.DASHBOARD entry from itemTypeColors, since #16255
removed the Dashboard item type.
From the #16148 review round of 2026-10-09:
- A failed popup request is carried as null and sets searchFailed, which
shows a "Network or server unavailable" row instead of "No results found".
- distinctUntilChanged() is gone from the popup pipeline. onSearchInput sets
searchLoading on every keystroke, so a debounced value equal to the last
one (type a letter and delete it within 300 ms) was dropped and the spinner
never cleared; it also kept a failed query from being retried as-is. This
matches thingsboard.io#706.
- The search page's resize handler captures the first visible item before
measureCols(), which already resets pageSize when the old size is not among
the new options; the grid now stays on the page holding that item.
* feat: filter the IoT Hub catalogue by the creator's verification status
Adds a "Verified creators only" control to every IoT Hub filter panel the
platform renders: the catalogue page, the embedded browse a dialog opens, and
the widget picker in the dashboard editor. It applies through the new
creatorVerified parameter on /api/versions/published, so the result count and
the page count reflect it rather than only the rows on screen, and it joins the
rest of the panel's state - chips, the count on the filter button, "Clear all",
and the reset that happens when the mode changes.
The control is a single checkbox above the facets rather than a section of its
own: one boolean has no list to collapse, and a one-option accordion reads as a
heading whose section never grows. The catalogue's sidebar had no name for its
panel at all, which left that checkbox sitting under nothing, so the sidebar now
carries the same "Filter" title the drawer has, with the same rule under it.
The parameter is matched, not switched, the shape peOnly/ceOnly already have:
creatorVerified=false means "only *un*verified". An unchecked control therefore
omits it entirely and never sends false - MpItemVersionQuery.toQuery() writes
the parameter only when the option is true, and both panels pass undefined
rather than false.
Two surfaces need the facet applied by hand. "Installed from IoT Hub" filters a
cached list in the browser instead of asking the server, so it gets the same
predicate locally; without it the panel would offer the control and the list
would not move. And the widget picker's category landing passes the parameter
to /api/item-listing/widgetCategories, so it stops offering a category whose
only widgets the grid then hides - which is also why the filter button is now
shown on the landing while the flag is set, the one place the panel is
otherwise hidden and the filter would have been unclearable.
The creator page and the search page run the same reads through a component
with no filter panel, so the parameter never reaches them.
Copy names what it filters - the creator's verification status - and claims no
quality tier.
* IoT Hub verified filter: address review comments
- Show only the verified checkbox in the widget-select filter panel on the
category landing; the other facets are ignored there
- Badge on the landing counts only the verified filter
- Pass the verified flag as-is; the query builders already drop false
- Align the sidebar filter title weight with the drawer header (500)
- Trim explanatory comments
* IoT Hub browse: share the filter checkbox rule with the standalone checkbox
Put the standalone class on the mat-checkbox itself, inset it with a
margin and drop the wrapper and the duplicated hover block.
* Update IoT Hub "Professional Edition required" dialog to point to the Community Grant Program
* IoT Hub PE-required dialog: address review comments
- Title: "Not available in your version"
- Message: use "instance" consistently, "or newer" like upgrade-required,
drop the redundant clause, typographic apostrophe
- Button: new "View upgrade options" label, since it opens the grant page
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.
* 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 61246776fa. 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.
From the #16148 re-review:
- onIotHubSortChange compared the picked option with the effective sort, so
picking "Most installed" while it was already shown as the Installed list's
fallback for relevance stored nothing, and the IoT Hub list reopened on
"Most relevant". The choice is now always stored; the list reloads only
when the effective sort changes.
- INSTALLED_SORT_OPTIONS moves below the imports.
- The search page's load pipeline carries a failure as null and applies the
result in applyResult() instead of an inline block with a { result } wrapper.
- filterByLabel trims the search itself, so the facet list and the type pages
treat a trailing space alike.
- isCompactItemType() now also backs TbIotHubBrowseComponent.isCompactType and
the detail dialog's isCompactLayout; the home component's pass-through
becomes a readonly alias.
Conflict: iot-hub-alarm-rules-unavailable-page.component.ts, deleted on lts-4.3
(which supports alarm rules) and recoloured from itemTypeColors on lts-4.2.
Kept the deletion; nothing on lts-4.3 references the page.
From the review of the search page:
- No Type facet selected now sends the six types the platform surfaces, as the
popup does, instead of every type the Hub holds: without the old grouping
step a published dashboard would have rendered as a card and been counted.
- Every reload goes through one Subject + switchMap, so a newer request
cancels an older one; toggling two facets quickly can no longer leave the
grid on the first answer.
- The ResizeObserver callback runs inside NgZone.run, as in
TbIotHubBrowseComponent; zone.js does not patch ResizeObserver, so a reload
started from it did not render. Checked: widening the window reloads with
the larger page size and renders it with no other event.
- The facet list takes option keys (string[]) and computes its visible list
once per change instead of on every change-detection pass; the Type facet's
placeholder zero counts and the facet count summing are gone.
- Shared in iot-hub-utils: filterByLabel (behind filterIotHubItemsBySearch),
measureGridColumns (used by this component and the browse page), and
IOT_HUB_FILTER_SCROLL_THRESHOLD in place of the literal 8 in both panels.
- The page padding and the component's pull-out margin derive from one
--tb-search-page-pad per breakpoint. Resize fields sit with the other state.
- Comments trimmed to the non-obvious intent.
Enter in the field opens the search page unless the autocomplete has just used
the press to select a highlighted row, which it marks with preventDefault in
its own keydown handler, registered before the field's. The field now listens
on keydown.enter and checks event.defaultPrevented, which replaces the
enterHandledByRow flag, the four places that reset it, and the read of the
trigger's activeOption at one exact moment. Checked in a browser: arrow + Enter
on a row opens the row only, Enter in the field opens the search page, click a
row / close the dialog / click the magnifier opens the search page, and arrow
to the footer + Enter opens it once.
Also from the review:
- The popup asks for the six cross-type types rather than filtering dashboards
out afterwards, so totalElements is exact and "See all N" needs no arithmetic.
- Row and footer selection go through onRowSelected / onFooterSelected instead
of a side-effecting predicate in the template.
- isCompactType delegates to the shared isCompactItemType; comments trimmed.
That list is sorted in the browser, and relevance is a score only the Hub
computes: sortInstalledVersions read a 'relevance' field no row has, so "Most
relevant" left the list unsorted under a label saying otherwise. The Installed
list now offers the other three keys, and a relevance choice made on the IoT
Hub list falls back to the first of them there. The sort is kept by value
rather than by menu index, since the two lists differ in length.
From the review:
- iot-hub-api.service builds peOnly/tbVersion from one platformScope(), used
by applyPlatformFilters and by the reads that wrote the pair into the URL by
hand (filterInfo, widgetCategories, the listing item-version lookup).
- DEFAULT_ITEM_TYPE_COLOR names the grey the palette falls back to; the
alarm-rules-unavailable page reads itemTypeColors instead of its own copy.
- isCompactItemType() next to CROSS_TYPE_ITEM_TYPES, used by the item card and
the popup.
- A stale "shared by both query shapes" comment left from the grouped query,
and other comments, trimmed to the non-obvious intent.
The popup asked /api/versions/published/grouped and rendered one section per
item type, so a query answered best by a widget still opened on devices. It now
asks for page 0 of the flat read the search page makes (relevance sort, 10
rows) and renders those rows in the server's order, so the best match leads
whatever its type.
- Each row names its type before the author ("Widget · pinkevych.d"), in the
type's colour with its itemTypeIcons icon. The verified mark moves in front
of the author like on the item cards; an unverified author keeps the person
icon.
- Items without a screenshot (calculated fields, alarm rules, rule chains) sit
in the same 99x56 frame as a screenshot with a 36px coloured tile inside, so
names line up down the list.
- The footer says "See all N results for ..." when the search matched more than
the popup shows; N discounts the rows this page dropped (dashboards).
- itemTypeColors joins itemTypeIcons as the one type palette; the hero reads it
instead of repeating the six colours.
Removes getPublishedVersionsGrouped, MpItemVersionGroupedQuery,
MpItemVersionSection and the iot-hub.section-more key.