name: Enhancement
about: Suggest an improvement to an existing feature or functionality
title: "[Enhancement] "
labels:
  - kind/enhancement
  - status/triage
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to suggest an improvement! This template is for enhancements to **existing** features. If you'd like to request a brand new feature, please use the Feature Request template instead.

  - type: textarea
    id: current-behavior
    attributes:
      label: Current Behavior
      description: Describe how the existing feature currently works.
      placeholder: "Currently, when I do X, it works like..."
    validations:
      required: true

  - type: textarea
    id: proposed-improvement
    attributes:
      label: Proposed Improvement
      description: Describe how you'd like the existing feature to be improved.
      placeholder: "I'd like it to also do Y, or behave differently by..."
    validations:
      required: true

  - type: textarea
    id: use-case
    attributes:
      label: Use Case
      description: Why would this improvement be valuable? What problem does it solve?
      placeholder: "This would help because..."
    validations:
      required: true

  - type: dropdown
    id: area
    attributes:
      label: Area of the Application
      description: Which part of the application does this enhancement relate to?
      options:
        - Dashboard / CVE List
        - CVE Details
        - Document Management
        - User Management
        - Authentication
        - Audit Logging
        - API
        - Other
    validations:
      required: true

  - type: dropdown
    id: priority
    attributes:
      label: Priority
      description: How important is this enhancement to your workflow?
      options:
        - Nice to have
        - Important
        - Critical
    validations:
      required: true

  - type: textarea
    id: alternatives
    attributes:
      label: Alternatives or Workarounds
      description: Are there any current workarounds or alternative approaches you've considered?
      placeholder: "Currently I work around this by..."
    validations:
      required: false

  - type: textarea
    id: additional-context
    attributes:
      label: Additional Context
      description: Add any other context, screenshots, or mockups about the enhancement here.
    validations:
      required: false
