NAVIGATION_REFACTOR COMPLETED

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-17 03:49:50 +00:00
parent 47a00e8875
commit 501a269450
29 changed files with 3839 additions and 2103 deletions

View File

@@ -148,28 +148,35 @@ const AppSidebar: React.FC = () => {
{ name: "Content Queue", path: "/writer/tasks" },
{ name: "Content Drafts", path: "/writer/content" },
{ name: "Content Images", path: "/writer/images" },
{ name: "Content Review", path: "/writer/review" },
{ name: "Content Approved", path: "/writer/approved" },
],
});
}
// Add Automation if enabled (no dropdown - single page)
// Add Publisher (after Writer) - always visible
workflowItems.push({
icon: <CalendarIcon />,
name: "Publisher",
subItems: [
{ name: "Content Review", path: "/writer/review" },
{ name: "Publish / Schedule", path: "/writer/approved" },
{ name: "Publish Settings", path: "/publisher/settings" },
{ name: "Content Calendar", path: "/publisher/content-calendar" },
],
});
// Add Automation if enabled (with dropdown)
if (isModuleEnabled('automation')) {
workflowItems.push({
icon: <BoltIcon />,
name: "Automation",
path: "/automation",
subItems: [
{ name: "Overview", path: "/automation/overview" },
{ name: "Settings", path: "/automation/settings" },
{ name: "Run Now (Manual)", path: "/automation/run" },
],
});
}
// Add Content Calendar (Publisher) - always visible
workflowItems.push({
icon: <CalendarIcon />,
name: "Content Calendar",
path: "/publisher/content-calendar",
});
// Linker and Optimizer removed - not active modules
return [
@@ -195,19 +202,10 @@ const AppSidebar: React.FC = () => {
{
label: "ACCOUNT",
items: [
{
icon: <Bell className="w-5 h-5" />,
name: "Notifications",
path: "/account/notifications",
},
{
icon: <UserCircleIcon />,
name: "Account Settings",
subItems: [
{ name: "Account", path: "/account/settings" },
{ name: "Profile", path: "/account/settings/profile" },
{ name: "Team", path: "/account/settings/team" },
],
path: "/account/settings", // Single page, no sub-items
},
{
icon: <DollarLineIcon />,
@@ -230,6 +228,11 @@ const AppSidebar: React.FC = () => {
{
label: "HELP",
items: [
{
icon: <Bell className="w-5 h-5" />,
name: "Notifications",
path: "/account/notifications",
},
{
icon: <DocsIcon />,
name: "Help & Docs",
@@ -503,7 +506,7 @@ const AppSidebar: React.FC = () => {
)}
</Link>
</div>
<div className="flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar">
<div className="flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar mt-[50px]">
<nav>
<div className="flex flex-col gap-1">
{allSections.map((section, sectionIndex) => (