fix(settings): the checks the settings redesign left red

The phone's MCP card still read the config fold state that the shared hook
no longer holds, so the client failed to typecheck. The phone keeps its
folded config, so it now holds that state itself.

SettingsColumns takes start and end instead of left and right: the prop
types counted as two physical sides for lint:rtl, and in a right-to-left
language the first column is the right one anyway.

Also: an unused icon import, seven files outside the format baseline run
through Prettier, Routing (de) and Services (fr) confirmed as the same word
as in English, and the size and warning baselines lowered to what the
redesign left (AdminPluginsPanel one wrapped line shorter, two promise
warnings, one long function and two non-null assertions in tests fewer).
This commit is contained in:
Maurice
2026-11-13 23:10:05 +00:00
parent 94ac7673a5
commit a0764b9c96
24 changed files with 49 additions and 83 deletions
@@ -138,7 +138,7 @@ export default function AdminStoragePanel(): React.ReactElement {
{/* Two columns by length: the health and the backends on the left, which
category goes where on the right, its save bar at the card's foot. */}
<SettingsColumns
left={<>
start={<>
<Section title={t('storage.health.title')} icon={Activity}>
{state.health.replicaFailures.length === 0 ? (
<p className="m-0 flex items-center gap-2 text-content-muted" style={fs(12.5, 'body')}>
@@ -493,7 +493,7 @@ export default function AdminStoragePanel(): React.ReactElement {
onDelete={(enabled) => void handleReclaimDelete(enabled)}
/>
</>}
right={<>
end={<>
<Section title={t('storage.categories.title')} icon={FolderTree}>
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
{STORAGE_CATEGORIES.map((category) => {
@@ -47,12 +47,7 @@ export default function StorageReclaimSection({
icon={Eraser}
hint={t('storage.reclaim.hint')}
action={
<button
type="button"
className={SETTINGS_BUTTON}
onClick={onCheck}
disabled={checking}
>
<button type="button" className={SETTINGS_BUTTON} onClick={onCheck} disabled={checking}>
{checking ? (
<Loader2 size={14} strokeWidth={2.2} className="animate-spin" />
) : (