mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +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:
@@ -1,4 +1,4 @@
|
||||
import { ChevronRight, Copy, FileUp, Inbox, Loader2, Mail, RefreshCw } from 'lucide-react';
|
||||
import { Copy, FileUp, Inbox, Loader2, Mail, RefreshCw } from 'lucide-react';
|
||||
import { useRef, type ReactElement } from 'react';
|
||||
import { useTranslation } from '../../i18n';
|
||||
import { openMailInbox } from '../MailIngest/mailInboxOpener';
|
||||
@@ -31,7 +31,6 @@ export default function MailImportSection(): ReactElement | null {
|
||||
return (
|
||||
<Section
|
||||
id="mail-import"
|
||||
collapsible
|
||||
title={t('mailInbox.settings.title')}
|
||||
icon={Mail}
|
||||
badge={
|
||||
@@ -78,21 +77,14 @@ export default function MailImportSection(): ReactElement | null {
|
||||
</Tooltip>
|
||||
</div>
|
||||
<SettingsHint>{t('mailInbox.settings.addressHint')}</SettingsHint>
|
||||
<details className="group rounded-lg bg-surface-tertiary px-3 py-2 text-body text-content-secondary">
|
||||
<summary className="flex cursor-pointer list-none items-center gap-1.5 font-medium text-content">
|
||||
<ChevronRight
|
||||
size={14}
|
||||
strokeWidth={2}
|
||||
className="transition-transform group-open:rotate-90 rtl:-scale-x-100"
|
||||
/>
|
||||
{t('mailInbox.settings.howTo')}
|
||||
</summary>
|
||||
<div className="rounded-lg bg-surface-tertiary px-3 py-2 text-body text-content-secondary">
|
||||
<div className="font-medium text-content">{t('mailInbox.settings.howTo')}</div>
|
||||
<ul className="mt-2 flex list-disc flex-col gap-1.5 ps-5 text-caption">
|
||||
<li>{t('mailInbox.settings.howToGmail')}</li>
|
||||
<li>{t('mailInbox.settings.howToOutlook')}</li>
|
||||
<li>{t('mailInbox.settings.howToManual')}</li>
|
||||
</ul>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user