Questionnaire tree viewer#
Small static frontend for exploring AI-solve questionnaire JSON.
Run locally#
Browsers block fetch() for local files, so serve this folder:
cd agent/questionnaires
python -m http.server 8765
Open http://localhost:8765.
Features#
- Introduction — project, issue, and approach context shown at the top and in walk-through
- Tree view — nested questions with
context,explanation, and detailed option labels - Walk-through — interactive simulator with narrative context per step (depth-first stack)
- Schema v2 — options are
{ "label": "detailed description…" }only; answers useoptionIndex - Load sample (
test.json), upload a.json/.txtfile, or paste JSON (supports markdown fences; v1 auto-normalized)
Sample data#
test.json— parsed questionnaire for the AtomicXR lighthouse pair issuetest.txt— same content with markdown code fence (also loadable)
Output#
Walk-through mode builds the flat POST /answers payload shape when you finish all questions.