{
  "snapi_template": 1,
  "name": "Bug Report Triage",
  "description": "Bug reports arrive everywhere. Funnel them through one form onto a triage board; accepting a bug opens a GitHub or Linear issue.",
  "app": "$f1",
  "root": "$f1",
  "forms": [
    {
      "token": "$f1",
      "name": "Bug Report Triage",
      "description": "Bug Report Triage — submit and work the queue",
      "icon": "fas fa-bug",
      "color": "#2551ed",
      "is_public": false,
      "auth_required": false,
      "is_app": true,
      "success_message": "Submitted successfully.",
      "config": {
        "fields": [
          {
            "name": "hub_title",
            "label": "Bug Report Triage",
            "type": "title"
          },
          {
            "name": "hub_intro",
            "label": "Submit a bug report, or open the board to work the queue. Moving a card fires a webhook back to your automation.",
            "type": "subtitle"
          },
          {
            "name": "new_item",
            "label": "Report a bug",
            "type": "button",
            "buttonActionType": "navigate",
            "buttonTargetKind": "form",
            "buttonTargetEntityId": "$f2",
            "buttonIcon": "fas fa-plus",
            "buttonStyle": "primary"
          },
          {
            "name": "board_link",
            "label": "Bug report board",
            "type": "link",
            "linkAction": "navigate",
            "linkTargetKind": "board",
            "linkTargetBoardId": "$b1",
            "linkIcon": "fas fa-columns"
          }
        ]
      }
    },
    {
      "token": "$f2",
      "name": "Bug report",
      "description": "A bug report",
      "icon": "fas fa-bug",
      "color": "#0ea5e9",
      "is_public": true,
      "auth_required": false,
      "is_app": false,
      "success_message": "Submitted — it's now in the queue.",
      "default_board": "$b1",
      "default_column": "$c1",
      "config": {
        "fields": [
          {
            "name": "ref_no",
            "label": "Ref #",
            "type": "sequence",
            "sequenceId": "$s1",
            "sequenceEditable": false
          },
          {
            "name": "summary",
            "label": "Summary",
            "type": "text",
            "required": true
          },
          {
            "name": "steps",
            "label": "Steps to reproduce",
            "type": "textarea",
            "required": true
          },
          {
            "name": "severity",
            "label": "Severity",
            "type": "select",
            "options": [
              "Low",
              "Medium",
              "High",
              "Critical"
            ]
          },
          {
            "name": "reporter_email",
            "label": "Your email",
            "type": "email"
          }
        ]
      }
    }
  ],
  "boards": [
    {
      "token": "$b1",
      "name": "Bug Report Triage Queue",
      "description": "New items land in New. Drag a card to Accepted — that move fires the form's post-webhook so your automation can continue.",
      "nav_items": [
        {
          "name": "nav_new",
          "label": "Report a bug",
          "type": "button",
          "buttonActionType": "navigate",
          "buttonTargetKind": "form",
          "buttonTargetEntityId": "$f2",
          "buttonIcon": "fas fa-plus",
          "buttonStyle": "primary"
        }
      ],
      "columns": [
        {
          "token": "$c1",
          "name": "New",
          "color": "#0ea5e9",
          "position": 0
        },
        {
          "token": "$c2",
          "name": "Accepted",
          "color": "#10b981",
          "position": 1
        },
        {
          "token": "$c3",
          "name": "Fixed",
          "color": "#2551ed",
          "position": 2
        },
        {
          "token": "$c4",
          "name": "Won't Fix",
          "color": "#64748b",
          "position": 3
        }
      ]
    }
  ],
  "sequences": [
    {
      "token": "$s1",
      "name": "bug_reports",
      "prefix": "BUG-",
      "padding": 4,
      "reset_period": null
    }
  ]
}
