admin page for category mappings. fixed some bugs and other tweaks

This commit is contained in:
2025-12-01 06:48:34 -05:00
parent ba4ac2eaf6
commit 309d164139
122 changed files with 3190 additions and 17 deletions
+5 -2
View File
@@ -30,6 +30,9 @@ const PART_ROLE_TO_CATEGORY: Record<string, CategoryId> = {
"buffer-kit": "buffer" as CategoryId,
"lower-parts-kit": "lowerParts" as CategoryId,
sight: "sights" as CategoryId,
"lower-receiver": "lower" as CategoryId,
optic: "optic" as CategoryId,
stock: "stock" as CategoryId,
};
type BuildState = Partial<Record<CategoryId, string>>; // categoryId -> partId
@@ -177,7 +180,7 @@ export default function GunbuilderPage() {
Shadow Standard
</p>
<h1 className="mt-1 text-2xl md:text-3xl font-semibold tracking-tight">
Gunbuilder <span className="text-amber-300">Prototype</span>
The Armory <span className="text-amber-300">Prototype</span>
</h1>
<p className="mt-2 text-sm text-zinc-400 max-w-xl">
Choose one part per category to assemble an AR-15 build. Parts are
@@ -288,7 +291,7 @@ export default function GunbuilderPage() {
: ""
}`}
>
Continue to Buy
Build Summary
</Link>
<button
type="button"