# Team Member Fragment
# Used by repeating-group in advanced-validators.toml
# Each array item contains these fields

[[elements]]
name = "name"
type = "text"
prompt = "Member name"
help = "Full name of team member"
required = true
placeholder = "John Doe"

[[elements]]
name = "email"
type = "text"
prompt = "Email address"
help = "Work email address (must be unique)"
required = true
placeholder = "john@example.com"
unique = true

[[elements]]
name = "role"
type = "select"
prompt = "Role"
help = "Team member role"
required = true
options = [
  { value = "lead", label = "🎯 Team Lead" },
  { value = "senior", label = "⭐ Senior" },
  { value = "junior", label = "🌱 Junior" },
  { value = "intern", label = "📚 Intern" },
]

[[elements]]
name = "skills"
type = "multiselect"
prompt = "Skills"
help = "Select at least 1 skill"
min_selected = 1
max_selected = 5
options = [
  { value = "rust", label = "🦀 Rust" },
  { value = "typescript", label = "📘 TypeScript" },
  { value = "devops", label = "🚀 DevOps" },
  { value = "database", label = "🗄️ Database" },
  { value = "frontend", label = "🎨 Frontend" },
]
