billing accoutn with all the mess here
This commit is contained in:
@@ -15,6 +15,8 @@ import {
|
||||
PageIcon,
|
||||
DollarLineIcon,
|
||||
FileIcon,
|
||||
UserIcon,
|
||||
UserCircleIcon,
|
||||
} from "../icons";
|
||||
import { useSidebar } from "../context/SidebarContext";
|
||||
import SidebarWidget from "./SidebarWidget";
|
||||
@@ -175,15 +177,25 @@ const AppSidebar: React.FC = () => {
|
||||
{
|
||||
label: "ACCOUNT",
|
||||
items: [
|
||||
{
|
||||
icon: <UserCircleIcon />,
|
||||
name: "Account Settings",
|
||||
path: "/account/settings",
|
||||
},
|
||||
{
|
||||
icon: <DollarLineIcon />,
|
||||
name: "Plans & Billing",
|
||||
path: "/account/billing",
|
||||
},
|
||||
{
|
||||
icon: <DollarLineIcon />,
|
||||
name: "Purchase Credits",
|
||||
path: "/account/credits/purchase",
|
||||
icon: <UserIcon />,
|
||||
name: "Team Management",
|
||||
path: "/account/team",
|
||||
},
|
||||
{
|
||||
icon: <PieChartIcon />,
|
||||
name: "Usage & Analytics",
|
||||
path: "/account/usage",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -191,16 +203,30 @@ const AppSidebar: React.FC = () => {
|
||||
label: "SETTINGS",
|
||||
items: [
|
||||
{
|
||||
icon: <PlugInIcon />,
|
||||
name: "Settings",
|
||||
subItems: [
|
||||
{ name: "General", path: "/settings" },
|
||||
{ name: "Plans", path: "/settings/plans" },
|
||||
{ name: "Integration", path: "/settings/integration" },
|
||||
{ name: "Publishing", path: "/settings/publishing" },
|
||||
{ name: "Import / Export", path: "/settings/import-export" },
|
||||
],
|
||||
icon: <UserCircleIcon />,
|
||||
name: "Profile Settings",
|
||||
path: "/settings/profile",
|
||||
},
|
||||
{
|
||||
icon: <PlugInIcon />,
|
||||
name: "Integration",
|
||||
path: "/settings/integration",
|
||||
},
|
||||
{
|
||||
icon: <PageIcon />,
|
||||
name: "Publishing",
|
||||
path: "/settings/publishing",
|
||||
},
|
||||
{
|
||||
icon: <FileIcon />,
|
||||
name: "Import / Export",
|
||||
path: "/settings/import-export",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "HELP & DOCS",
|
||||
items: [
|
||||
{
|
||||
icon: <DocsIcon />,
|
||||
name: "Help & Documentation",
|
||||
@@ -215,84 +241,66 @@ const AppSidebar: React.FC = () => {
|
||||
const adminSection: MenuSection = useMemo(() => ({
|
||||
label: "ADMIN",
|
||||
items: [
|
||||
{
|
||||
icon: <GridIcon />,
|
||||
name: "System Dashboard",
|
||||
path: "/admin/dashboard",
|
||||
},
|
||||
{
|
||||
icon: <UserIcon />,
|
||||
name: "Account Management",
|
||||
subItems: [
|
||||
{ name: "All Accounts", path: "/admin/accounts" },
|
||||
{ name: "Subscriptions", path: "/admin/subscriptions" },
|
||||
{ name: "Account Limits", path: "/admin/account-limits" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <DollarLineIcon />,
|
||||
name: "Billing & Credits",
|
||||
name: "Billing Administration",
|
||||
subItems: [
|
||||
{ name: "Billing Management", path: "/admin/billing" },
|
||||
{ name: "Payment Approvals", path: "/admin/payments/approvals" },
|
||||
{ name: "Credit Costs", path: "/admin/credit-costs" },
|
||||
{ name: "Billing Overview", path: "/admin/billing" },
|
||||
{ name: "Invoices", path: "/admin/invoices" },
|
||||
{ name: "Payments", path: "/admin/payments" },
|
||||
{ name: "Credit Costs Config", path: "/admin/credit-costs" },
|
||||
{ name: "Credit Packages", path: "/admin/credit-packages" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <UserCircleIcon />,
|
||||
name: "User Administration",
|
||||
subItems: [
|
||||
{ name: "All Users", path: "/admin/users" },
|
||||
{ name: "Roles & Permissions", path: "/admin/roles" },
|
||||
{ name: "Activity Logs", path: "/admin/activity-logs" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <PlugInIcon />,
|
||||
name: "User Management",
|
||||
name: "System Configuration",
|
||||
subItems: [
|
||||
{ name: "Users", path: "/settings/users" },
|
||||
{ name: "Subscriptions", path: "/settings/subscriptions" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <PlugInIcon />,
|
||||
name: "Configuration",
|
||||
subItems: [
|
||||
{ name: "System Settings", path: "/settings/system" },
|
||||
{ name: "Account Settings", path: "/settings/account" },
|
||||
{ name: "Module Settings", path: "/settings/modules" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <BoltIcon />,
|
||||
name: "AI Controls",
|
||||
subItems: [
|
||||
{ name: "AI Settings", path: "/settings/ai" },
|
||||
{ name: "System Settings", path: "/admin/system-settings" },
|
||||
{ name: "AI Settings", path: "/admin/ai-settings" },
|
||||
{ name: "Module Settings", path: "/admin/module-settings" },
|
||||
{ name: "Integration Settings", path: "/admin/integration-settings" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <PieChartIcon />,
|
||||
name: "System Health",
|
||||
name: "Monitoring",
|
||||
subItems: [
|
||||
{ name: "Status", path: "/settings/status" },
|
||||
{ name: "API Monitor", path: "/settings/api-monitor" },
|
||||
{ name: "Debug Status", path: "/settings/debug-status" },
|
||||
{ name: "System Health", path: "/admin/health" },
|
||||
{ name: "API Monitor", path: "/admin/api-monitor" },
|
||||
{ name: "Usage Analytics", path: "/admin/analytics" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <DocsIcon />,
|
||||
name: "Testing Tools",
|
||||
icon: <BoltIcon />,
|
||||
name: "Developer Tools",
|
||||
subItems: [
|
||||
{ name: "Function Testing", path: "/help/function-testing" },
|
||||
{ name: "System Testing", path: "/help/system-testing" },
|
||||
],
|
||||
},
|
||||
{
|
||||
icon: <PageIcon />,
|
||||
name: "UI Elements",
|
||||
subItems: [
|
||||
{ name: "Alerts", path: "/ui-elements/alerts" },
|
||||
{ name: "Avatar", path: "/ui-elements/avatars" },
|
||||
{ name: "Badge", path: "/ui-elements/badges" },
|
||||
{ name: "Breadcrumb", path: "/ui-elements/breadcrumb" },
|
||||
{ name: "Buttons", path: "/ui-elements/buttons" },
|
||||
{ name: "Buttons Group", path: "/ui-elements/buttons-group" },
|
||||
{ name: "Cards", path: "/ui-elements/cards" },
|
||||
{ name: "Carousel", path: "/ui-elements/carousel" },
|
||||
{ name: "Dropdowns", path: "/ui-elements/dropdowns" },
|
||||
{ name: "Images", path: "/ui-elements/images" },
|
||||
{ name: "Links", path: "/ui-elements/links" },
|
||||
{ name: "List", path: "/ui-elements/list" },
|
||||
{ name: "Modals", path: "/ui-elements/modals" },
|
||||
{ name: "Notification", path: "/ui-elements/notifications" },
|
||||
{ name: "Pagination", path: "/ui-elements/pagination" },
|
||||
{ name: "Popovers", path: "/ui-elements/popovers" },
|
||||
{ name: "Pricing Table", path: "/ui-elements/pricing-table" },
|
||||
{ name: "Progressbar", path: "/ui-elements/progressbar" },
|
||||
{ name: "Ribbons", path: "/ui-elements/ribbons" },
|
||||
{ name: "Spinners", path: "/ui-elements/spinners" },
|
||||
{ name: "Tabs", path: "/ui-elements/tabs" },
|
||||
{ name: "Tooltips", path: "/ui-elements/tooltips" },
|
||||
{ name: "Videos", path: "/ui-elements/videos" },
|
||||
{ name: "Components", path: "/components" },
|
||||
{ name: "Function Testing", path: "/admin/function-testing" },
|
||||
{ name: "System Testing", path: "/admin/system-testing" },
|
||||
{ name: "UI Elements", path: "/admin/ui-elements" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user