fix(sidebar): hide the MQTT console leaf expander

This commit is contained in:
_Mr丶s ゛😁®
2026-10-12 22:29:53 +08:00
committed by GitHub
parent 85fc95bac8
commit d022f068cd
2 changed files with 2 additions and 0 deletions
@@ -47,6 +47,7 @@ describe("sidebar tree item layout", () => {
expect(canTreeNodeShowExpander({ type: "etcd-dashboard", childCount: 0 })).toBe(false);
expect(canTreeNodeShowExpander({ type: "etcd-access-control", childCount: 0 })).toBe(false);
expect(canTreeNodeShowExpander({ type: "consul-overview", childCount: 0 })).toBe(false);
expect(canTreeNodeShowExpander({ type: "mqtt-topic", childCount: 0 })).toBe(false);
});
it("shows an expander only for package nodes explicitly marked as containers", () => {
@@ -18,6 +18,7 @@ const leafTypes: Set<TreeNodeType> = new Set([
"type-method",
"object-browser",
"redis-db",
"mqtt-topic",
"mq-tenant",
"etcd-root",
"etcd-dashboard",