mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
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:
@@ -2,6 +2,8 @@ import type { TranslationStrings } from '../types';
|
||||
|
||||
const admin: TranslationStrings = {
|
||||
'admin.notifications.title': 'Notifications',
|
||||
'admin.notifications.channels': 'Channels',
|
||||
'admin.notifications.adminAlerts': 'Admin alerts',
|
||||
'admin.notifications.hint': 'Choose one notification channel. Only one can be active at a time.',
|
||||
'admin.notifications.none': 'Disabled',
|
||||
'admin.notifications.email': 'Email (SMTP)',
|
||||
@@ -126,6 +128,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': 'Failed to create invite link',
|
||||
'admin.invite.deleteError': 'Failed to delete invite link',
|
||||
'admin.tabs.settings': 'Settings',
|
||||
'admin.tabs.security': 'Security',
|
||||
'admin.tabs.services': 'Services',
|
||||
'admin.allowRegistration': 'Allow Registration',
|
||||
'admin.allowRegistrationHint': 'New users can register themselves',
|
||||
'admin.authMethods': 'Authentication Methods',
|
||||
@@ -186,10 +190,8 @@ const admin: TranslationStrings = {
|
||||
'admin.trekApi.included': 'Included',
|
||||
'admin.trekApi.notIncluded': 'Not included',
|
||||
'admin.trekApi.quota.title': "Today's allowance",
|
||||
'admin.trekApi.quota.used': 'Used',
|
||||
'admin.trekApi.quota.remaining': 'Remaining',
|
||||
'admin.trekApi.quota.resets': 'Resets at',
|
||||
'admin.trekApi.quota.limit': 'Daily limit',
|
||||
'admin.trekApi.quota.key': 'Key',
|
||||
'admin.trekApi.quota.state.connected': 'Connected',
|
||||
'admin.trekApi.quota.state.registering': 'Setting up',
|
||||
@@ -311,8 +313,9 @@ const admin: TranslationStrings = {
|
||||
'admin.collab.whatsnext.title': "What's Next",
|
||||
'admin.collab.whatsnext.subtitle': 'Activity suggestions and next steps',
|
||||
'admin.tabs.config': 'Personalization',
|
||||
'admin.tabs.defaults': 'User Defaults',
|
||||
'admin.tabs.defaults': 'Defaults',
|
||||
'admin.defaultSettings.title': 'Default User Settings',
|
||||
'admin.defaultSettings.routing': 'Routing',
|
||||
'admin.defaultSettings.description':
|
||||
'Set instance-wide defaults. Users who have not changed a setting will see these values. Their own changes always take priority.',
|
||||
'admin.defaultSettings.saved': 'Default saved',
|
||||
@@ -770,16 +773,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'Addon updated',
|
||||
'admin.addons.toast.error': 'Failed to update addon',
|
||||
'admin.addons.group.count': '{enabled} of {total} enabled',
|
||||
'admin.addons.search': 'Search addons',
|
||||
'admin.addons.filter': 'Show',
|
||||
'admin.addons.filter.all': 'All',
|
||||
'admin.addons.filter.on': 'On',
|
||||
'admin.addons.filter.off': 'Off',
|
||||
'admin.addons.noMatch': 'No addon matches the search or the filter.',
|
||||
'admin.addons.subOptions': '{count} options',
|
||||
'admin.addons.subOptions.one': '{count} option',
|
||||
'admin.addons.subOptionsOn': '{count} on',
|
||||
'admin.addons.subOptionsOn.one': '{count} on',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle': 'Users can connect their own wanderer instance and import its trails as tours',
|
||||
'admin.toursHikingMap.title': 'Hiking map (OpenHikingMap)',
|
||||
@@ -804,7 +797,7 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.requestsDesc': 'Free, no API key required',
|
||||
'admin.weather.locationHint':
|
||||
'Weather is based on the first place with coordinates in each day. If no place is assigned to a day, any place from the place list is used as a reference.',
|
||||
'admin.tabs.mcpTokens': 'MCP Access',
|
||||
'admin.tabs.mcpTokens': 'MCP',
|
||||
'admin.mcpTokens.title': 'MCP Access',
|
||||
'admin.mcpTokens.subtitle': 'Manage OAuth sessions and API tokens across all users',
|
||||
'admin.mcpTokens.sectionTitle': 'API Tokens',
|
||||
@@ -904,7 +897,6 @@ const admin: TranslationStrings = {
|
||||
'admin.passkey.resetDone.one': 'Removed {count} passkey',
|
||||
'admin.group.users': 'Users',
|
||||
'admin.group.config': 'Configuration',
|
||||
'admin.group.integration': 'Integrations',
|
||||
'admin.group.maintenance': 'Maintenance',
|
||||
'admin.invite.tripLabel': 'Add to trip (optional)',
|
||||
'admin.invite.tripNone': 'No trip',
|
||||
|
||||
Reference in New Issue
Block a user