From 0b2634a20febbfe6d05e9b588093adcfbf13cab6 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Mon, 5 Oct 2026 10:39:50 +0200 Subject: feat: move the desktop client's Hub section from Settings to Profile The hub address is where the person's account lives, so it sits with the account: on the Profile page, after Sessions and before deleting the account. Settings keeps "Keys on this device", which describes the machine. The hint now says what the setting is: the hub this application connects to, and that changing it signs you out while the account stays on that hub. Co-Authored-By: Claude Opus 5.5 --- .../src/meshbay_hub/static/settings-page.js | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/settings-page.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js b/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js index 9a52059..8755556 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js @@ -131,8 +131,6 @@ export function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange // Changing the hub after the first run. Without this a typo on the first // screen was permanent: the prompt only appears when no hub is set, so a // wrong one left editing a JSON file by hand as the only way out. - const [hubInput, setHubInput] = useState(''); - const [hubError, setHubError] = useState(''); useEffect(() => { if (!platform.secrets.available) return; platform.secrets.backend().then(setKeyBackend).catch(() => {}); @@ -287,29 +285,6 @@ export function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange

${t('settings.music_keep_screen_on_hint')}

- ${platform.isNative && html` -
-

${t('settings.hub_heading')}

-
- ${t('settings.hub_current')} - ${platform.hubBase() || '—'} -
-

${t('settings.hub_hint')}

-
{ - e.preventDefault(); - setHubError(''); - try { - await window.meshbay.setHubBase(hubInput.trim()); - } catch (err) { setHubError(platform.bridgeMessage(err)); } - }} style="display:flex;gap:8px"> - setHubInput(e.target.value)} /> - -
- ${hubError && html`

${hubError}

`} -
- `} - ${keyBackend && html`

${t('settings.keys_heading')}

-- cgit v1.2.3