# Tree Testing Feature - Implementation Plan

## Overview
Tree testing is a UX research method that evaluates information architecture by having participants navigate a text-based hierarchical structure to find specific items.

## Database Schema

### New Tables Required:

1. **tree_nodes** - Stores hierarchical tree structure
2. **tree_tasks** - Tasks for participants to complete
3. **tree_paths** - Records participant navigation paths
4. **tree_task_results** - Tracks task completion and success

## Features

### Researcher Features:
- Build tree structure with drag-and-drop hierarchy editor
- Create tasks with correct answer paths
- Set study to "tree_test" type
- View analytics: success rates, path analysis, first-click data

### Participant Features:
- Navigate text-based tree structure
- Complete tasks by finding items
- Submit final answers

### Analytics:
- Task success rate (did they find the correct item?)
- Path analysis (what route did they take?)
- First-click success (was their first click correct?)
- Time per task
- Common wrong destinations
- Directness score (optimal path vs actual path)

## Implementation Steps

1. ✅ Database migrations
2. ✅ Update study creation form
3. ✅ Build tree structure editor (researcher)
4. ✅ Build task manager (researcher)
5. ✅ Build participant interface
6. ✅ Build analytics/reporting
7. ✅ Add export functionality

