Skip to content

fix(webui): say "add" and "ask GAIA" instead of "index" and "Ask Agent" - #7475

Merged
kovtcharov-amd merged 3 commits into
amd:mainfrom
kovtcharov:kalin/ux-files-wording
Nov 12, 2026
Merged

kovtcharov-amd merged 3 commits into
amd:mainfrom
kovtcharov:kalin/ux-files-wording

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

The document library and file browser spoke in internal words: "Drop files here to index", an "Index" button, "1 document · 1 chunk", and file-browser buttons "Index Selected" and "Ask Agent", so a new user couldn't tell which one makes GAIA read a file. Now the library says "Drop files here to add them" with an "Add" button and shows sizes without chunk counts, and the file browser offers "Add to library" and "Ask GAIA about these", in English and Arabic. Behaviour is unchanged.

Merging the four ways in (+, the folder chip, the library, the file browser) into one is a product decision, scoped on #7382.

Refs #7382

Test plan

  • npx vitest run (294 files, 3536 tests passed), with the library and file-browser tests moved to the new words and a test that no chunk count is shown
  • npx tsc --noEmit -p .
  • npm run test:rtl document library scenes and the dates scene (library and file browser, en and ar); read the English library and Arabic file-browser screenshots
  • Looked at in the packaged app

…"Ask Agent"

The document library and file browser spoke in internal words: "Drop files
here to index", an "Index" button, "1 document · 1 chunk", and file
browser buttons "Index Selected" and "Ask Agent". A new user couldn't tell
which one made GAIA read a file.

Now the library says "Drop files here to add them" with an "Add" button
and shows sizes without chunk counts, and the file browser offers "Add to
library" and "Ask GAIA about these", translated.

Refs amd#7382
The document library's path box is now labelled "File path to add"; the
Electron source check still expected the old "File path to index" label and
failed.
@github-actions github-actions Bot added the tests Test changes label Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

The new words are clearer, and the change is correct: every renamed string has an English and an Arabic entry, the removed chunk keys have no other users, and the tests follow the new labels. There are two things to sort out before merge.

  • 🟡 Follow-up: the file browser still says "indexed" right after you click "Add to library". The status line beside the new buttons is still hard-coded English ("Indexing 2 file(s)...", "Successfully indexed 2 file(s)"), so it uses the word this PR removes and shows up in English in the Arabic UI. Move those strings into the locale files with the new wording, or file an issue for it.
  • 🟡 No screenshots on the PR. For an Agent UI change, the before and after screenshots need to be in the description. The RTL screenshots were read locally but aren't attached, and the packaged-app check is still open. Embed the English library and Arabic file-browser shots.
🔍 Technical details
  • FileBrowser.tsx:346,352,361,385,413 call setIndexStatus(...) with literal English and "item(s)" style plurals. That status renders in .fb-index-status, inside the same .fb-actions bar this PR localised. Suggested keys: fileBrowser.adding / fileBrowser.added (with t.plural) / fileBrowser.addFailed. Lower the hardcodedText.baseline.json count to match.
  • In the library, docs.indexingFile / docs.indexingFolder still read "Indexing {name}...". That's acceptable as a progress state, but "Adding {name}..." would match the new Add button.
  • Nit: fileBrowser.askGaiaTitle says "Add the selected files to this chat". From the new-chat screen, Ask GAIA starts a new chat instead (see App.askAgent.test.tsx, "Ask Agent from the new-chat screen"). "…to a chat and ask GAIA about them" is accurate on both paths.

…nguages

After "Add to library" the status beside the button still read
"Indexing 2 file(s)..." and "Successfully indexed 2 file(s)", in English
even in the Arabic UI. The status now uses the same words as the buttons and
comes from the locale files. The Ask GAIA hint says "to a chat", since from
the new-chat screen it starts a new one.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 12, 2026
Merged via the queue into amd:main with commit e3fd423 Nov 12, 2026
80 of 81 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/ux-files-wording branch November 12, 2026 11:16
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
The document library tells users "A chat searches only the documents
attached to it", but never showed which chat a document was in: the list
looked the same whichever chat was chosen, adding an existing document
was an unlabelled link icon, and a long library sat under a tall drop
zone with no way to find one file. Now each row says "In this chat", "In
2 chats" or "Not in any chat" (from the count the server already
returns), the add action reads "Add to this chat", the drop zone shrinks
to one line once there are documents, and a library of more than five
documents gets a filter box. The "index" and "chunks" wording half of
the issue is already in #7475, so this PR only refers to the issue.

Refs #7419

## Screenshots

From `npm run test:rtl -g "long document library"`.

| | English | Arabic |
|---|---|---|
| Long library | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-en-long-library.png"
alt="Long library with usage labels, English" width="420"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-ar-long-library.png"
alt="Long library with usage labels, Arabic" width="420"> |
| Filtered | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-en-filtered.png"
alt="Library filtered by name, English" width="420"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-ar-filtered.png"
alt="Library filtered by name, Arabic" width="420"> |

## Test plan
- [x] `npx vitest run` (296 files, 3552 tests), with new tests for the
usage labels, the labelled add action and the filter
- [x] `npx tsc --noEmit -p .`
- [x] `npm run test:rtl` document scenes, with a new long-library scene
(filter, usage labels, an Arabic file name); read the English and Arabic
screenshots
- [ ] Not looked at in the packaged app: it loads the same built bundle
as the screenshots below, rendered in Chrome on Windows

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
The document library tells users "A chat searches only the documents
attached to it", but never showed which chat a document was in: the list
looked the same whichever chat was chosen, adding an existing document
was an unlabelled link icon, and a long library sat under a tall drop
zone with no way to find one file. Now each row says "In this chat", "In
2 chats" or "Not in any chat" (from the count the server already
returns), the add action reads "Add to this chat", the drop zone shrinks
to one line once there are documents, and a library of more than five
documents gets a filter box. The "index" and "chunks" wording half of
the issue is already in amd#7475, so this PR only refers to the issue.

Refs amd#7419

## Screenshots

From `npm run test:rtl -g "long document library"`.

| | English | Arabic |
|---|---|---|
| Long library | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-en-long-library.png"
alt="Long library with usage labels, English" width="420"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-ar-long-library.png"
alt="Long library with usage labels, Arabic" width="420"> |
| Filtered | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-en-filtered.png"
alt="Library filtered by name, English" width="420"> | <img
src="https://raw.githubusercontent.com/kovtcharov/gaia/f2f8a7e196ec45bccf65a79e866f10006409b02d/7514/documents-ar-filtered.png"
alt="Library filtered by name, Arabic" width="420"> |

## Test plan
- [x] `npx vitest run` (296 files, 3552 tests), with new tests for the
usage labels, the labelled add action and the filter
- [x] `npx tsc --noEmit -p .`
- [x] `npm run test:rtl` document scenes, with a new long-library scene
(filter, usage labels, an Arabic file name); read the English and Arabic
screenshots
- [ ] Not looked at in the packaged app: it loads the same built bundle
as the screenshots below, rendered in Chrome on Windows

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants