refactor(ux): combined sources to one section

- Renamed "Documents" section to "Sources" in the dashboard layout.
- Updated routing for adding sources and managing documents.
- Refactored the connectors and documents upload pages to redirect to the new sources section.
- Added localization support for the new "Sources" terminology in English and Chinese.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-11-07 14:28:30 -08:00
parent ed348b1bf9
commit 8c54ca27d7
16 changed files with 1188 additions and 1332 deletions

View file

@ -36,13 +36,9 @@ export function NavMain({ items }: { items: NavItem[] }) {
const titleMap: Record<string, string> = {
Researcher: "researcher",
"Manage LLMs": "manage_llms",
Documents: "documents",
"Upload Documents": "upload_documents",
"Add Webpages": "add_webpages",
"Add Youtube Videos": "add_youtube",
Sources: "sources",
"Add Sources": "add_sources",
"Manage Documents": "manage_documents",
Connectors: "connectors",
"Add Connector": "add_connector",
"Manage Connectors": "manage_connectors",
Podcasts: "podcasts",
Logs: "logs",