name: "🐞 Bug Report"
description: Create a report to help us improve the website
title: "[Bug]: "
labels: ["bug", "needs-triage"]
assignees:
  - xfox111
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report!

  - type: markdown
    attributes:
      value: |
        > [!IMPORTANT]
        > This repository is for tracking issues within **EasyLogon web application** only.
        >
        > List of all repositories:
        > - [xfox111/easylogon-mobile](https://github.com/xfox111.net/easylogon-mobile) (mobile application)
        > - [xfox111/easylogon-plugin](https://github.com/xfox111.net/easylogon-plugin) (website plugin)
        > - [xfox111/easylogon-extension](https://github.com/xfox111.net/easylogon-plugin) (browser extension)

  - type: textarea
    id: description
    attributes:
      label: Description
      description: A clear and concise description of what the bug is.
    validations:
      required: true

  - type: textarea
    attributes:
      label: Reproduction steps
      description: Precisely describe minimal number of steps that make the bug to appear
      placeholder: |
        1. Go to '...'
        2. Click on '...'
        3. Scroll down to '...'
        4. See '...'
    validations:
      required: true

  - type: textarea
    attributes:
      label: Expected behavior
      description: A clear and concise description of what you expected to happen.
    validations:
      required: true

  - type: textarea
    attributes:
      label: Screenshot
      description: If applicable, add screenshots to help explain your problem.
    validations:
      required: false

  - type: input
    id: version
    attributes:
      label: Version and commit hash
      placeholder: e.g. Microsoft Edge 119.0.2151.58
      description: Go to the application, click "About" and copy the "Version" string
    validations:
      required: true

  - type: dropdown
    id: pwa
    attributes:
      label: Is this a PWA?
      description: Did you install the application, or are you using it in the browser?
      options:
        - "Yes, it is a PWA"
        - "No, I used it inside a browser"
    validations:
      required: true

  - type: dropdown
    id: os
    attributes:
      label: Operating system
      options:
        - "Windows 10 and newer"
        - "Windows 8/8.1"
        - "Windows 7 and older"
        - "Android"
        - "MacOS"
        - "iOS/iPadOS"
        - "Debian or Debian-based"
        - "Other"
    validations:
      required: true

  - type: input
    id: browser
    attributes:
      label: Browser name and version
      placeholder: e.g. Microsoft Edge 119.0.2151.58
      description: Put here your browser's name and version
    validations:
      required: true

  - type: textarea
    id: context
    attributes:
      label: Additional context
      description: Add any other context about the problem here.
    validations:
      required: false

  - type: checkboxes
    id: checkboxes
    attributes:
      label: Validations
      description: Before submitting the issue, please make sure you do the following
      options:
        - label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
          required: true
        - label: The provided reproduction is a minimal reproducible example of the bug.
          required: true
