{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Pro Ask review report",
    "description": "A review report for a Pro Ask on asks.world, in the openhands-report/1 shape: what was tested, the steps, the findings with their evidence, what to change, and the limitations.",
    "pages": [
      {
        "name": "tested",
        "title": "What was tested",
        "elements": [
          { "type": "text", "name": "report.summary.product", "title": "What you reviewed (product, link or build)", "isRequired": true, "maxLength": 300 },
          { "type": "text", "name": "report.summary.build", "title": "Version or build", "maxLength": 300 },
          { "type": "text", "name": "report.summary.environment", "title": "Where: environment, URL, device", "maxLength": 300 },
          { "type": "text", "name": "report.summary.target", "title": "Who and what it is for", "maxLength": 300 },
          { "type": "text", "name": "report.summary.date", "title": "Date tested (YYYY-MM-DD)", "isRequired": true, "maxLength": 40 },
          { "type": "comment", "name": "report.summary.scope", "title": "The scenarios you covered", "isRequired": true, "maxLength": 4000 },
          { "type": "text", "name": "report.summary.outcome", "title": "The outcome, in one sentence", "isRequired": true, "maxLength": 300 }
        ]
      },
      {
        "name": "steps",
        "title": "Steps",
        "elements": [
          {
            "type": "paneldynamic",
            "name": "report.steps",
            "title": "One per scenario or step",
            "isRequired": true,
            "minPanelCount": 1,
            "maxPanelCount": 100,
            "templateElements": [
              { "type": "text", "name": "id", "title": "Step id (letters, digits, - and _)", "isRequired": true },
              { "type": "comment", "name": "what", "title": "What you did", "isRequired": true },
              { "type": "comment", "name": "expected", "title": "What you expected" },
              { "type": "comment", "name": "observed", "title": "What you observed" },
              {
                "type": "dropdown", "name": "result", "title": "Result", "isRequired": true,
                "choices": [
                  { "value": "passed", "text": "Passed" },
                  { "value": "failed", "text": "Failed" },
                  { "value": "blocked", "text": "Blocked" },
                  { "value": "not_tested", "text": "Not tested" },
                  { "value": "excluded", "text": "Left out on purpose" }
                ]
              },
              { "type": "comment", "name": "notes", "title": "Notes" },
              { "type": "tagbox", "name": "evidence", "title": "Evidence (file ids)", "allowCustomChoices": true, "choices": [] }
            ]
          }
        ]
      },
      {
        "name": "findings",
        "title": "Findings",
        "elements": [
          {
            "type": "paneldynamic",
            "name": "report.findings",
            "title": "Each problem found (none is fine)",
            "maxPanelCount": 100,
            "templateElements": [
              { "type": "text", "name": "id", "title": "Finding id (letters, digits, - and _)", "isRequired": true },
              { "type": "text", "name": "title", "title": "Short title", "isRequired": true },
              { "type": "tagbox", "name": "steps", "title": "From steps (step ids)", "allowCustomChoices": true, "choices": [] },
              { "type": "comment", "name": "observed", "title": "What happened", "isRequired": true },
              { "type": "comment", "name": "expected", "title": "What should have happened", "isRequired": true },
              { "type": "comment", "name": "impact", "title": "Impact on the person using it", "isRequired": true },
              {
                "type": "dropdown", "name": "severity", "title": "Severity", "isRequired": true,
                "choices": [
                  { "value": "blocker", "text": "Blocker" },
                  { "value": "major", "text": "Major" },
                  { "value": "minor", "text": "Minor" }
                ]
              },
              { "type": "comment", "name": "severity_why", "title": "Why that severe", "isRequired": true },
              { "type": "comment", "name": "how_to_reproduce", "title": "How to reproduce it" },
              { "type": "comment", "name": "cannot_reproduce", "title": "A blocker you cannot reproduce: what is missing" },
              { "type": "comment", "name": "uncertainty", "title": "How sure you are, and what would settle it" },
              { "type": "comment", "name": "advice", "title": "Advice" },
              { "type": "tagbox", "name": "evidence", "title": "Evidence (file ids)", "isRequired": true, "allowCustomChoices": true, "choices": [] }
            ]
          }
        ]
      },
      {
        "name": "recommendations",
        "title": "Recommendations",
        "elements": [
          {
            "type": "paneldynamic",
            "name": "report.recommendations",
            "title": "What to change (none is fine)",
            "maxPanelCount": 50,
            "templateElements": [
              { "type": "comment", "name": "text", "title": "What to change", "isRequired": true },
              {
                "type": "dropdown", "name": "priority", "title": "Priority", "isRequired": true,
                "choices": [
                  { "value": "high", "text": "High" },
                  { "value": "medium", "text": "Medium" },
                  { "value": "low", "text": "Low" }
                ]
              },
              { "type": "tagbox", "name": "findings", "title": "For findings (finding ids)", "allowCustomChoices": true, "choices": [] },
              { "type": "text", "name": "target", "title": "Who should act" },
              { "type": "comment", "name": "done_when", "title": "Done when (what you would see once it is changed)", "isRequired": true },
              { "type": "comment", "name": "advice", "title": "Advice" }
            ]
          }
        ]
      },
      {
        "name": "limits",
        "title": "Limitations and evidence",
        "elements": [
          { "type": "tagbox", "name": "report.limitations", "title": "Limitations: what you could not test, and why the result may not hold (one per line)", "isRequired": true, "allowCustomChoices": true, "choices": [] },
          {
            "type": "file", "name": "evidence", "title": "Evidence: screenshots, recordings or traces (a file's id is its name without the extension)",
            "isRequired": true, "allowMultiple": true, "storeDataAsText": false,
            "acceptedTypes": "image/png,image/jpeg,image/webp,application/pdf"
          }
        ]
      }
    ]
  }
}
