From 436aa6d01ea3a9d2a6cd5d04b284c48db6d6f90c Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Tue, 8 Sep 2026 03:09:59 +0200 Subject: feat(hub): name a group's host on its card, not its visibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "private" and "invite" were on every card because they are the default for every group on the hub — two badges that never varied and so never told anyone anything. Who hosts a group does vary, and it is the thing that tells two groups of the same name apart: the hub enforces name uniqueness per owner account, not globally. - The "My groups" cards (app.js) drop both badges and render the name through GroupName, which puts the owner beside it as a smaller "@handle" — the same way the group header and Explore already write it. "admin" stays; it varies. /v1/groups/mine already returns owner_username, so no API change. - Explore drops its join_policy badge for the same reason. An open group still announces itself through the Join button, which is the useful half, and its @host was already there. - .group-card h3 .gn-owner is set to 0.8em: a card's h3 is reset to 1em, so the 0.55em meant for a page heading rendered the handle at about half the body size — smaller than the name, as it should be, but past readable. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01V8EDjk6pkYZrCbo63m2x87 --- packages/meshbay-hub/src/meshbay_hub/static/explore-page.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/explore-page.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/explore-page.js b/packages/meshbay-hub/src/meshbay_hub/static/explore-page.js index 486c1e6..bb47487 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/explore-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/explore-page.js @@ -78,8 +78,11 @@ export function ExplorePage({ token, myGroupIds, allowPublicGroups = true }) { owner=${g.source && g.source !== 'local' ? g.source : g.owner_username} /> ${g.description && html`

${g.description}

`} - ${g.join_policy} - ${' '} + ${/* No join_policy badge: on a hub whose groups are all + invite-only it read "invite" on every card. An open + group still announces itself — with the Join button + below, which is the useful half. The @host is already + beside the name, via GroupName. */''} ${isMember(g.id) ? html`${t('explore.member')}` : g.join_policy === 'open' && html` -- cgit v1.2.3