Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},
{
"role": "heading",
"name": "Source Library"
"name": "Library"
},
{
"role": "button",
Expand All @@ -124,7 +124,7 @@
},
{
"role": "heading",
"name": "Your Knowledge Base"
"name": "Your library"
}
],
"goneAnchors": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
{
"role": "heading",
"name": "Source Library"
"name": "Library"
},
{
"text": "This House would ban single-use plastics"
Expand All @@ -124,7 +124,7 @@
},
{
"role": "heading",
"name": "Your Knowledge Base"
"name": "Your library"
}
],
"goneAnchors": [
Expand Down
2 changes: 1 addition & 1 deletion e2e/admin-announcements.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion e2e/first-run.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion e2e/full-stack/first-run.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/components/features/debate/DebateContextControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -174,7 +174,7 @@ function DebateContextReview({ plan, motion, usage, pinsReady, resultsComplete }
<p className="text-sm text-muted-foreground">
{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.')}
</p>
) : plan.sources.length === 0 ? (
<p className="text-sm text-muted-foreground">{t('debateContext.noSources', 'This debate has no Library sources yet.')}</p>
Expand Down
12 changes: 6 additions & 6 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,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.",
Expand Down Expand Up @@ -1755,7 +1755,7 @@
"openCrossfireAria": "Open Crossfire round: {{title}}"
},
"libraryPage": {
"title": "Source Library",
"title": "Library",
"addSource": "Add source",
"cancel": "Cancel",
"clearAll": "Clear all",
Expand Down Expand Up @@ -1799,7 +1799,7 @@
"fileReadFailed": "Could not read this file.",
"saveToLibrary": "Save to Library",
"addNewTitle": "Add a source",
"yourKBTitle": "Your Knowledge Base",
"yourKBTitle": "Your library",
"manualSource": "Manual source",
"searchSources": "Search sources",
"searchPlaceholder": "Search sources, folders, or content...",
Expand Down Expand Up @@ -2298,9 +2298,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…",
Expand Down Expand Up @@ -2538,7 +2538,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.",
Expand Down
8 changes: 4 additions & 4 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,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.",
Expand Down Expand Up @@ -1755,7 +1755,7 @@
"openCrossfireAria": "Abrir ronda de interrogatorio: {{title}}"
},
"libraryPage": {
"title": "Biblioteca de fuentes",
"title": "Biblioteca",
"addSource": "Añadir fuente",
"cancel": "Cancelar",
"clearAll": "Borrar todo",
Expand Down Expand Up @@ -1797,7 +1797,7 @@
"fileReadFailed": "No se pudo leer este archivo.",
"saveToLibrary": "Guardar en biblioteca",
"addNewTitle": "Añadir una fuente",
"yourKBTitle": "Tu base de conocimiento",
"yourKBTitle": "Tu biblioteca",
"titleLabel": "Título",
"originLabel": "Origen",
"contentLabel": "Contenido",
Expand Down Expand Up @@ -2538,7 +2538,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.",
Expand Down
14 changes: 7 additions & 7 deletions src/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,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.",
Expand Down Expand Up @@ -1522,7 +1522,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."
Expand Down Expand Up @@ -1755,7 +1755,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",
Expand Down Expand Up @@ -1797,7 +1797,7 @@
"fileReadFailed": "Nem sikerült beolvasni ezt a fájlt.",
"saveToLibrary": "Mentés a könyvtárba",
"addNewTitle": "Forrás hozzáadása",
"yourKBTitle": "A tudásbázisod",
"yourKBTitle": "A könyvtárad",
"titleLabel": "Cím",
"originLabel": "Eredet",
"contentLabel": "Tartalom",
Expand Down Expand Up @@ -2298,9 +2298,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…",
Expand Down Expand Up @@ -2538,7 +2538,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.",
Expand Down
2 changes: 1 addition & 1 deletion src/test/debate/debate-context.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
Loading