# Admin Tools Directory

This directory contains all administrative tools and utilities for managing the Performance.FYI assessment platform.

## Core Admin Tools

### Question Management
- **upload_questions_master.html** - Master tool for uploading survey questions to Firebase (NEWEST VERSION - Nov 3)
- **question_master.html** - Question editor and management interface
- **upload_cal_questions.html** - Calibration survey question uploader
- **upload_fpei_questions.html** - FPEI survey question uploader
- **export_questions_to_spreadsheet.html** - Export questions to CSV/spreadsheet format

### User & Access Management
- **admin-dashboard.html** - Main admin dashboard for managing users and responses
- **user-dashboard.html** - User management interface
- **generate-codes.html** - Generate pilot access codes
- **setup_pilot_codes.html** - Setup and configure pilot access codes
- **setup-admin.html** - Initial admin setup tool

### Testing & Debugging
- **test_firebase.html** - Firebase connection testing tool
- **audit.html** - System audit and verification tool
- **FPEI_Grade_Calculator.html** - Grade calculation testing tool

## File Organization Notes

**November 3, 2024 Cleanup:**
- Removed duplicate files from root Assessment/ folder
- Consolidated all admin tools into this directory
- Moved legacy/deprecated files to appropriate folders
- `upload_questions_master.html` in this folder is the NEWEST version (39KB, Nov 3) - use this one!

## Important Security Notes

⚠️ **These files should NOT be publicly accessible in production**

All admin tools require:
- Admin authentication
- Firebase credentials
- Proper security rules configured

## Usage

Access admin tools during development via:
- Local: `http://127.0.0.1:5500/Assessment/admin/[filename]`
- Deployed: Should be behind authentication/access controls

## Access Requirements

- Firebase Admin SDK credentials
- Admin flag in localStorage (`isAdmin: 'true'`)
- Or URL parameter `?admin=true` for testing

---

**Maintained by**: Performance.FYI Development Team
**Last Updated**: November 3, 2024
