name: 🐛 Bug Report
description: Report a bug or unexpected behavior
title: "[Bug]: "
labels: ["type: bug", "triage: new"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to report a bug! Please fill out the information below to help us resolve it quickly.
        
        **Before submitting:** Please search [existing issues](https://github.com/Jagalite/superseedr/issues) to avoid duplicates.
        
  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: A clear and concise description of what the bug is
      placeholder: What went wrong?
    validations:
      required: true
      
  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What you expected to happen
      placeholder: What should have happened instead?
    validations:
      required: true
      
  - type: textarea
    id: steps
    attributes:
      label: Steps to Reproduce
      description: Detailed steps to reproduce the behavior
      placeholder: |
        1. Start superseedr with '...'
        2. Add torrent via '...'
        3. Navigate to '...'
        4. See error
    validations:
      required: true
      
  - type: dropdown
    id: install-method
    attributes:
      label: Installation Method
      description: How did you install superseedr?
      options:
        - Native (cargo install)
        - Native (built from source)
        - Docker (standalone - no VPN)
        - Docker (with Gluetun VPN)
        - Package manager (AUR, .deb, .pkg, etc.)
        - Other (please specify below)
    validations:
      required: true
      
  - type: input
    id: version
    attributes:
      label: Superseedr Version
      description: Run `superseedr --version` or check the TUI. For Docker, check image tag.
      placeholder: "e.g., 0.9.28 or commit hash"
    validations:
      required: true
      
  - type: dropdown
    id: os
    attributes:
      label: Operating System
      description: What OS are you running?
      options:
        - Linux
        - macOS
        - Windows
        - Other (please specify below)
    validations:
      required: true
      
  - type: textarea
    id: logs
    attributes:
      label: Relevant Logs or Error Messages
      description: Please paste any relevant logs, error messages, or stack traces
      render: shell
      placeholder: |
        Paste logs here...
        
  - type: textarea
    id: context
    attributes:
      label: Additional Context
      description: |
        Any other relevant information:
        - VPN provider (if using Docker with Gluetun)
        - Terminal emulator (iTerm2, Windows Terminal, Alacritty, etc.)
        - Any custom configuration
        - Screenshots (if UI-related)
      placeholder: Add any other context about the problem here
