name: Bug Report
description: Report a bug or unexpected behavior
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
  - DanielVolz
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to report a bug! Please fill out the sections below.

        Before submitting, please reproduce the issue on the latest released version.
        Even better: verify it on the current `main` image/tag.
        The issue may already be fixed in newer builds.

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

  - type: textarea
    id: steps
    attributes:
      label: Steps to Reproduce
      description: How can we reproduce this issue?
      placeholder: |
        1. Go to '...'
        2. Click on '...'
        3. See error
    validations:
      required: true

  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What did you expect to happen?
      placeholder: What should have happened instead?
    validations:
      required: true

  - type: textarea
    id: screenshots
    attributes:
      label: Screenshots
      description: If applicable, add screenshots to help explain your problem.
      placeholder: Drag and drop images here

  - type: dropdown
    id: deployment
    attributes:
      label: Deployment Type
      description: How are you running MedAssist?
      options:
        - Docker Compose (Production)
        - Docker Compose (Development)
        - Local development (npm run dev)
        - Other
    validations:
      required: true

  - type: textarea
    id: version_info
    attributes:
      label: Version / Image Information
      description: Provide the app version and, if using Docker, the exact image tag you are running.
      placeholder: |
        App version (Settings -> About): vX.Y.Z
        Docker image tag (if applicable): latest or main
        Tag guidance: use `latest` for the newest release, or `main` for the newest changes from the main branch (`main` is always as new as or newer than `latest`).
    validations:
      required: true

  - type: input
    id: browser
    attributes:
      label: Browser
      description: What browser are you using?
      placeholder: e.g. Chrome 120, Firefox 121, Safari 17

  - type: textarea
    id: logs
    attributes:
      label: Relevant Log Output
      description: Please copy and paste any relevant log output (backend or browser console).
      render: shell

  - type: textarea
    id: additional
    attributes:
      label: Additional Context
      description: Add any other context about the problem here.
