Studio: label the Chat with files composer pill Files instead of RAG (#14179)

## What changed

The Chat with files pill in the chat composer now reads "Files" instead
of "RAG", both the label and its compact-mode hover tooltip
(`data-pill-label`). "Files" is the short form of the panel's "Chat with
files" title and is clearer than the acronym. The embedding model pin
and unpin labels in Settings ("Pin to the RAG menu") pointed at that
same menu, so they now say the Files menu in all 14 locales. The pill is
not translated, so every locale names it literally as Files. The panel
header keeps "Chat with files (RAG)", and the pill's accessible name
stays "Retrieval source".

## Verification

- `npm run typecheck` passes; the 567 RAG, composer and knowledge-base
tests pass. Biome reports nothing new in the touched file.
- Isolated Studio built from this branch, Playwright (Chromium): turning
on Chat with files from the composer + menu shows the pill as "Files"
with `data-pill-label="Files"`, and no page errors. In Settings >
General > Documents & RAG, hovering an embedding model's pin shows "Pin
to the Files menu".

The composer with Chat with files on: the pill now reads Files.

![Composer pill labelled
Files](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/14179/composer_files_crop_q-5553522b6d0a.png)

Settings > General > Documents & RAG > Embedding model: the pin tooltip
names the Files menu.

![Embedding model pin tooltip says Pin to the Files
menu](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/14179/pin_tooltip_files_q-1124b4a91036.png)
This commit is contained in:
Michael Han 2026-10-18 20:06:18 -07:00 • committed by GitHub
parent 8675c63bfc
commit 2fee36ffa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 30 additions and 30 deletions

View file

@ -119,7 +119,7 @@ export function KnowledgeBaseComposerButton({
<button
type="button"
className="composer-pill-btn"
data-pill-label="RAG"
data-pill-label="Files"
data-active={ragDisabled ? "false" : "true"}
aria-label="Retrieval source"
>
@ -149,7 +149,7 @@ export function KnowledgeBaseComposerButton({
/>
<XIcon className="composer-pill-x" />
</span>
<span>RAG</span>
<span>Files</span>
<ChevronDownIcon strokeWidth={1.5} className="composer-pill-caret size-[calc(15px*var(--ui-space-scale,1))]" />
</button>
</DropdownMenuTrigger>

View file

@ -1915,8 +1915,8 @@ export const ar = {
downloadFailed: "تعذّر بدء التنزيل",
downloadConflict: "استأنف هذا التنزيل من Hub",
downloadBusy: "التنزيل قيد التقدم بالفعل",
pin: "تثبيت في قائمة RAG",
unpin: "إلغاء التثبيت من قائمة RAG",
pin: "تثبيت في قائمة Files",
unpin: "إلغاء التثبيت من قائمة Files",
menuChip: "النموذج",
moreModels: "المزيد من النماذج",
pinMoreModels: "ثبّت نماذج أخرى",

View file

@ -1942,8 +1942,8 @@ export const de = {
downloadFailed: "Download konnte nicht gestartet werden",
downloadConflict: "Diesen Download im Hub fortsetzen",
downloadBusy: "Download läuft bereits",
pin: "An das RAG-Menü anheften",
unpin: "Vom RAG-Menü lösen",
pin: "An das Files-Menü anheften",
unpin: "Vom Files-Menü lösen",
menuChip: "Modell",
moreModels: "Weitere Modelle",
pinMoreModels: "Weitere Modelle anheften",

View file

@ -1987,8 +1987,8 @@ export const en = {
downloadFailed: "Couldn't start the download",
downloadConflict: "Resume this download from the Hub",
downloadBusy: "Download already in progress",
pin: "Pin to the RAG menu",
unpin: "Unpin from the RAG menu",
pin: "Pin to the Files menu",
unpin: "Unpin from the Files menu",
menuChip: "Model",
moreModels: "More models",
pinMoreModels: "Pin more models",

View file

@ -1937,8 +1937,8 @@ export const es = {
downloadFailed: "No se pudo iniciar la descarga",
downloadConflict: "Reanuda esta descarga desde el Hub",
downloadBusy: "La descarga ya está en curso",
pin: "Fijar en el menú RAG",
unpin: "Quitar del menú RAG",
pin: "Fijar en el menú Files",
unpin: "Quitar del menú Files",
menuChip: "Modelo",
moreModels: "Más modelos",
pinMoreModels: "Fijar más modelos",

View file

@ -1940,8 +1940,8 @@ export const fr = {
downloadFailed: "Impossible de démarrer le téléchargement",
downloadConflict: "Reprenez ce téléchargement depuis le Hub",
downloadBusy: "Téléchargement déjà en cours",
pin: "Épingler au menu RAG",
unpin: "Désépingler du menu RAG",
pin: "Épingler au menu Files",
unpin: "Désépingler du menu Files",
menuChip: "Modèle",
moreModels: "Plus de modèles",
pinMoreModels: "Épingler d'autres modèles",

View file

@ -2029,8 +2029,8 @@ export const he = {
downloadFailed: "לא ניתן להתחיל בהורדה",
downloadConflict: "המשך הורדה זו מתוך ה-Hub",
downloadBusy: "הורדה כבר מתבצעת כעת",
pin: "הצמדה לתפריט RAG",
unpin: "ביטול הצמדה מתפריט RAG",
pin: "הצמדה לתפריט Files",
unpin: "ביטול הצמדה מתפריט Files",
menuChip: "מודל",
moreModels: "מודלים נוספים",
pinMoreModels: "הצמדת מודלים נוספים",

View file

@ -1921,8 +1921,8 @@ export const hi = {
downloadFailed: "डाउनलोड शुरू नहीं हो सका",
downloadConflict: "इस डाउनलोड को Hub से फिर से शुरू करें",
downloadBusy: "डाउनलोड पहले से चल रहा है",
pin: "RAG मेन्यू में पिन करें",
unpin: "RAG मेन्यू से अनपिन करें",
pin: "Files मेन्यू में पिन करें",
unpin: "Files मेन्यू से अनपिन करें",
menuChip: "मॉडल",
moreModels: "और मॉडल",
pinMoreModels: "और मॉडल पिन करें",

View file

@ -1866,8 +1866,8 @@ export const it = {
downloadFailed: "Impossibile avviare il download",
downloadConflict: "Riprendi questo download dall'Hub",
downloadBusy: "Download già in corso",
pin: "Fissa nel menu RAG",
unpin: "Rimuovi dal menu RAG",
pin: "Fissa nel menu Files",
unpin: "Rimuovi dal menu Files",
menuChip: "Modello",
moreModels: "Altri modelli",
pinMoreModels: "Fissa altri modelli",

View file

@ -1899,8 +1899,8 @@ export const ja = {
downloadFailed: "ダウンロードを開始できませんでした",
downloadConflict: "このダウンロードは Hub から再開してください",
downloadBusy: "ダウンロードはすでに進行中です",
pin: "RAG メニューにピン留め",
unpin: "RAG メニューからピン留めを外す",
pin: "Files メニューにピン留め",
unpin: "Files メニューからピン留めを外す",
menuChip: "モデル",
moreModels: "その他のモデル",
pinMoreModels: "他のモデルをピン留め",

View file

@ -1909,8 +1909,8 @@ export const ko = {
downloadFailed: "다운로드를 시작할 수 없습니다",
downloadConflict: "Hub에서 이 다운로드를 재개하세요",
downloadBusy: "이미 다운로드가 진행 중입니다",
pin: "RAG 메뉴에 고정",
unpin: "RAG 메뉴에서 고정 해제",
pin: "Files 메뉴에 고정",
unpin: "Files 메뉴에서 고정 해제",
menuChip: "모델",
moreModels: "더 많은 모델",
pinMoreModels: "모델 더 고정하기",

View file

@ -1929,8 +1929,8 @@ export const ptBR = {
downloadFailed: "Não foi possível iniciar o download",
downloadConflict: "Retome este download pelo Hub",
downloadBusy: "Download já em andamento",
pin: "Fixar no menu RAG",
unpin: "Desafixar do menu RAG",
pin: "Fixar no menu Files",
unpin: "Desafixar do menu Files",
menuChip: "Modelo",
moreModels: "Mais modelos",
pinMoreModels: "Fixar mais modelos",

View file

@ -1924,8 +1924,8 @@ export const ru = {
downloadFailed: "Не удалось начать загрузку",
downloadConflict: "Возобновите эту загрузку в Hub",
downloadBusy: "Загрузка уже выполняется",
pin: "Закрепить в меню RAG",
unpin: "Открепить из меню RAG",
pin: "Закрепить в меню Files",
unpin: "Открепить из меню Files",
menuChip: "Модель",
moreModels: "Другие модели",
pinMoreModels: "Закрепить другие модели",

View file

@ -2102,8 +2102,8 @@ export const sv = {
downloadFailed: "Det gick inte att starta hämtningen",
downloadConflict: "Återuppta denna hämtning från Hubben",
downloadBusy: "En hämtning pågår redan",
pin: "Fäst i RAG-menyn",
unpin: "Lossa från RAG-menyn",
pin: "Fäst i Files-menyn",
unpin: "Lossa från Files-menyn",
menuChip: "Modell",
moreModels: "Fler modeller",
pinMoreModels: "Fäst fler modeller",

View file

@ -1891,8 +1891,8 @@ export const zhCN = {
downloadFailed: "无法开始下载",
downloadConflict: "请在 Hub 中继续此下载",
downloadBusy: "下载已在进行中",
pin: "固定到 RAG 菜单",
unpin: "从 RAG 菜单取消固定",
pin: "固定到 Files 菜单",
unpin: "从 Files 菜单取消固定",
menuChip: "模型",
moreModels: "更多模型",
pinMoreModels: "固定更多模型",