name: Bug Report
description: Something isn't working
labels: ["bug"]
body:
  - type: markdown
    attributes:
      value: |
        Do not include passwords, access tokens, proxy credentials, personal information, or other secrets. Automated triage sends the issue title and body to GitHub Models after removing the logs/screenshots field and redacting common sensitive-data patterns.

  - type: textarea
    id: description
    attributes:
      label: What happened?
      placeholder: Describe the bug. What did you expect vs what actually happened?
    validations:
      required: true

  - type: textarea
    id: steps
    attributes:
      label: Steps to reproduce
      placeholder: |
        1. Go to ...
        2. Click on ...
        3. See error
    validations:
      required: true

  - type: dropdown
    id: os
    attributes:
      label: Operating System
      options:
        - macOS (Apple Silicon)
        - macOS (Intel)
        - Windows
        - Linux
    validations:
      required: true

  - type: input
    id: version
    attributes:
      label: Donut Browser version
      placeholder: e.g. 0.17.6 or nightly-2026-03-21
    validations:
      required: true

  - type: input
    id: wayfern_version
    attributes:
      label: Wayfern version
      description: Settings → About, or the version shown when creating a profile. Use "unknown" if not browser-specific.
      placeholder: e.g. 138.0.7204.50 or unknown
    validations:
      required: true

  - type: textarea
    id: logs
    attributes:
      label: Error logs or screenshots
      description: Use Settings → Advanced → Copy logs for a redacted log bundle. Review it before posting. Never include credentials or personal information.
      placeholder: Paste logs here or drag screenshots
    validations:
      required: false

  - type: dropdown
    id: ai-usage
    attributes:
      label: Did you use AI to write this report?
      description: Using AI is allowed. Hiding it is not. Undisclosed AI reports get closed. Broken English is welcome here.
      options:
        - "No"
        - "Yes, AI helped me write this"
    validations:
      required: true
