Uniform 3D Builder Containers & UI Layout

Introducing the uniform builder with a customizable workflow for creating custom sports uniforms with designs, colors, text, graphics, and roster management.

Overview

The Uniform 3D Builder is the core feature of the ASB Sports Uniform Builder, enabling customers to create fully customized sports uniforms through an intuitive step-by-step process.

Features

6-Step Customization Workflow

The builder guides users through :

  1. Designs - Choose from a library of base templates and uniform styles
  2. Colors - Select team colors and configure color placement zones
  3. Text - Add team name, player names, and custom text elements
  4. Graphics - Upload and position team logos and custom graphics
  5. Roster - Configure individual player names and jersey numbers
  6. Review - Final preview with add-to-cart functionality

Builder Architecture

  • Context-Based State Management - Centralized state for all builder steps with React Context
  • Step Navigation - Progress tracking with ability to jump between completed steps
  • Responsive Layout - Three-panel design with sidebar, canvas, and configuration areas
  • URL-Based Routing - Deep links to specific products via /builder/[sport]/[productSlug]

Designs Management (Admin)

Staff users can manage the design library through the admin dashboard:

  • Create, edit, and delete design templates
  • Associate designs with specific sports and product categories
  • Set design status (active/inactive)
  • Upload design preview images

Database Schema

  • New designs table with full CRUD operations
  • Row Level Security (RLS) policies for staff management
  • Anonymous read access for public product catalogue
  • Integration with existing products and colors tables

Technical Details

  • Dynamic route segments for sport and product combinations
  • Builder context providers for step state and product data
  • Modular step components for easy extension
  • Loading states and error boundaries throughout