name: Bug report
about: Report a reproducible bug in the SDG2042X GUI
title: "[Bug]: "
labels:
  - kind/bug
  - state/confirmed
body:
  - type: markdown
    attributes:
      value: |
        Please fill this in properly. Instrument-facing bugs are annoying enough already.

  - type: dropdown
    id: version
    attributes:
      label: Affected version
      description: Select the version where you saw the problem.
      options:
        - v0.1
        - v0.2
        - git / local working copy
    validations:
      required: true

  - type: dropdown
    id: area
    attributes:
      label: Area
      description: Pick the part of the application that looks most affected.
      options:
        - transport
        - gui-basic
        - arb
        - presets
        - config
        - screenshot
        - scpi-cli
        - burst
        - sweep
    validations:
      required: true

  - type: dropdown
    id: severity
    attributes:
      label: Severity
      options:
        - high
        - medium
        - low
    validations:
      required: true

  - type: textarea
    id: summary
    attributes:
      label: What happened?
      description: Describe the bug and what you expected instead.
      placeholder: The application did X, but I expected Y.
    validations:
      required: true

  - type: textarea
    id: steps
    attributes:
      label: Steps to reproduce
      placeholder: |
        1. Connect to instrument
        2. Open ARB tab
        3. Download waveform
        4. UI freezes
    validations:
      required: true

  - type: input
    id: instrument
    attributes:
      label: Instrument model / firmware
      placeholder: e.g. SDG2042X, firmware x.y.z
    validations:
      required: false

  - type: input
    id: environment
    attributes:
      label: Host environment
      placeholder: e.g. Ubuntu 24.04, Python 3.12, PyQt5
    validations:
      required: false

  - type: textarea
    id: logs
    attributes:
      label: Error text / SCPI response / traceback
      placeholder: Paste relevant log output here
    validations:
      required: false

  - type: checkboxes
    id: checks
    attributes:
      label: Checks
      options:
        - label: I tested this more than once
          required: false
        - label: I checked whether this is already reported
          required: true
