Repository navigation
fix(webui): say "add" and "ask GAIA" instead of "index" and "Ask Agent" - #7475
Merged
Merged
Conversation
…"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.
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.
🔍 Technical details
|
3 of 4 tasks
…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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 shownnpx tsc --noEmit -p .npm run test:rtldocument library scenes and the dates scene (library and file browser, en and ar); read the English library and Arabic file-browser screenshots