[PR #5207] [MERGED] feat: Add document count indicators to workspace document management modal #5352

Closed
opened 2026-06-05 15:21:04 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5207
Author: @angelplusultra
Created: 3/13/2026
Status: Merged
Merged: 3/17/2026
Merged by: @timothycarambat

Base: masterHead: 5121-feat-add-number-of-sources-to-my-documents-and-in-the-rag-ai-workspace


📝 Commits (5)

  • 3f23a7f add document counts to non-embedded and embedded documents
  • c13bc2d Update logic to not count search filtered documents
  • 302e284 refactor how count is done and rendered
  • f948c9a translations
  • e2d0e8a Merge branch 'master' into 5121-feat-add-number-of-sources-to-my-documents-and-in-the-rag-ai-workspace

📊 Changes

26 files changed (+76 additions, -3 deletions)

View changed files

📝 frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx (+6 -0)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/Directory/index.jsx (+13 -1)
📝 frontend/src/components/Modals/ManageWorkspace/Documents/WorkspaceDirectory/index.jsx (+11 -2)
📝 frontend/src/locales/ar/common.js (+2 -0)
📝 frontend/src/locales/cs/common.js (+2 -0)
📝 frontend/src/locales/da/common.js (+2 -0)
📝 frontend/src/locales/de/common.js (+2 -0)
📝 frontend/src/locales/en/common.js (+2 -0)
📝 frontend/src/locales/es/common.js (+2 -0)
📝 frontend/src/locales/et/common.js (+2 -0)
📝 frontend/src/locales/fa/common.js (+2 -0)
📝 frontend/src/locales/fr/common.js (+2 -0)
📝 frontend/src/locales/he/common.js (+2 -0)
📝 frontend/src/locales/it/common.js (+2 -0)
📝 frontend/src/locales/ja/common.js (+2 -0)
📝 frontend/src/locales/ko/common.js (+2 -0)
📝 frontend/src/locales/lv/common.js (+2 -0)
📝 frontend/src/locales/nl/common.js (+2 -0)
📝 frontend/src/locales/pl/common.js (+2 -0)
📝 frontend/src/locales/pt_BR/common.js (+2 -0)

...and 6 more files

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5121

Description

Adds document count indicators to the workspace document management modal so users can quickly see how many sources are available and embedded without having to manually count or expand folders.

  • My Documents panel: Displays total document count in the table header (e.g. "2 documents"), sourced from unfiltered data so search filtering does not affect the reported total.
  • Workspace panel: Displays embedded document count in the table header (e.g. "3 embedded").
  • Per-folder counts: Each folder row shows the total number of files it contains as a (N) badge next to the folder name. Uses the unfiltered files source to ensure accuracy regardless of active search terms.

Visuals (if applicable)

Additional Information

The document counts intentionally reflect the true totals from the unfiltered files data rather than the search-filtered results. This ensures the counts serve as a reliable inventory of how many documents exist in a given folder or panel, even when the user is actively searching.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5207 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5121-feat-add-number-of-sources-to-my-documents-and-in-the-rag-ai-workspace` --- ### 📝 Commits (5) - [`3f23a7f`](https://github.com/Mintplex-Labs/anything-llm/commit/3f23a7fd742641957b168dba84efde6c18fe2ca7) add document counts to non-embedded and embedded documents - [`c13bc2d`](https://github.com/Mintplex-Labs/anything-llm/commit/c13bc2d9ab2c82457e748fc4f3dd29840c9a02f0) Update logic to not count search filtered documents - [`302e284`](https://github.com/Mintplex-Labs/anything-llm/commit/302e28402d73da0acf0dd367ac41a752d54a9395) refactor how count is done and rendered - [`f948c9a`](https://github.com/Mintplex-Labs/anything-llm/commit/f948c9a030d9bc83adcce8c9b4ffc7ad69d83a66) translations - [`e2d0e8a`](https://github.com/Mintplex-Labs/anything-llm/commit/e2d0e8a40d50a7d1864bca67c3779ee114eed920) Merge branch 'master' into 5121-feat-add-number-of-sources-to-my-documents-and-in-the-rag-ai-workspace ### 📊 Changes **26 files changed** (+76 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx` (+6 -0) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/Directory/index.jsx` (+13 -1) 📝 `frontend/src/components/Modals/ManageWorkspace/Documents/WorkspaceDirectory/index.jsx` (+11 -2) 📝 `frontend/src/locales/ar/common.js` (+2 -0) 📝 `frontend/src/locales/cs/common.js` (+2 -0) 📝 `frontend/src/locales/da/common.js` (+2 -0) 📝 `frontend/src/locales/de/common.js` (+2 -0) 📝 `frontend/src/locales/en/common.js` (+2 -0) 📝 `frontend/src/locales/es/common.js` (+2 -0) 📝 `frontend/src/locales/et/common.js` (+2 -0) 📝 `frontend/src/locales/fa/common.js` (+2 -0) 📝 `frontend/src/locales/fr/common.js` (+2 -0) 📝 `frontend/src/locales/he/common.js` (+2 -0) 📝 `frontend/src/locales/it/common.js` (+2 -0) 📝 `frontend/src/locales/ja/common.js` (+2 -0) 📝 `frontend/src/locales/ko/common.js` (+2 -0) 📝 `frontend/src/locales/lv/common.js` (+2 -0) 📝 `frontend/src/locales/nl/common.js` (+2 -0) 📝 `frontend/src/locales/pl/common.js` (+2 -0) 📝 `frontend/src/locales/pt_BR/common.js` (+2 -0) _...and 6 more files_ </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues resolves #5121 ### Description Adds document count indicators to the workspace document management modal so users can quickly see how many sources are available and embedded without having to manually count or expand folders. - **My Documents panel**: Displays total document count in the table header (e.g. "2 documents"), sourced from unfiltered data so search filtering does not affect the reported total. - **Workspace panel**: Displays embedded document count in the table header (e.g. "3 embedded"). - **Per-folder counts**: Each folder row shows the total number of files it contains as a `(N)` badge next to the folder name. Uses the unfiltered `files` source to ensure accuracy regardless of active search terms. ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information The document counts intentionally reflect the true totals from the unfiltered `files` data rather than the search-filtered results. This ensures the counts serve as a reliable inventory of how many documents exist in a given folder or panel, even when the user is actively searching. ### Developer Validations - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated (if applicable) - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:04 -04:00
yindo closed this issue 2026-06-05 15:21:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5352