name: 🐛 Bug Report
description: Report a bug or issue with OpenWebUI plugins
title: "[BUG] "
labels: ["bug"]
assignees: []

body:
  - type: markdown
    attributes:
      value: |
        Thanks for reporting a bug! Please provide clear information to help us reproduce and fix the issue.

  - type: dropdown
    id: plugin-type
    attributes:
      label: Plugin Type
      description: Which type of plugin is affected?
      options:
        - Action
        - Filter
        - Pipe
        - Pipeline
        - Tool
        - Other
    validations:
      required: true

  - type: dropdown
    id: plugin-name
    attributes:
      label: Plugin Name
      description: Which plugin has the issue?
      options:
        - "Select a plugin..."
        - "Action - Deep Dive"
        - "Action - Export to Word Enhanced"
        - "Action - Export to Excel"
        - "Action - Flash Card"
        - "Action - Smart Infographic"
        - "Action - Smart Mind Map"
        - "Filter - Async Context Compression"
        - "Filter - Context & Model Enhancement Filter"
        - "Filter - Folder Memory"
        - "Filter - GitHub Copilot SDK Files Filter"
        - "Filter - Markdown Normalizer"
        - "Filter - Gemini Multimodel Filter"
        - "Pipeline - MOE Prompt Refiner"
        - "Pipe - GitHub Copilot SDK"
        - "Pipe - iFlow SDK"
        - "Tool - OpenWebUI Skills Manager"
        - "Tool - Smart Infographic Tool"
        - "Tool - Smart Mind Map Tool"
        - "Other / Not Listed"
    validations:
      required: true

  - type: input
    id: plugin-name-other
    attributes:
      label: Plugin Name (if not in list)
      description: If you selected 'Other / Not Listed', please specify the plugin name
      placeholder: "Plugin name"
    validations:
      required: false

  - type: textarea
    id: description
    attributes:
      label: Description
      description: Clearly describe the bug. What went wrong? What did you expect?
      placeholder: |
        I tried to use [feature], but instead of [expected behavior], it [actual behavior].
        
        Error message (if any):
    validations:
      required: true

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

  - type: input
    id: openwebui-version
    attributes:
      label: OpenWebUI Version
      description: What version of OpenWebUI are you using?
      placeholder: "e.g., 0.3.0 or main"
    validations:
      required: true

  - type: textarea
    id: environment
    attributes:
      label: Operating System & Container
      description: "Your operating system and deployment method"
      placeholder: |
        Example 1:
        OS: macOS 14.3
        Container: Docker (version 24.0.x)
        
        Example 2:
        OS: Ubuntu 22.04 LTS
        Deployment: Docker Compose
    validations:
      required: true

  - type: markdown
    attributes:
      value: |
        ## 📋 Debug Information (Optional)
        
        To help diagnose the issue faster, please provide relevant logs:
        
        **Frontend Console Logs** (Recommended):
        1. Enable: Click avatar → Settings → General → Enable Plugin Debug Output
        2. Open DevTools: Press `F12` (or `Cmd+Option+I` on Mac)
        3. Go to Console tab and copy any error messages or `🛠️ Debug` output
        
        **Server-Side Logs**:
        - Docker: `docker logs <container-id>`
        - Local: Check terminal output or log files

  - type: textarea
    id: logs
    attributes:
      label: Error Logs (Optional)
      description: "Paste frontend console or server logs that show the error"
      placeholder: |
        Error message from console:
        [Your logs here]
      render: bash
    validations:
      required: false

  - type: textarea
    id: additional
    attributes:
      label: Additional Information (Optional)
      description: "Screenshots, related issues, or other helpful details"
      placeholder: |
        - Screenshots (if applicable)
        - Related issues or discussions
        - Steps you've already tried to fix it
    validations:
      required: false

  - type: checkboxes
    id: checklist
    attributes:
      label: Checklist
      options:
        - label: I have searched for duplicate issues
          required: true
        - label: I have provided clear reproduction steps
          required: true
        - label: I have mentioned OpenWebUI version and OS/container info
          required: true
