aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-01 15:18:27 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-01 15:30:53 +0200
commit5c25e5a4f42f2eb05c525a284cd584786324b6e1 (patch)
treeb35204251e3a4458236c151bcaf7f9e77f8bf7ee /packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
parentb83803a91753b38435eb4d3be2e683daae9b4de9 (diff)
downloadmeshbay-5c25e5a4f42f2eb05c525a284cd584786324b6e1.tar.gz
fix(hub): adjust no-group prompt and post-create wizard step
No-group home/explore message: when the hub offers no public groups, drop the "browse public groups" invitation and just ask to be invited by an admin. New home.invite_only key added to all ten catalogues. Create-group wizard done step: reword the message to point at inviting members, and send the button to the group's Settings tab (where the invite form lives) instead of a stale /groups/<id> path that never matched the router. The landing tab is a one-shot session hint, so the usual per-user default-tab preference is left untouched. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QNPfgH6VWcRzJDZGuzy1jJ
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js b/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
index b23b504..d86521f 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
@@ -507,7 +507,13 @@ function CreateGroupWizard({ token, username, onCreated, allowPublicGroups = tru
<h2>${t('wizard.done_title')}</h2>
<p class="page-message">${t('wizard.done_message')}</p>
<button class="btn btn-primary" style="margin-top:16px"
- onClick=${() => navigate(`/groups/${groupId}`)}>
+ onClick=${() => {
+ // Land on the group's Settings tab this once — that is where the invite
+ // form is. GroupPage consumes this without disturbing the user's own
+ // default-tab preference for later visits.
+ session.openGroupTab = { groupId, tab: 'settings' };
+ navigate(`/group/${groupId}`);
+ }}>
${t('wizard.go_to_group')}</button>
</div>`;
}