backend:
  name: github
  repo: BlakeMatthews-dev/RCC
  branch: main
  base_url: https://rootedcraftco.com
  auth_endpoint: api/cms/auth
media_folder: public/uploads
public_folder: /uploads
collections:
  - name: categories
    label: Categories
    label_singular: Category
    summary: "{{title}}"
    folder: src/content/categories
    create: true
    slug: "{{slug}}"
    extension: md
    format: frontmatter
    fields:
      - label: Title
        name: title
        widget: string
        hint: The public category name, like Plant Care Guides, Visit the Shop, or Handmade Art.
      - label: Short Title
        name: shortTitle
        widget: string
        required: false
        hint: Optional shorter label used in small places.
      - label: Description
        name: description
        widget: text
        hint: One or two short sentences for the landing page and cards.
      - label: Plant Care Groups
        name: plantGroups
        widget: list
        required: false
        hint: "Only used by Plant Care Guides. Examples: Pothos, Philodendrons, Begonias, African Violets, Succulents, Cacti."
      - label: Booth Intro
        name: boothIntro
        widget: text
        required: false
        hint: Optional booth section intro, usually for Plant Care Guides.
      - label: Booth Address
        name: boothAddress
        widget: text
        required: false
        hint: Where shoppers can find the booth.
      - label: Booth Map Embed URL
        name: boothMapUrl
        widget: string
        required: false
        hint: Paste a Google Maps embed URL. Use the src URL from an embed iframe.
      - label: Booth Hours
        name: boothHours
        widget: list
        required: false
        hint: "Example: Tue-Sat, 10 AM-6 PM."
      - label: Booth Photos
        name: boothPhotos
        widget: list
        required: false
        summary: "{{fields.caption}}"
        fields:
          - label: Image
            name: image
            widget: image
          - label: Alt Text
            name: alt
            widget: string
            required: false
            hint: Short description for accessibility.
          - label: Caption
            name: caption
            widget: string
            required: false
      - label: Booth Artists
        name: boothArtists
        widget: list
        required: false
        summary: "{{fields.name}}"
        fields:
          - label: Artist Name
            name: name
            widget: string
          - label: Short Description
            name: description
            widget: text
            required: false
          - label: Link
            name: link
            widget: string
            required: false
            hint: Optional website, Instagram, shop, or profile link.
      - label: Order
        name: order
        widget: number
        required: false
        value_type: int
        hint: Lower numbers appear first. Use 1, 2, 3, etc.
      - label: Body
        name: body
        widget: markdown
        hint: Intro text shown on the category landing page.
  - name: category_posts
    label: Category Posts
    label_singular: Category Post
    summary: "{{title}} - {{category}}"
    folder: src/content/posts
    create: true
    slug: "{{slug}}"
    extension: md
    format: frontmatter
    fields:
      - label: Title
        name: title
        widget: string
        hint: Main title for the detail page and thumbnail card.
      - label: Short Blurb
        name: description
        widget: text
        hint: Keep this very short. It appears on landing-page cards.
      - label: Category
        name: category
        widget: relation
        collection: categories
        search_fields:
          - title
          - shortTitle
        value_field: "{{slug}}"
        display_fields:
          - title
        hint: Choose from Categories. Add or remove categories in the Categories section.
      - label: Plant Group
        name: plantGroup
        widget: string
        required: false
        hint: "Only for Plant Care Guides. Examples: Pothos, Philodendrons, Begonias, African Violets, Succulents, Cacti."
      - label: Publish Date
        name: pubDate
        widget: datetime
        date_format: YYYY-MM-DD
        time_format: false
        required: false
      - label: YouTube Video URL
        name: youtubeUrl
        widget: string
        required: false
        hint: Paste the regular YouTube watch or Shorts URL. The site embeds it automatically.
      - label: Printable Care Sheet Title
        name: printableTitle
        widget: string
        required: false
        hint: Optional title for the printable PDF section. Defaults to the post title.
      - label: Printable Summary
        name: printableSummary
        widget: text
        required: false
        hint: Short plain-language care summary for the printable sheet.
      - label: Light
        name: light
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Water
        name: water
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Soil
        name: soil
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Temperature
        name: temperature
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Humidity
        name: humidity
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Common Issues
        name: commonIssues
        widget: text
        required: false
        hint: Printable plant care field.
      - label: Care Steps
        name: careSteps
        widget: list
        required: false
        hint: Short step-by-step printable instructions.
      - label: Shop Listing
        name: buyNow
        widget: boolean
        default: false
        required: false
        hint: Turn on only if this post should behave like an item listing.
      - label: Show Price
        name: showPrice
        widget: boolean
        default: true
        required: false
        hint: Turn off when the price should stay hidden even if a price is saved.
      - label: Price
        name: price
        widget: string
        required: false
        hint: "Examples: $24, Starts at $40, Custom quote, or leave blank."
      - label: Available for Purchase
        name: available
        widget: boolean
        default: false
        required: false
        hint: Turn on when someone can currently buy, reserve, or request this item.
      - label: Sold Out
        name: soldOut
        widget: boolean
        default: false
        required: false
        hint: Turn on when the item exists but is not currently available.
      - label: Featured
        name: featured
        widget: boolean
        default: false
        required: false
        hint: Useful for future featured sections.
      - label: Purchase Button Label
        name: buttonLabel
        widget: string
        required: false
        default: Buy now
        hint: "Examples: Buy now, Request this piece, Join waitlist."
      - label: Purchase Link
        name: purchaseUrl
        widget: string
        required: false
        hint: Optional checkout, contact, Etsy, Square, PayPal, or email link.
      - label: Order
        name: order
        widget: number
        required: false
        value_type: int
        hint: Lower numbers appear first inside the selected category.
      - label: Tags
        name: tags
        widget: list
        required: false
      - label: Main Page Content
        name: body
        widget: markdown
  - name: pages
    label: Pages
    label_singular: Page
    folder: src/content/pages
    create: true
    slug: "{{slug}}"
    extension: md
    format: frontmatter
    fields:
      - label: Title
        name: title
        widget: string
      - label: Eyebrow
        name: eyebrow
        widget: string
        required: false
      - label: Description
        name: description
        widget: text
      - label: Order
        name: order
        widget: number
        required: false
        value_type: int
      - label: Body
        name: body
        widget: markdown
