name: 🐛 Bug Report
about: Report a bug or unexpected behavior
title: '[BUG] '
labels: ['bug', 'status:investigating']
body:
  - type: markdown
    attributes:
      value: |
        > **⚠️ SECURITY WARNING:** Do NOT include API keys, secrets, or sensitive customer data.
        > For security issues, email **security@evercatch.dev** instead.

  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: A clear description of what the bug is.
      placeholder: Describe the bug...
    validations:
      required: true

  - type: textarea
    id: steps
    attributes:
      label: Steps to Reproduce
      description: Step-by-step instructions to reproduce the behavior.
      placeholder: |
        1.
        2.
        3.
    validations:
      required: true

  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What you expected to happen.
      placeholder: I expected...
    validations:
      required: true

  - type: textarea
    id: actual
    attributes:
      label: Actual Behavior
      description: What actually happened.
      placeholder: Instead, what happened was...
    validations:
      required: true

  - type: dropdown
    id: tier
    attributes:
      label: Subscription Tier
      options:
        - Sandbox (Free)
        - Indie
        - Studio
        - Enterprise
    validations:
      required: true

  - type: input
    id: endpoint
    attributes:
      label: Endpoint Used
      description: The API endpoint related to this bug.
      placeholder: 'e.g. POST /api/v1/webhooks/stripe/...'

  - type: input
    id: timestamp
    attributes:
      label: Timestamp
      description: When did this occur?
      placeholder: 'e.g. 2026-02-13T10:30:00Z'

  - type: input
    id: event-id
    attributes:
      label: Event ID (if applicable)
      placeholder: 'e.g. evt_...'

  - type: dropdown
    id: browser
    attributes:
      label: Browser (if dashboard issue)
      options:
        - N/A
        - Chrome
        - Firefox
        - Safari
        - Edge
        - Other

  - type: textarea
    id: logs
    attributes:
      label: Screenshots / Logs
      description: If applicable, paste error logs or describe screenshots.
      render: shell

  - type: textarea
    id: workaround
    attributes:
      label: Workaround
      description: If you found a temporary workaround, share it here.

  - type: textarea
    id: context
    attributes:
      label: Additional Context
      description: Any other context about the problem.
