From 9349a957b5b14d08bb6d13e2f127621f5b0ccf12 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 28 Aug 2026 10:27:33 +0200 Subject: fix(hub): Node page — "Remove group" only for a group the hub dropped MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The button detaches a group from this node's config. For a group that still exists on the hub that strands it with no host; deleting such a group is the group Settings tab's job (detach + hub delete together). It now shows only when the group is `stale` — present on the node, gone from the hub — which the page already computes for the "not on hub" badge. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_018gKJ85aZyvEwarXMFzFEwi --- packages/meshbay-hub/src/meshbay_hub/static/app.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'packages') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js index 9a0787b..703bd47 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js @@ -2868,11 +2868,18 @@ function NodePage({ token, username, userId, groups }) { `} -
- -
+ ${/* Only for a group the hub no longer knows: "Remove group" here + just drops it from this node's config. While the group still + exists on the hub that would strand it with no host — deleting + it is the group Settings tab's job, which detaches and deletes + together. */''} + ${stale && html` +
+ +
+ `} `; }); -- cgit v1.2.3