feat(ui): name icon buttons and keep keyboard focus visible

- InfoTip: name is "More info about <subject>" (subject prop, else title,
  else the label text right before it); plain "More info" stays the fallback.
- Button: an icon-only button with a title now uses it as its aria-label.
- Files: toolbar toggles and view buttons get aria-pressed; row actions and
  the row checkbox name the file ("Rename config.yml", "Select: config.yml");
  select-all, Up, sidebar Refresh/New folder named.
- Log viewer: line-number/word-wrap toggles use aria-pressed; search and
  filter inputs (Terminal page) get accessible names.
- Overflow/icon-only menus say "More actions" or their action (SSL,
  Webhooks, Vaults, API settings, fleet thresholds, status pages).
- Focus: Terminal unit input and Servers group-name input keep the global
  ring; page tab strip rings pulled inside its overflow clip; $focus-ring is
  now solid accent instead of a 35% tint.
- i18n: common.moreInfoAbout, common.actionTarget, common.moreActions,
  app.fileManager.up in all locales; drop unused app.fileRow.deselect.
This commit is contained in:
Juan Denis committed 2026-11-10 22:25:23 -05:00
1 parent e142619155
commit cc230a111a
39 files changed
+185 -44

No files matched your search

+13 -4
View File
@@ -1,9 +1,10 @@
import { useRef, useState } from 'react';
import { useLayoutEffect, useRef, useState } from 'react';
import { Info } from 'lucide-react';
import { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover';
import { Sheet, SheetTrigger, SheetContent, SheetTitle } from '@/components/ui/sheet';
import useMediaQuery from '../hooks/useMediaQuery';
import { t } from '../i18n/t';
import { infoTipName, nearbyText } from './infoTipName';
// An (i) button that holds the explanation a page used to print inline.
// Mouse: hover/focus previews it. Touch and click toggle a pinned popover that
@@ -15,11 +16,18 @@ import { t } from '../i18n/t';
// the same element (separate it with a plain space, or let the flex gap do it),
// never on its own line. Standard: ~4px after the text, centred on that line.
// `trigger` replaces the (i) glyph (e.g. a whole step pill); `title` heads the sheet.
export default function InfoTip({ children, label, title, trigger, side = 'top', size = 'sm', className = '' }) {
// The button is named "More info about <subject>": `subject`, else `title`, else
// the text right before it. `label` overrides the whole name.
export default function InfoTip({ children, label, subject, title, trigger, side = 'top', size = 'sm', className = '' }) {
const [open, setOpen] = useState(false);
const narrow = useMediaQuery('(max-width: 640px)');
const pinned = useRef(false);
const pinnedByKey = useRef(false);
const buttonRef = useRef(null);
const [nearby, setNearby] = useState('');
// narrow swaps Popover for Sheet, which remounts the button.
useLayoutEffect(() => { setNearby(nearbyText(buttonRef.current)); }, [narrow, subject, title, label]);
const name = infoTipName({ label, subject, title, nearby }, t);
const hoverable = (e) => e.pointerType === 'mouse';
// preventDefault skips Radix's toggle (it honours defaultPrevented); Space
@@ -47,9 +55,10 @@ export default function InfoTip({ children, label, title, trigger, side = 'top',
const button = (
// eslint-disable-next-line no-restricted-syntax -- bare 18px glyph button; Button/IconButton add control-sized chrome and a nested Tip
<button
ref={buttonRef}
type="button"
className={(trigger ? className : `info-tip info-tip--${size} ${className}`).trim()}
aria-label={trigger ? label : (label || t('common.moreInfo', 'More info'))}
aria-label={trigger ? label : name}
onClick={stop}
onKeyDown={onKeyDown}
onKeyUp={onKeyUp}
@@ -75,7 +84,7 @@ export default function InfoTip({ children, label, title, trigger, side = 'top',
onCloseAutoFocus={noFocus}
onClick={stop}
>
<SheetTitle className="info-tip__sheet-title">{title || label || t('common.moreInfo', 'More info')}</SheetTitle>
<SheetTitle className="info-tip__sheet-title">{title || label || name}</SheetTitle>
<div className="info-tip__sheet-body">{children}</div>
</SheetContent>
</Sheet>
+1 -1
View File
@@ -34,7 +34,7 @@ export function LogViewer({
<div className="sidebar-header">
<h3>{t('app.logViewer.logFiles', 'Log files')}</h3>
{onRefreshFiles && (
<Button variant="outline" size="sm" onClick={onRefreshFiles}>
<Button variant="outline" size="sm" onClick={onRefreshFiles} aria-label={t('common.actions.refresh', 'Refresh')}>
<RefreshCw size={14} />
</Button>
)}
@@ -0,0 +1,41 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { readFileSync } from 'node:fs';
import { infoTipName, nearbyText } from '../infoTipName.js';
// Same interpolation as i18next, minus the dependency on an initialised instance.
const t = (_key, fallback, vars = {}) => fallback.replace(/\{\{(\w+)\}\}/g, (_, k) => vars[k]);
test('InfoTip is named after what it explains', () => {
assert.equal(infoTipName({ subject: 'Server group' }, t), 'More info about Server group');
assert.equal(infoTipName({ title: 'Retention' }, t), 'More info about Retention');
assert.equal(infoTipName({ nearby: 'Auto-renew' }, t), 'More info about Auto-renew');
});
test('InfoTip subject beats title beats nearby text; label overrides all; plain fallback', () => {
assert.equal(infoTipName({ subject: 'A', title: 'B', nearby: 'C' }, t), 'More info about A');
assert.equal(infoTipName({ title: 'B', nearby: 'C' }, t), 'More info about B');
assert.equal(infoTipName({ label: 'Why?', subject: 'A' }, t), 'Why?');
assert.equal(infoTipName({ title: { type: 'span' }, nearby: ' ' }, t), 'More info');
});
test('nearbyText reads the label printed before the button, trimmed', () => {
const el = { previousSibling: { textContent: ' ', previousSibling: { textContent: ' Cert expiry ' } } };
assert.equal(nearbyText(el), 'Cert expiry');
const control = { nodeType: 1, matches: () => true, textContent: 'Preview routing' };
assert.equal(nearbyText({ previousSibling: control }), '');
assert.equal(nearbyText({ previousSibling: null }), '');
});
// No jsdom: guard the wiring of the Files toolbar toggle and the file rows.
test('Files toolbar toggles expose aria-pressed; Button names icon-only controls from title', () => {
const toolbar = readFileSync(new URL('../file-manager/FileManagerToolbar.jsx', import.meta.url), 'utf8');
assert.match(toolbar, /aria-pressed=\{viewMode === 'grid'\}/);
assert.match(toolbar, /aria-pressed=\{showHidden\}/);
const row = readFileSync(new URL('../file-manager/FileRow.jsx', import.meta.url), 'utf8');
assert.match(row, /aria-pressed=\{selected\}/);
assert.match(row, /aria-label=\{named\(/);
const button = readFileSync(new URL('../ui/button.jsx', import.meta.url), 'utf8');
assert.match(button, /aria-label=\{title && \(reasoned \|\| !hasText\(children\)\) \? title : undefined\}/);
});
@@ -119,6 +119,8 @@ export default function FileManagerListing({
variant="unstyled"
type="button"
className="checkbox-btn"
aria-label={t('app.dataTable.selectAll', 'Select all')}
aria-pressed={selectedPaths.size === sortedFiltered.length && sortedFiltered.length > 0}
onClick={() => {
if (selectedPaths.size === sortedFiltered.length)
clearSelection();
@@ -115,6 +115,7 @@ export default function FileManagerSidebar({
onClick={loadDiskMounts}
disabled={diskLoading}
title={t('common.actions.refresh', 'Refresh')}
aria-label={t('common.actions.refresh', 'Refresh')}
>
<RefreshCw size={12} className={diskLoading ? 'spinning' : ''} />
</Button>
@@ -105,7 +105,7 @@ export default function FileManagerToolbar({
onClick={goUp}
disabled={!parentPath}
disabledReason={t('app.fileManager.alreadyAtTheTopFolder', 'Already at the top folder')}
title="Up"
title={t('app.fileManager.up', 'Up')}
>
<ArrowUp size={14} />
</Button>
@@ -227,6 +227,7 @@ export default function FileManagerToolbar({
type="button"
className={`view-toggle-btn ${viewMode === 'grid' ? 'active' : ''}`}
onClick={() => setViewMode('grid')}
aria-pressed={viewMode === 'grid'}
title={t('app.fileManager.gridView', 'Grid view')}
>
<LayoutGrid size={14} />
@@ -236,6 +237,7 @@ export default function FileManagerToolbar({
type="button"
className={`view-toggle-btn ${viewMode === 'list' ? 'active' : ''}`}
onClick={() => setViewMode('list')}
aria-pressed={viewMode === 'list'}
title={t('app.fileManager.listView', 'List view')}
>
<List size={14} />
@@ -246,6 +248,7 @@ export default function FileManagerToolbar({
type="button"
className={`toolbar-icon-btn ${showHidden ? 'active' : ''}`}
onClick={() => setShowHidden(!showHidden)}
aria-pressed={showHidden}
title={t('app.fileManager.toggleHiddenFiles', 'Toggle hidden files')}
>
{showHidden ? <Eye size={14} /> : <EyeOff size={14} />}
@@ -18,6 +18,7 @@ function FileRow({
onDelete,
}) {
const { t } = useTranslation();
const named = (action) => t('common.actionTarget', '{{action}}: {{subject}}', { action, subject: entry.name });
return (
<div
className={`file-item ${selected ? 'selected' : ''} ${selectMode ? 'select-mode' : ''}`}
@@ -38,7 +39,8 @@ function FileRow({
<SharedButton variant="unstyled" type="button"
className="checkbox-btn"
onClick={(e) => onToggleSelect(entry, { ...e, ctrlKey: true })}
aria-label={selected ? t('app.fileRow.deselect', 'Deselect') : t('app.fileRow.select', 'Select')}
aria-label={t('common.actionTarget', '{{action}}: {{subject}}', { action: t('app.fileRow.select', 'Select'), subject: entry.name })}
aria-pressed={selected}
>
<span className={`checkbox ${selected ? 'checked' : ''}`}>
{selected && <Check size={12} />}
@@ -58,17 +60,17 @@ function FileRow({
<span className="col-owner">{entry.owner}</span>
<span className="col-actions" onClick={(e) => e.stopPropagation()}>
{!entry.is_dir && (
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onDownload(entry)} title={t('common.actions.download', 'Download')}>
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onDownload(entry)} title={t('common.actions.download', 'Download')} aria-label={named(t('common.actions.download', 'Download'))}>
<Download size={14} />
</SharedButton>
)}
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onRename(entry)} title={t('app.fileRow.rename', 'Rename')}>
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onRename(entry)} title={t('app.fileRow.rename', 'Rename')} aria-label={named(t('app.fileRow.rename', 'Rename'))}>
<Edit3 size={14} />
</SharedButton>
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onPermissions(entry)} title={t('common.labels.permissions', 'Permissions')}>
<SharedButton variant="unstyled" type="button" className="row-action" onClick={() => onPermissions(entry)} title={t('common.labels.permissions', 'Permissions')} aria-label={named(t('common.labels.permissions', 'Permissions'))}>
<Lock size={14} />
</SharedButton>
<SharedButton variant="unstyled" type="button" className="row-action danger" onClick={() => onDelete(entry)} title={t('common.actions.delete', 'Delete')}>
<SharedButton variant="unstyled" type="button" className="row-action danger" onClick={() => onDelete(entry)} title={t('common.actions.delete', 'Delete')} aria-label={named(t('common.actions.delete', 'Delete'))}>
<Trash2 size={14} />
</SharedButton>
</span>
+24
View File
@@ -0,0 +1,24 @@
// Accessible name of an InfoTip's (i) button: "More info about <subject>", or
// plain "More info" when nothing says what it explains. The subject is the
// explicit prop, else the sheet title, else the text printed just before the
// button (the label/heading the tip is placed after).
const MAX = 60;
const CONTROL = 'button,a,input,select,textarea,[role=button]';
// Nearest label text before the button; a neighbouring control is not a label.
export const nearbyText = (el) => {
for (let n = el?.previousSibling; n; n = n.previousSibling) {
const text = (n.textContent || '').replace(/\s+/g, ' ').trim();
if (n.nodeType === 1 && n.matches?.(CONTROL)) return '';
if (text) return text.length > MAX ? `${text.slice(0, MAX)}…` : text;
}
return '';
};
export function infoTipName({ label, subject, title, nearby }, t) {
const about = [subject, typeof title === 'string' ? title : '', nearby].find((s) => s && s.trim());
if (label) return label;
return about
? t('common.moreInfoAbout', 'More info about {{subject}}', { subject: about.trim() })
: t('common.moreInfo', 'More info');
}
@@ -63,6 +63,7 @@ export default function LogFileList({ files, selectedPath, onSelect, onRefresh,
type="text"
value={query}
onChange={(e) => setQuery(e.target.value)}
aria-label={t('app.logFileList.filterLogFiles', 'Filter log files…')}
placeholder={t('app.logFileList.filterLogFiles', 'Filter log files…')}
/>
</div>
@@ -25,6 +25,7 @@ export default function LogToolbar({
placeholder={t('app.logToolbar.searchInLog', 'Search in log…')}
value={searchPattern}
onChange={(e) => onSearchChange(e.target.value)}
aria-label={t('app.logToolbar.searchInLog', 'Search in log…')}
onKeyDown={(e) => e.key === 'Enter' && onSearchSubmit()}
/>
{searchPattern && (
@@ -65,6 +66,7 @@ export default function LogToolbar({
<SharedButton variant="unstyled" type="button"
className={`lv-icon-btn ${showLineNumbers ? 'active' : ''}`}
onClick={onToggleLineNumbers}
aria-pressed={showLineNumbers}
title={t('app.logToolbar.toggleLineNumbers', 'Toggle line numbers')}
>
<Hash size={13} />
@@ -72,6 +74,7 @@ export default function LogToolbar({
<SharedButton variant="unstyled" type="button"
className={`lv-icon-btn ${wrapLines ? 'active' : ''}`}
onClick={onToggleWrap}
aria-pressed={wrapLines}
title={t('app.logToolbar.toggleWordWrap', 'Toggle word wrap')}
>
<WrapText size={13} />
@@ -121,8 +121,8 @@ export default function FleetThresholdsPanel({ refreshKey = 0 }) {
sortable: false,
hideable: false,
cellClassName: 'mon-row-actions',
render: (t) => (
<Button variant="ghost" size="sm" onClick={() => removeThreshold(t.id)}>
render: (row) => (
<Button variant="ghost" size="sm" onClick={() => removeThreshold(row.id)} aria-label={t('common.actions.remove', 'Remove')}>
<XCircle size={14} />
</Button>
),
@@ -638,7 +638,7 @@ const WebhookSection = () => {
>
<Trash2 size={14} /> {t('common.actions.delete', 'Delete')}
</Button>
<Button variant="ghost" size="sm" onClick={() => loadDeliveries(sub.id)}>
<Button variant="ghost" size="sm" onClick={() => loadDeliveries(sub.id)} aria-label={t('common.actions.refresh', 'Refresh')}>
<RefreshCw size={14} />
</Button>
</div>
@@ -192,7 +192,7 @@ export default function WebhooksTab() {
render: (ep) => (
<DropdownMenu>
<DropdownMenuTrigger asChild onClick={(e) => e.stopPropagation()}>
<Button variant="ghost" size="icon"><MoreVertical size={14} /></Button>
<Button variant="ghost" size="icon" aria-label={t('common.moreActions', 'More actions')}><MoreVertical size={14} /></Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => openEndpoint(ep.id)}>{t('app.webhooksTab.viewDeliveries', 'View deliveries')}</DropdownMenuItem>
+7 -1
View File
@@ -25,6 +25,12 @@ import { Tooltip, TooltipTrigger, TooltipContent } from './tooltip';
// change width mid-click and the row around it does not jump. The button is
// disabled and aria-busy while it lasts; `loadingText` replaces the
// accessible name ("Saving…") when the visible label would lie.
// An icon-only button's native `title` is its tooltip but not a reliable name:
// without visible text it also becomes the aria-label (an explicit one wins).
const hasText = (node) => React.Children.toArray(node).some((c) => (
typeof c === 'string' || typeof c === 'number' ? String(c).trim() !== '' : React.isValidElement(c) && hasText(c.props.children)
));
const Button = React.forwardRef(({
className, variant, size, asChild = false, loading = false, loadingText,
disabled, disabledReason, children, onClick, title, 'aria-describedby': describedBy, ...props
@@ -51,7 +57,7 @@ const Button = React.forwardRef(({
aria-describedby={reasoned ? [describedBy, reasonId].filter(Boolean).join(' ') : describedBy}
aria-busy={loading || undefined}
title={reasoned ? undefined : title}
aria-label={reasoned && title ? title : undefined} // the native title (the name of an icon button) is dropped for the tooltip
aria-label={title && (reasoned || !hasText(children)) ? title : undefined} // a reasoned button drops the native title for the tooltip
onClick={reasoned ? (e) => { e.preventDefault(); setOpen(true); } : onClick}
{...props}
>
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "جرّب مصطلح بحث مختلفًا أو تصفح مجلدًا آخر.",
"typeZA": "اكتب Z-A",
"types": "أنواع",
"up": "أعلى",
"upDelDeleteF2RenameA": "⌫ لأعلى · ديل حذف · إعادة تسمية F2 · ⌘A الكل",
"updatedAt": "تم التحديث {{time}}",
"upload": "رفع",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "أنت بالفعل في المجلد الأعلى"
},
"fileRow": {
"deselect": "قم بإلغاء التحديد",
"rename": "إعادة تسمية",
"select": "يختار"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "جارٍ التحقق من الدعوة…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "يضيف",
"back": "خلف",
@@ -8183,6 +8184,8 @@
},
"loading": "تحميل…",
"more": "أكثر",
"moreActions": "المزيد من الإجراءات",
"moreInfoAbout": "مزيد من المعلومات حول {{subject}}",
"moreSections": "المزيد من الأقسام",
"page": "صفحة",
"retry": "إعادة المحاولة",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "একটি ভিন্ন অনুসন্ধান শব্দ চেষ্টা করুন বা অন্য ফোল্ডার ব্রাউজ করুন.",
"typeZA": "Z-A টাইপ করুন",
"types": "প্রকারভেদ",
"up": "উপরে",
"upDelDeleteF2RenameA": "⌫ Up · Del Delete · F2 Rename · ⌘A All",
"updatedAt": "আপডেট হয়েছে {{time}}",
"upload": "আপলোড করুন",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "ইতিমধ্যেই সর্বোচ্চ ফোল্ডারে আছেন"
},
"fileRow": {
"deselect": "অনির্বাচন করুন",
"rename": "নাম পরিবর্তন করুন",
"select": "নির্বাচন করুন"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "আমন্ত্রণ যাচাই করা হচ্ছে..."
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "যোগ করুন",
"back": "ব্যাক",
@@ -8183,6 +8184,8 @@
},
"loading": "লোড হচ্ছে...",
"more": "আরও",
"moreActions": "আরও অ্যাকশন",
"moreInfoAbout": "{{subject}} সম্পর্কে আরও তথ্য",
"moreSections": "আরো বিভাগ",
"page": "পাতা",
"retry": "আবার চেষ্টা করুন",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Versuchen Sie es mit einem anderen Suchbegriff oder durchsuchen Sie einen anderen Ordner.",
"typeZA": "Typ Z-A",
"types": "Typen",
"up": "Nach oben",
"upDelDeleteF2RenameA": "⌫ Nach oben · Entf Löschen · F2 Umbenennen · ⌘A Alle",
"updatedAt": "Aktualisiert {{time}}",
"upload": "Hochladen",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Bereits im obersten Ordner"
},
"fileRow": {
"deselect": "Abwählen",
"rename": "Umbenennen",
"select": "Auswählen"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Einladung wird validiert…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Hinzufügen",
"back": "Zurück",
@@ -8183,6 +8184,8 @@
},
"loading": "Laden…",
"more": "Mehr",
"moreActions": "Weitere Aktionen",
"moreInfoAbout": "Mehr Infos zu {{subject}}",
"moreSections": "Weitere Abschnitte",
"page": "Seite",
"retry": "Erneut versuchen",
+4 -1
View File
@@ -2833,6 +2833,7 @@
"tryADifferentSearchTermOr": "Try a different search term or browse another folder.",
"typeZA": "Type Z-A",
"types": "Types",
"up": "Up",
"upDelDeleteF2RenameA": "⌫ Up · Del Delete · F2 Rename · ⌘A All",
"updatedAt": "Updated {{time}}",
"upload": "Upload",
@@ -2849,7 +2850,6 @@
"willBeCreatedIn": "Will be created in:"
},
"fileRow": {
"deselect": "Deselect",
"rename": "Rename",
"select": "Select"
},
@@ -8441,6 +8441,7 @@
"validatingInvitation": "Validating invitation…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Add",
"back": "Back",
@@ -8625,7 +8626,9 @@
},
"loading": "Loading…",
"more": "More",
"moreActions": "More actions",
"moreInfo": "More info",
"moreInfoAbout": "More info about {{subject}}",
"moreSections": "More sections",
"page": "Page",
"retry": "Retry",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Prueba con otro término de búsqueda o navega a otra carpeta.",
"typeZA": "Tipo Z-A",
"types": "Tipos",
"up": "Subir",
"upDelDeleteF2RenameA": "⌫ Subir · Del Eliminar · F2 Renombrar · ⌘A Todo",
"updatedAt": "Actualizado {{time}}",
"upload": "Subir",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Ya estás en la carpeta superior"
},
"fileRow": {
"deselect": "Deseleccionar",
"rename": "Renombrar",
"select": "Seleccionar"
},
@@ -8050,6 +8050,7 @@
"validatingInvitation": "Validando la invitación…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Añadir",
"back": "Atrás",
@@ -8184,6 +8185,8 @@
},
"loading": "Cargando…",
"more": "Más",
"moreActions": "Más acciones",
"moreInfoAbout": "Más información sobre {{subject}}",
"moreSections": "Más secciones",
"page": "Página",
"retry": "Reintentar",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Essayez un autre terme de recherche ou parcourez un autre dossier.",
"typeZA": "Type Z-A",
"types": "Espèces",
"up": "Dossier parent",
"upDelDeleteF2RenameA": "⌫ Haut · Supprimer · F2 Renommer · ⌘A Tout",
"updatedAt": "Mis à jour {{time}}",
"upload": "Télécharger",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Déjà dans le dossier racine"
},
"fileRow": {
"deselect": "Désélectionner",
"rename": "Rebaptiser",
"select": "Sélectionner"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Validation de l'invitation…"
},
"common": {
"actionTarget": "{{action}} : {{subject}}",
"actions": {
"add": "Ajouter",
"back": "Dos",
@@ -8183,6 +8184,8 @@
},
"loading": "Chargement…",
"more": "Plus",
"moreActions": "Plus d’actions",
"moreInfoAbout": "Plus d’infos sur {{subject}}",
"moreSections": "Plus de rubriques",
"page": "Page",
"retry": "Réessayer",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Coba istilah pencarian lain atau jelajahi folder lain.",
"typeZA": "Tipe Z-A",
"types": "Jenis",
"up": "Naik",
"upDelDeleteF2RenameA": "⌫ Atas · Del Hapus · F2 Ganti Nama · ⌘A Semua",
"updatedAt": "Diperbarui {{time}}",
"upload": "Mengunggah",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Sudah di folder teratas"
},
"fileRow": {
"deselect": "Batalkan pilihan",
"rename": "Ganti nama",
"select": "Memilih"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Memvalidasi undangan…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Menambahkan",
"back": "Kembali",
@@ -8183,6 +8184,8 @@
},
"loading": "Memuat…",
"more": "Lagi",
"moreActions": "Tindakan lainnya",
"moreInfoAbout": "Info lebih lanjut tentang {{subject}}",
"moreSections": "Lebih banyak bagian",
"page": "Halaman",
"retry": "Coba lagi",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Prova un termine di ricerca diverso o sfoglia un'altra cartella.",
"typeZA": "Digitare Z-A",
"types": "Tipi",
"up": "Su",
"upDelDeleteF2RenameA": "⌫ Su · Canc Elimina · F2 Rinomina · ⌘A Tutto",
"updatedAt": "Aggiornato {{time}}",
"upload": "Caricamento",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Sei già nella cartella superiore"
},
"fileRow": {
"deselect": "Deseleziona",
"rename": "Rinominare",
"select": "Selezionare"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Convalida dell'invito…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Aggiungere",
"back": "Indietro",
@@ -8183,6 +8184,8 @@
},
"loading": "Caricamento…",
"more": "Di più",
"moreActions": "Altre azioni",
"moreInfoAbout": "Maggiori informazioni su {{subject}}",
"moreSections": "Più sezioni",
"page": "Pagina",
"retry": "Riprova",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "다른 검색어를 사용해 보거나 다른 폴더를 찾아보세요.",
"typeZA": "Z-A형",
"types": "유형",
"up": "위로",
"upDelDeleteF2RenameA": "⌫ 위로 · Del 삭제 · F2 이름 바꾸기 · ⌘A 모두",
"updatedAt": "{{time}} 업데이트됨",
"upload": "업로드",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "이미 최상위 폴더입니다"
},
"fileRow": {
"deselect": "선택 취소",
"rename": "이름 바꾸기",
"select": "선택"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "초대 확인 중…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "추가",
"back": "뒤로",
@@ -8183,6 +8184,8 @@
},
"loading": "로드 중…",
"more": "더보기",
"moreActions": "더 많은 작업",
"moreInfoAbout": "{{subject}}에 대한 추가 정보",
"moreSections": "더 많은 섹션",
"page": "페이지",
"retry": "재시도",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Wypróbuj inne wyszukiwane hasło lub przejrzyj inny folder.",
"typeZA": "Typ Z-A",
"types": "Typy",
"up": "W górę",
"upDelDeleteF2RenameA": "⌫ W górę · Usuń · F2 Zmień nazwę · ⌘A Wszystko",
"updatedAt": "Zaktualizowano {{time}}",
"upload": "Wgrywać",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "To już najwyższy folder"
},
"fileRow": {
"deselect": "Odznacz",
"rename": "Przemianować",
"select": "Wybierać"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Sprawdzam zaproszenie…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Dodać",
"back": "Z powrotem",
@@ -8183,6 +8184,8 @@
},
"loading": "Załadunek…",
"more": "Więcej",
"moreActions": "Więcej akcji",
"moreInfoAbout": "Więcej informacji o: {{subject}}",
"moreSections": "Więcej sekcji",
"page": "Strona",
"retry": "Ponów",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Experimente um termo de pesquisa diferente ou navegue em outra pasta.",
"typeZA": "Tipo Z-A",
"types": "Tipos",
"up": "Subir",
"upDelDeleteF2RenameA": "⌫ Para cima · Del Excluir · F2 Renomear · ⌘A Tudo",
"updatedAt": "Atualizado {{time}}",
"upload": "Carregar",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Já está na pasta superior"
},
"fileRow": {
"deselect": "Desmarcar",
"rename": "Renomear",
"select": "Selecione"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Validando convite…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Adicionar",
"back": "Voltar",
@@ -8183,6 +8184,8 @@
},
"loading": "Carregando…",
"more": "Mais",
"moreActions": "Mais ações",
"moreInfoAbout": "Mais informações sobre {{subject}}",
"moreSections": "Mais seções",
"page": "Página",
"retry": "Tentar novamente",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Попробуйте другой поисковый запрос или просмотрите другую папку.",
"typeZA": "Тип Z-A",
"types": "Типы",
"up": "Вверх",
"upDelDeleteF2RenameA": "⌫ Вверх · Удалить · Переименовать F2 · ⌘A Все",
"updatedAt": "Обновлено {{time}}",
"upload": "Загрузить",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Это уже верхняя папка"
},
"fileRow": {
"deselect": "Отменить выбор",
"rename": "Переименовать",
"select": "Выбрать"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Проверка приглашения…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Добавить",
"back": "Назад",
@@ -8183,6 +8184,8 @@
},
"loading": "Загрузка…",
"more": "Более",
"moreActions": "Другие действия",
"moreInfoAbout": "Подробнее: {{subject}}",
"moreSections": "Еще разделы",
"page": "Страница",
"retry": "Повторить",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "ลองใช้คำค้นหาอื่นหรือเรียกดูโฟลเดอร์อื่น",
"typeZA": "ประเภท Z-A",
"types": "ประเภท",
"up": "ขึ้น",
"upDelDeleteF2RenameA": "⌫ ขึ้น · ลบ ลบ · F2 เปลี่ยนชื่อ · ⌘A ทั้งหมด",
"updatedAt": "อัปเดต {{time}}",
"upload": "อัปโหลด",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "อยู่ที่โฟลเดอร์บนสุดแล้ว"
},
"fileRow": {
"deselect": "ยกเลิกการเลือก",
"rename": "เปลี่ยนชื่อ",
"select": "เลือก"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "กำลังตรวจสอบคำเชิญ..."
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "เพิ่ม",
"back": "กลับ",
@@ -8183,6 +8184,8 @@
},
"loading": "กำลังโหลด...",
"more": "มากกว่า",
"moreActions": "การดำเนินการเพิ่มเติม",
"moreInfoAbout": "ข้อมูลเพิ่มเติมเกี่ยวกับ {{subject}}",
"moreSections": "ส่วนเพิ่มเติม",
"page": "หน้าหนังสือ",
"retry": "ลองอีกครั้ง",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Farklı bir arama terimi deneyin veya başka bir klasöre göz atın.",
"typeZA": "Tip Z-A",
"types": "Türler",
"up": "Yukarı",
"upDelDeleteF2RenameA": "⌫ Yukarı · Sil Sil · F2 Yeniden Adlandır · ⌘A Tümü",
"updatedAt": "{{time}} güncellendi",
"upload": "Yüklemek",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Zaten en üst klasördesiniz"
},
"fileRow": {
"deselect": "Seçimi kaldır",
"rename": "Yeniden isimlendirmek",
"select": "Seçme"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Davetiye doğrulanıyor…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Eklemek",
"back": "Geri",
@@ -8183,6 +8184,8 @@
},
"loading": "Yükleniyor…",
"more": "Daha",
"moreActions": "Diğer eylemler",
"moreInfoAbout": "{{subject}} hakkında daha fazla bilgi",
"moreSections": "Daha fazla bölüm",
"page": "Sayfa",
"retry": "Yeniden dene",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "Hãy thử một cụm từ tìm kiếm khác hoặc duyệt qua một thư mục khác.",
"typeZA": "Loại Z-A",
"types": "Các loại",
"up": "Lên",
"upDelDeleteF2RenameA": "⌫ Lên · Xóa · F2 Đổi tên · ⌘A Tất cả",
"updatedAt": "Cập nhật {{time}}",
"upload": "Tải lên",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "Đã ở thư mục trên cùng"
},
"fileRow": {
"deselect": "Bỏ chọn",
"rename": "Đổi tên",
"select": "Lựa chọn"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "Đang xác thực lời mời…"
},
"common": {
"actionTarget": "{{action}}: {{subject}}",
"actions": {
"add": "Thêm vào",
"back": "Mặt sau",
@@ -8183,6 +8184,8 @@
},
"loading": "Đang tải…",
"more": "Hơn",
"moreActions": "Thêm thao tác",
"moreInfoAbout": "Thông tin thêm về {{subject}}",
"moreSections": "Các phần khác",
"page": "Trang",
"retry": "Thử lại",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "尝试不同的搜索词或浏览另一个文件夹。",
"typeZA": "Z-A型",
"types": "类型",
"up": "上一级",
"upDelDeleteF2RenameA": "⌫ 向上 · Del 删除 · F2 重命名 · ⌘A 全部",
"updatedAt": "更新于 {{time}}",
"upload": "上传",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "已在最上层文件夹"
},
"fileRow": {
"deselect": "取消选择",
"rename": "重命名",
"select": "选择"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "正在验证邀请..."
},
"common": {
"actionTarget": "{{action}}:{{subject}}",
"actions": {
"add": "添加",
"back": "返回",
@@ -8183,6 +8184,8 @@
},
"loading": "加载中…",
"more": "更多的",
"moreActions": "更多操作",
"moreInfoAbout": "关于{{subject}}的更多信息",
"moreSections": "更多栏目",
"page": "页",
"retry": "重试",
+4 -1
View File
@@ -2764,6 +2764,7 @@
"tryADifferentSearchTermOr": "嘗試不同的搜尋字詞或瀏覽另一個資料夾。",
"typeZA": "類型 Z-A",
"types": "類型",
"up": "上一層",
"upDelDeleteF2RenameA": "⌫ 向上 · Del 刪除 · F2 重新命名 · ⌘A 全部",
"updatedAt": "更新於 {{time}}",
"upload": "上傳",
@@ -2783,7 +2784,6 @@
"alreadyAtTheTopFolder": "已在最上層資料夾"
},
"fileRow": {
"deselect": "取消選擇",
"rename": "重新命名",
"select": "選擇"
},
@@ -8049,6 +8049,7 @@
"validatingInvitation": "正在驗證邀請…"
},
"common": {
"actionTarget": "{{action}}:{{subject}}",
"actions": {
"add": "新增",
"back": "回到上一頁",
@@ -8183,6 +8184,8 @@
},
"loading": "載入中…",
"more": "更多",
"moreActions": "更多操作",
"moreInfoAbout": "關於{{subject}}的更多資訊",
"moreSections": "更多區段",
"page": "頁",
"retry": "重試",
+2 -2
View File
@@ -473,7 +473,7 @@ const SSLCertificates = () => {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild onClick={(e) => e.stopPropagation()}>
<Button variant="ghost" size="icon" disabled={renewing || actionLoading}>
<Button variant="ghost" size="icon" disabled={renewing || actionLoading} aria-label={t('common.moreActions', 'More actions')}>
{renewing ? <RefreshCw size={14} className="spin" /> : <MoreVertical size={14} />}
</Button>
</DropdownMenuTrigger>
@@ -512,7 +512,7 @@ const SSLCertificates = () => {
// bar stays a single row; Install Certbot / New certificate stay out.
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon" aria-label={t('common.more', 'More')}>
<Button variant="outline" size="icon" aria-label={t('common.moreActions', 'More actions')}>
<MoreHorizontal size={15} />
</Button>
</DropdownMenuTrigger>
+1 -1
View File
@@ -598,7 +598,7 @@ const StatusPages = () => {
))}
</>
)}
<Button size="sm" variant="ghost" onClick={() => setDeleteConfirm({ type: 'incident', item: incident })}>
<Button size="sm" variant="ghost" onClick={() => setDeleteConfirm({ type: 'incident', item: incident })} aria-label={t('common.actions.delete', 'Delete')}>
<Trash2 size={14} />
</Button>
</div>
+1
View File
@@ -678,6 +678,7 @@ const JournalTab = () => {
value={unitInput}
onChange={(e) => setUnitInput(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && applyUnitInput()}
aria-label={t('app.terminal.typeUnitName', 'Type unit name…')}
placeholder={t('app.terminal.typeUnitName', 'Type unit name…')}
/>
</div>
+1 -1
View File
@@ -263,7 +263,7 @@ export default function Vaults() {
render: (v) => (
<DropdownMenu>
<DropdownMenuTrigger asChild onClick={(e) => e.stopPropagation()}>
<Button variant="ghost" size="icon"><MoreVertical size={14} /></Button>
<Button variant="ghost" size="icon" aria-label={t('common.moreActions', 'More actions')}><MoreVertical size={14} /></Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => openVault(v.id)}>{t('common.actions.open', 'Open')}</DropdownMenuItem>
+1 -1
View File
@@ -247,7 +247,7 @@ $control-lg: 40px;
// that float over the page cast a shadow. No glows.
$shadow-raised: var(--shadow-md); // menus, popovers, dropdowns, toasts
$shadow-overlay: var(--shadow-lg); // modals, drawers
$focus-ring: 0 0 0 2px var(--accent-bg, rgba(99, 102, 241, 0.35));
$focus-ring: 0 0 0 2px var(--accent-primary, #6366f1);
// Soft 4px halo marking a "you are here" state (stepper current/error step).
$halo-accent: 0 0 0 4px var(--accent-bg-soft);
$halo-danger: 0 0 0 4px $danger-bg;
@@ -1495,6 +1495,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
&.is-active { @include status-variant(var(--accent-bright), var(--accent-bg)); }
// Overflowed tab — moved into the "More" popover, not rendered inline.
&.is-hidden { display: none; }
// __tabs clips overflow, so the default 2px-offset ring would be cut off.
&:focus-visible { outline-offset: -2px; }
}
// Count pill on a tab (e.g. pending updates).
&__badge {
@@ -1521,6 +1523,7 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
font: inherit;
cursor: pointer;
&[data-state="open"] { background: var(--surface-hover); color: var(--text); }
&:focus-visible { outline-offset: -2px; }
}
@media (max-width: 768px) {
-4
View File
@@ -1345,10 +1345,6 @@
padding: $space-2;
color: $text-primary;
font-size: $text-xs;
&:focus {
outline: none;
}
}
.group-name {
-2
View File
@@ -372,7 +372,6 @@ $lk-default: #646b7a;
&::placeholder { color: var(--text-faint); }
&:focus {
outline: none;
border-color: var(--accent-dim);
background: var(--surface);
}
@@ -671,7 +670,6 @@ $lk-default: #646b7a;
&:focus, &:hover {
border-color: var(--border-strong);
outline: none;
}
// The Radix trigger (LogToolbar) sizes to its value, not the full-width