From 0d89bc701a51a15e8740d906eecbe71e3fd17c69 Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 5 Jul 2026 20:13:07 +0000 Subject: [PATCH] onboarding: honest TLS badge, localized hero + nick hint, channel picker with suggestions --- public/config.json | 21 ++++++++++++++++----- src/components/ConnectScreen.tsx | 13 +++++++++---- src/core/config.ts | 10 ++++++---- src/core/i18n/locales/de.json | 7 ++++++- src/core/i18n/locales/en.json | 7 ++++++- src/core/i18n/locales/es.json | 7 ++++++- src/core/i18n/locales/fr.json | 7 ++++++- src/core/i18n/locales/it.json | 7 ++++++- src/core/i18n/locales/ne.json | 7 ++++++- src/core/i18n/locales/pt-BR.json | 7 ++++++- src/core/i18n/locales/pt-PT.json | 7 ++++++- src/core/i18n/locales/ru.json | 7 ++++++- src/core/i18n/locales/tr.json | 7 ++++++- src/index.css | 1 + 14 files changed, 92 insertions(+), 23 deletions(-) diff --git a/public/config.json b/public/config.json index e482e35..de4154b 100644 --- a/public/config.json +++ b/public/config.json @@ -4,15 +4,21 @@ "guestIdent": "Invité" }, "startup": { - "channels": ["#accueil"] + "channels": [ + "#accueil" + ], + "suggestions": [ + "#accueil", + "#taverne", + "#musique", + "#devs", + "#orbit" + ] }, "branding": { "name": "Tchatou", "icon": "https://tchatou.fr/static/img/favicon.svg", "url": "https://tchatou.fr", - "tagline": "Le tchat français,", - "taglineEm": "en direct.", - "subtitle": "Salons publics, messages privés, modération. Choisis un pseudo, ou crée un compte — et rejoins la conversation, avec toute la France.", "projectUrl": "https://orbit.tchatou.fr", "links": [], "accent": "" @@ -40,6 +46,11 @@ "linkPreviews": true, "multiNetwork": true }, - "plugins": ["/app/plugins/orbit-clock.js", "/app/plugins/orbit-copy.js", "/app/plugins/orbit-games.js", "/app/plugins/orbit-invite.js"], + "plugins": [ + "/app/plugins/orbit-clock.js", + "/app/plugins/orbit-copy.js", + "/app/plugins/orbit-games.js", + "/app/plugins/orbit-invite.js" + ], "builtins": [] } diff --git a/src/components/ConnectScreen.tsx b/src/components/ConnectScreen.tsx index 6a2dd85..74203f7 100644 --- a/src/components/ConnectScreen.tsx +++ b/src/components/ConnectScreen.tsx @@ -143,6 +143,7 @@ export function ConnectScreen() { raw.split(',').map((c) => c.trim()).filter(Boolean) .map((c) => (c.startsWith('#') || c.startsWith('&') ? c : `#${c}`)); const chan = parseChannels(chanField)[0] || cfg.startup.channels[0]; + const suggestions = cfg.startup.suggestions?.length ? cfg.startup.suggestions : cfg.startup.channels; const connecting = status === 'connecting'; const ready = nick.trim().length >= 2; @@ -169,10 +170,10 @@ export function ConnectScreen() {

- {cfg.branding.tagline}
- {cfg.branding.taglineEm} + {cfg.branding.tagline || t('connect.tagline')}
+ {cfg.branding.taglineEm || t('connect.taglineEm')}

-

{cfg.branding.subtitle}

+

{cfg.branding.subtitle || t('connect.subtitle')}

{ e.preventDefault(); go(); }}>
@@ -192,11 +193,15 @@ export function ConnectScreen() { {connecting ? : }
+

{t('connect.nickHint')}