name: Issue Report
description: Report a bug or problem with VoCat. Please answer every question below.
title: "[Issue]: "
labels: ["triage"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to open an issue. Please fill in all the fields
        below so we can triage and handle your report as quickly as possible.

  - type: checkboxes
    id: searched-existing
    attributes:
      label: Existing Issues
      description: Have you searched through past Issues (both open and closed) to check whether this problem, or a similar one, has already been reported?
      options:
        - label: I have searched past Issues and found no similar report.
          required: true

  - type: textarea
    id: description
    attributes:
      label: What happened?
      description: Describe the problem you encountered and what you expected to happen instead.
      placeholder: A clear and concise description of the issue...
    validations:
      required: true

  - type: dropdown
    id: priority
    attributes:
      label: Suggested Priority
      description: In your opinion, what priority should this issue be handled with?
      options:
        - Low
        - Medium
        - High
    validations:
      required: true

  - type: dropdown
    id: area
    attributes:
      label: Affected Area
      description: Do you think this is a frontend or backend error?
      options:
        - Frontend
        - Backend
        - Not sure
    validations:
      required: true

  - type: checkboxes
    id: abuse-mcc-acknowledgement
    attributes:
      label: Acknowledgement
      description: Please read and confirm the following before submitting.
      options:
        - label: >-
            I understand that this repository will not modify any feature code on
            behalf of abusers in order to enable abuse, and that this service must
            not be used in regions with MCC=460; any issues
            arising from such use will not be resolved.
          required: true

  - type: textarea
    id: error-messages
    attributes:
      label: Error Messages
      description: Did you encounter any error messages? If so, please paste them here.
      placeholder: Paste any relevant error output or logs...
      render: shell
    validations:
      required: false
