From 9dbcca2d189cb236e48543fbf7e9d80777f9296c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 27 Oct 2026 09:00:58 +0000 Subject: [PATCH] Use Library as the one visible name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nav, the page heading, and body copy now share one name: Library, Könyvtár, and Biblioteca. Routes, tables, and API fields stay as they are. Co-authored-by: Gáborjáni-Szabó Ádám --- ...bf19abb2d80a6075794717cc7c0c2cd0610bb9fe37.json | 4 ++-- ...2888ca7fba9df68b2746461d556a193ac4ed89d357.json | 4 ++-- e2e/admin-announcements.spec.ts | 2 +- e2e/first-run.spec.ts | 2 +- e2e/full-stack/first-run.spec.ts | 2 +- .../features/debate/DebateContextControl.tsx | 4 ++-- src/locales/en.json | 12 ++++++------ src/locales/es.json | 8 ++++---- src/locales/hu.json | 14 +++++++------- src/test/debate/debate-context.test.tsx | 2 +- 10 files changed, 27 insertions(+), 27 deletions(-) diff --git a/agentic/replay/c6cf102fb2172d14552e85bf19abb2d80a6075794717cc7c0c2cd0610bb9fe37.json b/agentic/replay/c6cf102fb2172d14552e85bf19abb2d80a6075794717cc7c0c2cd0610bb9fe37.json index edf7bc8f7..60e2a68d9 100644 --- a/agentic/replay/c6cf102fb2172d14552e85bf19abb2d80a6075794717cc7c0c2cd0610bb9fe37.json +++ b/agentic/replay/c6cf102fb2172d14552e85bf19abb2d80a6075794717cc7c0c2cd0610bb9fe37.json @@ -110,7 +110,7 @@ }, { "role": "heading", - "name": "Source Library" + "name": "Library" }, { "role": "button", @@ -124,7 +124,7 @@ }, { "role": "heading", - "name": "Your Knowledge Base" + "name": "Your library" } ], "goneAnchors": [ diff --git a/agentic/replay/f6d6a30f85648dfe2446aa2888ca7fba9df68b2746461d556a193ac4ed89d357.json b/agentic/replay/f6d6a30f85648dfe2446aa2888ca7fba9df68b2746461d556a193ac4ed89d357.json index df600f8dc..579d9b692 100644 --- a/agentic/replay/f6d6a30f85648dfe2446aa2888ca7fba9df68b2746461d556a193ac4ed89d357.json +++ b/agentic/replay/f6d6a30f85648dfe2446aa2888ca7fba9df68b2746461d556a193ac4ed89d357.json @@ -107,7 +107,7 @@ }, { "role": "heading", - "name": "Source Library" + "name": "Library" }, { "text": "This House would ban single-use plastics" @@ -124,7 +124,7 @@ }, { "role": "heading", - "name": "Your Knowledge Base" + "name": "Your library" } ], "goneAnchors": [ diff --git a/e2e/admin-announcements.spec.ts b/e2e/admin-announcements.spec.ts index 52557b32a..bf9a83318 100644 --- a/e2e/admin-announcements.spec.ts +++ b/e2e/admin-announcements.spec.ts @@ -111,7 +111,7 @@ test('keeps announcements stable across routes and refreshes on a full reload', await expect(page.getByRole('heading', { name: 'Scheduled maintenance' })).toHaveCount(0); await openAppNav(page, 'Library'); - await expect(page.getByRole('heading', { name: 'Source Library', exact: true })).toBeVisible(); + await expect(page.getByRole('heading', { name: 'Library', exact: true })).toBeVisible(); await openAppNav(page, 'Tools'); await expect(page.getByRole('main').getByRole('heading', { name: 'What are you working on?', exact: true })).toBeVisible(); expect(listRequestCount()).toBe(1); diff --git a/e2e/first-run.spec.ts b/e2e/first-run.spec.ts index 27e765436..cafac7f49 100644 --- a/e2e/first-run.spec.ts +++ b/e2e/first-run.spec.ts @@ -28,7 +28,7 @@ const copy = { firstDebate: 'Itt indíthatod el az első vitádat.', startDebate: 'Vita indítása', motionField: 'Tétel', - library: 'Forráskönyvtár', + library: 'Könyvtár', generate: 'Generálás', ready: 'Készen állsz!', finish: 'Kezdjük!', diff --git a/e2e/full-stack/first-run.spec.ts b/e2e/full-stack/first-run.spec.ts index eabae851a..c8580640e 100644 --- a/e2e/full-stack/first-run.spec.ts +++ b/e2e/full-stack/first-run.spec.ts @@ -33,7 +33,7 @@ const copy = { firstDebate: "Itt indíthatod el az első vitádat.", startDebate: "Vita indítása", motionField: "Tétel", - library: "Forráskönyvtár", + library: "Könyvtár", generate: "Generálás", finish: "Kezdjük!", skip: "Túra kihagyása", diff --git a/src/components/features/debate/DebateContextControl.tsx b/src/components/features/debate/DebateContextControl.tsx index 00605ec95..869b3843e 100644 --- a/src/components/features/debate/DebateContextControl.tsx +++ b/src/components/features/debate/DebateContextControl.tsx @@ -16,7 +16,7 @@ import type { DebateContextFeature, DebateContextSide } from '../../../../supaba interface DebateContextControlProps { feature: DebateContextFeature; side: DebateContextSide; - /** False when this request will not read Library sources, as in Crossfire with Source Library off. */ + /** False when this request will not read Library sources, as in Crossfire with Library grounding off. */ includeSources?: boolean; /** The debate the request will use when it is not the Current Debate, such as a reopened chat. */ debateId?: string | null; @@ -174,7 +174,7 @@ function DebateContextReview({ plan, motion, usage, pinsReady, resultsComplete }

{plan.feature === 'sparring' ? t('debateContext.sparringNoSources', 'Live sparring rounds use only the transcript, the motion, and your debate settings.') - : t('debateContext.sourcesOff', 'Source Library is off for this request.')} + : t('debateContext.sourcesOff', 'Library is off for this request.')}

) : plan.sources.length === 0 ? (

{t('debateContext.noSources', 'This debate has no Library sources yet.')}

diff --git a/src/locales/en.json b/src/locales/en.json index ebb083b2d..c0e22e5a2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -950,7 +950,7 @@ "crossfireDesc": "Practice focused questions and answers in a timed exchange.", "sparring": "Sparring", "sparringDesc": "Practice a timed round against an opponent and review the scorecard.", - "library": "Source Library", + "library": "Library", "libraryDesc": "Manage sources that ground AI responses in real evidence.", "timer": "Debate Timer", "timerDesc": "Practice with tournament-accurate timing controls.", @@ -1756,7 +1756,7 @@ "openCrossfireAria": "Open Crossfire round: {{title}}" }, "libraryPage": { - "title": "Source Library", + "title": "Library", "addSource": "Add source", "cancel": "Cancel", "clearAll": "Clear all", @@ -1800,7 +1800,7 @@ "fileReadFailed": "Could not read this file.", "saveToLibrary": "Save to Library", "addNewTitle": "Add New Source", - "yourKBTitle": "Your Knowledge Base", + "yourKBTitle": "Your library", "manualSource": "Manual source", "searchSources": "Search sources", "searchPlaceholder": "Search sources, folders, or content...", @@ -2299,9 +2299,9 @@ "duration3m": "3 min", "duration5m": "5 min", "duration8m": "8 min", - "sourceLibraryLabel": "Use Source Library grounding", + "sourceLibraryLabel": "Use Library grounding", "sourceLibraryDesc": "Ground the AI's questions and answers in your active library sources.", - "sourceLibraryEmpty": "Your Source Library has no active sources yet.", + "sourceLibraryEmpty": "Your Library has no active sources yet.", "seedQuestionsLabel": "Opening questions (optional)", "start": "Start crossfire", "loading": "Loading crossfire...", @@ -2539,7 +2539,7 @@ "instructionsNotUsed": "Your debate settings are included. Free-form instructions are not used here, so they cannot change how this exchange is run.", "sourcesHeading": "Library sources", "sparringNoSources": "Live sparring rounds use only the transcript, the motion, and your debate settings.", - "sourcesOff": "Source Library is off for this request.", + "sourcesOff": "Library is off for this request.", "noSources": "This debate has no Library sources yet.", "resultsHeading": "Saved results", "sparringNoResults": "Saved results stay out of live rounds so the opponent and judge respond only to what is said.", diff --git a/src/locales/es.json b/src/locales/es.json index a961cfac1..9c5f7319f 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -950,7 +950,7 @@ "crossfireDesc": "Practica preguntas y respuestas precisas en un intercambio cronometrado.", "sparring": "Sparring", "sparringDesc": "Practica una ronda cronometrada contra un oponente y revisa la tarjeta de puntuación.", - "library": "Biblioteca de fuentes", + "library": "Biblioteca", "libraryDesc": "Gestiona fuentes que fundamentan las respuestas de IA con evidencia real.", "timer": "Cronómetro de debate", "timerDesc": "Practica con controles de tiempo precisos de torneo.", @@ -1756,7 +1756,7 @@ "openCrossfireAria": "Abrir ronda de interrogatorio: {{title}}" }, "libraryPage": { - "title": "Biblioteca de fuentes", + "title": "Biblioteca", "addSource": "Añadir fuente", "cancel": "Cancelar", "clearAll": "Borrar todo", @@ -1798,7 +1798,7 @@ "fileReadFailed": "No se pudo leer este archivo.", "saveToLibrary": "Guardar en biblioteca", "addNewTitle": "Añadir nueva fuente", - "yourKBTitle": "Tu base de conocimiento", + "yourKBTitle": "Tu biblioteca", "titleLabel": "Título", "originLabel": "Origen", "contentLabel": "Contenido", @@ -2539,7 +2539,7 @@ "instructionsNotUsed": "Se incluyen los ajustes de tu debate. Las instrucciones libres no se usan aquí, así que no pueden cambiar cómo se desarrolla este intercambio.", "sourcesHeading": "Fuentes de la biblioteca", "sparringNoSources": "Las rondas de sparring en vivo usan solo la transcripción, la moción y los ajustes de tu debate.", - "sourcesOff": "La biblioteca de fuentes está desactivada para esta solicitud.", + "sourcesOff": "La biblioteca está desactivada para esta solicitud.", "noSources": "Este debate aún no tiene fuentes en la biblioteca.", "resultsHeading": "Resultados guardados", "sparringNoResults": "Los resultados guardados quedan fuera de las rondas en vivo para que el oponente y el juez respondan solo a lo que se dice.", diff --git a/src/locales/hu.json b/src/locales/hu.json index fb6c31df8..364218861 100644 --- a/src/locales/hu.json +++ b/src/locales/hu.json @@ -950,7 +950,7 @@ "crossfireDesc": "Gyakorold a célzott kérdéseket és válaszokat időzített párbeszédben.", "sparring": "Vitapárbaj", "sparringDesc": "Gyakorolj egy időzített fordulót ellenféllel, majd nézd át az értékelőlapot.", - "library": "Forráskönyvtár", + "library": "Könyvtár", "libraryDesc": "Kezeld a forrásokat, amelyek valós bizonyítékokkal alapozzák meg az MI válaszait.", "timer": "Vitaidőmérő", "timerDesc": "Gyakorolj versenypontos időzítéssel.", @@ -1523,7 +1523,7 @@ "skip": "Túra kihagyása", "generate": "Generálás", "generateDesc": "Készíts teljes esetet a tételedhez. Az Ötletelés, a Tények és a Folyamatábra mellette, a Felkészülés alatt található.", - "library": "Forráskönyvtár", + "library": "Könyvtár", "libraryDesc": "Adj forrásokat az aktuális vitádhoz. Minden eszköz ezekre építi a válaszait.", "debateFirstDesc": "A DebateLabban minden egy vitához tartozik: a tétel, amelyre készülsz, a forrásai és az eredményeid. Itt indíthatod el az első vitádat.", "debateCurrentDesc": "A DebateLabban minden az aktuális vitádhoz tartozik: a tételéhez, a forrásaihoz és az eredményeidhez. Itt nyithatod meg vagy cserélheted le." @@ -1756,7 +1756,7 @@ "openCrossfireAria": "Keresztkérdezési kör megnyitása: {{title}}" }, "libraryPage": { - "title": "Forráskönyvtár", + "title": "Könyvtár", "addSource": "Forrás hozzáadása", "cancel": "Mégse", "clearAll": "Összes törlése", @@ -1798,7 +1798,7 @@ "fileReadFailed": "Nem sikerült beolvasni ezt a fájlt.", "saveToLibrary": "Mentés a könyvtárba", "addNewTitle": "Új forrás hozzáadása", - "yourKBTitle": "A tudásbázisod", + "yourKBTitle": "A könyvtárad", "titleLabel": "Cím", "originLabel": "Eredet", "contentLabel": "Tartalom", @@ -2299,9 +2299,9 @@ "duration3m": "3 perc", "duration5m": "5 perc", "duration8m": "8 perc", - "sourceLibraryLabel": "Forráskönyvtár használata", + "sourceLibraryLabel": "Könyvtár használata", "sourceLibraryDesc": "Az MI kérdései és válaszai az aktív könyvtári forrásaidra támaszkodjanak.", - "sourceLibraryEmpty": "Még nincs aktív forrásod a Forráskönyvtárban.", + "sourceLibraryEmpty": "Még nincs aktív forrásod a könyvtárban.", "seedQuestionsLabel": "Nyitó kérdések (opcionális)", "start": "Keresztkérdezés indítása", "loading": "Keresztkérdezés betöltése...", @@ -2539,7 +2539,7 @@ "instructionsNotUsed": "A vita beállításai benne vannak. A szabad szöveges utasításokat itt nem használjuk, így nem módosíthatják a gyakorlat menetét.", "sourcesHeading": "Könyvtári források", "sparringNoSources": "Az élő vitapárbajok csak az átiratot, a témát és a vita beállításait használják.", - "sourcesOff": "A forráskönyvtár ki van kapcsolva ennél a kérésnél.", + "sourcesOff": "A könyvtár ki van kapcsolva ennél a kérésnél.", "noSources": "Ehhez a vitához még nincs forrás a könyvtárban.", "resultsHeading": "Mentett eredmények", "sparringNoResults": "A mentett eredmények kimaradnak az élő meccsekből, hogy az ellenfél és a bíró csak az elhangzottakra reagáljon.", diff --git a/src/test/debate/debate-context.test.tsx b/src/test/debate/debate-context.test.tsx index b260ae5a1..bafe46c80 100644 --- a/src/test/debate/debate-context.test.tsx +++ b/src/test/debate/debate-context.test.tsx @@ -73,7 +73,7 @@ describe('Current Debate context plan', () => { expect(plan.request.sourceIds).toEqual([uuid(1)]); }); - it('keeps live sparring transcript-only and respects Crossfire Source Library', () => { + it('keeps live sparring transcript-only and respects Library grounding turned off', () => { const sparring = planDebateContext('sparring', 'pro', TEST_DEBATE_ID, inputs()); expect(sparring.request).toMatchObject({ sourceIds: [], outputs: [] }); const crossfire = planDebateContext('crossfire', 'both', TEST_DEBATE_ID, inputs(), { includeSources: false });