name: Bug Report
description: Something isn't working as expected
type: Bug
body:
  - type: markdown
    attributes:
      value: |
        Thanks for reporting a bug. Please provide enough detail for maintainers to reproduce the issue.

        **Before submitting**, please search [existing issues](https://github.com/usememos/memos/issues) to avoid duplicates.

  - type: checkboxes
    id: pre-check
    attributes:
      label: Pre-submission Checklist
      options:
        - label: I have searched existing issues and confirmed this has not already been reported
          required: true
        - label: This is a bug report, not a question or configuration request
          required: true

  - type: input
    id: version
    attributes:
      label: Memos Version
      description: Use the version shown in **Settings > System**, the container image tag, the release binary version, or `memos --version`. Please do not write `latest` only.
      placeholder: "v0.25.x, ghcr.io/usememos/memos:v0.25.x, main@abcdef, or demo site"
    validations:
      required: true

  - type: textarea
    id: environment
    attributes:
      label: Environment Details
      description: Include anything relevant to where Memos is running.
      placeholder: |
        - Deployment: Docker / binary / source / demo site
        - Database: SQLite / PostgreSQL / MySQL
        - Browser: Chrome 120 on macOS 15
        - Server OS: Ubuntu 24.04
        - Reverse proxy: nginx / Caddy / Traefik / none

  - type: textarea
    id: reproduction-steps
    attributes:
      label: Steps to Reproduce
      description: Minimal steps to reliably reproduce the issue
      placeholder: |
        1. Go to ...
        2. Click ...
        3. Enter ...
        4. See ...
    validations:
      required: true

  - type: textarea
    id: current-behavior
    attributes:
      label: Current Behavior
      description: What happened? Include exact error messages if available.
      placeholder: The application ...
    validations:
      required: true

  - type: textarea
    id: expected-behavior
    attributes:
      label: Expected Behavior
      description: What did you expect to happen instead?
      placeholder: I expected...
    validations:
      required: true

  - type: textarea
    id: logs
    attributes:
      label: Logs
      description: Paste relevant server logs, browser console output, or network errors. Remove secrets before submitting.
      render: shell
      placeholder: |
        Paste logs here.

  - type: textarea
    id: additional-context
    attributes:
      label: Additional Context
      description: Attach screenshots, screen recordings, sample data, or links to related issues.
      placeholder: Drag and drop files here or add any extra context.
