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

@ -4,6 +4,7 @@ import {
AlertCircle,
BookOpen,
Cable,
Database,
ExternalLink,
FileStack,
FileText,
@ -40,6 +41,7 @@ import {
export const iconMap: Record<string, LucideIcon> = {
BookOpen,
Cable,
Database,
FileStack,
Undo2,
MessageCircleMore,
@ -69,54 +71,24 @@ const defaultData = {
items: [],
},
{
title: "Documents",
title: "Sources",
url: "#",
icon: "FileStack",
icon: "Database",
items: [
{
title: "Upload Documents",
title: "Add Sources",
url: "#",
},
// {
// title: "Add Webpages",
// url: "#",
// },
{
title: "Manage Documents",
url: "#",
},
],
},
{
title: "Connectors",
url: "#",
icon: "Cable",
items: [
{
title: "Add Connector",
url: "#",
},
{
title: "Manage Connectors",
url: "#",
},
],
},
{
title: "Research Synthesizer's",
url: "#",
icon: "SquareLibrary",
items: [
{
title: "Podcast Creator",
url: "#",
},
{
title: "Presentation Creator",
url: "#",
},
],
},
],
navSecondary: [
{