The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(settings): bounded number fields follow the notice colours and keep their names
purplef93a1bb625a9
diff --git a/src/components/settings/BoundedNumberInput.tsx b/src/components/settings/BoundedNumberInput.tsxindex d86e56f5..0b19bbe8 100644--- a/src/components/settings/BoundedNumberInput.tsx+++ b/src/components/settings/BoundedNumberInput.tsx@@ -1,5 +1,6 @@import { useState, type KeyboardEvent } from 'react'import { clampCount } from '../../lib/number-limits'+import { HINWEIS_TEXT } from '../../lib/hinweis'interface Props {ariaLabel: string@@ -49,7 +50,7 @@ export function BoundedNumberInput({ ariaLabel, value, max, onCommit, placeholdeclassName="w-20 px-1.5 py-0.5 rounded bg-transparent border border-white/8 t-mono text-right text-gray-300 focus:outline-none focus:border-white/20"/>{clampedFrom !== null && (- <span role="status" className="t-micro text-amber-500 pt-0.5">+ <span role="status" className={`t-micro pt-0.5 ${HINWEIS_TEXT.ruhig}`}>{`${clampedFrom} is above the limit, set to ${max.toLocaleString('en-US')}`}</span>)}diff --git a/src/components/settings/__tests__/zahlenfelder-haben-namen.test.ts b/src/components/settings/__tests__/zahlenfelder-haben-namen.test.tsindex 838a26d3..2180010a 100644--- a/src/components/settings/__tests__/zahlenfelder-haben-namen.test.ts+++ b/src/components/settings/__tests__/zahlenfelder-haben-namen.test.ts@@ -37,8 +37,14 @@ function inputBloecke(quelle: string): string[] {return bloecke}+/** Jeder `<BoundedNumberInput …/>`-Block (B9, B13): ein Zahlenfeld mit+ * Obergrenze, sein Name kommt als `ariaLabel` und landet als aria-label. */+function begrenzteBloecke(quelle: string): string[] {+ return [...quelle.matchAll(/<BoundedNumberInput[\s\S]*?\/>/g)].map((m) => m[0].replace('ariaLabel=', 'aria-label='))+}+describe('Zahlenfelder in den Einstellungen', () => {- const zahlenfelder = inputBloecke(JSX).filter((b) => b.includes('type="number"'))+ const zahlenfelder = [...inputBloecke(JSX).filter((b) => b.includes('type="number"')), ...begrenzteBloecke(JSX)]it('es gibt ueberhaupt welche — sonst prueft die Zeile darunter nichts', () => {expect(zahlenfelder.length).toBeGreaterThanOrEqual(9)