feat(settings): one look for every user and admin settings page

The settings pages had grown into a mix of styles: folds, dialogs behind
rows, full-width rows next to boxed ones, pills for every figure and buttons
in four sizes. Every page now uses the same kit.

- Cards keep their tinted head band; every part of a card is a rounded block
  with its own small head (SettingsBlock), and rows sit in rounded boxes.
- Nothing folds and nothing hides behind a dialog: the MCP config, OAuth
  scopes, mail how-to, AI privacy note and addon sub-options are all shown.
- Each page is split into two columns balanced by length (SettingsColumns).
- Long explanations moved into an info mark next to the label (HintMark).
- One button size everywhere (text-control); tab names are one word.
- Admin: the old Settings tab is split into Security and Services
  (?tab=settings still opens Security, and the phone keeps its single
  Settings section for both); the Integration group is gone, live flights
  and mail import sit next to the addons they configure.
- Addons: one card per type with rows, no search, filter or fold.
- Quota, TREK API facts, mail import status and Google's daily limit are
  compact lines and strips instead of tiles and pills.
- Language is a select; routing has its own card under the defaults;
  storage saves from the foot of its categories card.
- Unused keys, FoldSummary and the page-width wrapper are removed.
This commit is contained in:
Maurice
2026-11-13 23:18:28 +01:00
parent 5fe3dea4cc
commit 94ac7673a5
138 changed files with 1299 additions and 2188 deletions
+7 -17
View File
@@ -2,6 +2,8 @@ import type { TranslationStrings } from '../types';
const admin: TranslationStrings = {
'admin.notifications.title': 'Oznámení',
'admin.notifications.channels': 'Kanály',
'admin.notifications.adminAlerts': 'Upozornění pro správce',
'admin.notifications.hint': 'Vyberte kanál oznámení. Současně může být aktivní pouze jeden.',
'admin.notifications.none': 'Vypnuto',
'admin.notifications.email': 'E-mail (SMTP)',
@@ -78,6 +80,8 @@ const admin: TranslationStrings = {
'admin.invite.createError': 'Nepodařilo se vytvořit pozvánku',
'admin.invite.deleteError': 'Nepodařilo se smazat pozvánku',
'admin.tabs.settings': 'Nastavení',
'admin.tabs.security': 'Zabezpečení',
'admin.tabs.services': 'Služby',
'admin.allowRegistration': 'Povolit registraci',
'admin.allowRegistrationHint': 'Noví uživatelé se mohou sami registrovat',
'admin.authMethods': 'Metody ověřování',
@@ -136,10 +140,8 @@ const admin: TranslationStrings = {
'admin.trekApi.included': 'Obsahuje',
'admin.trekApi.notIncluded': 'Neobsahuje',
'admin.trekApi.quota.title': 'Dnešní limit',
'admin.trekApi.quota.used': 'Využito',
'admin.trekApi.quota.remaining': 'Zbývá',
'admin.trekApi.quota.resets': 'Obnoví se v',
'admin.trekApi.quota.limit': 'Denní limit',
'admin.trekApi.quota.key': 'Klíč',
'admin.trekApi.quota.state.connected': 'Připojeno',
'admin.trekApi.quota.state.registering': 'Nastavuje se',
@@ -262,8 +264,9 @@ const admin: TranslationStrings = {
'admin.collab.whatsnext.title': 'Co dál',
'admin.collab.whatsnext.subtitle': 'Návrhy aktivit a další kroky',
'admin.tabs.config': 'Personalizace',
'admin.tabs.defaults': 'Výchozí nastavení uživatele',
'admin.tabs.defaults': 'Výchozí',
'admin.defaultSettings.title': 'Výchozí nastavení uživatele',
'admin.defaultSettings.routing': 'Trasy',
'admin.defaultSettings.description':
'Nastavte výchozí hodnoty pro celou instanci. Uživatelé, kteří nezměnili nastavení, uvidí tyto hodnoty. Jejich vlastní změny mají vždy přednost.',
'admin.defaultSettings.saved': 'Výchozí nastavení uloženo',
@@ -717,18 +720,6 @@ const admin: TranslationStrings = {
'admin.addons.toast.updated': 'Doplněk byl aktualizován',
'admin.addons.toast.error': 'Aktualizace doplňku se nezdařila',
'admin.addons.group.count': '{enabled} z {total} zapnuto',
'admin.addons.search': 'Hledat doplňky',
'admin.addons.filter': 'Zobrazit',
'admin.addons.filter.all': 'Vše',
'admin.addons.filter.on': 'Zapnuté',
'admin.addons.filter.off': 'Vypnuté',
'admin.addons.noMatch': 'Hledání ani filtru neodpovídá žádný doplněk.',
'admin.addons.subOptions': '{count} možností',
'admin.addons.subOptions.one': '{count} možnost',
'admin.addons.subOptions.few': '{count} možnosti',
'admin.addons.subOptionsOn': 'zapnuto: {count}',
'admin.addons.subOptionsOn.one': 'zapnuto: {count}',
'admin.addons.subOptionsOn.few': 'zapnuto: {count}',
'admin.toursWanderer.title': 'wanderer',
'admin.toursWanderer.subtitle':
'Uživatelé mohou připojit vlastní instanci wanderer a importovat z ní trasy jako výlety',
@@ -760,7 +751,7 @@ const admin: TranslationStrings = {
'admin.audit.col.resource': 'Zdroj',
'admin.audit.col.ip': 'IP',
'admin.audit.col.details': 'Detaily',
'admin.tabs.mcpTokens': 'MCP přístup',
'admin.tabs.mcpTokens': 'MCP',
'admin.mcpTokens.title': 'MCP přístup',
'admin.mcpTokens.subtitle': 'Správa OAuth relací a API tokenů všech uživatelů',
'admin.mcpTokens.sectionTitle': 'API tokeny',
@@ -928,7 +919,6 @@ const admin: TranslationStrings = {
'Použije se pro každého uživatele, který nezadal vlastní klíč, takže celá instance získá dlaždice CARTO bez vodoznaku. Ukládá se šifrovaně.',
'admin.group.users': 'Uživatelé',
'admin.group.config': 'Konfigurace',
'admin.group.integration': 'Integrace',
'admin.group.maintenance': 'Údržba',
'admin.invite.tripLabel': 'Přidat k cestě (volitelné)',
'admin.invite.tripNone': 'Žádná cesta',
-1
View File
@@ -39,7 +39,6 @@ const mailAdmin: TranslationStrings = {
'mailAdmin.problem.portInvalid': 'Zadej port mezi 1 a 65535.',
'mailAdmin.problem.templateToken': 'Adresa musí obsahovat {token} pro kód každého uživatele.',
'mailAdmin.problem.dailyInvalid': 'Zadej celé číslo od 0 do 1000.',
'mailAdmin.status.title': 'Stav',
'mailAdmin.status.lastRead': 'Naposledy přečteno {time}',
'mailAdmin.status.never': 'nikdy',
'mailAdmin.status.mails': 'E-maily, 24 h',