feat: add token-saver dashboard page

- extract token saver into its own route /dashboard/token-saver
- slim down EndpointPageClient
- add token-saver nav to Header and Sidebar

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-26 10:12:25 +07:00
co-authored by Cursor
parent 0c47c891e7
commit cb65a45e1f
5 changed files with 477 additions and 384 deletions
+7
View File
@@ -112,6 +112,13 @@ const getPageInfo = (pathname) => {
icon: "security",
breadcrumbs: [],
};
if (pathname.includes("/token-saver"))
return {
title: "Token Saver",
description: "Compress prompts and outputs to save tokens",
icon: "savings",
breadcrumbs: [],
};
if (pathname.includes("/cli-tools"))
return {
title: "CLI Tools",
+1 -1
View File
@@ -24,7 +24,7 @@ const navItems = [
{ href: "/dashboard/combos", label: "Combos", icon: "layers" },
{ href: "/dashboard/usage", label: "Usage", icon: "bar_chart" },
{ href: "/dashboard/quota", label: "Quota Tracker", icon: "data_usage" },
{ href: "/dashboard/mitm", label: "MITM", icon: "security" },
{ href: "/dashboard/token-saver", label: "Token Saver", icon: "savings" },
{ href: "/dashboard/cli-tools", label: "CLI Tools", icon: "terminal" },
];