diff --git a/app/builder/[categoryId]/[partId]/data.ts b/app/(builder)/builder/[categoryId]/[partId]/data.ts similarity index 100% rename from app/builder/[categoryId]/[partId]/data.ts rename to app/(builder)/builder/[categoryId]/[partId]/data.ts diff --git a/app/builder/[categoryId]/[partId]/page.tsx b/app/(builder)/builder/[categoryId]/[partId]/page.tsx similarity index 100% rename from app/builder/[categoryId]/[partId]/page.tsx rename to app/(builder)/builder/[categoryId]/[partId]/page.tsx diff --git a/app/builder/[categoryId]/page.tsx b/app/(builder)/builder/[categoryId]/page.tsx similarity index 100% rename from app/builder/[categoryId]/page.tsx rename to app/(builder)/builder/[categoryId]/page.tsx diff --git a/app/(builder)/builder/layout.tsx b/app/(builder)/builder/layout.tsx new file mode 100644 index 0000000..b04be4c --- /dev/null +++ b/app/(builder)/builder/layout.tsx @@ -0,0 +1,58 @@ +// app/(builder)/layout.tsx +import type { ReactNode } from "react"; + +import { AuthProvider } from "@/context/AuthContext"; +import { BuilderNav } from "@/components/BuilderNav"; + +export const metadata = { + title: { + default: "Battl Builder", + template: "%s | Battl Builder", + }, + description: + "Battl Builder — the smarter, faster, data‑driven way to build your next firearm.", +}; + +export default function BuilderLayout({ children }: { children: ReactNode }) { + return ( +
+ Admin +
++ Battl Builders Control Panel +
++ Promote trusted accounts to admins. All new signups start as{" "} + USER. +
+| + Display Name + | +Role | +Created | ++ Last Login + | +|
|---|---|---|---|---|
| + {u.email} + | ++ {u.displayName || "—"} + | +
+
+
+ {u.role}
+
+
+
+ |
+ + {u.createdAt + ? new Date(u.createdAt).toLocaleDateString() + : "—"} + | ++ {u.lastLoginAt + ? new Date(u.lastLoginAt).toLocaleDateString() + : "—"} + | +
+ Note: Role changes take effect on the user's next request. All new + accounts are created as USER by + default. +
+- For Those Who Build With Intent. -
-+ Battl Builders +
+ ++ From part comparisons to full-build matchups, Battl Builders helps you find the right components, catch compatibility issues, and score the best deals — all without juggling tabs or spreadsheets. + +
+ ++ Drop your email and we'll send early access when the Builder + goes hot. No spam, just builds. +
+ + +