name: Bug report
description: Found something wrong or broken? If it hasn't already been filed/solved, report it!
title: "[Bug] "
labels: ["bug"]
body:
  - type: checkboxes
    id: acknowledgements
    attributes:
      label: Checklist
      options:
        - label: >
            I've looked through [troubleshooting](https://clementtsang.github.io/bottom/nightly/troubleshooting),
            [known problems](https://clementtsang.github.io/bottom/nightly/support/official/#known-problems), and 
            [existing open issues](https://github.com/ClementTsang/bottom/issues?q=is%3Aopen+is%3Aissue) for similar
            issues.
          required: true

  - type: textarea
    id: description
    validations:
      required: true
    attributes:
      label: Describe the issue
      description: >
        Give a high level description of the issue, the expected behaviour, and the observed behaviour.
        If possible, provide screenshots/videos.
      placeholder: |
        Example:
        bottom is failing to output information for a mounted encrypted partition on basic mode. It should
        be able to report this information, but I'm not seeing the entry at all.

  - type: input
    id: operating_system
    attributes:
      label: What operating system and version are you using?
      description: >
        Please provide what operating system(s) and version(s) you are running that
        experiences the described issue. Note that operating systems that
        [are not officially supported](https://github.com/ClementTsang/bottom#support)
        may not be prioritized/resolved.
      placeholder: Arch Linux 5.18.15

  - type: dropdown
    id: architecture
    attributes:
      label: What architecture are you using?
      description: >
        Please select the architecture(s) that are experiencing the described issue.
        Note that systems that [are not officially supported](https://github.com/ClementTsang/bottom#support)
        may not be prioritized/resolved.
      multiple: true
      options:
        - x86_64 / AMD64
        - arm64
        - arm32
        - x86
        - Other (*please specify above in description*)

  - type: textarea
    id: terminal
    attributes:
      label: What terminal(s) are you running `bottom` on?
      description: >
        Please provide what terminal(s) you are running `bottom` on (e.g. Konsole, kitty)
        that are experiencing the issue, as well as their version and any relevant settings.
      placeholder: kitty 0.25.2

  - type: input
    id: version
    validations:
      required: true
    attributes:
      label: What version of `bottom` are you running?
      description: >
        Please provide which version of `bottom` you're running, which you can find with `btm -V`. If you are using
        a nightly/non-release version, please also specify that.
      placeholder: 0.8.0

  - type: input
    id: install
    validations:
      required: true
    attributes:
      label: How did you install `bottom`?
      description: >
        Please mention how you installed `bottom`. If you manually compiled it, please also mention your _Rust version_.

        **Note: if you installed from `bottom` from cargo, please ensure that you installed the right crate (https://crates.io/crates/bottom).**
      placeholder: Installed bottom through the Arch official repos.

  # TODO: After some point also add in a `btm check` invocation

  - type: textarea
    id: reproduce
    validations:
      required: true
    attributes:
      label: How can we reproduce this?
      description: >
        Provide detailed steps on _how_ to reproduce your problem, to the best of your ability. Be as detailed as
        possible. Include any config files or flags used. If possible, provide screenshots/videos of the issue.

        Remember - if maintainers cannot reproduce the issue, it will be very hard to fix!
      placeholder: |
        Example:
          1. Mount a LUKS encrypted partition.
          2. Run `btm --basic`
          3. Observe there is no partition shown.

  - type: textarea
    id: additional
    attributes:
      label: Additional information
      description: Provide any additional information you think may be relevant or helpful.
      placeholder: It works fine if I just run it normally without the `--basic` flag.
