Browse Source
* 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.pull/16134/merge
committed by
GitHub
8 changed files with 199 additions and 108 deletions
Loading…
Reference in new issue