From cebe64d6c14256a31247987bcafbce1a2bf2d8ba Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sun, 30 Aug 2026 22:53:00 +0200 Subject: fix(ui): use toggle switches in Settings page, trim verbose hints Replace checkboxes with the existing toggle-switch component for notifications, keep-screen-on, and allow-public-groups. Remove the "Notifications" label from per-group lines, and shorten the music-keep-screen-on and hub-URL hints. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-hub/src/meshbay_hub/static/app.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js index 268ec3f..611cb27 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js @@ -1733,9 +1733,10 @@ function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange }) {

${t('settings.groups')}

${t('settings.notif_global_disable')} -
${!globalMute && html` @@ -1743,10 +1744,10 @@ function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange }) { ${groups.map(g => html`
${g.name} -
`)} @@ -1766,9 +1767,10 @@ function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange }) {

${t('settings.default_tab_hint')}

${t('settings.music_keep_screen_on')} -

${t('settings.music_keep_screen_on_hint')}

@@ -2005,10 +2007,11 @@ function AdminPage({ token, role }) {

${t('admin.general_groups_heading')}

${t('admin.allow_public_groups_label')} -

${t('admin.allow_public_groups_hint')}

-- cgit v1.2.3