The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): correct typo in "diagnostics" label
Steven Enamakelce913f367337
diff --git a/app/src/components/settings/panels/AboutPanel.tsx b/app/src/components/settings/panels/AboutPanel.tsxindex a1a503656b..bcc279a8b8 100644--- a/app/src/components/settings/panels/AboutPanel.tsx+++ b/app/src/components/settings/panels/AboutPanel.tsx@@ -7,6 +7,7 @@* here would race with that component's own state machine.*/import { invoke } from '@tauri-apps/api/core';+import { ExternalLink, RefreshCw } from 'lucide-react';import { useEffect, useState } from 'react';import { GitHubStarCard } from '../../../features/star/GitHubStarCard';@@ -16,8 +17,7 @@ import { useAppSelector } from '../../../store/hooks';import { APP_VERSION, LATEST_APP_DOWNLOAD_URL } from '../../../utils/config';import { isTauriEnvironment } from '../../../utils/configPersistence';import { openUrl } from '../../../utils/openUrl';-import Button from '../../ui/Button';-import { SettingsRow, SettingsSection } from '../controls';+import { Badge, Button, Card, Field } from '../../ui';import SettingsPanel from '../layout/SettingsPanel';import SystemDiagnostics from './SystemDiagnostics';@@ -66,101 +66,110 @@ const AboutPanel = () => {if (result !== null) setLastCheckedAt(new Date());};+ const updateAvailable = Boolean(info?.available && info.available_version);+ const modeLabel =+ coreMode.kind === 'local'+ ? t('settings.about.connectionModeLocal')+ : coreMode.kind === 'cloud'+ ? t('settings.about.connectionModeCloud')+ : t('settings.about.connectionModeUnset');+return (- <SettingsPanel description={t('settings.aboutDesc')}>- {/* Version + updates: one card. They were two stacked cards that both- described the running build. */}- <SettingsSection>- <SettingsRow- label={t('settings.about.version')}- description={summary}- control={- <Button- type="button"- variant="secondary"- size="sm"- onClick={handleCheck}- disabled={isChecking}- data-testid="about-check-updates">- {isChecking ? t('settings.about.checking') : t('settings.about.checkForUpdates')}- </Button>- }- />- <div className="flex items-baseline gap-2 px-4 pb-3 -mt-2">- <span className="text-lg font-semibold text-content">v{APP_VERSION}</span>- {info?.available && info.available_version && (- <span className="text-xs text-primary-500">- v{info.available_version} {t('settings.about.updateAvailable')}- </span>- )}- </div>- {lastCheckedAt && (- <div className="px-4 py-3 text-[11px] text-content-faint">- {t('settings.about.lastChecked')} {formatRelative(lastCheckedAt, t)}+ <SettingsPanel testId="about-panel" description={t('settings.aboutDesc')}>+ {/* ── The app: name, version, update status ───────────────────────── */}+ <Card padded data-testid="about-version">+ <div className="flex flex-col gap-4 sm:flex-row sm:items-center">+ <img src="/logo.png" alt="" className="h-14 w-14 shrink-0 rounded-2xl" />+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-2">+ <span className="font-title text-lg font-semibold text-content">OpenHuman</span>+ <Badge variant="neutral" data-testid="about-version-badge">+ v{APP_VERSION}+ </Badge>+ {updateAvailable && (+ <Badge variant="primary">+ v{info?.available_version} {t('settings.about.updateAvailable')}+ </Badge>+ )}+ </div>+ <p className="mt-1 text-xs text-content-muted">+ {summary}+ {lastCheckedAt && (+ <span className="text-content-faint">+ {' · '}+ {t('settings.about.lastChecked')} {formatRelative(lastCheckedAt, t)}+ </span>+ )}+ </p></div>- )}- </SettingsSection>+ <Button+ type="button"+ variant="secondary"+ size="sm"+ leadingIcon={+ <RefreshCw+ className={`h-3.5 w-3.5 ${isChecking ? 'animate-spin' : ''}`}+ aria-hidden+ />+ }+ onClick={handleCheck}+ disabled={isChecking}+ data-testid="about-check-updates"+ className="shrink-0">+ {isChecking ? t('settings.about.checking') : t('settings.about.checkForUpdates')}+ </Button>+ </div>+ </Card>- {/* Connection */}- <SettingsSection title={t('settings.about.connection')}>- <SettingsRow+ {/* ── Where the UI talks to the core ─────────────────────────────── */}+ <Card+ title={t('settings.about.connection')}+ description={+ coreMode.kind === 'cloud'+ ? t('settings.about.connectionHelperCloud')+ : t('settings.about.connectionHelperLocal')+ }>+ <Fieldlabel={t('settings.about.connectionMode')}- control={- <span className="text-xs font-medium text-content">- {coreMode.kind === 'local'- ? t('settings.about.connectionModeLocal')- : coreMode.kind === 'cloud'- ? t('settings.about.connectionModeCloud')- : t('settings.about.connectionModeUnset')}- </span>- }+ control={<Badge variant="neutral">{modeLabel}</Badge>}/>- <SettingsRow+ <Fieldlabel={t('settings.about.serverUrl')}control={<span- className="text-xs font-mono text-content truncate max-w-[200px]"+ className="block max-w-[260px] truncate font-mono text-xs text-content"title={rpcUrl ?? undefined}>{rpcUrl ?? t('settings.about.serverUrlUnavailable')}</span>}/>- <div className="px-4 py-3">- <p className="text-[11px] text-content-muted leading-relaxed">- {coreMode.kind === 'cloud'- ? t('settings.about.connectionHelperCloud')- : t('settings.about.connectionHelperLocal')}- </p>- </div>- </SettingsSection>-- {/* Releases */}- <SettingsSection>- <div className="px-4 py-3 space-y-2">- <div className="text-sm font-medium text-content">{t('settings.about.releases')}</div>- <p className="text-xs text-content-muted leading-relaxed">- {t('settings.about.releasesDesc')}- </p>- <Button- type="button"- variant="secondary"- size="xs"- onClick={() => {- void openUrl(LATEST_APP_DOWNLOAD_URL);- }}>- {t('settings.about.openReleases')}- </Button>- </div>- </SettingsSection>+ </Card>- {/* Star us on GitHub — a subtle, dismissible CTA (#5005). The card owns- its own surface styling and renders nothing once the user stars or- dismisses it (durable, per-user), so it is not wrapped in a- SettingsSection that would leave a hollow box behind. */}- <GitHubStarCard />+ {/* ── Links out ──────────────────────────────────────────────────── */}+ <Card title={t('settings.about.resources')}>+ <Field+ label={t('settings.about.releases')}+ description={t('settings.about.releasesDesc')}+ control={+ <Button+ type="button"+ variant="secondary"+ size="sm"+ trailingIcon={<ExternalLink className="h-3.5 w-3.5" aria-hidden />}+ onClick={() => {+ void openUrl(LATEST_APP_DOWNLOAD_URL);+ }}>+ {t('settings.about.openReleases')}+ </Button>+ }+ />+ {/* Star us on GitHub (#5005): a row, not a banner. Renders nothing once+ the user stars or dismisses it (durable, per-user). */}+ <GitHubStarCard />+ </Card>{/* Diagnostics (app logs, restart tour, staging Sentry test) —- relocated here from the retired Developer & Diagnostics page. */}+ relocated here from the retired Developer & Diagnostics page. */}<SystemDiagnostics /></SettingsPanel>);diff --git a/app/src/components/settings/panels/SystemDiagnostics.tsx b/app/src/components/settings/panels/SystemDiagnostics.tsxindex 5508182ea8..63cc7f2786 100644--- a/app/src/components/settings/panels/SystemDiagnostics.tsx+++ b/app/src/components/settings/panels/SystemDiagnostics.tsx@@ -18,6 +18,7 @@ import { safeInvoke as invoke, isTauri } from '../../../utils/tauriCommands/commimport Alert from '../../ui/Alert';import Button from '../../ui/Button';import Card from '../../ui/Card';+import Field from '../../ui/Field';import { resetWalkthrough } from '../../walkthrough/AppWalkthrough';const LogsFolderRow = () => {@@ -44,28 +45,25 @@ const LogsFolderRow = () => {if (!isTauri()) return null;return (- <Card className="px-4 py-3">- <div className="flex items-center justify-between gap-3">- <div className="min-w-0">- <div className="text-sm font-semibold text-content">{t('devOptions.appLogs')}</div>- <div className="mt-0.5 text-xs text-content-secondary">{t('devOptions.appLogsDesc')}</div>- {path && (- <div className="mt-1 truncate font-mono text-[11px] text-content-muted">{path}</div>- )}- </div>- <Button variant="secondary" size="sm" onClick={onClick} className="shrink-0">- {t('devOptions.openLogsFolder')}- </Button>- </div>+ <div>+ <Field+ label={t('devOptions.appLogs')}+ description={path ?? t('devOptions.appLogsDesc')}+ control={+ <Button variant="secondary" size="sm" onClick={onClick}>+ {t('devOptions.openLogsFolder')}+ </Button>+ }+ />{error && (<divrole="status"aria-live="polite"- className="mt-2 text-xs text-coral-600 dark:text-coral-300">+ className="px-4 pb-3 text-xs text-coral-600 dark:text-coral-300">{error}</div>)}- </Card>+ </div>);};@@ -137,19 +135,15 @@ const RestartTourRow = () => {};return (- <Card className="px-4 py-3">- <div className="flex items-center justify-between gap-3">- <div className="min-w-0">- <div className="text-sm font-semibold text-content">{t('settings.restartTour')}</div>- <div className="mt-0.5 text-xs text-content-secondary">- {t('settings.restartTourDesc')}- </div>- </div>- <Button variant="secondary" size="sm" onClick={onClick} className="shrink-0">+ <Field+ label={t('settings.restartTour')}+ description={t('settings.restartTourDesc')}+ control={+ <Button variant="secondary" size="sm" onClick={onClick}>{t('settings.restartTour')}</Button>- </div>- </Card>+ }+ />);};@@ -159,16 +153,14 @@ const SystemDiagnostics = () => {const showSentryTest = APP_ENVIRONMENT === 'staging';return (- <div>- <h3 className="px-1 pb-2 text-sm font-medium text-content">- {t('devOptions.titleDiagnostics')}- </h3>- <div className="space-y-3">+ <>+ <Card title={t('devOptions.titleDiagnostics')} data-testid="about-diagnostics"><LogsFolderRow />- {showSentryTest && <SentryTestRow />}<RestartTourRow />- </div>- </div>+ </Card>+ {/* Staging-only, and loud on purpose: it sends a real event. */}+ {showSentryTest && <SentryTestRow />}+ </>);};diff --git a/app/src/features/star/GitHubStarCard.tsx b/app/src/features/star/GitHubStarCard.tsxindex 3eb5310f6e..8d603056c0 100644--- a/app/src/features/star/GitHubStarCard.tsx+++ b/app/src/features/star/GitHubStarCard.tsx@@ -12,10 +12,11 @@* `openUrl` helper (never `window.open` directly) so it works on macOS,* Windows, and Linux via `tauri-plugin-opener`.*/+import { Star } from 'lucide-react';import { useCallback } from 'react';import { trackAnalyticsEvent } from '../../components/analytics';-import Button from '../../components/ui/Button';+import { Button, Field } from '../../components/ui';import { useT } from '../../lib/i18n/I18nContext';import { dismissGithubStarCta } from '../../store/githubStarSlice';import { useAppDispatch, useAppSelector } from '../../store/hooks';@@ -49,41 +50,33 @@ export function GitHubStarCard() {// Durable dismissal: once handled, never render again.if (dismissed) return null;+ // A row inside About's Resources card (a `Field`), not a banner of its own.return (- <div+ <Fielddata-testid="github-star-cta"- className="px-4 py-3 space-y-2 rounded-xl border border-primary-500/30 bg-primary-500/5">- <div className="flex items-start gap-2">- <span aria-hidden="true" className="text-lg leading-none">- ⭐- </span>- <div className="space-y-1">- <div className="text-sm font-medium text-content">- {t('settings.about.starCta.title')}- </div>- <p className="text-xs text-content-muted leading-relaxed">- {t('settings.about.starCta.body')}- </p>+ label={t('settings.about.starCta.title')}+ description={t('settings.about.starCta.body')}+ control={+ <div className="flex items-center gap-1.5">+ <Button+ type="button"+ variant="tertiary"+ size="sm"+ analyticsId="github_star_cta_dismissed"+ onClick={handleDismiss}>+ {t('settings.about.starCta.dismiss')}+ </Button>+ <Button+ type="button"+ variant="secondary"+ size="sm"+ leadingIcon={<Star className="h-3.5 w-3.5" aria-hidden />}+ analyticsId="github_star_cta_clicked"+ onClick={handleStar}>+ {t('settings.about.starCta.star')}+ </Button></div>- </div>- <div className="flex flex-wrap gap-2">- <Button- type="button"- variant="primary"- size="xs"- analyticsId="github_star_cta_clicked"- onClick={handleStar}>- {t('settings.about.starCta.star')}- </Button>- <Button- type="button"- variant="tertiary"- size="xs"- analyticsId="github_star_cta_dismissed"- onClick={handleDismiss}>- {t('settings.about.starCta.dismiss')}- </Button>- </div>- </div>+ }+ />);}diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 471ff60d60..4cf2ba6515 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -1551,6 +1551,7 @@ const en: TranslationMap = {'settings.about.checking': 'Checking...','settings.about.checkForUpdates': 'Check for updates','settings.about.releases': 'Releases',+ 'settings.about.resources': 'Resources','settings.about.releasesDesc': 'Browse release notes and earlier builds on GitHub.','settings.about.openReleases': 'Open GitHub releases','settings.about.starCta.title': 'Enjoying OpenHuman?',