fix: add hobby tags to catalog seed data for onboarding discovery
This commit is contained in:
@@ -369,36 +369,45 @@ export const DEV_GLOBAL_ITEMS = [
|
|||||||
// Maps global item index -> tag names. Tags are seeded by seedGlobalItems().
|
// Maps global item index -> tag names. Tags are seeded by seedGlobalItems().
|
||||||
|
|
||||||
export const DEV_TAG_ASSIGNMENTS = [
|
export const DEV_TAG_ASSIGNMENTS = [
|
||||||
{ globalItemIndex: 0, tagNames: ["saddlebag", "bike-bag"] },
|
// Bags — bikepacking/cycling gear
|
||||||
{ globalItemIndex: 1, tagNames: ["handlebar-bag", "bike-bag"] },
|
{ globalItemIndex: 0, tagNames: ["saddlebag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 2, tagNames: ["framebag", "bike-bag"] },
|
{ globalItemIndex: 1, tagNames: ["handlebar-bag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 3, tagNames: ["handlebar-bag", "bike-bag"] },
|
{ globalItemIndex: 2, tagNames: ["framebag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 4, tagNames: ["framebag", "bike-bag"] },
|
{ globalItemIndex: 3, tagNames: ["handlebar-bag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 5, tagNames: ["top-tube-bag", "bike-bag"] },
|
{ globalItemIndex: 4, tagNames: ["framebag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 6, tagNames: ["tent"] },
|
{ globalItemIndex: 5, tagNames: ["top-tube-bag", "bike-bag", "bikepacking", "cycling"] },
|
||||||
{ globalItemIndex: 7, tagNames: ["tent"] },
|
// Shelter — camping/hiking/bikepacking
|
||||||
{ globalItemIndex: 8, tagNames: ["tent"] },
|
{ globalItemIndex: 6, tagNames: ["tent", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 9, tagNames: ["tent"] },
|
{ globalItemIndex: 7, tagNames: ["tent", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 10, tagNames: ["quilt"] },
|
{ globalItemIndex: 8, tagNames: ["tent", "camping", "hiking", "backpacking"] },
|
||||||
{ globalItemIndex: 11, tagNames: ["sleeping-pad"] },
|
{ globalItemIndex: 9, tagNames: ["tent", "camping", "hiking", "backpacking", "climbing", "mountaineering"] },
|
||||||
{ globalItemIndex: 12, tagNames: ["sleeping-pad"] },
|
// Sleep — camping/hiking/bikepacking
|
||||||
{ globalItemIndex: 13, tagNames: ["pillow"] },
|
{ globalItemIndex: 10, tagNames: ["quilt", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 14, tagNames: ["sleeping-bag"] },
|
{ globalItemIndex: 11, tagNames: ["sleeping-pad", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 15, tagNames: ["stove"] },
|
{ globalItemIndex: 12, tagNames: ["sleeping-pad", "camping", "hiking", "backpacking"] },
|
||||||
{ globalItemIndex: 16, tagNames: ["stove"] },
|
{ globalItemIndex: 13, tagNames: ["pillow", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 17, tagNames: ["cookware", "mug"] },
|
{ globalItemIndex: 14, tagNames: ["sleeping-bag", "camping", "hiking", "backpacking", "climbing"] },
|
||||||
{ globalItemIndex: 18, tagNames: ["cookware"] },
|
// Cooking — camping/hiking/bikepacking
|
||||||
{ globalItemIndex: 19, tagNames: ["stove"] },
|
{ globalItemIndex: 15, tagNames: ["stove", "camping", "hiking", "bikepacking", "backpacking"] },
|
||||||
{ globalItemIndex: 20, tagNames: ["headlamp"] },
|
{ globalItemIndex: 16, tagNames: ["stove", "camping", "hiking", "backpacking"] },
|
||||||
{ globalItemIndex: 21, tagNames: ["bike-light"] },
|
{ globalItemIndex: 17, tagNames: ["cookware", "mug", "camping", "hiking", "bikepacking"] },
|
||||||
{ globalItemIndex: 22, tagNames: ["headlamp"] },
|
{ globalItemIndex: 18, tagNames: ["cookware", "camping", "hiking", "backpacking"] },
|
||||||
{ globalItemIndex: 29, tagNames: ["water-filter"] },
|
{ globalItemIndex: 19, tagNames: ["stove", "camping", "hiking", "backpacking", "climbing"] },
|
||||||
{ globalItemIndex: 30, tagNames: ["water-filter"] },
|
// Lighting — general outdoor
|
||||||
{ globalItemIndex: 31, tagNames: ["water-bottle"] },
|
{ globalItemIndex: 20, tagNames: ["headlamp", "camping", "hiking", "climbing", "backpacking", "running", "trail-running"] },
|
||||||
{ globalItemIndex: 32, tagNames: ["multi-tool", "repair-kit"] },
|
{ globalItemIndex: 21, tagNames: ["bike-light", "bikepacking", "cycling", "road-cycling", "gravel"] },
|
||||||
{ globalItemIndex: 33, tagNames: ["rain-jacket"] },
|
{ globalItemIndex: 22, tagNames: ["headlamp", "camping", "hiking", "climbing", "backpacking"] },
|
||||||
{ globalItemIndex: 34, tagNames: ["bike-computer", "gps"] },
|
// Water — hiking/camping/bikepacking
|
||||||
{ globalItemIndex: 35, tagNames: ["handlebar-bag", "bike-bag", "dry-bag"] },
|
{ globalItemIndex: 29, tagNames: ["water-filter", "hiking", "camping", "bikepacking", "backpacking"] },
|
||||||
|
{ globalItemIndex: 30, tagNames: ["water-filter", "hiking", "camping", "backpacking"] },
|
||||||
|
{ globalItemIndex: 31, tagNames: ["water-bottle", "hiking", "camping", "cycling", "running"] },
|
||||||
|
// Tools — bikepacking/cycling
|
||||||
|
{ globalItemIndex: 32, tagNames: ["multi-tool", "repair-kit", "bikepacking", "cycling"] },
|
||||||
|
// Clothing — general outdoor
|
||||||
|
{ globalItemIndex: 33, tagNames: ["rain-jacket", "hiking", "camping", "bikepacking", "climbing", "running"] },
|
||||||
|
// Electronics — bikepacking/cycling
|
||||||
|
{ globalItemIndex: 34, tagNames: ["bike-computer", "gps", "bikepacking", "cycling", "gravel"] },
|
||||||
|
{ globalItemIndex: 35, tagNames: ["handlebar-bag", "bike-bag", "dry-bag", "bikepacking", "cycling"] },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
// ── Category name mapping (for FK lookups by category name) ────────
|
// ── Category name mapping (for FK lookups by category name) ────────
|
||||||
|
|||||||
@@ -5,6 +5,18 @@ import { globalItems, tags } from "./schema.ts";
|
|||||||
type Db = typeof prodDb;
|
type Db = typeof prodDb;
|
||||||
|
|
||||||
const SEED_TAGS = [
|
const SEED_TAGS = [
|
||||||
|
// Hobby / activity tags (used by onboarding hobby picker)
|
||||||
|
"bikepacking",
|
||||||
|
"cycling",
|
||||||
|
"hiking",
|
||||||
|
"backpacking",
|
||||||
|
"camping",
|
||||||
|
"climbing",
|
||||||
|
"mountaineering",
|
||||||
|
"road-cycling",
|
||||||
|
"gravel",
|
||||||
|
"running",
|
||||||
|
"trail-running",
|
||||||
// Bag types
|
// Bag types
|
||||||
"handlebar-bag",
|
"handlebar-bag",
|
||||||
"framebag",
|
"framebag",
|
||||||
|
|||||||
Reference in New Issue
Block a user