name: 🐞 Bug Report
description: 'Report something that is not working correctly'
title: "[BUG] "
labels: [bug]
body:
  - type: checkboxes
    attributes:
      label: Prerequisites
      options:
        - label: I am running the latest version of [ComfyUI](https://github.com/comfyanonymous/ComfyUI/releases)
          required: true
        - label: I am running the latest version of [ComfyUI_frontend](https://github.com/Comfy-Org/ComfyUI_frontend/releases)
          required: true
        - label: I am running the latest version of LayerForge [Github](https://github.com/Azornes/Comfyui-LayerForge/releases) | [Manager](https://registry.comfy.org/publishers/azornes/nodes/layerforge)
          required: true
        - label: I have searched existing(open/closed) issues to make sure this isn't a duplicate
          required: true

  - type: textarea
    id: description
    attributes:
      label: What happened?
      description: A clear and concise description of the bug. Include screenshots or videos if helpful.
      placeholder: |
        Example: "When I connect a image to an Input, the connection line appears but the workflow fails to execute with an error message..."
    validations:
      required: true

  - type: textarea
    id: reproduce
    attributes:
      label: Steps to Reproduce
      description: How can I reproduce this issue? Please attach your workflow (JSON or PNG) if needed.
      placeholder: |
        1. Connect Image to Input
        2. Click Queue Prompt
        3. See error
    validations:
      required: true

  - type: dropdown
    id: severity
    attributes:
      label: How is this affecting you?
      options:
        - Crashes ComfyUI completely
        - Workflow won't execute
        - Feature doesn't work as expected
        - Visual/UI issue only
        - Minor inconvenience
    validations:
      required: true
    
  - type: dropdown
    id: browser
    attributes:
      label: Browser
      description: Which browser are you using?
      options:
        - Chrome/Chromium
        - Firefox
        - Safari
        - Edge
        - Other
    validations:
      required: true

  - type: markdown
    attributes:
      value: |
        ## Additional Information (Optional)
        *The following fields help me debug complex issues but are not required for most bug reports.*
        ### 🔍 Enable Debug Logs (for **full** logs):
        
        #### 1. Edit `config.js` (Frontend Logs):
        Path:
        ```
        ComfyUI/custom_nodes/Comfyui-LayerForge/js/config.js
        ```
        Find:
        ```js
        export const LOG_LEVEL = 'NONE';
        ```
        Change to:
        ```js
        export const LOG_LEVEL = 'DEBUG';
        ```
        
        #### 2. Edit `config.py` (Backend Logs):
        Path:
        ```
        ComfyUI/custom_nodes/Comfyui-LayerForge/python/config.py
        ```
        Find:
        ```python
        LOG_LEVEL = 'NONE'
        ```
        Change to:
        ```python
        LOG_LEVEL = 'DEBUG'
        ```

        ➡️ **Restart ComfyUI** after applying these changes to activate full logging.
  - type: textarea
    id: console-errors
    attributes:
      label: Console Errors
      description: |
        If you see red error messages in the browser console (F12), paste them here
        More info:
        After enabling DEBUG logs:
        1. Open Developer Tools → Console.
          - Chrome/Edge (Win/Linux): `Ctrl+Shift+J`  
            Mac: `Cmd+Option+J`
          - Firefox (Win/Linux): `Ctrl+Shift+K`  
            Mac: `Cmd+Option+K`
          - Safari (Mac): enable **Develop** menu in Preferences → Advanced, then `Cmd+Option+C`
        2. Clear console (before reproducing):
           - Chrome/Edge: “🚫 Clear console” or `Ctrl+L` (Win/Linux) / `Cmd+K` (Mac).
           - Firefox: `Ctrl+Shift+L` (newer) or `Ctrl+L` (older) (Win/Linux) / `Cmd+K` (Mac).
           - Safari: 🗑 icon or `Cmd+K`.
        3. Reproduce the issue.
        4. Copy-paste the **TEXT** logs here (no screenshots).
      render: javascript

  - type: textarea
    id: logs
    attributes:
      label: Logs
      description: |
        If relevant, paste any terminal/server logs here
        More info:
        After enabling DEBUG logs, please:
        1. Restart ComfyUI.
        2. Reproduce the issue.
        3. Copy-paste the newest **TEXT** logs from the terminal/console here.
      render: shell

  - type: textarea
    id: additional
    attributes:
      label: Additional Context, Environment (OS, ComfyUI versions, Comfyui-LayerForge version)
      description: Any other information that might help (OS, GPU, specific nodes involved, etc.)

      
