subnav and other stuff

This commit is contained in:
2025-12-03 20:56:05 -05:00
parent 76ebb30d96
commit 7cee90381d
163 changed files with 1216 additions and 3515 deletions
+16 -2
View File
@@ -1,3 +1,6 @@
// Grouping for nav + layout
export type CategoryGroup = "lower" | "upper" | "accessories";
export type CategoryId =
| "upper"
| "completeUpper"
@@ -18,12 +21,22 @@ export type CategoryId =
| "safety"
| "sights"
| "optic"
| "stock";
| "stock"
// NEW ACCESSORY CATEGORIES
| "magazine"
| "weaponLight"
| "foregrip"
| "bipod"
| "sling"
| "railAccessory"
| "tools";
export interface Category {
id: CategoryId;
name: string;
description?: string;
/** used for nav & grouping */
group?: CategoryGroup;
}
export interface Part {
@@ -32,7 +45,8 @@ export interface Part {
brand: string;
categoryId: CategoryId;
price: number;
affiliateUrl: string;
affiliateUrl?: string;
url?: string;
imageUrl?: string;
notes?: string;
}