name: Bug Report
description: Report a bug in EmDash
labels: ["bug"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for reporting a bug. Please fill out the sections below so we can reproduce and fix it.

  - type: textarea
    id: description
    attributes:
      label: Description
      description: What happened? What did you expect to happen?
    validations:
      required: true

  - type: textarea
    id: reproduction
    attributes:
      label: Steps to reproduce
      description: Minimal steps to trigger the bug. Include code snippets, config, or a link to a reproduction repo if possible.
      placeholder: |
        1. Create a collection with ...
        2. Navigate to ...
        3. Click ...
        4. See error
    validations:
      required: true

  - type: textarea
    id: environment
    attributes:
      label: Environment
      description: Relevant version info.
      placeholder: |
        - emdash version: x.x.x
        - Node.js version: x.x.x
        - Runtime: Node / Cloudflare Workers
        - OS: macOS / Linux / Windows
    validations:
      required: true

  - type: textarea
    id: logs
    attributes:
      label: Logs / error output
      description: Paste any relevant error messages or stack traces.
      render: shell
    validations:
      required: false
