@trops/dash-core 0.1.449 → 0.1.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -45939,13 +45939,20 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
45939
45939
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45940
45940
|
}, [dashApi]);
|
|
45941
45941
|
|
|
45942
|
-
// Filter catalog by search
|
|
45942
|
+
// Filter catalog by search, then sort alphabetically by display name.
|
|
45943
|
+
// Built-in and known-external entries are interleaved alphabetically —
|
|
45944
|
+
// the per-card "external" badge keeps the source obvious without
|
|
45945
|
+
// needing a separate group header.
|
|
45943
45946
|
var filteredCatalog = catalog.filter(function (server) {
|
|
45944
45947
|
if (!searchQuery) return true;
|
|
45945
45948
|
var q = searchQuery.toLowerCase();
|
|
45946
45949
|
return server.name.toLowerCase().includes(q) || server.description.toLowerCase().includes(q) || (server.tags || []).some(function (tag) {
|
|
45947
45950
|
return tag.toLowerCase().includes(q);
|
|
45948
45951
|
});
|
|
45952
|
+
}).slice().sort(function (a, b) {
|
|
45953
|
+
return String(a.name || "").localeCompare(String(b.name || ""), undefined, {
|
|
45954
|
+
sensitivity: "base"
|
|
45955
|
+
});
|
|
45949
45956
|
});
|
|
45950
45957
|
|
|
45951
45958
|
// Dynamic wizard steps based on whether auth is needed
|