Remove command-center page and dependencies
Deploy to route.crispygoat.com / deploy (push) Successful in 4m20s

The /admin/command-center route was platform_admin-only, used a heavy
custom theme (Major Mono / JetBrains / Inter Tight + ~700 lines of
schematic CSS), called three RPCs, and overlapped with the per-brand
dashboards reachable at /admin, /admin/orders, /admin/stops, and
/admin/reports. The page is being removed; it didn't justify the
build complexity, font payload, or schema surface area.

Changes:
- Drop page, dashboard component, CSS, and server actions
- Remove the platform_admin nav entry from header + sidebar
- Remove the cmd+K palette entry
- Add migration 0042 to drop the 3 RPCs, founder_pain_log table,
  and founder_pain_log_platform view it owned
- Decrement route count in docs/pricing-assessment.md (88 -> 87)

Verification: tsc clean, eslint clean, npm run build clean, command-
center absent from the route list.
This commit is contained in:
Tyler
2026-06-17 10:18:33 -06:00
parent 3d4b98d703
commit 0a534222e8
9 changed files with 21 additions and 2190 deletions
File diff suppressed because it is too large Load Diff
-50
View File
@@ -1,50 +0,0 @@
import { getAdminUser } from "@/lib/admin-permissions";
import AdminAccessDenied from "@/components/admin/AdminAccessDenied";
import CommandCenterDashboard from "@/components/admin/CommandCenterDashboard";
import { redirect } from "next/navigation";
import { Major_Mono_Display, JetBrains_Mono, Inter_Tight } from "next/font/google";
import "./command-center.css";
/**
* Command Center — Operations Schematic
*
* Industrial mission-control feel: phosphor amber on near-black, dense data,
* CAD-style corner crosshairs, brand ticker, serial-numbered sections. Three
* typefaces working in concert: Major Mono Display (wordmark only), JetBrains
* Mono (all labels/numbers/timestamps), Inter Tight (descriptive body copy).
*/
const majorMono = Major_Mono_Display({
subsets: ["latin"],
weight: "400",
variable: "--cc-font-mono-major",
display: "swap",
});
const jetbrainsMono = JetBrains_Mono({
subsets: ["latin"],
variable: "--cc-font-mono",
display: "swap",
weight: ["400", "500", "600", "700"],
});
const interTight = Inter_Tight({
subsets: ["latin"],
variable: "--cc-font-body",
display: "swap",
weight: ["400", "500", "600"],
});
export default async function CommandCenterPage() {
const adminUser = await getAdminUser();
if (!adminUser) return <AdminAccessDenied />;
if (adminUser.role !== "platform_admin") return <AdminAccessDenied message="Platform admin access required." />;
if (adminUser.must_change_password) redirect("/change-password");
return (
<div
className={`${majorMono.variable} ${jetbrainsMono.variable} ${interTight.variable} cc-schematic`}
>
<CommandCenterDashboard />
</div>
);
}