mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 20:03:30 +02:00
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:
parent
ed348b1bf9
commit
8c54ca27d7
16 changed files with 1188 additions and 1332 deletions
|
|
@ -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: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue