@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.js
CHANGED
|
@@ -45957,13 +45957,20 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
45957
45957
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45958
45958
|
}, [dashApi]);
|
|
45959
45959
|
|
|
45960
|
-
// Filter catalog by search
|
|
45960
|
+
// Filter catalog by search, then sort alphabetically by display name.
|
|
45961
|
+
// Built-in and known-external entries are interleaved alphabetically —
|
|
45962
|
+
// the per-card "external" badge keeps the source obvious without
|
|
45963
|
+
// needing a separate group header.
|
|
45961
45964
|
var filteredCatalog = catalog.filter(function (server) {
|
|
45962
45965
|
if (!searchQuery) return true;
|
|
45963
45966
|
var q = searchQuery.toLowerCase();
|
|
45964
45967
|
return server.name.toLowerCase().includes(q) || server.description.toLowerCase().includes(q) || (server.tags || []).some(function (tag) {
|
|
45965
45968
|
return tag.toLowerCase().includes(q);
|
|
45966
45969
|
});
|
|
45970
|
+
}).slice().sort(function (a, b) {
|
|
45971
|
+
return String(a.name || "").localeCompare(String(b.name || ""), undefined, {
|
|
45972
|
+
sensitivity: "base"
|
|
45973
|
+
});
|
|
45967
45974
|
});
|
|
45968
45975
|
|
|
45969
45976
|
// Dynamic wizard steps based on whether auth is needed
|